{
 "instance": {
  "atnx-20221231.htm": {
   "axisCustom": 0,
   "axisStandard": 48,
   "baseTaxonomies": {
    "http://fasb.org/srt/2022": 1,
    "http://fasb.org/us-gaap/2022": 1172,
    "http://xbrl.sec.gov/dei/2022": 38
   },
   "contextCount": 407,
   "dts": {
    "calculationLink": {
     "local": [
      "atnx-20221231_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "atnx-20221231_def.xml"
     ]
    },
    "inline": {
     "local": [
      "atnx-20221231.htm"
     ]
    },
    "labelLink": {
     "local": [
      "atnx-20221231_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "atnx-20221231_pre.xml"
     ]
    },
    "schema": {
     "local": [
      "atnx-20221231.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://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd",
      "https://xbrl.fasb.org/srt/2022/elts/srt-roles-2022.xsd",
      "https://xbrl.fasb.org/srt/2022/elts/srt-types-2022.xsd",
      "https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd",
      "https://xbrl.fasb.org/us-gaap/2022/elts/us-roles-2022.xsd",
      "https://xbrl.fasb.org/us-gaap/2022/elts/us-types-2022.xsd",
      "https://xbrl.sec.gov/country/2022/country-2022.xsd",
      "https://xbrl.sec.gov/dei/2022/dei-2022.xsd",
      "https://xbrl.sec.gov/stpr/2022/stpr-2022.xsd"
     ]
    }
   },
   "elementCount": 1177,
   "entityCount": 1,
   "hidden": {
    "http://fasb.org/us-gaap/2022": 13,
    "http://xbrl.sec.gov/dei/2022": 5,
    "total": 18
   },
   "keyCustom": 176,
   "keyStandard": 494,
   "memberCustom": 93,
   "memberStandard": 64,
   "nsprefix": "atnx",
   "nsuri": "http://www.athenex.com/20221231",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "true",
     "longName": "100000 - Document - Document and Entity Information",
     "menuCat": "Cover",
     "order": "1",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
     "shortName": "Document and Entity Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100100 - Disclosure - Business Combination",
     "menuCat": "Notes",
     "order": "10",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombination1",
     "shortName": "Business Combination",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R100": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101010 - Disclosure - Business Segment, Geographic, and Concentration Risk Information - Summary of Revenue by Geographical Segment (Detail)",
     "menuCat": "Details",
     "order": "100",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByGeographicalSegmentDetail",
     "shortName": "Business Segment, Geographic, and Concentration Risk Information - Summary of Revenue by Geographical Segment (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R101": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:SchedulesOfConcentrationOfRiskByRiskFactorTextBlock",
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_d7e501f1-9af9-4ff3-803a-628bbe25fcf8",
      "decimals": "2",
      "first": true,
      "lang": null,
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101020 - Disclosure - Business Segment, Geographic, and Concentration Risk Information - Summary of Customer Revenue and Accounts Receivable Concentration (Detail)",
     "menuCat": "Details",
     "order": "101",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail",
     "shortName": "Business Segment, Geographic, and Concentration Risk Information - Summary of Customer Revenue and Accounts Receivable Concentration (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:SchedulesOfConcentrationOfRiskByRiskFactorTextBlock",
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_d7e501f1-9af9-4ff3-803a-628bbe25fcf8",
      "decimals": "2",
      "first": true,
      "lang": null,
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R102": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "atnx:SalesDiscountGoodsPercentage",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101030 - Disclosure - Revenue Recognition - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "102",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail",
     "shortName": "Revenue Recognition - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "atnx:SalesDiscountGoodsPercentage",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R103": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101040 - Disclosure - Revenue Recognition - Schedule of Company's Revenue for Reportable Segment by Country Based on Locations of Customer (Detail)",
     "menuCat": "Details",
     "order": "103",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail",
     "shortName": "Revenue Recognition - Schedule of Company's Revenue for Reportable Segment by Country Based on Locations of Customer (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DisaggregationOfRevenueTableTextBlock",
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_d63c6938-2dfa-4e01-a463-73fba7dccbe2",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R104": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ContractWithCustomerAssetAndLiabilityTableTextBlock",
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AccountsReceivableGrossCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101050 - Disclosure - Revenue Recognition - Summary of Receivables and Contract Liabilities From Contracts with Customers (Detail)",
     "menuCat": "Details",
     "order": "104",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfReceivablesAndContractLiabilitiesFromContractsWithCustomersDetail",
     "shortName": "Revenue Recognition - Summary of Receivables and Contract Liabilities From Contracts with Customers (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ContractWithCustomerAssetAndLiabilityTableTextBlock",
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:ContractWithCustomerLiabilityCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R105": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ContractWithCustomerAssetAndLiabilityTableTextBlock",
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AccountsReceivableGrossCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101060 - Disclosure - Revenue Recognition - Summary of Accounts Receivable Balances by Reportable Segments (Detail)",
     "menuCat": "Details",
     "order": "105",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfAccountsReceivableBalancesByReportableSegmentsDetail",
     "shortName": "Revenue Recognition - Summary of Accounts Receivable Balances by Reportable Segments (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "atnx:AccountsReceivableByReportableSegmentsTableTextBlock",
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_9786c085-343c-4c27-ad3f-31180538778b",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AccountsReceivableGrossCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R106": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101070 - Disclosure - Commitments and Contingencies - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "106",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail",
     "shortName": "Commitments and Contingencies - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R107": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "atnx:ScheduleOfFutureMinimumPaymentsAndMaturitiesOfOperatingAndFinanceLeasesTableTextBlock",
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101080 - Disclosure - Commitments and Contingencies - Schedule of Future Minimum Payments Under Non-Cancelable Leases (Detail)",
     "menuCat": "Details",
     "order": "107",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsUnderNonCancelableLeasesDetail",
     "shortName": "Commitments and Contingencies - Schedule of Future Minimum Payments Under Non-Cancelable Leases (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R108": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:SubsequentEventsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_451588db-b099-4d25-bf2b-4be276c65e27",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteStockSplit",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101090 - Disclosure - Subsequent Events - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "108",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail",
     "shortName": "Subsequent Events - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:SubsequentEventsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_451588db-b099-4d25-bf2b-4be276c65e27",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteStockSplit",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R109": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_d2d05527-1298-49ac-8e4f-3e1ac0326b17",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ValuationAllowancesAndReservesBalance",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101100 - Disclosure - Schedule II - Valuation and Qualifying Accounts (Detail)",
     "menuCat": "Details",
     "order": "109",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccountsDetail",
     "shortName": "Schedule II - Valuation and Qualifying Accounts (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_5c48d072-f506-4737-bf59-d11ed21d74ee",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:ValuationAllowancesAndReservesBalance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100110 - Disclosure - Discontinued Operations",
     "menuCat": "Notes",
     "order": "11",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperations3",
     "shortName": "Discontinued Operations",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R12": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "atnx:RestrictedCashDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100120 - Disclosure - Restricted Cash",
     "menuCat": "Notes",
     "order": "12",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRestrictedCash",
     "shortName": "Restricted Cash",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "atnx:RestrictedCashDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InventoryDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100130 - Disclosure - Inventories",
     "menuCat": "Notes",
     "order": "13",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureInventories",
     "shortName": "Inventories",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InventoryDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100140 - Disclosure - Property and Equipment, Net",
     "menuCat": "Notes",
     "order": "14",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNet",
     "shortName": "Property and Equipment, Net",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R15": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100150 - Disclosure - Goodwill and Intangible Assets, Net",
     "menuCat": "Notes",
     "order": "15",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNet",
     "shortName": "Goodwill and Intangible Assets, Net",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R16": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100160 - Disclosure - Fair Value Measurements",
     "menuCat": "Notes",
     "order": "16",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurements",
     "shortName": "Fair Value Measurements",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R17": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AccountsPayableAccruedLiabilitiesAndOtherLiabilitiesDisclosureCurrentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100170 - Disclosure - Accrued Expenses",
     "menuCat": "Notes",
     "order": "17",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpenses",
     "shortName": "Accrued Expenses",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AccountsPayableAccruedLiabilitiesAndOtherLiabilitiesDisclosureCurrentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100180 - Disclosure - Income Taxes",
     "menuCat": "Notes",
     "order": "18",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxes",
     "shortName": "Income Taxes",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "atnx:DebtAndLeaseObligationsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100190 - Disclosure - Debt and Lease Obligations",
     "menuCat": "Notes",
     "order": "19",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligations",
     "shortName": "Debt and Lease Obligations",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "atnx:DebtAndLeaseObligationsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100010 - Statement - Consolidated Balance Sheets",
     "menuCat": "Statements",
     "order": "2",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets",
     "shortName": "Consolidated Balance Sheets",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:PrepaidExpenseAndOtherAssetsCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "atnx:ContingentConsiderationDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100200 - Disclosure - Contingent Consideration",
     "menuCat": "Notes",
     "order": "20",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsideration",
     "shortName": "Contingent Consideration",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "atnx:ContingentConsiderationDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R21": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100210 - Disclosure - Related Party Transactions",
     "menuCat": "Notes",
     "order": "21",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactions",
     "shortName": "Related Party Transactions",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R22": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100220 - Disclosure - Stock-Based Compensation",
     "menuCat": "Notes",
     "order": "22",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensation",
     "shortName": "Stock-Based Compensation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R23": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100230 - Disclosure - Net Loss per Share Attributable to Athenex, Inc. Common Stockholders",
     "menuCat": "Notes",
     "order": "23",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureNetLossPerShareAttributableToAthenexIncCommonStockholders",
     "shortName": "Net Loss per Share Attributable to Athenex, Inc. Common Stockholders",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R24": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100240 - Disclosure - Accumulated Other Comprehensive (Loss) Income",
     "menuCat": "Notes",
     "order": "24",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossIncome",
     "shortName": "Accumulated Other Comprehensive (Loss) Income",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100250 - Disclosure - Business Segment, Geographic, and Concentration Risk Information",
     "menuCat": "Notes",
     "order": "25",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformation",
     "shortName": "Business Segment, Geographic, and Concentration Risk Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RevenueFromContractWithCustomerTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100260 - Disclosure - Revenue Recognition",
     "menuCat": "Notes",
     "order": "26",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognition",
     "shortName": "Revenue Recognition",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RevenueFromContractWithCustomerTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100270 - Disclosure - Commitments and Contingencies",
     "menuCat": "Notes",
     "order": "27",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingencies",
     "shortName": "Commitments and Contingencies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R28": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100280 - Disclosure - Subsequent Events",
     "menuCat": "Notes",
     "order": "28",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEvents",
     "shortName": "Subsequent Events",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R29": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100290 - Disclosure - Schedule II - Valuation and Qualifying Accounts",
     "menuCat": "Notes",
     "order": "29",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccounts",
     "shortName": "Schedule II - Valuation and Qualifying Accounts",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "atnx:ChargebacksAndOtherDeductionsCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100030 - Statement - Consolidated Balance Sheets (Parenthetical)",
     "menuCat": "Statements",
     "order": "3",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical",
     "shortName": "Consolidated Balance Sheets (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:CommonStockSharesAuthorized",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R30": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100300 - Disclosure - Summary of Significant Accounting Policies (Policies)",
     "menuCat": "Policies",
     "order": "30",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies",
     "shortName": "Summary of Significant Accounting Policies (Policies)",
     "subGroupType": "policies",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:PropertyPlantAndEquipmentPolicyTextBlock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "atnx:PropertyPlanAndEquipmentEstimatedUsefulLivesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100310 - Disclosure - Summary of Significant Accounting Policies (Tables)",
     "menuCat": "Tables",
     "order": "31",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesTables",
     "shortName": "Summary of Significant Accounting Policies (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:PropertyPlantAndEquipmentPolicyTextBlock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "atnx:PropertyPlanAndEquipmentEstimatedUsefulLivesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100320 - Disclosure - Business Combination (Tables)",
     "menuCat": "Tables",
     "order": "32",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationTables",
     "shortName": "Business Combination (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R33": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100330 - Disclosure - Discontinued Operations (Tables)",
     "menuCat": "Tables",
     "order": "33",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsTables",
     "shortName": "Discontinued Operations (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100340 - Disclosure - Inventories (Tables)",
     "menuCat": "Tables",
     "order": "34",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureInventoriesTables",
     "shortName": "Inventories (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100350 - Disclosure - Property and Equipment, Net (Tables)",
     "menuCat": "Tables",
     "order": "35",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetTables",
     "shortName": "Property and Equipment, Net (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R36": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfGoodwillTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100360 - Disclosure - Goodwill and Intangible Assets, Net (Tables)",
     "menuCat": "Tables",
     "order": "36",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetTables",
     "shortName": "Goodwill and Intangible Assets, Net (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfGoodwillTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100370 - Disclosure - Fair Value Measurements (Tables)",
     "menuCat": "Tables",
     "order": "37",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsTables",
     "shortName": "Fair Value Measurements (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:AccountsPayableAccruedLiabilitiesAndOtherLiabilitiesDisclosureCurrentTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccruedLiabilitiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100380 - Disclosure - Accrued Expenses (Tables)",
     "menuCat": "Tables",
     "order": "38",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesTables",
     "shortName": "Accrued Expenses (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:AccountsPayableAccruedLiabilitiesAndOtherLiabilitiesDisclosureCurrentTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccruedLiabilitiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R39": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100390 - Disclosure - Income Taxes (Tables)",
     "menuCat": "Tables",
     "order": "39",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesTables",
     "shortName": "Income Taxes (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R4": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100040 - Statement - Consolidated Statements of Operations and Comprehensive Loss",
     "menuCat": "Statements",
     "order": "4",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss",
     "shortName": "Consolidated Statements of Operations and Comprehensive Loss",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:CostOfGoodsAndServicesSold",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R40": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDebtTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100400 - Disclosure - Debt and Lease Obligations (Tables)",
     "menuCat": "Tables",
     "order": "40",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsTables",
     "shortName": "Debt and Lease Obligations (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDebtTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R41": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "atnx:ContingentConsiderationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfBusinessAcquisitionsByAcquisitionContingentConsiderationTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100410 - Disclosure - Contingent Consideration (Tables)",
     "menuCat": "Tables",
     "order": "41",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationTables",
     "shortName": "Contingent Consideration (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "atnx:ContingentConsiderationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfBusinessAcquisitionsByAcquisitionContingentConsiderationTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100420 - Disclosure - Stock-Based Compensation (Tables)",
     "menuCat": "Tables",
     "order": "42",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationTables",
     "shortName": "Stock-Based Compensation (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100430 - Disclosure - Net Loss per Share Attributable to Athenex, Inc. Common Stockholders (Tables)",
     "menuCat": "Tables",
     "order": "43",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureNetLossPerShareAttributableToAthenexIncCommonStockholdersTables",
     "shortName": "Net Loss per Share Attributable to Athenex, Inc. Common Stockholders (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100440 - Disclosure - Accumulated Other Comprehensive (Loss) Income (Tables)",
     "menuCat": "Tables",
     "order": "44",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossIncomeTables",
     "shortName": "Accumulated Other Comprehensive (Loss) Income (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R45": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ReconciliationOfRevenueFromSegmentsToConsolidatedTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100450 - Disclosure - Business Segment, Geographic, and Concentration Risk Information (Tables)",
     "menuCat": "Tables",
     "order": "45",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationTables",
     "shortName": "Business Segment, Geographic, and Concentration Risk Information (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ReconciliationOfRevenueFromSegmentsToConsolidatedTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R46": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisaggregationOfRevenueTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100460 - Disclosure - Revenue Recognition (Tables)",
     "menuCat": "Tables",
     "order": "46",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionTables",
     "shortName": "Revenue Recognition (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisaggregationOfRevenueTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R47": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100470 - Disclosure - Commitments and Contingencies (Tables)",
     "menuCat": "Tables",
     "order": "47",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesTables",
     "shortName": "Commitments and Contingencies (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R48": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:NatureOfOperations",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:NumberOfOperatingSegments",
      "reportCount": 1,
      "unitRef": "U_Segment",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100480 - Disclosure - Company and Nature of Business - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "48",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
     "shortName": "Company and Nature of Business - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:NatureOfOperations",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "lang": "en-US",
      "name": "us-gaap:SubstantialDoubtAboutGoingConcernConditionsOrEvents",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100490 - Disclosure - Summary of Significant Accounting Policies - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "49",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
     "shortName": "Summary of Significant Accounting Policies - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:InventoryPolicyTextBlock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-5",
      "lang": null,
      "name": "us-gaap:InventoryAdjustments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R5": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_9f578919-b6f0-435b-8d93-1e4251b96c82",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100050 - Statement - Consolidated Statements of Stockholders' Equity",
     "menuCat": "Statements",
     "order": "5",
     "role": "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1",
     "shortName": "Consolidated Statements of Stockholders' Equity",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_54b1979c-c964-48c5-887b-27dd1a243e90",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "atnx:PropertyPlanAndEquipmentEstimatedUsefulLivesTableTextBlock",
       "div",
       "us-gaap:PropertyPlantAndEquipmentPolicyTextBlock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_1983ab44-83d9-4a53-862b-f2a97d0b6100",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentEstimatedUsefulLives",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100500 - Disclosure - Summary of Significant Accounting Policies - Property, Plant and Equipment, Useful Life (Detail)",
     "menuCat": "Details",
     "order": "50",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail",
     "shortName": "Summary of Significant Accounting Policies - Property, Plant and Equipment, Useful Life (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "atnx:PropertyPlanAndEquipmentEstimatedUsefulLivesTableTextBlock",
       "div",
       "us-gaap:PropertyPlantAndEquipmentPolicyTextBlock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_1983ab44-83d9-4a53-862b-f2a97d0b6100",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentEstimatedUsefulLives",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R51": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_c5c7e54c-8c1f-4afb-b2dd-36a82666a504",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100510 - Disclosure - Business Combination - Additional Information (Details)",
     "menuCat": "Details",
     "order": "51",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
     "shortName": "Business Combination - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b1cf1c0-949b-42a5-9728-23f62509b48c",
      "decimals": "-5",
      "lang": null,
      "name": "atnx:BusinessCombinationMeasurementPeriodAdjustmentsDecreaseInDeferredTaxLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R52": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_c5c7e54c-8c1f-4afb-b2dd-36a82666a504",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100520 - Disclosure - Business Combination - Summary of Final Purchase Price Allocation to Fair Value of Assets and Liabilities Acquired (Details)",
     "menuCat": "Details",
     "order": "52",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails",
     "shortName": "Business Combination - Summary of Final Purchase Price Allocation to Fair Value of Assets and Liabilities Acquired (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_d4283a51-17ee-400c-8691-2fec10156da0",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:BusinessCombinationConsiderationTransferred1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R53": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_d4283a51-17ee-400c-8691-2fec10156da0",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued",
      "reportCount": 1,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100530 - Disclosure - Business Combination - Summary of Final Purchase Price Allocation to Fair Value of Assets and Liabilities Acquired (Parenthetical) (Details)",
     "menuCat": "Details",
     "order": "53",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredParentheticalDetails",
     "shortName": "Business Combination - Summary of Final Purchase Price Allocation to Fair Value of Assets and Liabilities Acquired (Parenthetical) (Details)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": null
    },
    "R54": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_c5c7e54c-8c1f-4afb-b2dd-36a82666a504",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:BusinessAcquisitionsProFormaRevenue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100540 - Disclosure - Business Combination - Schedule of Unaudited Pro Forma Consolidated Financial Information (Details)",
     "menuCat": "Details",
     "order": "54",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationScheduleOfUnauditedProFormaConsolidatedFinancialInformationDetails",
     "shortName": "Business Combination - Schedule of Unaudited Pro Forma Consolidated Financial Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_c5c7e54c-8c1f-4afb-b2dd-36a82666a504",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:BusinessAcquisitionsProFormaRevenue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R55": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
       "div",
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_be52d868-715a-42a9-86be-e7114a5170be",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipment",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100550 - Disclosure - Discontinued Operations - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "55",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
     "shortName": "Discontinued Operations - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_7f402497-0ae1-4a52-9928-86011548621f",
      "decimals": null,
      "lang": "en-US",
      "name": "atnx:DiscontinuedOperationsTransactionClosedDate",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R56": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
       "div",
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeLossFromDiscontinuedOperationsNetOfTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100560 - Disclosure - Discontinued Operations - Schedule of Financial Results of Discontinued Operations (Detail)",
     "menuCat": "Details",
     "order": "56",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail",
     "shortName": "Discontinued Operations - Schedule of Financial Results of Discontinued Operations (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
       "div",
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeLossFromDiscontinuedOperationsNetOfTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R57": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllowanceForDoubtfulAccountsReceivableCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100570 - Disclosure - Discontinued Operations - Schedule of Financial Results of Discontinued Operations (Parenthetical) (Detail)",
     "menuCat": "Details",
     "order": "57",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsParentheticalDetail",
     "shortName": "Discontinued Operations - Schedule of Financial Results of Discontinued Operations (Parenthetical) (Detail)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
       "div",
       "us-gaap:DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_062f12af-f8f9-4bb3-9be6-ff25ae937199",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AllowanceForDoubtfulAccountsReceivableCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R58": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RestrictedCashCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100580 - Disclosure - Restricted Cash - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "58",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRestrictedCashAdditionalInformationDetail",
     "shortName": "Restricted Cash - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "atnx:RestrictedCashDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_ff492585-9a02-48eb-a1bd-8828bb39c7dc",
      "decimals": "-5",
      "lang": null,
      "name": "us-gaap:RestrictedCashCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R59": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InventoryRawMaterialsAndPurchasedPartsNetOfReserves",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100590 - Disclosure - Inventories - Schedule of Inventories (Detail)",
     "menuCat": "Details",
     "order": "59",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail",
     "shortName": "Inventories - Schedule of Inventories (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InventoryRawMaterialsAndPurchasedPartsNetOfReserves",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R6": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "atnx:StockIssuanceCosts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100060 - Statement - Consolidated Statements of Stockholders' Equity (Parenthetical)",
     "menuCat": "Statements",
     "order": "6",
     "role": "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical",
     "shortName": "Consolidated Statements of Stockholders' Equity (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "atnx:StockIssuanceCosts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R60": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:MachineryAndEquipmentGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100600 - Disclosure - Property And Equipment, Net - Schedule of Property, Plant and Equipment (Detail)",
     "menuCat": "Details",
     "order": "60",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail",
     "shortName": "Property And Equipment, Net - Schedule of Property, Plant and Equipment (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:MachineryAndEquipmentGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R61": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:Depreciation",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100610 - Disclosure - Property And Equipment, Net - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "61",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetAdditionalInformationDetail",
     "shortName": "Property And Equipment, Net - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:Depreciation",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R62": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:Goodwill",
       "span",
       "p",
       "us-gaap:GoodwillAndIntangibleAssetsGoodwillPolicy",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_54eeab1f-c5dc-4cf4-b8ad-6722b713990e",
      "decimals": "-6",
      "first": true,
      "lang": null,
      "name": "us-gaap:Goodwill",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100620 - Disclosure - Goodwill and Intangible Assets, Net - Goodwill (Detail)",
     "menuCat": "Details",
     "order": "62",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetGoodwillDetail",
     "shortName": "Goodwill and Intangible Assets, Net - Goodwill (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfGoodwillTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_c5c7e54c-8c1f-4afb-b2dd-36a82666a504",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:GoodwillAcquiredDuringPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R63": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFiniteLivedIntangibleAssetsTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FiniteLivedIntangibleAssetsAccumulatedAmortization",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100630 - Disclosure - Goodwill and Intangible Assets, Net - Summary of Identifiable Intangible Asset, Net (Detail)",
     "menuCat": "Details",
     "order": "63",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail",
     "shortName": "Goodwill and Intangible Assets, Net - Summary of Identifiable Intangible Asset, Net (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFiniteLivedIntangibleAssetsTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FiniteLivedIntangibleAssetsAccumulatedAmortization",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R64": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100640 - Disclosure - Goodwill and Intangible Assets, Net - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "64",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
     "shortName": "Goodwill and Intangible Assets, Net - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R65": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100650 - Disclosure - Goodwill and Intangible Assets, Net - Schedule of Expected Amortization Expense of Finite-Lived Intangible Assets (Detail)",
     "menuCat": "Details",
     "order": "65",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationExpenseOfFiniteLivedIntangibleAssetsDetail",
     "shortName": "Goodwill and Intangible Assets, Net - Schedule of Expected Amortization Expense of Finite-Lived Intangible Assets (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
       "div",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R66": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "atnx:FairValueAssetsLevel1ToLevel2TransfersAmount1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100660 - Disclosure - Fair Value Measurements - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "66",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
     "shortName": "Fair Value Measurements - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "atnx:FairValueAssetsLevel1ToLevel2TransfersAmount1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R67": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AssetsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100670 - Disclosure - Fair Value Measurements - Schedule of Assets and Liabilities Measured at Fair Value on a Recurring Basis (Detail)",
     "menuCat": "Details",
     "order": "67",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail",
     "shortName": "Fair Value Measurements - Schedule of Assets and Liabilities Measured at Fair Value on a Recurring Basis (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AssetsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R68": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ResearchAndDevelopmentExpense",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100680 - Disclosure - Acquisitions - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "68",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail",
     "shortName": "Acquisitions - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R69": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccruedLiabilitiesTableTextBlock",
       "div",
       "us-gaap:AccountsPayableAccruedLiabilitiesAndOtherLiabilitiesDisclosureCurrentTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "atnx:AccruedSellingFeesRebatesAndRoyalties",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100690 - Disclosure - Accrued Expenses - Schedule of Accrued Expensest (Detail)",
     "menuCat": "Details",
     "order": "69",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail",
     "shortName": "Accrued Expenses - Schedule of Accrued Expensest (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccruedLiabilitiesTableTextBlock",
       "div",
       "us-gaap:AccountsPayableAccruedLiabilitiesAndOtherLiabilitiesDisclosureCurrentTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "atnx:AccruedSellingFeesRebatesAndRoyalties",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R7": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeLossFromContinuingOperations",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100070 - Statement - Consolidated Statements of Cash Flows",
     "menuCat": "Statements",
     "order": "7",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows",
     "shortName": "Consolidated Statements of Cash Flows",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "lang": null,
      "name": "atnx:DepreciationAndAmortizationContinuingOperations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R70": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeTaxExpenseBenefit",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100710 - Disclosure - Income Taxes - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "70",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
     "shortName": "Income Taxes - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-5",
      "lang": null,
      "name": "us-gaap:DeferredTaxAssetsOperatingLossCarryforwardsDomestic",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R71": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100720 - Disclosure - Income Taxes - Components of Loss Before Income Tax Expense (Benefit) from Continuing Operations (Detail)",
     "menuCat": "Details",
     "order": "71",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeIncomeTaxExpenseBenefitFromContinuingOperationsDetail",
     "shortName": "Income Taxes - Components of Loss Before Income Tax Expense (Benefit) from Continuing Operations (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R72": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "atnx:ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignFromDiscontinuedOperationsTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "atnx:IncomeLossFromDiscontinuingOperationsBeforeIncomeTaxesDomestic",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100730 - Disclosure - Income Taxes - Components of Loss Before Income Tax Expense (Benefit) from Discontinuing Operations (Details)",
     "menuCat": "Details",
     "order": "72",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeIncomeTaxExpenseBenefitFromDiscontinuingOperationsDetails",
     "shortName": "Income Taxes - Components of Loss Before Income Tax Expense (Benefit) from Discontinuing Operations (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "atnx:ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignFromDiscontinuedOperationsTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "atnx:IncomeLossFromDiscontinuingOperationsBeforeIncomeTaxesDomestic",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R73": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CurrentStateAndLocalTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100740 - Disclosure - Income Taxes - Components of the Income Tax Expense (Benefit) from Continuing Operations (Detail)",
     "menuCat": "Details",
     "order": "73",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail",
     "shortName": "Income Taxes - Components of the Income Tax Expense (Benefit) from Continuing Operations (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CurrentStateAndLocalTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R74": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "atnx:ScheduleOfComponentsOfIncomeTaxExpenseBenefitFromDiscontinuedOperationsTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "atnx:CurrentForeignTaxExpenseBenefitDiscontinuingOperations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100750 - Disclosure - Income Taxes - Components of the Income Tax (Benefit) Expense from Discontinuing Operations (Details)",
     "menuCat": "Details",
     "order": "74",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails",
     "shortName": "Income Taxes - Components of the Income Tax (Benefit) Expense from Discontinuing Operations (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "atnx:ScheduleOfComponentsOfIncomeTaxExpenseBenefitFromDiscontinuedOperationsTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "atnx:CurrentForeignTaxExpenseBenefitDiscontinuingOperations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R75": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100760 - Disclosure - Income Taxes - Schedule of Income Tax Expense (Benefit) from Continuing Operations Differs From the Federal Statutory Rate (Detail)",
     "menuCat": "Details",
     "order": "75",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail",
     "shortName": "Income Taxes - Schedule of Income Tax Expense (Benefit) from Continuing Operations Differs From the Federal Statutory Rate (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R76": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DeferredTaxAssetsGoodwillAndIntangibleAssets",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100770 - Disclosure - Income Taxes - Schedule of Net Deferred Income Tax Liabilities (Detail)",
     "menuCat": "Details",
     "order": "76",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail",
     "shortName": "Income Taxes - Schedule of Net Deferred Income Tax Liabilities (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DeferredTaxAssetsGoodwillAndIntangibleAssets",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R77": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:SecuredDebtCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100780 - Disclosure - Debt and Lease Obligations - Summary of Balances of Debt (Detail)",
     "menuCat": "Details",
     "order": "77",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail",
     "shortName": "Debt and Lease Obligations - Summary of Balances of Debt (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "lang": null,
      "name": "atnx:DebtCurrentAndNonCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R78": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_bef1d4d6-82d2-4f4c-bbbb-40ce099de383",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "atnx:DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsCurrentNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100790 - Disclosure - Debt and Lease Obligations - Summary of Balances of Debt (Parenthetical) (Detail)",
     "menuCat": "Details",
     "order": "78",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtParentheticalDetail",
     "shortName": "Debt and Lease Obligations - Summary of Balances of Debt (Parenthetical) (Detail)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_bef1d4d6-82d2-4f4c-bbbb-40ce099de383",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "atnx:DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsCurrentNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R79": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtTableTextBlock",
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:SecuredDebtCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100800 - Disclosure - Debt and Lease Obligations - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "79",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
     "shortName": "Debt and Lease Obligations - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_bc209a29-dba7-4f57-9438-15c43f1377e5",
      "decimals": "3",
      "lang": null,
      "name": "atnx:DebtInstrumentMandatoryPrepaymentOfPrincipalPercentage",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NatureOfOperations",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100080 - Disclosure - Company and Nature of Business",
     "menuCat": "Notes",
     "order": "8",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusiness",
     "shortName": "Company and Nature of Business",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NatureOfOperations",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R80": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "atnx:ProceedsFromIssuanceOfRoyaltyFinancingLiability",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100810 - Disclosure - Debt and Lease Obligations - Summary Of Royalty Financing Liability Activity (Details)",
     "menuCat": "Details",
     "order": "80",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsSummaryOfRoyaltyFinancingLiabilityActivityDetails",
     "shortName": "Debt and Lease Obligations - Summary Of Royalty Financing Liability Activity (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "atnx:SummaryOfRoyaltyFinancingLiabilityActivityTableTextBlock",
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_63c806eb-518b-47de-bfa0-27e210cb3ec7",
      "decimals": "-3",
      "lang": null,
      "name": "atnx:ProceedsFromIssuanceOfRoyaltyFinancingLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R81": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100820 - Disclosure - Debt and Lease Obligations - Summary of Components of Lease Expense (Detail)",
     "menuCat": "Details",
     "order": "81",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfComponentsOfLeaseExpenseDetail",
     "shortName": "Debt and Lease Obligations - Summary of Components of Lease Expense (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R82": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "atnx:ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock",
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "atnx:FinanceLeaseRightOfUseAssetGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100830 - Disclosure - Debt and Lease Obligations - Schedule of Supplemental Balance Sheet Information Related to Leases of Debt (Detail)",
     "menuCat": "Details",
     "order": "82",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail",
     "shortName": "Debt and Lease Obligations - Schedule of Supplemental Balance Sheet Information Related to Leases of Debt (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "atnx:ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock",
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "atnx:FinanceLeaseRightOfUseAssetGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R83": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "atnx:ScheduleOfSupplementalCashFlowAndOtherInformationRelatedToLeasesTableTextBlock",
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeasePayments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100840 - Disclosure - Debt and Lease Obligations - Schedule of Supplemental Cash Flow Information Related to Leases (Detail)",
     "menuCat": "Details",
     "order": "83",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalCashFlowInformationRelatedToLeasesDetail",
     "shortName": "Debt and Lease Obligations - Schedule of Supplemental Cash Flow Information Related to Leases (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "atnx:ScheduleOfSupplementalCashFlowAndOtherInformationRelatedToLeasesTableTextBlock",
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeasePayments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R84": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "atnx:ScheduleOfFutureMinimumPaymentsAndMaturitiesOfOperatingAndFinanceLeasesTableTextBlock",
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100850 - Disclosure - Debt and Lease Obligations - Schedule of Future Minimum Payments and Maturities of Leases (Detail)",
     "menuCat": "Details",
     "order": "84",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail",
     "shortName": "Debt and Lease Obligations - Schedule of Future Minimum Payments and Maturities of Leases (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "atnx:ScheduleOfFutureMinimumPaymentsAndMaturitiesOfOperatingAndFinanceLeasesTableTextBlock",
       "div",
       "atnx:DebtAndLeaseObligationsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_6b6c12ae-b219-4e6a-9e20-d92d5ccf599e",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueYearFive",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R85": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "atnx:ContingentConsiderationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "atnx:ContingentConsiderationMilestoneTerm",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100860 - Disclosure - Contingent Consideration - Additional Information (Details)",
     "menuCat": "Details",
     "order": "85",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationAdditionalInformationDetails",
     "shortName": "Contingent Consideration - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "atnx:ContingentConsiderationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "atnx:ContingentConsiderationMilestoneTerm",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R86": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100870 - Disclosure - Contingent Consideration - Schedule of Reconciliation of Contingent Consideration Liability Related to Acquisition (Details)",
     "menuCat": "Details",
     "order": "86",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationScheduleOfReconciliationOfContingentConsiderationLiabilityRelatedToAcquisitionDetails",
     "shortName": "Contingent Consideration - Schedule of Reconciliation of Contingent Consideration Liability Related to Acquisition (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfBusinessAcquisitionsByAcquisitionContingentConsiderationTextBlock",
       "div",
       "atnx:ContingentConsiderationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_f47fc8fd-523a-48ef-8f59-6a970818717a",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:BusinessCombinationContingentConsiderationLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R87": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_e6f1c472-1b82-4e85-b62e-566ec00ea829",
      "decimals": "2",
      "first": true,
      "lang": null,
      "name": "us-gaap:LimitedLiabilityCompanyLLCOrLimitedPartnershipLPMembersOrLimitedPartnersOwnershipInterest",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100880 - Disclosure - Related Party Transactions - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "87",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail",
     "shortName": "Related Party Transactions - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_e6f1c472-1b82-4e85-b62e-566ec00ea829",
      "decimals": "2",
      "first": true,
      "lang": null,
      "name": "us-gaap:LimitedLiabilityCompanyLLCOrLimitedPartnershipLPMembersOrLimitedPartnersOwnershipInterest",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R88": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesPurchasedForAward",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100890 - Disclosure - Stock-Based Compensation - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "88",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
     "shortName": "Stock-Based Compensation - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesPurchasedForAward",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R89": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_54eeab1f-c5dc-4cf4-b8ad-6722b713990e",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
      "reportCount": 1,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100900 - Disclosure - Stock-Based Compensation - Schedule of Stock Option Activity (Detail)",
     "menuCat": "Details",
     "order": "89",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail",
     "shortName": "Stock-Based Compensation - Schedule of Stock Option Activity (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R9": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100090 - Disclosure - Summary of Significant Accounting Policies",
     "menuCat": "Notes",
     "order": "9",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies",
     "shortName": "Summary of Significant Accounting Policies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R90": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "2",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100910 - Disclosure - Stock-Based Compensation - Schedule of Weighted-Average Assumptions Used as Inputs to Black-Scholes Option Pricing Model (Detail)",
     "menuCat": "Details",
     "order": "90",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfWeightedAverageAssumptionsUsedAsInputsToBlackScholesOptionPricingModelDetail",
     "shortName": "Stock-Based Compensation - Schedule of Weighted-Average Assumptions Used as Inputs to Black-Scholes Option Pricing Model (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "2",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false"
     }
    },
    "R91": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:NonvestedRestrictedStockSharesActivityTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_dc0de54f-5660-4270-ae67-b7d8052e5ffe",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100920 - Disclosure - Stock-Based Compensation - Schedule of Status of Restricted Stock Awards (Detail)",
     "menuCat": "Details",
     "order": "91",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureStockbasedCompensationScheduleOfStatusOfRestrictedStockAwardsDetail",
     "shortName": "Stock-Based Compensation - Schedule of Status of Restricted Stock Awards (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:NonvestedRestrictedStockSharesActivityTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_dc0de54f-5660-4270-ae67-b7d8052e5ffe",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R92": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100930 - Disclosure - Stock-Based Compensation - Schedule of Stock-Based Compensation Cost (Detail)",
     "menuCat": "Details",
     "order": "92",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockBasedCompensationCostDetail",
     "shortName": "Stock-Based Compensation - Schedule of Stock-Based Compensation Cost (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_410fd91e-7764-48be-aeb6-3d78f1cfabc6",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R93": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100940 - Disclosure - Net Loss per Share Attributable to Athenex, Inc. Common Stockholders - Schedule Weighted Average Outstanding Shares of Common Stock Equivalents Excluded from the Calculation of Diluted Net Loss Per Share (Detail)",
     "menuCat": "Details",
     "order": "93",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureNetLossPerShareAttributableToAthenexIncCommonStockholdersScheduleWeightedAverageOutstandingSharesOfCommonStockEquivalentsExcludedFromCalculationOfDilutedNetLossPerShareDetail",
     "shortName": "Net Loss per Share Attributable to Athenex, Inc. Common Stockholders - Schedule Weighted Average Outstanding Shares of Common Stock Equivalents Excluded from the Calculation of Diluted Net Loss Per Share (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock",
       "div",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R94": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_54eeab1f-c5dc-4cf4-b8ad-6722b713990e",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100950 - Disclosure - Accumulated Other Comprehensive (Loss) Income - Schedule of Components and Changes of Accumulated Other Comprehensive (Loss) Income (Detail)",
     "menuCat": "Details",
     "order": "94",
     "role": "http://www.athenex.com/20221231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossIncomeScheduleOfComponentsAndChangesOfAccumulatedOtherComprehensiveLossIncomeDetail",
     "shortName": "Accumulated Other Comprehensive (Loss) Income - Schedule of Components and Changes of Accumulated Other Comprehensive (Loss) Income (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a5aa884d-f420-47f4-b04e-1e37e9a814e1",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R95": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:NatureOfOperations",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:NumberOfOperatingSegments",
      "reportCount": 1,
      "unitRef": "U_Segment",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100960 - Disclosure - Business Segment, Geographic, and Concentration Risk Information - Additional Information (Detail)",
     "menuCat": "Details",
     "order": "95",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationAdditionalInformationDetail",
     "shortName": "Business Segment, Geographic, and Concentration Risk Information - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R96": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100970 - Disclosure - Business Segment, Geographic, and Concentration Risk Information - Summary of Revenue by Segments (Detail)",
     "menuCat": "Details",
     "order": "96",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueBySegmentsDetail",
     "shortName": "Business Segment, Geographic, and Concentration Risk Information - Summary of Revenue by Segments (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ReconciliationOfRevenueFromSegmentsToConsolidatedTextBlock",
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_0b30b11a-800b-4b02-b71f-b84406c993c6",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R97": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100980 - Disclosure - Business Segment, Geographic, and Concentration Risk Information - Summary of Revenue by Product Group (Detail)",
     "menuCat": "Details",
     "order": "97",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByProductGroupDetail",
     "shortName": "Business Segment, Geographic, and Concentration Risk Information - Summary of Revenue by Product Group (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTextBlock",
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_0226b65b-a99e-448a-bc6a-9ba4f2444481",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R98": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100990 - Disclosure - Business Segment, Geographic, and Concentration Risk Information - Summary of Segment Information (Detail)",
     "menuCat": "Details",
     "order": "98",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfSegmentInformationDetail",
     "shortName": "Business Segment, Geographic, and Concentration Risk Information - Summary of Segment Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_2890afd2-7f36-430d-8cd9-0d99da940f7f",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R99": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ReconciliationOfAssetsFromSegmentToConsolidatedTextBlock",
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DepreciationDepletionAndAmortization",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101000 - Disclosure - Business Segment, Geographic, and Concentration Risk Information - Summary of Depreciation, Amortization and Assets by Segment (Detail)",
     "menuCat": "Details",
     "order": "99",
     "role": "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfDepreciationAmortizationAndAssetsBySegmentDetail",
     "shortName": "Business Segment, Geographic, and Concentration Risk Information - Summary of Depreciation, Amortization and Assets by Segment (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ReconciliationOfAssetsFromSegmentToConsolidatedTextBlock",
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "atnx-20221231.htm",
      "contextRef": "C_a1a2c7bb-00e3-4287-9b2c-9ebc4ce96794",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DepreciationDepletionAndAmortization",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 164,
   "tag": {
    "atnx_APIFacilityOrSintahoAPIFacilityMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "API facility or sintaho API facility.",
        "label": "A P I Facility Or Sintaho A P I Facility [Member]",
        "terseLabel": "API Facility or Sintaho API Facility"
       }
      }
     },
     "localname": "APIFacilityOrSintahoAPIFacilityMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_AccountsReceivableByReportableSegmentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounts receivable by reportable segments.",
        "label": "Accounts Receivable By Reportable Segments [Abstract]"
       }
      }
     },
     "localname": "AccountsReceivableByReportableSegmentsAbstract",
     "nsuri": "http://www.athenex.com/20221231",
     "xbrltype": "stringItemType"
    },
    "atnx_AccountsReceivableByReportableSegmentsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounts receivable by reportable segments.",
        "label": "Accounts Receivable By Reportable Segments [Line Items]",
        "terseLabel": "Accounts Receivable By Reportable Segments [Line Items]"
       }
      }
     },
     "localname": "AccountsReceivableByReportableSegmentsLineItems",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfAccountsReceivableBalancesByReportableSegmentsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_AccountsReceivableByReportableSegmentsTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounts receivable by reportable segments.",
        "label": "Accounts Receivable By Reportable Segments [Table]",
        "terseLabel": "Accounts Receivable By Reportable Segments [Table]"
       }
      }
     },
     "localname": "AccountsReceivableByReportableSegmentsTable",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfAccountsReceivableBalancesByReportableSegmentsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_AccountsReceivableByReportableSegmentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounts receivable by reportable segments.",
        "label": "Accounts Receivable By Reportable Segments Table [Text Block]",
        "terseLabel": "Summary of Accounts Receivable by Reportable Segments"
       }
      }
     },
     "localname": "AccountsReceivableByReportableSegmentsTableTextBlock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "atnx_AccruedClinicalExpensesCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail": {
       "order": 6.0,
       "parentTag": "us-gaap_AccruedLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued clinical expenses current.",
        "label": "Accrued Clinical Expenses Current",
        "terseLabel": "Accrued clinical expenses"
       }
      }
     },
     "localname": "AccruedClinicalExpensesCurrent",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_AccruedConstructionCostExpectedToBeFundedAdditionalAmountPaid": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued construction cost expected to be funded additional amount paid.",
        "label": "Accrued Construction Cost Expected To Be Funded Additional Amount Paid",
        "terseLabel": "Accrued construction cost expected to be funded additional amount paid"
       }
      }
     },
     "localname": "AccruedConstructionCostExpectedToBeFundedAdditionalAmountPaid",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_AccruedConstructionCostsExpectedToBeFunded": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued construction costs expected to be funded.",
        "label": "Accrued Construction Costs Expected To Be Funded",
        "terseLabel": "Accrued construction costs expected to be funded"
       }
      }
     },
     "localname": "AccruedConstructionCostsExpectedToBeFunded",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_AccruedInterest": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_AccruedLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued interest.",
        "label": "Accrued Interest",
        "terseLabel": "Accrued interest"
       }
      }
     },
     "localname": "AccruedInterest",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_AccruedInventoryPurchasesCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_AccruedLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued inventory purchases current.",
        "label": "Accrued Inventory Purchases Current",
        "terseLabel": "Accrued inventory purchases"
       }
      }
     },
     "localname": "AccruedInventoryPurchasesCurrent",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_AccruedLiabilitiesCurrentTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued liabilities table.",
        "label": "Accrued Liabilities Current [Table]",
        "terseLabel": "Accrued Liabilities Current [Table]"
       }
      }
     },
     "localname": "AccruedLiabilitiesCurrentTable",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_AccruedLiabilitiesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued liabilities line items.",
        "label": "Accrued Liabilities [Line Items]",
        "terseLabel": "Accrued Liabilities [Line Items]"
       }
      }
     },
     "localname": "AccruedLiabilitiesLineItems",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_AccruedOperatingExpensesCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail": {
       "order": 5.0,
       "parentTag": "us-gaap_AccruedLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued operating expenses current.",
        "label": "Accrued Operating Expenses Current",
        "terseLabel": "Accrued operating expenses"
       }
      }
     },
     "localname": "AccruedOperatingExpensesCurrent",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_AccruedPurchasesOfLicenses": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued purchases of licenses.",
        "label": "Accrued Purchases Of Licenses",
        "terseLabel": "Accrued purchases of licenses"
       }
      }
     },
     "localname": "AccruedPurchasesOfLicenses",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_AccruedPurchasesOfPropertyAndEquipmentFromContinuingOperations": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued purchases of property and equipment from continuing operations.",
        "label": "Accrued Purchases Of Property And Equipment From Continuing Operations",
        "terseLabel": "Accrued purchases of property and equipment from continuing operations"
       }
      }
     },
     "localname": "AccruedPurchasesOfPropertyAndEquipmentFromContinuingOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_AccruedPurchasesOfPropertyAndEquipmentFromDiscontinuedOperations": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued purchases of property and equipment from discontinued operations.",
        "label": "Accrued Purchases Of Property And Equipment From Discontinued Operations",
        "terseLabel": "Accrued purchases of property and equipment from discontinued operations"
       }
      }
     },
     "localname": "AccruedPurchasesOfPropertyAndEquipmentFromDiscontinuedOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_AccruedSellingFeesRebatesAndRoyalties": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_AccruedLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accrued selling fees, rebates, and royalties.",
        "label": "Accrued Selling Fees Rebates And Royalties",
        "terseLabel": "Accrued selling fees, rebates, and royalties"
       }
      }
     },
     "localname": "AccruedSellingFeesRebatesAndRoyalties",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_AggregatePaymentsToBeReceivedUponMilestoneAchievement": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate payments to be received upon milestone achievement.",
        "label": "Aggregate Payments To Be Received Upon Milestone Achievement",
        "terseLabel": "Aggregate payments to be received upon milestone achievement"
       }
      }
     },
     "localname": "AggregatePaymentsToBeReceivedUponMilestoneAchievement",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_AllowanceForChargebacksAndOtherDeductionsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Allowance for chargebacks and other deductions.",
        "label": "Allowance For Chargebacks And Other Deductions [Member]",
        "terseLabel": "Allowance for chargebacks and other deductions"
       }
      }
     },
     "localname": "AllowanceForChargebacksAndOtherDeductionsMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccountsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_AmendedOfWarrantsHeldToIssuedEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amended of warrants held to issued end date.",
        "label": "Amended Of Warrants Held To Issued End Date",
        "terseLabel": "Amended the warrants held issued, end date"
       }
      }
     },
     "localname": "AmendedOfWarrantsHeldToIssuedEndDate",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "atnx_AmendedOfWarrantsHeldToIssuedStartDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amended of warrants held to issued start date.",
        "label": "Amended of Warrants Held to Issued Start Date",
        "terseLabel": "Amended the warrants held issued, start date"
       }
      }
     },
     "localname": "AmendedOfWarrantsHeldToIssuedStartDate",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "atnx_AmendmentExercisePriceFiftyPercentageOfShareMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amendment exercise price fifty percentage of share.",
        "label": "Amendment Exercise Price Fifty Percentage Of Share [Member]",
        "terseLabel": "Amendment Provides Exercise Price for 50% of Shares Underlying"
       }
      }
     },
     "localname": "AmendmentExercisePriceFiftyPercentageOfShareMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_AmortizationOfDebtDiscountAndRoyaltyInterestFinancing": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortization of debt discount and royalty interest financing",
        "label": "Amortization of Debt Discount and Royalty Interest Financing",
        "terseLabel": "Amortization of Debt Discount and Royalty Interest Financing"
       }
      }
     },
     "localname": "AmortizationOfDebtDiscountAndRoyaltyInterestFinancing",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_AmortizationOfDebtDiscountFinancingFeesPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortization of debt discount financing fees percentage.",
        "label": "Amortization Of Debt Discount Financing Fees Percentage",
        "terseLabel": "Amortization of debt discount financing fees percentage"
       }
      }
     },
     "localname": "AmortizationOfDebtDiscountFinancingFeesPercentage",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_AreaOfBuildingSpaceBuiltUnderAgreement": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Area of building space built under agreement.",
        "label": "Area Of Building Space Built Under Agreement",
        "terseLabel": "Area of building space built under agreement"
       }
      }
     },
     "localname": "AreaOfBuildingSpaceBuiltUnderAgreement",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "areaItemType"
    },
    "atnx_AreaOfRentFreeLease": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Area of rent free lease.",
        "label": "Area Of Rent Free Lease",
        "terseLabel": "Area of rent free lease"
       }
      }
     },
     "localname": "AreaOfRentFreeLease",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "areaItemType"
    },
    "atnx_AssetPurchaseAgreementAndRelatedLicenseAgreementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Asset Purchase Agreement And Related License Agreement [Abstract]",
        "label": "Asset Purchase Agreement And Related License Agreement [Abstract]"
       }
      }
     },
     "localname": "AssetPurchaseAgreementAndRelatedLicenseAgreementAbstract",
     "nsuri": "http://www.athenex.com/20221231",
     "xbrltype": "stringItemType"
    },
    "atnx_AtTheMarketSharesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "At the market shares.",
        "label": "At The Market Shares [Member]",
        "terseLabel": "ATM Shares"
       }
      }
     },
     "localname": "AtTheMarketSharesMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_AthenexPharmaSolutionsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Athenex pharma solutions.",
        "label": "Athenex Pharma Solutions [Member]",
        "terseLabel": "APS"
       }
      }
     },
     "localname": "AthenexPharmaSolutionsMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_AtnxSpvLlcMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ATNX SPV, LLC.",
        "label": "ATNX SPV, LLC [Member]",
        "terseLabel": "SPV"
       }
      }
     },
     "localname": "AtnxSpvLlcMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRestrictedCashAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_AvalonBioMedicalMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Avalon BioMedical.",
        "label": "Avalon Bio Medical [Member]",
        "terseLabel": "Avalon BioMedical"
       }
      }
     },
     "localname": "AvalonBioMedicalMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_AxisTherapeuticsLimitedMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Axis Therapeutics Limited.",
        "label": "Axis Therapeutics Limited [Member]",
        "terseLabel": "Axis Therapeutics Limited"
       }
      }
     },
     "localname": "AxisTherapeuticsLimitedMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_BreachOfContractAndRelatedClaimsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Breach of contract and related claims.",
        "label": "Breach of Contract and Related Claims [Member]",
        "terseLabel": "Breach of Contract and Related Claims"
       }
      }
     },
     "localname": "BreachOfContractAndRelatedClaimsMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_BusinessCombinationMeasurementPeriodAdjustmentsDecreaseInDeferredTaxLiability": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Combination, Measurement Period Adjustments, Decrease in Deferred Tax Liability.",
        "label": "Business Combination Measurement Period Adjustments Decrease In Deferred Tax Liability",
        "terseLabel": "Decrease in deferred tax liability, measurement period adjustment"
       }
      }
     },
     "localname": "BusinessCombinationMeasurementPeriodAdjustmentsDecreaseInDeferredTaxLiability",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_BusinessCombinationMeasurementPeriodAdjustmentsDecreaseInGoodwill": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Combination, Measurement Period Adjustments, Decrease in Goodwill.",
        "label": "Business Combination Measurement Period Adjustments Decrease In Goodwill",
        "terseLabel": "Decrease in goodwill, measurement period adjustment"
       }
      }
     },
     "localname": "BusinessCombinationMeasurementPeriodAdjustmentsDecreaseInGoodwill",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_BusinessCombinationMeasurementPeriodAdjustmentsIncreaseInInProcessResearchAndDevelopment": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business Combination, Measurement Period Adjustments, Increase in Inprocess Research and Development.",
        "label": "Business Combination Measurement Period Adjustments Increase In In Process Research And Development",
        "terseLabel": "Increase of IPR&amp;D, measurement period adjustment"
       }
      }
     },
     "localname": "BusinessCombinationMeasurementPeriodAdjustmentsIncreaseInInProcessResearchAndDevelopment",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination recognized identifiable assets acquired and liabilities assumed accrued expenses.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Accrued Expenses",
        "terseLabel": "Accrued expenses"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedExpenses",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInProcessResearchAndDevelopment": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination recognized identifiable assets acquired and liabilities assumed in-process research and development.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed In Process Research And Development",
        "terseLabel": "In-process research &amp; development"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInProcessResearchAndDevelopment",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedTransactionIncentiveLiability": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination recognized identifiable assets acquired and liabilities assumed transaction incentive liability.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Transaction Incentive Liability",
        "negatedLabel": "Transaction incentive liability"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedTransactionIncentiveLiability",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_BusinessCombinationTransactionIncentiveLiability": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Business combination transaction incentive liability.",
        "label": "Business Combination Transaction Incentive Liability",
        "terseLabel": "Transaction incentive liability"
       }
      }
     },
     "localname": "BusinessCombinationTransactionIncentiveLiability",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_CDEInProgressResearchAndDevelopmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "CDE in progress research and development.",
        "label": "C D E In Progress Research And Development [Member]",
        "terseLabel": "CDE In- Process Research and Development",
        "verboseLabel": "CDE IPR&amp;D"
       }
      }
     },
     "localname": "CDEInProgressResearchAndDevelopmentMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_CIDALLimitedMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "CIDAL Limited.",
        "label": "C I D A L Limited [Member]",
        "terseLabel": "Cidal"
       }
      }
     },
     "localname": "CIDALLimitedMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_CashAndCashEquivalentsFundsTransferLimitations": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash and cash equivalents, funds transfer limitations.",
        "label": "Cash And Cash Equivalents Funds Transfer Limitations",
        "terseLabel": "Cash and cash equivalents, funds transfer limitations"
       }
      }
     },
     "localname": "CashAndCashEquivalentsFundsTransferLimitations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_CashPaidForAmountsIncludedInMeasurementOfLeaseLiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash paid for amounts included in measurement of lease liabilities.",
        "label": "Cash Paid For Amounts Included In Measurement Of Lease Liabilities [Abstract]",
        "terseLabel": "Cash paid for amount included in the measurements of lease liabilities:"
       }
      }
     },
     "localname": "CashPaidForAmountsIncludedInMeasurementOfLeaseLiabilitiesAbstract",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalCashFlowInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_CashPaidRelatedToTransactionIncentiveLiability": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash paid related to transaction incentive liability.",
        "label": "Cash Paid Related To Transaction Incentive Liability",
        "terseLabel": "Cash paid related to transaction incentive liability"
       }
      }
     },
     "localname": "CashPaidRelatedToTransactionIncentiveLiability",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ChangeInFairValueOfRoyaltyFinancingLiability": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in fair value of royalty financing liability.",
        "label": "Change in Fair Value of Royalty Financing Liability",
        "terseLabel": "Change in fair value of royalty financing liability"
       }
      }
     },
     "localname": "ChangeInFairValueOfRoyaltyFinancingLiability",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ChangeInNetOperatingLossAsResultOfSectionThreeEightTwoAndThreeEightThreeLimitation": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in net operating loss as result of section 382 and 383 limitation.",
        "label": "Change in Net Operating Loss as Result of Section Three Eight Two and Three Eight Three Limitation",
        "terseLabel": "Increase (Decrease) in net operating loss as result of section 382 and 383 limitation"
       }
      }
     },
     "localname": "ChangeInNetOperatingLossAsResultOfSectionThreeEightTwoAndThreeEightThreeLimitation",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ChangeInValuationAllowanceForAdditionalNetOperatingLossesAndTaxCreditCarryforwards": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in valuation allowance for additional net operating losses and tax credit carryforwards.",
        "label": "Change in Valuation Allowance for Additional Net Operating Losses and Tax Credit Carryforwards",
        "terseLabel": "Increase (decrease) in valuation allowance for additional net operating losses and tax credit carryforwards"
       }
      }
     },
     "localname": "ChangeInValuationAllowanceForAdditionalNetOperatingLossesAndTaxCreditCarryforwards",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ChangeInValuationAllowanceInConnectionWithBusinessAcquisition": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in valuation allowance in connection with business acquisition.",
        "label": "Change in Valuation Allowance in Connection with Business Acquisition",
        "terseLabel": "Increase (decrease) in valuation allowance in connection with business acquisition"
       }
      }
     },
     "localname": "ChangeInValuationAllowanceInConnectionWithBusinessAcquisition",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ChargebacksAndOtherDeductionsCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfAccountsReceivableBalancesByReportableSegmentsDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_AccountsReceivableNetCurrent",
       "weight": -1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfReceivablesAndContractLiabilitiesFromContractsWithCustomersDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_AccountsReceivableNetCurrent",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Chargebacks and other deductions current.",
        "label": "Chargebacks And Other Deductions Current",
        "negatedLabel": "Chargebacks and other deductions",
        "terseLabel": "Accounts receivable, chargebacks and other deductions (in dollars)",
        "verboseLabel": "Provision for chargebacks and other deductions included as reduction of accounts receivable total"
       }
      }
     },
     "localname": "ChargebacksAndOtherDeductionsCurrent",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfAccountsReceivableBalancesByReportableSegmentsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfReceivablesAndContractLiabilitiesFromContractsWithCustomersDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ChinaApiOperationsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "China API operations.",
        "label": "China API Operations [Member]",
        "terseLabel": "China API Operations"
       }
      }
     },
     "localname": "ChinaApiOperationsMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ChongqingInternationalBiologicalCityDevelopmentAndInvestmentCompanyLimitedMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Chongqing International Biological City Development and Investment Company Limited.",
        "label": "Chongqing International Biological City Development And Investment Company Limited [Member]",
        "terseLabel": "Chongqing International Biological City Development &amp; Investment Co., Ltd"
       }
      }
     },
     "localname": "ChongqingInternationalBiologicalCityDevelopmentAndInvestmentCompanyLimitedMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ChongqingMaliuRiversideDevelopmentAndInvestmentCoLTDMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Chongqing Maliu Riverside Development and Investment Co., LTD.",
        "label": "Chongqing Maliu Riverside Development And Investment Co L T D [Member]",
        "terseLabel": "Chongqing Maliu Credit Agreement",
        "verboseLabel": "Chongqing Maliu Riverside Development and Investment Co., LTD (\"CQ\")"
       }
      }
     },
     "localname": "ChongqingMaliuRiversideDevelopmentAndInvestmentCoLTDMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ChongqingMjMedicalDevicesCompanyLtdMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Chongqing MJ Medical Devices Co., Ltd.",
        "label": "Chongqing MJ Medical Devices Company Ltd [Member]",
        "terseLabel": "Chongqing MJ Medical Devices Co., Ltd"
       }
      }
     },
     "localname": "ChongqingMjMedicalDevicesCompanyLtdMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ClinicalDevelopmentServicesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Clinical development services.",
        "label": "Clinical Development Services [Member]",
        "terseLabel": "Clinical Development Services"
       }
      }
     },
     "localname": "ClinicalDevelopmentServicesMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_CommercialPlatformMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commercial Platform.",
        "label": "Commercial Platform [Member]",
        "terseLabel": "Commercial Platform"
       }
      }
     },
     "localname": "CommercialPlatformMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfDepreciationAmortizationAndAssetsBySegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueBySegmentsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfSegmentInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfAccountsReceivableBalancesByReportableSegmentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_CommercialProductSalesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commercial product sales.",
        "label": "Commercial Product Sales [Member]",
        "terseLabel": "Commercial Product Sales"
       }
      }
     },
     "localname": "CommercialProductSalesMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByProductGroupDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_CommonStockAndCommonWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common stock and common warrants.",
        "label": "Common Stock and Common Warrants [Member]",
        "terseLabel": "Common Stock and Common Warrants"
       }
      }
     },
     "localname": "CommonStockAndCommonWarrantsMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_CommonStockSharesHeldByRelatedParties": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common stock shares held by related parties.",
        "label": "Common Stock Shares Held By Related Parties",
        "terseLabel": "Common stock shares held by related parties"
       }
      }
     },
     "localname": "CommonStockSharesHeldByRelatedParties",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "atnx_CommonStockValuePaidRelatedToTransactionIncentiveLiability": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common stock value paid related to transaction incentive liability.",
        "label": "Common Stock Value Paid Related To Transaction Incentive Liability",
        "terseLabel": "Common stock value paid related to transaction incentive liability"
       }
      }
     },
     "localname": "CommonStockValuePaidRelatedToTransactionIncentiveLiability",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_CommonWarrantsAndPreFundedWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common warrants and pre-funded warrants.",
        "label": "Common Warrants and Pre-funded Warrants [Member]",
        "terseLabel": "Common Warrants and Pre-funded Warrants"
       }
      }
     },
     "localname": "CommonWarrantsAndPreFundedWarrantsMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ContingentConsiderationDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contingent consideration disclosure.",
        "label": "Contingent Consideration Disclosure [Abstract]"
       }
      }
     },
     "localname": "ContingentConsiderationDisclosureAbstract",
     "nsuri": "http://www.athenex.com/20221231",
     "xbrltype": "stringItemType"
    },
    "atnx_ContingentConsiderationDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contingent consideration.",
        "label": "Contingent Consideration Disclosure Text Block",
        "terseLabel": "Contingent Consideration"
       }
      }
     },
     "localname": "ContingentConsiderationDisclosureTextBlock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsideration"
     ],
     "xbrltype": "textBlockItemType"
    },
    "atnx_ContingentConsiderationMilestoneTerm": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contingent consideration milestone term.",
        "label": "Contingent Consideration Milestone Term",
        "terseLabel": "Contingent consideration milestone term"
       }
      }
     },
     "localname": "ContingentConsiderationMilestoneTerm",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_ContingentConsiderationPoliciesPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contingent consideration policies.",
        "label": "Contingent Consideration Policies [Policy Text Block]",
        "terseLabel": "Contingent Consideration"
       }
      }
     },
     "localname": "ContingentConsiderationPoliciesPolicyTextBlock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "atnx_ContingentConsiderationRegulatoryMilestonesExpectedToOccur": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contingent consideration regulatory milestones expected to occur.",
        "label": "Contingent Consideration Regulatory Milestones Expected To Occur",
        "terseLabel": "Contingent consideration regulatory milestones expected to occur"
       }
      }
     },
     "localname": "ContingentConsiderationRegulatoryMilestonesExpectedToOccur",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "gYearItemType"
    },
    "atnx_ContractManufacturingRevenueMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contract manufacturing revenue.",
        "label": "Contract Manufacturing Revenue [Member]",
        "terseLabel": "Contract Manufacturing Revenue"
       }
      }
     },
     "localname": "ContractManufacturingRevenueMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByProductGroupDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ContractWithCustomerLiabilityCommercialMilestonesRevenueRecognized": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contract with customer liability commercial milestones revenue recognized.",
        "label": "Contract with Customer Liability Commercial Milestones Revenue Recognized",
        "terseLabel": "Revenue recognized commercial milestones"
       }
      }
     },
     "localname": "ContractWithCustomerLiabilityCommercialMilestonesRevenueRecognized",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ContractWithCustomerLiabilityRoyaltiesRevenueRecognized": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contract with customer liability royalties revenue recognized.",
        "label": "Contract with Customer Liability Royalties Revenue Recognized",
        "terseLabel": "Revenue recognized royalties"
       }
      }
     },
     "localname": "ContractWithCustomerLiabilityRoyaltiesRevenueRecognized",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_CoronavirusAidReliefAndEconomicSecurityActMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Coronavirus Aid, Relief, and Economic Security Act.",
        "label": "Coronavirus Aid Relief And Economic Security Act [Member]",
        "terseLabel": "CARES ACT"
       }
      }
     },
     "localname": "CoronavirusAidReliefAndEconomicSecurityActMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_CostsIncurredRelatedToThePrepaymentOfDebt": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Costs incurred related to the prepayment Of debt.",
        "label": "Costs Incurred Related To The Prepayment Of Debt",
        "negatedLabel": "Costs incurred related to the prepayment of debt",
        "terseLabel": "Costs incurred related to the prepayment of debt"
       }
      }
     },
     "localname": "CostsIncurredRelatedToThePrepaymentOfDebt",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_CovenantLeverageRatio": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Covenant leverage ratio.",
        "label": "Covenant Leverage Ratio",
        "terseLabel": "Covenant leverage ratio"
       }
      }
     },
     "localname": "CovenantLeverageRatio",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "pureItemType"
    },
    "atnx_CreditAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Credit agreement.",
        "label": "Credit Agreement [Member]",
        "terseLabel": "Credit Agreement"
       }
      }
     },
     "localname": "CreditAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_CurrentFederalIncomeTaxExpenseBenefitDiscontinuingOperations": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails": {
       "order": 0.0,
       "parentTag": "atnx_CurrentIncomeTaxExpenseBenefitDiscontinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Current federal income tax expense benefit discontinuing operations.",
        "label": "Current Federal Income Tax Expense Benefit Discontinuing Operations",
        "terseLabel": "Federal"
       }
      }
     },
     "localname": "CurrentFederalIncomeTaxExpenseBenefitDiscontinuingOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_CurrentForeignTaxExpenseBenefitDiscontinuingOperations": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails": {
       "order": 2.0,
       "parentTag": "atnx_CurrentIncomeTaxExpenseBenefitDiscontinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Current foreign tax expense benefit discontinuing operations.",
        "label": "Current Foreign Tax Expense Benefit Discontinuing Operations",
        "terseLabel": "Foreign"
       }
      }
     },
     "localname": "CurrentForeignTaxExpenseBenefitDiscontinuingOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_CurrentIncomeTaxExpenseBenefitDiscontinuingOperations": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails": {
       "order": 0.0,
       "parentTag": "atnx_IncomeTaxExpenseBenefitDiscontinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Current income tax expense benefit discontinuing operations.",
        "label": "Current Income Tax Expense Benefit Discontinuing Operations",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "CurrentIncomeTaxExpenseBenefitDiscontinuingOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_CurrentIncomeTaxExpenseBenefitDiscontinuingOperationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Current income tax expense benefit discontinuing operations.",
        "label": "Current Income Tax Expense Benefit Discontinuing Operations [Abstract",
        "verboseLabel": "Current:"
       }
      }
     },
     "localname": "CurrentIncomeTaxExpenseBenefitDiscontinuingOperationsAbstract",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_CurrentStateAndLocalTaxExpenseBenefitDiscontinuingOperations": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails": {
       "order": 1.0,
       "parentTag": "atnx_CurrentIncomeTaxExpenseBenefitDiscontinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Current state and local tax expense benefit discontinuing operations.",
        "label": "Current State and Local Tax Expense Benefit Discontinuing Operations",
        "terseLabel": "State"
       }
      }
     },
     "localname": "CurrentStateAndLocalTaxExpenseBenefitDiscontinuingOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_CustomerAMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Customer A.",
        "label": "Customer A [Member]",
        "terseLabel": "Customer A"
       }
      }
     },
     "localname": "CustomerAMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_CustomerBMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Customer B.",
        "label": "Customer B [Member]",
        "terseLabel": "Customer B"
       }
      }
     },
     "localname": "CustomerBMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_CustomerCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Customer C.",
        "label": "Customer C [Member]",
        "terseLabel": "Customer C"
       }
      }
     },
     "localname": "CustomerCMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_CustomerDMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Customer D.",
        "label": "Customer D [Member]",
        "terseLabel": "Customer D"
       }
      }
     },
     "localname": "CustomerDMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_DebtAndLeaseObligationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt and lease obligations.",
        "label": "Debt And Lease Obligations [Abstract]"
       }
      }
     },
     "localname": "DebtAndLeaseObligationsAbstract",
     "nsuri": "http://www.athenex.com/20221231",
     "xbrltype": "stringItemType"
    },
    "atnx_DebtAndLeaseObligationsTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt and lease obligations.",
        "label": "Debt And Lease Obligations [Text Block]",
        "terseLabel": "Debt and Lease Obligations"
       }
      }
     },
     "localname": "DebtAndLeaseObligationsTextBlock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligations"
     ],
     "xbrltype": "textBlockItemType"
    },
    "atnx_DebtCurrentAndNonCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt current and non current.",
        "label": "Debt Current And Non Current",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "DebtCurrentAndNonCurrent",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DebtInstrumentAdditionalMandatoryPrepaymentInPrincipal": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument additional mandatory prepayment in principal.",
        "label": "Debt Instrument Additional Mandatory Prepayment In Principal",
        "terseLabel": "Additional mandatory prepayment in principal"
       }
      }
     },
     "localname": "DebtInstrumentAdditionalMandatoryPrepaymentInPrincipal",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DebtInstrumentAdditionalPrepaymentInPrincipal": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument additional prepayment in principal.",
        "label": "Debt Instrument Additional Prepayment In Principal",
        "terseLabel": "Additional prepayment in principal"
       }
      }
     },
     "localname": "DebtInstrumentAdditionalPrepaymentInPrincipal",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DebtInstrumentAmendmentFeeAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument amendment fee amount.",
        "label": "Debt Instrument Amendment Fee Amount",
        "terseLabel": "Amendment fee"
       }
      }
     },
     "localname": "DebtInstrumentAmendmentFeeAmount",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DebtInstrumentExitFeePayable": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument exit fee payable.",
        "label": "Debt Instrument Exit Fee Payable",
        "terseLabel": "Exit fee liability"
       }
      }
     },
     "localname": "DebtInstrumentExitFeePayable",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DebtInstrumentExitFeePercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument exit fee percentage.",
        "label": "Debt Instrument Exit Fee Percentage",
        "terseLabel": "Exit fee percentage"
       }
      }
     },
     "localname": "DebtInstrumentExitFeePercentage",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_DebtInstrumentExtendDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument extend date.",
        "label": "Debt Instrument Extend Date",
        "terseLabel": "Mortgage payment extended date"
       }
      }
     },
     "localname": "DebtInstrumentExtendDate",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "atnx_DebtInstrumentFeePercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument fee percentage.",
        "label": "Debt Instrument Fee Percentage",
        "terseLabel": "Fee percentage"
       }
      }
     },
     "localname": "DebtInstrumentFeePercentage",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_DebtInstrumentMandatoryPrepaymentOfPrincipalPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument mandatory prepayment of principal percentage.",
        "label": "Debt Instrument Mandatory Prepayment Of Principal Percentage",
        "terseLabel": "Mandatory prepayment of principal percentage"
       }
      }
     },
     "localname": "DebtInstrumentMandatoryPrepaymentOfPrincipalPercentage",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_DebtInstrumentOtherCharges": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument other charges.",
        "label": "Debt Instrument Other Charges",
        "terseLabel": "Other charges"
       }
      }
     },
     "localname": "DebtInstrumentOtherCharges",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DebtInstrumentPrepaymentFee": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument prepayment fee.",
        "label": "Debt Instrument Prepayment Fee",
        "terseLabel": "Prepayment fee"
       }
      }
     },
     "localname": "DebtInstrumentPrepaymentFee",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DebtInstrumentPrepaymentFeePercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument prepayment fee percentage.",
        "label": "Debt Instrument Prepayment Fee Percentage",
        "terseLabel": "Prepayment fee percentage"
       }
      }
     },
     "localname": "DebtInstrumentPrepaymentFeePercentage",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsCurrentNet": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument unamortized discount premium and debt issuance costs, current net.",
        "label": "Debt Instrument Unamortized Discount Premium And Debt Issuance Costs, Current Net",
        "terseLabel": "Debt discount and financing fees, current"
       }
      }
     },
     "localname": "DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsCurrentNet",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtParentheticalDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNoncurrentNet": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument unamortized discount premium and debt issuance costs, noncurrent net.",
        "label": "Debt Instrument Unamortized Discount Premium And Debt Issuance Costs, Noncurrent Net",
        "terseLabel": "Debt discount and financing fees, noncurrent"
       }
      }
     },
     "localname": "DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNoncurrentNet",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtParentheticalDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DebtInstrumentVariableRateBasisFloor": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument variable rate basis floor.",
        "label": "Debt Instrument Variable Rate Basis Floor",
        "terseLabel": "Debt variable rate basis floor"
       }
      }
     },
     "localname": "DebtInstrumentVariableRateBasisFloor",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_DeferredFederalIncomeTaxExpenseBenefitDiscontinuingOperations": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails": {
       "order": 0.0,
       "parentTag": "atnx_DeferredIncomeTaxExpenseBenefitDiscontinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred federal income tax expense benefit discontinuing operations.",
        "label": "Deferred Federal Income Tax Expense Benefit Discontinuing Operations",
        "terseLabel": "Federal"
       }
      }
     },
     "localname": "DeferredFederalIncomeTaxExpenseBenefitDiscontinuingOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DeferredForeignIncomeTaxExpenseBenefitDiscontinuingOperations": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails": {
       "order": 2.0,
       "parentTag": "atnx_DeferredIncomeTaxExpenseBenefitDiscontinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred foreign income tax expense benefit discontinuing operations.",
        "label": "Deferred Foreign Income Tax Expense Benefit Discontinuing Operations",
        "terseLabel": "Foreign"
       }
      }
     },
     "localname": "DeferredForeignIncomeTaxExpenseBenefitDiscontinuingOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DeferredIncomeTaxExpenseBenefitDiscontinuingOperations": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails": {
       "order": 1.0,
       "parentTag": "atnx_IncomeTaxExpenseBenefitDiscontinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred income tax expense benefit discontinuing operations.",
        "label": "Deferred Income Tax Expense Benefit Discontinuing Operations",
        "terseLabel": "Total",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "DeferredIncomeTaxExpenseBenefitDiscontinuingOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DeferredIncomeTaxExpenseBenefitDiscontinuingOperationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred income tax expense benefit discontinuing operations.",
        "label": "Deferred Income Tax Expense Benefit Discontinuing Operations [Abstract]",
        "terseLabel": "Deferred:"
       }
      }
     },
     "localname": "DeferredIncomeTaxExpenseBenefitDiscontinuingOperationsAbstract",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_DeferredStateAndLocalIncomeTaxExpenseBenefitDiscontinuingOperations": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails": {
       "order": 1.0,
       "parentTag": "atnx_DeferredIncomeTaxExpenseBenefitDiscontinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred state and local income tax expense benefit discontinuing operations.",
        "label": "Deferred State and Local Income Tax Expense Benefit Discontinuing Operations",
        "terseLabel": "State"
       }
      }
     },
     "localname": "DeferredStateAndLocalIncomeTaxExpenseBenefitDiscontinuingOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DeferredTaxAssetsOperatingLossCarryForwardBeginningOfExpirationPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax assets, operating loss carry forward, beginning of expiration period.",
        "label": "Deferred Tax Assets Operating Loss Carry Forward Beginning Of Expiration Period",
        "terseLabel": "Federal net operating losses, beginning expiration period"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryForwardBeginningOfExpirationPeriod",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "gYearItemType"
    },
    "atnx_DeferredTaxAssetsRoyaltyMonetization": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 7.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax assets royalty monetization.",
        "label": "Deferred Tax Assets Royalty Monetization",
        "terseLabel": "Royalty monetization"
       }
      }
     },
     "localname": "DeferredTaxAssetsRoyaltyMonetization",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DeferredTaxAssetsSectionOneSevenFour": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax assets section one seven four.",
        "label": "Deferred Tax Assets Section One Seven Four",
        "terseLabel": "Section 174"
       }
      }
     },
     "localname": "DeferredTaxAssetsSectionOneSevenFour",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DepositAndHeldInSegregatedAccount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deposit and held in segregated account.",
        "label": "Deposit And Held In Segregated Account",
        "terseLabel": "Deposit and held in segregated account"
       }
      }
     },
     "localname": "DepositAndHeldInSegregatedAccount",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DepreciationAndAmortizationContinuingOperations": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 14.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Depreciation and amortization continuing operations.",
        "label": "Depreciation And Amortization Continuing Operations",
        "terseLabel": "Depreciation and amortization"
       }
      }
     },
     "localname": "DepreciationAndAmortizationContinuingOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DiscontinuedOperationNonCashSettlementOfDebt": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discontinued operation, non-cash settlement of debt,",
        "label": "Discontinued Operation, Non-cash Settlement Of Debt",
        "terseLabel": "Non-cash settlement of debt transferred to China API buyer"
       }
      }
     },
     "localname": "DiscontinuedOperationNonCashSettlementOfDebt",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DiscontinuedOperationsExchangeForReimbursementOfExpendituresAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discontinued operations exchange for reimbursement of expenditures amount.",
        "label": "Discontinued Operations Exchange for Reimbursement of Expenditures Amount",
        "terseLabel": "Exchange for reimbursement of expenditures amount"
       }
      }
     },
     "localname": "DiscontinuedOperationsExchangeForReimbursementOfExpendituresAmount",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DiscontinuedOperationsTransactionClosedDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discontinued operations transaction closed date.",
        "label": "Discontinued Operations Transaction Closed Date",
        "terseLabel": "Transaction closed date"
       }
      }
     },
     "localname": "DiscontinuedOperationsTransactionClosedDate",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "atnx_DisposalGroupDiscontinuedOperationCurrentPortionOfLongTermDebt": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 6.0,
       "parentTag": "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal group discontinued operation current portion of long-term debt.",
        "label": "Disposal Group Discontinued Operation Current Portion of Long-term Debt",
        "terseLabel": "Current portion of long-term debt"
       }
      }
     },
     "localname": "DisposalGroupDiscontinuedOperationCurrentPortionOfLongTermDebt",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DisposalGroupDiscontinuedOperationCurrentPortionOfOperatingLeaseLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 5.0,
       "parentTag": "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal group discontinued operation current portion of operating lease liabilities.",
        "label": "Disposal Group Discontinued Operation Current Portion of Operating Lease Liabilities",
        "terseLabel": "Current portion of operating lease liabilities"
       }
      }
     },
     "localname": "DisposalGroupDiscontinuedOperationCurrentPortionOfOperatingLeaseLiabilities",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DisposalGroupIncludingDiscontinuedOperationFinanceLeaseObligationsCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal group, including discontinued operation finance lease obligations current.",
        "label": "Disposal Group, Including Discontinued Operation Finance Lease Obligations Current",
        "terseLabel": "Current portion of finance lease obligations"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationFinanceLeaseObligationsCurrent",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DisposalGroupIncludingDiscontinuedOperationFinanceLeaseObligationsCurrentAndNoncurrent": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal group including discontinued operation finance lease obligations current and noncurrent.",
        "label": "Disposal Group Including Discontinued Operation Finance Lease Obligations Current and Noncurrent",
        "terseLabel": "Current and long-term finance lease obligations"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationFinanceLeaseObligationsCurrentAndNoncurrent",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DisposalGroupIncludingDiscontinuedOperationFinanceLeaseObligationsNoncurrent": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal group, including discontinued operation finance lease obligations noncurrent.",
        "label": "Disposal Group, Including Discontinued Operation Finance Lease Obligations Noncurrent",
        "terseLabel": "Long-term finance lease obligations"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationFinanceLeaseObligationsNoncurrent",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DisposalGroupIncludingDiscontinuedOperationGovernmentGrantIncome": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 7.0,
       "parentTag": "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal group, including discontinued operation government grant income.",
        "label": "Disposal Group, Including Discontinued Operation Government Grant Income",
        "negatedLabel": "Income from government grant",
        "terseLabel": "Income from government grant"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationGovernmentGrantIncome",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DisposalGroupIncludingDiscontinuedOperationImpairment": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 5.0,
       "parentTag": "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal group including discontinued operation impairment.",
        "label": "Disposal Group Including Discontinued Operation Impairment",
        "negatedLabel": "Impairments",
        "terseLabel": "Impairments"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationImpairment",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DisposalGroupIncludingDiscontinuedOperationLongTermDebtAndLeaseObligations": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal group including discontinued operation long-term debt and lease obligations",
        "label": "Disposal Group Including Discontinued Operation Long-term Debt and Lease Obligations",
        "terseLabel": "Long-term debt and lease obligations"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationLongTermDebtAndLeaseObligations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DisposalGroupIncludingDiscontinuedOperationOperatingLeaseRightOfUseAssetsNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal group including discontinued operation operating lease right of use assets, net.",
        "label": "Disposal Group Including Discontinued Operation Operating Lease Right of Use Assets, Net",
        "terseLabel": "Operating lease right-of-use assets, net"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationOperatingLeaseRightOfUseAssetsNet",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DisposalGroupIncludingDiscontinuedOperationResearchAndDevelopmentExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disposal group including discontinued operation research and development expenses.",
        "label": "Disposal Group Including Discontinued Operation Research and Development Expenses",
        "negatedLabel": "Research and development expenses",
        "terseLabel": "Research and development expenses"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationResearchAndDevelopmentExpenses",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_DueAfterClosingOfDunkirkTransactionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Due after closing of Dunkirk transaction.",
        "label": "Due After Closing Of Dunkirk Transaction [Member]",
        "terseLabel": "Due after Closing of Dunkirk Transaction"
       }
      }
     },
     "localname": "DueAfterClosingOfDunkirkTransactionMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_DueUponClosingOfDunkirkTransactionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Due upon closing of Dunkirk transaction.",
        "label": "Due Upon Closing Of Dunkirk Transaction [Member]",
        "terseLabel": "Due upon Closing of Dunkirk Transaction"
       }
      }
     },
     "localname": "DueUponClosingOfDunkirkTransactionMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_DunkirkFacilityMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Dunkirk Facility.",
        "label": "Dunkirk Facility [Member]",
        "terseLabel": "Dunkirk Facility",
        "verboseLabel": "Dunkirk operations"
       }
      }
     },
     "localname": "DunkirkFacilityMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_DunkirkMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Dunkirk.",
        "label": "Dunkirk [Member]",
        "terseLabel": "Dunkirk"
       }
      }
     },
     "localname": "DunkirkMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_DunkirkTransactionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Dunkirk transaction.",
        "label": "Dunkirk Transaction [Member]",
        "terseLabel": "Dunkirk Transaction"
       }
      }
     },
     "localname": "DunkirkTransactionMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_EffectiveIncomeTaxRateReconciliationForeignTaxWithholdings": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail": {
       "order": 8.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Effective income tax rate reconciliation foreign tax withholdings.",
        "label": "Effective Income Tax Rate Reconciliation Foreign Tax Withholdings",
        "terseLabel": "Foreign tax withholdings"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationForeignTaxWithholdings",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_EffectiveIncomeTaxRateReconciliationSectionThreeEightTwoLimitation": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail": {
       "order": 6.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Effective income tax rate reconciliation section three eight two limitation.",
        "label": "Effective Income Tax Rate Reconciliation Section Three Eight Two Limitation",
        "terseLabel": "Section 382 limitation"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationSectionThreeEightTwoLimitation",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_EmployeeStockPurchasePlanDescription": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Employee stock purchase plan description.",
        "label": "Employee Stock Purchase Plan Description",
        "terseLabel": "Employee stock purchase plan, description"
       }
      }
     },
     "localname": "EmployeeStockPurchasePlanDescription",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_EmployeeStockPurchasePlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Employee stock purchase plan.",
        "label": "Employee Stock Purchase Plan [Member]",
        "terseLabel": "Employee Stock Purchase Plan"
       }
      }
     },
     "localname": "EmployeeStockPurchasePlanMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockBasedCompensationCostDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_EstimatedCashFlowsYear": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Estimated cash flows year.",
        "label": "Estimated Cash Flows Year",
        "terseLabel": "Estimated cash flows year"
       }
      }
     },
     "localname": "EstimatedCashFlowsYear",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_ExyteUnitedStatesIncorporationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Exyte United States, Incorporation.",
        "label": "Exyte United States, Incorporation [Member]",
        "terseLabel": "Exyte U.S., Inc."
       }
      }
     },
     "localname": "ExyteUnitedStatesIncorporationMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_FairValueAssetsLevel1ToLevel2TransfersAmount1": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value assets level1 to level2 transfers amount 1.",
        "label": "Fair Value Assets Level1 To Level2 Transfers Amount 1",
        "terseLabel": "Fair value assets, Level 1 to Level 2 transfers"
       }
      }
     },
     "localname": "FairValueAssetsLevel1ToLevel2TransfersAmount1",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_FairValueAssetsLevel2ToLevel1TransfersAmount1": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value assets level2 To level1 transfers amount 1",
        "label": "Fair Value Assets Level2 To Level1 Transfers Amount 1",
        "terseLabel": "Fair value assets, Level 2 to Level 1 transfers"
       }
      }
     },
     "localname": "FairValueAssetsLevel2ToLevel1TransfersAmount1",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_FairValueLiabilitiesLevel1ToLevel2TransfersAmount1": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value liabilities level1 to level2 transfers amount 1",
        "label": "Fair Value Liabilities Level1 To Level2 Transfers Amount 1",
        "terseLabel": "Fair value liabilities, Level 1 to Level 2 transfers"
       }
      }
     },
     "localname": "FairValueLiabilitiesLevel1ToLevel2TransfersAmount1",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_FairValueLiabilitiesLevel2ToLevel1TransfersAmount1": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value liabilities level2 to level1 transfers amount 1.",
        "label": "Fair Value Liabilities Level2 To Level1 Transfers Amount 1",
        "terseLabel": "Fair value liabilities, Level 2 to Level 1 transfers"
       }
      }
     },
     "localname": "FairValueLiabilitiesLevel2ToLevel1TransfersAmount1",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_FifthAmendmentToCreditAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fifth amendment to credit agreement.",
        "label": "Fifth Amendment To Credit Agreement [Member]",
        "terseLabel": "Fifth Amendment To Credit Agreement"
       }
      }
     },
     "localname": "FifthAmendmentToCreditAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_FinanceLeaseAssetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Finance lease asset.",
        "label": "Finance Lease Asset [Abstract]",
        "terseLabel": "Finance leases:"
       }
      }
     },
     "localname": "FinanceLeaseAssetAbstract",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_FinanceLeaseCostsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Finance lease costs.",
        "label": "Finance Lease Costs [Abstract]",
        "terseLabel": "Finance lease cost:"
       }
      }
     },
     "localname": "FinanceLeaseCostsAbstract",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfComponentsOfLeaseExpenseDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_FinanceLeaseObligations": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Finance lease obligations.",
        "label": "Finance Lease Obligations",
        "totalLabel": "Total finance lease obligations"
       }
      }
     },
     "localname": "FinanceLeaseObligations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_FinanceLeaseRightOfUseAssetAccumulatedAmortizationNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_FinanceLeaseRightOfUseAsset",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Finance lease right of use asset accumulated amortization net.",
        "label": "Finance Lease Right Of Use Asset Accumulated Amortization Net",
        "negatedLabel": "Accumulated amortization, net"
       }
      }
     },
     "localname": "FinanceLeaseRightOfUseAssetAccumulatedAmortizationNet",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_FinanceLeaseRightOfUseAssetGross": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_FinanceLeaseRightOfUseAsset",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Finance lease right of use asset gross.",
        "label": "Finance Lease Right Of Use Asset Gross",
        "terseLabel": "Property and equipment, at cost"
       }
      }
     },
     "localname": "FinanceLeaseRightOfUseAssetGross",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_FiveHundredAndThreeBOperationsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Five Hundred And Three B Operations.",
        "label": "Five Hundred And Three B Operations [Member]",
        "terseLabel": "503B Operations"
       }
      }
     },
     "localname": "FiveHundredAndThreeBOperationsMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_FourthAmendmentToCreditAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fourth amendment to credit agreement.",
        "label": "Fourth Amendment To Credit Agreement [Member]",
        "terseLabel": "Fourth Amendment To Credit Agreement"
       }
      }
     },
     "localname": "FourthAmendmentToCreditAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_FourthAndFifthAmendmentToCreditAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fourth and fifth amendment to credit agreement.",
        "label": "Fourth and Fifth Amendment To Credit Agreement [Member]",
        "terseLabel": "Fourth and Fifth Amendment to Credit Agreement"
       }
      }
     },
     "localname": "FourthAndFifthAmendmentToCreditAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_GMPPharmaceuticalManufacturingPlantMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "GMP pharmaceutical manufacturing plant.",
        "label": "G M P Pharmaceutical Manufacturing Plant [Member]",
        "terseLabel": "GMP Pharmaceutical Manufacturing Plant"
       }
      }
     },
     "localname": "GMPPharmaceuticalManufacturingPlantMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_GlandPharmaLtdMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gland pharma ltd.",
        "label": "Gland Pharma Ltd [Member]",
        "terseLabel": "Gland Pharma Ltd"
       }
      }
     },
     "localname": "GlandPharmaLtdMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_GlobalSupplyChainPlatformMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Global Supply Chain Platform.",
        "label": "Global Supply Chain Platform [Member]",
        "terseLabel": "Global Supply Chain Platform"
       }
      }
     },
     "localname": "GlobalSupplyChainPlatformMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfSegmentInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetGoodwillDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_HanmiPharmaceuticalsCoLtdMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Hanmi pharmaceuticals co ltd.",
        "label": "Hanmi Pharmaceuticals Co Ltd [Member]",
        "terseLabel": "Hanmi Pharmaceuticals Co. Ltd."
       }
      }
     },
     "localname": "HanmiPharmaceuticalsCoLtdMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ImmunitybioIncorporationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ImmunityBio, Incorporation.",
        "label": "ImmunityBio, Incorporation [Member]",
        "terseLabel": "ImmunityBio, Inc"
       }
      }
     },
     "localname": "ImmunitybioIncorporationMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ImpairmentOfContinuingOperations": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Impairment of continuing operations.",
        "label": "Impairment Of Continuing Operations",
        "terseLabel": "Impairment of continuing operations"
       }
      }
     },
     "localname": "ImpairmentOfContinuingOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ImpairmentOfDiscontinuedOperations": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Impairment of discontinued operations.",
        "label": "Impairment Of Discontinued Operations",
        "terseLabel": "Impairments",
        "verboseLabel": "Impairment Of Discontinued Operations"
       }
      }
     },
     "localname": "ImpairmentOfDiscontinuedOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_InLicensingAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "In-licensing agreement.",
        "label": "In Licensing Agreement [Member]",
        "terseLabel": "In-licensing Agreement"
       }
      }
     },
     "localname": "InLicensingAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_IncomeLossFromContinuingAndDiscontinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeIncomeTaxExpenseBenefitFromContinuingOperationsDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income loss from continuing and discontinuing operations before income taxes extraordinary items noncontrolling interest.",
        "label": "Income Loss From Continuing and Discontinuing Operations Before Income Taxes Extraordinary Items Noncontrolling Interest",
        "totalLabel": "Loss before income tax expense (benefit)"
       }
      }
     },
     "localname": "IncomeLossFromContinuingAndDiscontinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeIncomeTaxExpenseBenefitFromContinuingOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_IncomeLossFromDiscontinuingOperationsBeforeIncomeTaxes": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeIncomeTaxExpenseBenefitFromDiscontinuingOperationsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income loss from discontinuing operations before income taxes.",
        "label": "Income Loss from Discontinuing Operations Before Income Taxes",
        "terseLabel": "Loss before income tax (benefit) expense",
        "totalLabel": "Loss before income tax expense (benefit)"
       }
      }
     },
     "localname": "IncomeLossFromDiscontinuingOperationsBeforeIncomeTaxes",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeIncomeTaxExpenseBenefitFromDiscontinuingOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_IncomeLossFromDiscontinuingOperationsBeforeIncomeTaxesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income loss from discontinuing operations before income taxes.",
        "label": "Income Loss from Discontinuing Operations Before Income Taxes [Abstract]"
       }
      }
     },
     "localname": "IncomeLossFromDiscontinuingOperationsBeforeIncomeTaxesAbstract",
     "nsuri": "http://www.athenex.com/20221231",
     "xbrltype": "stringItemType"
    },
    "atnx_IncomeLossFromDiscontinuingOperationsBeforeIncomeTaxesDomestic": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeIncomeTaxExpenseBenefitFromDiscontinuingOperationsDetails": {
       "order": 0.0,
       "parentTag": "atnx_IncomeLossFromDiscontinuingOperationsBeforeIncomeTaxes",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income loss from discontinuing operations before income taxes domestic.",
        "label": "Income Loss from Discontinuing Operations Before Income Taxes Domestic",
        "terseLabel": "Domestic"
       }
      }
     },
     "localname": "IncomeLossFromDiscontinuingOperationsBeforeIncomeTaxesDomestic",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeIncomeTaxExpenseBenefitFromDiscontinuingOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_IncomeLossFromDiscontinuingOperationsBeforeIncomeTaxesForeign": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeIncomeTaxExpenseBenefitFromDiscontinuingOperationsDetails": {
       "order": 1.0,
       "parentTag": "atnx_IncomeLossFromDiscontinuingOperationsBeforeIncomeTaxes",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income loss from discontinuing operations before income taxes foreign.",
        "label": "Income Loss from Discontinuing Operations Before Income Taxes Foreign",
        "terseLabel": "Foreign"
       }
      }
     },
     "localname": "IncomeLossFromDiscontinuingOperationsBeforeIncomeTaxesForeign",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeIncomeTaxExpenseBenefitFromDiscontinuingOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_IncomeTaxExpenseBenefitDiscontinuingOperations": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income tax expense benefit discontinuing operations.",
        "label": "Income Tax Expense Benefit Discontinuing Operations",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefitDiscontinuingOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_IncomeTaxLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income tax.",
        "label": "Income Tax [Line Items]",
        "terseLabel": "Income Tax [Line Items]"
       }
      }
     },
     "localname": "IncomeTaxLineItems",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_IncomeTaxTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income tax.",
        "label": "Income Tax [Table]",
        "terseLabel": "Income Tax [Table]"
       }
      }
     },
     "localname": "IncomeTaxTable",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_IncreaseDecreaseInPurchaseAccountingForNetOperatingLosses": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (decrease) in purchase accounting for net operating losses.",
        "label": "Increase Decrease in Purchase Accounting for Net Operating Losses",
        "terseLabel": "Increase (decrease) in purchase accounting for net operating losses"
       }
      }
     },
     "localname": "IncreaseDecreaseInPurchaseAccountingForNetOperatingLosses",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_IndefiniteLivedIntangibleAssetsExcludingGoodwillNetCarryingAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indefinite lived intangible assets excluding goodwill net carrying amount.",
        "label": "Indefinite Lived Intangible Assets Excluding Goodwill Net Carrying Amount",
        "terseLabel": "Indefinite-lived intangible asset, Net"
       }
      }
     },
     "localname": "IndefiniteLivedIntangibleAssetsExcludingGoodwillNetCarryingAmount",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_IngenusPharmaceuticalsLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ingenus Pharmaceuticals, LLC.",
        "label": "Ingenus Pharmaceuticals L L C [Member]",
        "terseLabel": "Ingenus Pharmaceuticals, LLC"
       }
      }
     },
     "localname": "IngenusPharmaceuticalsLLCMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_InitialTermMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Initial term.",
        "label": "Initial Term [Member]",
        "terseLabel": "Initial Term"
       }
      }
     },
     "localname": "InitialTermMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_JanuaryTwoThousandTwentyTwoAmendmentToCreditAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "January 2022 amendment to credit agreement.",
        "label": "January Two Thousand Twenty Two Amendment To Credit Agreement [Member]",
        "terseLabel": "January 2022 Amendment to Credit Agreement"
       }
      }
     },
     "localname": "JanuaryTwoThousandTwentyTwoAmendmentToCreditAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_KeyEmployeesAndIndependentDirectorsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "key employees and independent directors.",
        "label": "Key Employees And Independent Directors [Member]",
        "terseLabel": "key Employees and Independent Directors"
       }
      }
     },
     "localname": "KeyEmployeesAndIndependentDirectorsMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_KlisyriMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Klisyri.",
        "label": "Klisyri [Member]",
        "terseLabel": "Klisyri"
       }
      }
     },
     "localname": "KlisyriMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_KuurInProgressResearchAndDevelopmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Kuur in progress research and development.",
        "label": "Kuur In Progress Research And Development [Member]",
        "terseLabel": "Kurr In- Process Research and Development"
       }
      }
     },
     "localname": "KuurInProgressResearchAndDevelopmentMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_KuurTherapeuticsIncMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Kuur Therapeutics Inc",
        "label": "Kuur Therapeutics Inc [Member]",
        "terseLabel": "Kuur",
        "verboseLabel": "Kuur Therapeutics, Inc."
       }
      }
     },
     "localname": "KuurTherapeuticsIncMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredParentheticalDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationScheduleOfReconciliationOfContingentConsiderationLiabilityRelatedToAcquisitionDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_LeaseAgreementAndTwoThousandAndFifteenAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lease agreement and 2015 agreement.",
        "label": "Lease Agreement And Two Thousand And Fifteen Agreement [Member]",
        "terseLabel": "Lease Agreement and 2015 Agreement"
       }
      }
     },
     "localname": "LeaseAgreementAndTwoThousandAndFifteenAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_LeaseExpirationTerms": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lease expiration terms.",
        "label": "Lease Expiration Terms",
        "terseLabel": "Lease expiration terms"
       }
      }
     },
     "localname": "LeaseExpirationTerms",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_LiabilityRelatedToTheSaleOfFutureRoyaltiesPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Liability related to the sale of future royalties.",
        "label": "Liability Related to the Sale of Future Royalties [Policy Text Block]",
        "terseLabel": "Liability Related to the Sale of Future Royalties"
       }
      }
     },
     "localname": "LiabilityRelatedToTheSaleOfFutureRoyaltiesPolicyTextBlock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "atnx_LicenseAgreementWithAlmairallSaMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "License agreement with Almairall SA.",
        "label": "License Agreement With Almairall SA [Member]",
        "terseLabel": "License Agreement With Almairall S.A."
       }
      }
     },
     "localname": "LicenseAgreementWithAlmairallSaMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_LicenseAndDevelopmentAgreementWithAlmairallSAMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "License and development agreement with Almairall SA.",
        "label": "License And Development Agreement With Almairall S A [Member]",
        "terseLabel": "License And Development Agreement With Almairall S.A."
       }
      }
     },
     "localname": "LicenseAndDevelopmentAgreementWithAlmairallSAMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_LicenseAndOtherRevenueMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "License and other revenue.",
        "label": "License And Other Revenue [Member]",
        "terseLabel": "License and Other Revenue"
       }
      }
     },
     "localname": "LicenseAndOtherRevenueMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_LicensedIPMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Licensed IP.",
        "label": "Licensed I P [Member]",
        "terseLabel": "Licensed IP"
       }
      }
     },
     "localname": "LicensedIPMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_LicensesOfOtherSpecialtyProductsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Licenses of other specialty products.",
        "label": "Licenses Of Other Specialty Products [Member]",
        "terseLabel": "Licenses of Other Specialty Products"
       }
      }
     },
     "localname": "LicensesOfOtherSpecialtyProductsMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_LicensingAgreementsAmortizationPeriodOfFiveYearMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Licensing agreements amortization period of five year.",
        "label": "Licensing Agreements Amortization Period Of Five Year [Member]",
        "terseLabel": "Licensing Agreements Amortized Over a Period of 5 years"
       }
      }
     },
     "localname": "LicensingAgreementsAmortizationPeriodOfFiveYearMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_LicensingAgreementsAmortizationPeriodOfThreeYearMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Licensing agreements amortization period of three year.",
        "label": "Licensing Agreements Amortization Period Of Three Year [Member]",
        "terseLabel": "Licensing Agreements Amortized Over a Period of 3 years"
       }
      }
     },
     "localname": "LicensingAgreementsAmortizationPeriodOfThreeYearMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_LineOfCreditFacilityFirstStepUpDateOutstandingAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line of credit facility first step up date outstanding amount.",
        "label": "Line Of Credit Facility First Step Up Date Outstanding Amount",
        "terseLabel": "Line of credit facility first step up date outstanding amount"
       }
      }
     },
     "localname": "LineOfCreditFacilityFirstStepUpDateOutstandingAmount",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_LineOfCreditFacilityPercentageOfPeriodicPaymentYearOne": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line of credit facility percentage of periodic payment year one.",
        "label": "Line Of Credit Facility Percentage Of Periodic Payment Year One",
        "terseLabel": "Line of credit facility percentage of periodic payment year one"
       }
      }
     },
     "localname": "LineOfCreditFacilityPercentageOfPeriodicPaymentYearOne",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_LineOfCreditFacilityPercentageOfPeriodicPaymentYearTwo": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line of credit facility percentage of periodic payment year two.",
        "label": "Line Of Credit Facility Percentage Of Periodic Payment Year Two",
        "terseLabel": "Line of credit facility percentage of periodic payment year two"
       }
      }
     },
     "localname": "LineOfCreditFacilityPercentageOfPeriodicPaymentYearTwo",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_LineOfCreditFacilityRepaidDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line of credit facility repaid date.",
        "label": "Line Of Credit Facility Repaid Date",
        "terseLabel": "Credit agreement repaid date"
       }
      }
     },
     "localname": "LineOfCreditFacilityRepaidDate",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "atnx_LineOfCreditFacilitySecondStepUpDateOutstandingAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line of credit facility second step up date outstanding amount.",
        "label": "Line Of Credit Facility Second Step Up Date Outstanding Amount",
        "terseLabel": "Line of credit facility second step up date outstanding amount"
       }
      }
     },
     "localname": "LineOfCreditFacilitySecondStepUpDateOutstandingAmount",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_LineOfCreditFromFirstStepUpDateUntilMaturity": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line of credit from first step up date until maturity.",
        "label": "Line Of Credit From First Step Up Date Until Maturity",
        "terseLabel": "Line of credit from first step up date until maturity"
       }
      }
     },
     "localname": "LineOfCreditFromFirstStepUpDateUntilMaturity",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_LineOfCreditFromSecondStepUpDateUntilMaturity": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line of credit from second step up date until maturity,",
        "label": "Line Of Credit From Second Step Up Date Until Maturity",
        "terseLabel": "Line of credit from second step up date until maturity"
       }
      }
     },
     "localname": "LineOfCreditFromSecondStepUpDateUntilMaturity",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_LongTermDebtAndFinanceLeaseObligationsNonCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Long term debt and finance lease obligations non current.",
        "label": "Long Term Debt And Finance Lease Obligations Non Current",
        "terseLabel": "Long-term debt and finance lease obligations"
       }
      }
     },
     "localname": "LongTermDebtAndFinanceLeaseObligationsNonCurrent",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_LossContingencyCounterclaims": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loss contingency, counterclaims.",
        "label": "Loss Contingency, Counterclaims",
        "terseLabel": "Counterclaims"
       }
      }
     },
     "localname": "LossContingencyCounterclaims",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_LossContingencyNumberOfLawSuits": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loss contingency number of law suits.",
        "label": "Loss Contingency Number Of Law suits",
        "terseLabel": "Number of purported securities class action lawsuits filed"
       }
      }
     },
     "localname": "LossContingencyNumberOfLawSuits",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "atnx_MAIAPharmaceuticalsIncMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MAIA pharmaceuticals inc.",
        "label": "M A I A Pharmaceuticals Inc [Member]",
        "terseLabel": "MAIA Pharmaceuticals, Inc"
       }
      }
     },
     "localname": "MAIAPharmaceuticalsIncMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ManufacturingAndOfficeLeaseMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Manufacturing and office lease.",
        "label": "Manufacturing and Office Lease [Member]",
        "terseLabel": "Manufacturing and Office Space"
       }
      }
     },
     "localname": "ManufacturingAndOfficeLeaseMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_MergerAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Merger Agreement.",
        "label": "Merger Agreement [Member]",
        "terseLabel": "Merger Agreement"
       }
      }
     },
     "localname": "MergerAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredParentheticalDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_MilestoneFeePaid": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Milestone fee paid.",
        "label": "Milestone Fee Paid",
        "terseLabel": "Milestone fee paid"
       }
      }
     },
     "localname": "MilestoneFeePaid",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_MilestoneInterestsPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Milestone interests percentage.",
        "label": "Milestone Interests Percentage",
        "terseLabel": "Milestone interests percentage"
       }
      }
     },
     "localname": "MilestoneInterestsPercentage",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_MilestonePaymentsPayable": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Milestone payments payable.",
        "label": "Milestone Payments Payable",
        "terseLabel": "Milestone payments payable",
        "verboseLabel": "Total undiscounted amount of the milestone payments payable"
       }
      }
     },
     "localname": "MilestonePaymentsPayable",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_MilestonePaymentsReceived": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Milestone payments received.",
        "label": "Milestone Payments Received",
        "terseLabel": "Payments received from milestone"
       }
      }
     },
     "localname": "MilestonePaymentsReceived",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_MinimumLiquidityAmountInCashOrPermittedCashEquivalentInvestmentsAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum liquidity amount in cash or permitted cash equivalent investments amount.",
        "label": "Minimum Liquidity Amount In Cash Or Permitted Cash Equivalent Investments Amount",
        "terseLabel": "Minimum liquidity amount in cash or permitted cash equivalent investments amount"
       }
      }
     },
     "localname": "MinimumLiquidityAmountInCashOrPermittedCashEquivalentInvestmentsAmount",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_MinimumRevenuePercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum revenue percentage.",
        "label": "Minimum Revenue Percentage",
        "terseLabel": "Minimum revenue percentage"
       }
      }
     },
     "localname": "MinimumRevenuePercentage",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "pureItemType"
    },
    "atnx_ModificationOfWarrants": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Modification of warrants.",
        "label": "Modification Of Warrants",
        "terseLabel": "Modification of warrants"
       }
      }
     },
     "localname": "ModificationOfWarrants",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_NetOperatingLossCarrybackPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net operating loss carryback period.",
        "label": "Net Operating Loss Carryback Period",
        "terseLabel": "Net operating loss carryback period"
       }
      }
     },
     "localname": "NetOperatingLossCarrybackPeriod",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "atnx_NetOperatingLossLimitationAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net operating loss limitation amount.",
        "label": "Net Operating Loss Limitation Amount",
        "terseLabel": "Net operating loss limitation amount"
       }
      }
     },
     "localname": "NetOperatingLossLimitationAmount",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_NumberOfEmployeeCommittedToHireWithInFiveYears": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of employee committed to hire within five years.",
        "label": "Number Of Employee Committed To Hire With in Five Years",
        "terseLabel": "Number of employee committed to hire within 5 years"
       }
      }
     },
     "localname": "NumberOfEmployeeCommittedToHireWithInFiveYears",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "atnx_NumberOfEmployeeCommittedToHireWithInTwoPointFiveYears": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of employee committed to hire within two point five years.",
        "label": "Number Of Employee Committed To Hire With in Two Point Five Years",
        "terseLabel": "Number of employee committed to hire within 2.5 years"
       }
      }
     },
     "localname": "NumberOfEmployeeCommittedToHireWithInTwoPointFiveYears",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "atnx_NumberOfInLicensingAgreements": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of In-licensing agreements.",
        "label": "Number Of In Licensing Agreements",
        "terseLabel": "Number of in-licensing agreements"
       }
      }
     },
     "localname": "NumberOfInLicensingAgreements",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "atnx_NumberOfPermanentEmployeesCommitedToHiring": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of permanent employees commited to hiring.",
        "label": "Number Of Permanent Employees Committed To Hiring",
        "terseLabel": "Number Of Permanent Employees Committed To Hiring"
       }
      }
     },
     "localname": "NumberOfPermanentEmployeesCommitedToHiring",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "atnx_NumberOfPermanentEmployeesHired": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of permanent employees hired.",
        "label": "Number of Permanent Employees Hired",
        "terseLabel": "Number of permanent employees hired"
       }
      }
     },
     "localname": "NumberOfPermanentEmployeesHired",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "atnx_NumberOfQuarterlyPayments": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of quarterly payments.",
        "label": "Number Of quarterly payments"
       }
      }
     },
     "localname": "NumberOfQuarterlyPayments",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "atnx_NumberOfTranches": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of tranches.",
        "label": "Number Of Tranches",
        "terseLabel": "Number of tranches",
        "verboseLabel": "Number of last tranches"
       }
      }
     },
     "localname": "NumberOfTranches",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "atnx_NuwagenLimitedMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nuwagen limited.",
        "label": "Nuwagen Limited [Member]",
        "terseLabel": "Nuwagen Limited"
       }
      }
     },
     "localname": "NuwagenLimitedMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_OaktreeAndSagardMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Oaktree and Sagard.",
        "label": "Oaktree and Sagard [Member]",
        "terseLabel": "Oaktree and Sagard"
       }
      }
     },
     "localname": "OaktreeAndSagardMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_OaktreeFundAdministrationLimitedLiabilityCompanyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Oaktree Fund Administration, LLC.",
        "label": "Oaktree Fund Administration, Limited Liability Company [Member]",
        "terseLabel": "Oaktree",
        "verboseLabel": "Oaktree Fund Administration, Limited Liability Company [Member]"
       }
      }
     },
     "localname": "OaktreeFundAdministrationLimitedLiabilityCompanyMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_OncologyInnovationPlatformMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Oncology Innovation Platform.",
        "label": "Oncology Innovation Platform [Member]",
        "terseLabel": "Oncology Innovation Platform"
       }
      }
     },
     "localname": "OncologyInnovationPlatformMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfDepreciationAmortizationAndAssetsBySegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueBySegmentsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfSegmentInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetGoodwillDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfAccountsReceivableBalancesByReportableSegmentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_OperatingExpensesCommittedToSpentInFirstTenYearTerm": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating expenses committed to spent in first 10 year term.",
        "label": "Operating Expenses Committed To Spent In First Ten Year Term",
        "terseLabel": "Operating expenses committed to spent in first 10 year term"
       }
      }
     },
     "localname": "OperatingExpensesCommittedToSpentInFirstTenYearTerm",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_OperatingExpensesCommittedToSpentInSecondTenYearTerm": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating expenses committed to spent in second 10 year term.",
        "label": "Operating Expenses Committed To Spent In Second Ten Year Term",
        "terseLabel": "Operating expenses committed to spent in second 10 year term"
       }
      }
     },
     "localname": "OperatingExpensesCommittedToSpentInSecondTenYearTerm",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_OperatingLeaseAdditionalAmountObligatedToSpent": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating lease, additional amount obligated to spent.",
        "label": "Operating Lease, Additional Amount Obligated To Spent",
        "terseLabel": "Operating lease, additional amount obligated to spent."
       }
      }
     },
     "localname": "OperatingLeaseAdditionalAmountObligatedToSpent",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_OperatingLeaseAmountObligatedToSpent": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating lease, Amount obligated to spent.",
        "label": "Operating Lease, Amount Obligated To Spent",
        "terseLabel": "Operating lease, amount obligated to spent"
       }
      }
     },
     "localname": "OperatingLeaseAmountObligatedToSpent",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Organization consolidation and presentation of financial statements.",
        "label": "Organization Consolidation And Presentation Of Financial Statements [Line Items]",
        "terseLabel": "Organization Consolidation And Presentation Of Financial Statements [Line Items]"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_OrganizationConsolidationAndPresentationOfFinancialStatementsTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Organization consolidation and presentation of financial statements.",
        "label": "Organization Consolidation And Presentation Of Financial Statements [Table]",
        "terseLabel": "Organization Consolidation And Presentation Of Financial Statements [Table]"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsTable",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_OtherForeignCountriesIncludingAustriaMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other foreign countries including Austria.",
        "label": "Other Foreign Countries Including Austria [Member]",
        "terseLabel": "Other Foreign Countries Including Austria"
       }
      }
     },
     "localname": "OtherForeignCountriesIncludingAustriaMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_OutLicenseRevenueMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Out license revenue.",
        "label": "Out License Revenue [Member]",
        "terseLabel": "Out-license Revenue"
       }
      }
     },
     "localname": "OutLicenseRevenueMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_PaymentOfAnnualRent": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payment of annual rent.",
        "label": "Payment Of Annual Rent",
        "terseLabel": "Payment of annual rent"
       }
      }
     },
     "localname": "PaymentOfAnnualRent",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_PaymentOfMonthlyRentPerSquareMeter": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payment of rent per square meter.",
        "label": "Payment Of Monthly Rent Per Square Meter",
        "terseLabel": "Payment of monthly rent per square meter"
       }
      }
     },
     "localname": "PaymentOfMonthlyRentPerSquareMeter",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "perUnitItemType"
    },
    "atnx_PaymentPercentageOfWorldWideNetSales": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payment percentage of world-wide net sales.",
        "label": "Payment Percentage Of World Wide Net Sales",
        "terseLabel": "Payment percentage of world-wide net sales"
       }
      }
     },
     "localname": "PaymentPercentageOfWorldWideNetSales",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_PaymentsAtRepurchasePriceAfterAugustFourTwentyTwentyFiveMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payments at repurchase price after August four twenty twenty five.",
        "label": "Payments At Repurchase Price After August Four Twenty Twenty Five [Member]",
        "terseLabel": "Payments at Repurchase Price, Thereafter"
       }
      }
     },
     "localname": "PaymentsAtRepurchasePriceAfterAugustFourTwentyTwentyFiveMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_PaymentsAtRepurchasePriceAfterAugustFourTwentyTwentyFourAndOnOrBeforeAugustFourTwentyTwentyFiveMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payments at repurchase price after August four twenty twenty four and on or before August four twenty twenty five.",
        "label": "Payments At Repurchase Price After August Four Twenty Twenty Four And On Or Before August Four Twenty Twenty Five [Member]",
        "terseLabel": "Payments at Repurchase Price After August 4, 2024 and On or Before August 4, 2025"
       }
      }
     },
     "localname": "PaymentsAtRepurchasePriceAfterAugustFourTwentyTwentyFourAndOnOrBeforeAugustFourTwentyTwentyFiveMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_PaymentsAtRepurchasePriceAfterAugustFourTwentyTwentyThreeAndOnOrBeforeAugustFourTwentyTwentyFourMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payments at repurchase price after August four twenty twenty three and on or before August four twenty twenty four.",
        "label": "Payments At Repurchase Price After August Four Twenty Twenty Three And On Or Before August Four Twenty Twenty Four [Member]",
        "terseLabel": "Payments at Repurchase Price After August 4, 2023 and On or Before August 4, 2024"
       }
      }
     },
     "localname": "PaymentsAtRepurchasePriceAfterAugustFourTwentyTwentyThreeAndOnOrBeforeAugustFourTwentyTwentyFourMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_PaymentsAtRepurchasePriceOnOrBeforeAugustFourTwentyTwentyThreeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payments at repurchase price on or before August four twenty twenty three.",
        "label": "Payments At Repurchase Price On Or Before August Four Twenty Twenty Three [Member]",
        "terseLabel": "Payments at Repurchase Price On or Before August 4, 2023"
       }
      }
     },
     "localname": "PaymentsAtRepurchasePriceOnOrBeforeAugustFourTwentyTwentyThreeMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_PaymentsForIssuanceOfRoyaltyFinancingLiability": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payments for issuance of royalty financing liability.",
        "label": "Payments For Issuance Of Royalty Financing Liability",
        "negatedLabel": "Costs incurred related to the issuance of royalty financing liability",
        "negatedTerseLabel": "Less: initial issuance costs, recorded as a discount",
        "terseLabel": "Costs incurred related to the issuance of royalty financing liability",
        "verboseLabel": "Less: initial issuance costs, recorded as a discount"
       }
      }
     },
     "localname": "PaymentsForIssuanceOfRoyaltyFinancingLiability",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsSummaryOfRoyaltyFinancingLiabilityActivityDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_PaymentsForIssuanceOfWarrantsAndPreFundedWarrants": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payments for issuance of warrants and pre-funded warrants.",
        "label": "Payments For Issuance Of Warrants And Pre-funded Warrants",
        "negatedLabel": "Costs incurred related to the issuance warrants and pre-funded warrants",
        "terseLabel": "Costs incurred related to the issuance warrants and pre-funded warrants"
       }
      }
     },
     "localname": "PaymentsForIssuanceOfWarrantsAndPreFundedWarrants",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_PaymentsForLicenses": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payments for licenses.",
        "label": "Payments For Licenses",
        "negatedLabel": "Payments for licenses"
       }
      }
     },
     "localname": "PaymentsForLicenses",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_PaymentsForRepurchaseOfTreasuryStock": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payments for repurchase of treasury stock.",
        "label": "Payments for Repurchase Of Treasury Stock",
        "negatedLabel": "Repurchase of treasury stock"
       }
      }
     },
     "localname": "PaymentsForRepurchaseOfTreasuryStock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_PaymentsOfSegregatedFundsReleased": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payments of segregated funds released",
        "label": "Payments Of Segregated Funds Released",
        "terseLabel": "Royalty financing fund received"
       }
      }
     },
     "localname": "PaymentsOfSegregatedFundsReleased",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_PaymentsOnEscrowDeposits": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payments on escrow deposits.",
        "label": "Payments On Escrow Deposits",
        "terseLabel": "Deposits on escrow released"
       }
      }
     },
     "localname": "PaymentsOnEscrowDeposits",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_PaymentsReceivedOnMilestoneAchievement": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payments received on milestone achievement.",
        "label": "Payments Received On Milestone Achievement",
        "terseLabel": "Payments received on milestone achievement"
       }
      }
     },
     "localname": "PaymentsReceivedOnMilestoneAchievement",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_PercentageOfChangeInBusinessInterestLimitation": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of change in business interest limitation",
        "label": "Percentage Of Change In Business Interest Limitation",
        "terseLabel": "Percentage of change in business interest limitation"
       }
      }
     },
     "localname": "PercentageOfChangeInBusinessInterestLimitation",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_PercentageOfClassOfWarrantOrRightExercisePriceOfLowerUnderlyingWarrants": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of class of warrant or right exercise price of lower underlying warrants.",
        "label": "Percentage of Class of Warrant or Right Exercise Price of Lower Underlying Warrants",
        "terseLabel": "Percentage of warrant exercise price uderlying lower"
       }
      }
     },
     "localname": "PercentageOfClassOfWarrantOrRightExercisePriceOfLowerUnderlyingWarrants",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_PercentageOfCommonStockIssuedShares": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of common stock issued shares.",
        "label": "Percentage Of Common Stock Issued Shares",
        "terseLabel": "Percentage of common stock issued shares"
       }
      }
     },
     "localname": "PercentageOfCommonStockIssuedShares",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_PercentageOfContingentConsiderationMilestonesPaymentBasedOnProbabilityOfOccurrence": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of contingent consideration milestones payment based on probability of occurrence.",
        "label": "Percentage Of Contingent Consideration Milestones Payment Based On Probability Of Occurrence",
        "terseLabel": "Percentage of milestones payment based on probability of occurrence"
       }
      }
     },
     "localname": "PercentageOfContingentConsiderationMilestonesPaymentBasedOnProbabilityOfOccurrence",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_PercentageOfDiscountOnPurchasePriceOfCommonStock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of discount on purchase price of common stock.",
        "label": "Percentage Of Discount On Purchase Price Of Common Stock",
        "terseLabel": "Percentage of discount on purchase price of common stock"
       }
      }
     },
     "localname": "PercentageOfDiscountOnPurchasePriceOfCommonStock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_PercentageOfEstimatedIncrementalBorrowingRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of estimated incremental borrowing rate.",
        "label": "Percentage Of Estimated Incremental Borrowing Rate",
        "terseLabel": "Percentage of estimated incremental borrowing rate"
       }
      }
     },
     "localname": "PercentageOfEstimatedIncrementalBorrowingRate",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_PercentageOfExpectedInternalRateOfReturnOfProductPayment": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of expected internal rate of return of product payment.",
        "label": "Percentage Of Expected Internal Rate Of Return Of Product Payment",
        "terseLabel": "Percentage of expected internal rate of return of product payment"
       }
      }
     },
     "localname": "PercentageOfExpectedInternalRateOfReturnOfProductPayment",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_PercentageOfInternalRateOfReturn": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of internal rate of return.",
        "label": "Percentage Of Internal Rate Of Return",
        "terseLabel": "Percentage of internal rate of return"
       }
      }
     },
     "localname": "PercentageOfInternalRateOfReturn",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_PercentageOfInternalRateOfReturnOfProductPayment": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of internal rate of return of product payment.",
        "label": "Percentage Of Internal Rate Of Return Of Product Payment",
        "terseLabel": "Percentage of internal rate of return of product payment"
       }
      }
     },
     "localname": "PercentageOfInternalRateOfReturnOfProductPayment",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_PercentageOfNonmonetaryExchangeOfShares": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of nonmonetary exchange of shares.",
        "label": "Percentage Of Nonmonetary Exchange Of Shares",
        "terseLabel": "Percentage of nonmonetary exchange of shares"
       }
      }
     },
     "localname": "PercentageOfNonmonetaryExchangeOfShares",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_PercentageOfProceedsToBeReceivedInCashAtClosingDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of proceeds to be received in cash at closing date.",
        "label": "Percentage of Proceeds To be Received in Cash at Closing Date",
        "terseLabel": "Percentage of proceeds to be received in cash at closing date"
       }
      }
     },
     "localname": "PercentageOfProceedsToBeReceivedInCashAtClosingDate",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_PercentageOfProceedsToBeReceivedInCashWithinThreeMonthsAfterClosingDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of proceeds to be received in cash within three months after closing date.",
        "label": "Percentage of Proceeds To Be Received in Cash Within Three Months After Closing Date",
        "terseLabel": "Percentage of proceeds to be received in cash within three months after closing date"
       }
      }
     },
     "localname": "PercentageOfProceedsToBeReceivedInCashWithinThreeMonthsAfterClosingDate",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_PercentageOfProductPayment": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of product payment.",
        "label": "Percentage Of Product Payment",
        "terseLabel": "Percentage of product payment"
       }
      }
     },
     "localname": "PercentageOfProductPayment",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_PercentageOfProductPaymentAndRepurchasePrice": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of product payment and repurchase price.",
        "label": "Percentage Of Product Payment And Repurchase Price",
        "terseLabel": "Percentage of product payment and repurchase price"
       }
      }
     },
     "localname": "PercentageOfProductPaymentAndRepurchasePrice",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_PeriodOfInterestOnOutstandingLoansToBeMaintainedInDebtServiceReserveAccount": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period of interest on outstanding loans to be maintained in debt service reserve account.",
        "label": "Period Of Interest On Outstanding Loans To Be Maintained In Debt Service Reserve Account",
        "terseLabel": "Period of interest on outstanding loans to be maintained in debt service reserve account"
       }
      }
     },
     "localname": "PeriodOfInterestOnOutstandingLoansToBeMaintainedInDebtServiceReserveAccount",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRestrictedCashAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "atnx_PharmaEssentiaMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pharma Essentia.",
        "label": "Pharma Essentia [Member]",
        "terseLabel": "Pharma Essentia"
       }
      }
     },
     "localname": "PharmaEssentiaMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_PharmaceuticalWholesalersDrugManufacturersAndHospitalsAndEndUsersMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pharmaceutical wholesalers, drug manufacturers, and hospitals and end users.",
        "label": "Pharmaceutical Wholesalers Drug Manufacturers And Hospitals And End Users [Member]",
        "terseLabel": "Pharmaceutical Wholesalers, Drug Manufacturers, and Hospitals and End Users"
       }
      }
     },
     "localname": "PharmaceuticalWholesalersDrugManufacturersAndHospitalsAndEndUsersMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_PolymedCustomerListMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Polymed customer list.",
        "label": "Polymed Customer List [Member]",
        "terseLabel": "Polymed Customer List"
       }
      }
     },
     "localname": "PolymedCustomerListMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_PolymedMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Polymed.",
        "label": "Polymed [Member]",
        "terseLabel": "Polymed"
       }
      }
     },
     "localname": "PolymedMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_PolymedTechnologyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Polymed technology.",
        "label": "Polymed Technology [Member]",
        "terseLabel": "Polymed Technology"
       }
      }
     },
     "localname": "PolymedTechnologyMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_PreFundedWarrantsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pre-funded Warrants.",
        "label": "Pre-Funded Warrants [Member]",
        "terseLabel": "Pre-funded Warrants"
       }
      }
     },
     "localname": "PreFundedWarrantsMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ProceedsFromIssuanceOfCommonStockAndWarrants": {
     "auth_ref": [],
     "crdr": "debit",
     "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"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfCommonStockAndWarrants",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ProceedsFromIssuanceOfDebtDiscontinuedOperation": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds from issuance of debt discontinued operation.",
        "label": "Proceeds from Issuance of Debt Discontinued Operation",
        "terseLabel": "Proceeds from issuance of debt"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfDebtDiscontinuedOperation",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ProceedsFromIssuanceOfRoyaltyFinancingLiability": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds from issuance of royalty financing liability.",
        "label": "Proceeds From Issuance Of Royalty Financing Liability",
        "terseLabel": "Proceeds from issuance of royalty financing liability",
        "verboseLabel": "Proceeds from the sale of future royalties, gross"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfRoyaltyFinancingLiability",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsSummaryOfRoyaltyFinancingLiabilityActivityDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ProceedsFromIssuanceOfWarrantsAndPreFundedWarrants": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds from Issuance of warrants and pre-funded warrants.",
        "label": "Proceeds From Issuance Of Warrants And Pre-funded Warrants",
        "terseLabel": "Proceeds from issuance of warrants and pre-funded warrants"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfWarrantsAndPreFundedWarrants",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ProceedsFromUpfrontFeesReceived": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds from Upfront Fees Received",
        "label": "Proceeds from Upfront Fees Received",
        "terseLabel": "Upfront fees received"
       }
      }
     },
     "localname": "ProceedsFromUpfrontFeesReceived",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ProductRightsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Product rights.",
        "label": "Product Rights [Member]",
        "terseLabel": "Product Rights"
       }
      }
     },
     "localname": "ProductRightsMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ProjectCompletionTerm": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Project completion term.",
        "label": "Project Completion Term",
        "terseLabel": "Project completion term"
       }
      }
     },
     "localname": "ProjectCompletionTerm",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "atnx_PropertyPlanAndEquipmentEstimatedUsefulLivesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Property Plan And Equipment Estimated Useful Lives Table [Text Block]",
        "label": "Property Plan And Equipment Estimated Useful Lives Table [Text Block]",
        "terseLabel": "Property, Plant and Equipment, Useful Life"
       }
      }
     },
     "localname": "PropertyPlanAndEquipmentEstimatedUsefulLivesTableTextBlock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "atnx_ProvisionForChargebacks": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense related to chargebacks during the period.",
        "label": "Provision For Chargebacks",
        "terseLabel": "Chargebacks and other revenue deductions expense"
       }
      }
     },
     "localname": "ProvisionForChargebacks",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ProvisionForCreditLossesDiscontinuedOperations": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Provision for credit losses discontinued operations.",
        "label": "Provision For Credit Losses Discontinued Operations",
        "terseLabel": "Provision for credit losses"
       }
      }
     },
     "localname": "ProvisionForCreditLossesDiscontinuedOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_RelatedPartyAgreementTerminationDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Related Party Agreement Termination Date",
        "label": "Related Party Agreement Termination Date",
        "terseLabel": "Agreement termination date"
       }
      }
     },
     "localname": "RelatedPartyAgreementTerminationDate",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "gYearMonthItemType"
    },
    "atnx_RepaymentOfFinanceLeaseObligationsAndLongTermDebtAndRoyaltyFinancingLiability": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repayment of finance lease obligations and long-term debt and royalty financing liability.",
        "label": "Repayment Of Finance Lease Obligations And Long Term Debt And Royalty Financing Liability",
        "negatedLabel": "Repayment of finance lease obligations and long-term debt and royalty financing liability",
        "terseLabel": "Repayment of finance lease obligations and long-term debt and royalty financing liability"
       }
      }
     },
     "localname": "RepaymentOfFinanceLeaseObligationsAndLongTermDebtAndRoyaltyFinancingLiability",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_RepaymentOfFinanceLeaseObligationsDiscontinuedOperation": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repayment of finance lease obligations discontinued operation.",
        "label": "Repayment of finance lease obligations discontinued operation",
        "negatedLabel": "Repayment of finance lease obligations"
       }
      }
     },
     "localname": "RepaymentOfFinanceLeaseObligationsDiscontinuedOperation",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_RepaymentOfLongTermDebtDiscontinuedOperation": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repayment of long-term debt discontinued operation.",
        "label": "Repayment Of Long-term Debt Discontinued Operation",
        "negatedLabel": "Repayment of long-term debt",
        "terseLabel": "Repayment of long-term debt"
       }
      }
     },
     "localname": "RepaymentOfLongTermDebtDiscontinuedOperation",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ResearchAndDevelopmentCreditLimitationAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Research and development credit limitation amount.",
        "label": "Research and Development Credit Limitation Amount",
        "terseLabel": "Research and development credit limitation amount"
       }
      }
     },
     "localname": "ResearchAndDevelopmentCreditLimitationAmount",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_RestrictedCashDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Restricted cash disclosure.",
        "label": "Restricted Cash Disclosure [Text Block]",
        "terseLabel": "Restricted Cash"
       }
      }
     },
     "localname": "RestrictedCashDisclosureTextBlock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRestrictedCash"
     ],
     "xbrltype": "textBlockItemType"
    },
    "atnx_RestrictedCashLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Restricted cash.",
        "label": "Restricted Cash [Line Items]",
        "terseLabel": "Restricted Cash [Line Items]"
       }
      }
     },
     "localname": "RestrictedCashLineItems",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRestrictedCashAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_RestrictedCashTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Restricted cash.",
        "label": "Restricted Cash [Table]",
        "terseLabel": "Restricted Cash [Table]"
       }
      }
     },
     "localname": "RestrictedCashTable",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRestrictedCashAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_RevenueInterestFinancingAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revenue interest financing agreement.",
        "label": "Revenue Interest Financing Agreement [Member]",
        "terseLabel": "Revenue Interest Financing Agreement"
       }
      }
     },
     "localname": "RevenueInterestFinancingAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_RevenueInterestPurchaseAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revenue interest purchase agreement.",
        "label": "Revenue Interest Purchase Agreement [Member]",
        "terseLabel": "Revenue Interest Purchase Agreement"
       }
      }
     },
     "localname": "RevenueInterestPurchaseAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_RevenueRecognitionMilestoneMethodDeferredRevenue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revenue recognition milestone method deferred revenue.",
        "label": "Revenue Recognition Milestone Method Deferred Revenue",
        "terseLabel": "Milestone recognized as deferred revenue"
       }
      }
     },
     "localname": "RevenueRecognitionMilestoneMethodDeferredRevenue",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_RevenueRecognitionMilestoneRevenueRecognized": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revenue recognition milestone revenue recognized.",
        "label": "Revenue Recognition Milestone Revenue Recognized",
        "terseLabel": "Milestone recognized as revenue"
       }
      }
     },
     "localname": "RevenueRecognitionMilestoneRevenueRecognized",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_RevenueTargetsMinimumLiquidityAmountDecreased": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revenue targets minimum liquidity amount decreased.",
        "label": "Revenue Targets Minimum Liquidity Amount Decreased",
        "terseLabel": "Revenue targets minimum liquidity amount decreased"
       }
      }
     },
     "localname": "RevenueTargetsMinimumLiquidityAmountDecreased",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_RightOfUseAssetsDerecognizedFromModificationOfOperatingLeaseObligations": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Right of use assets derecognized from modification of operating lease obligations.",
        "label": "Right Of Use Assets Derecognized From Modification Of Operating Lease Obligations",
        "negatedLabel": "ROU assets derecognized from modification of operating lease obligations"
       }
      }
     },
     "localname": "RightOfUseAssetsDerecognizedFromModificationOfOperatingLeaseObligations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_RoyaltiesPaymentPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Royalties payment percentage.",
        "label": "Royalties Payment Percentage",
        "terseLabel": "Royalties payment percentage"
       }
      }
     },
     "localname": "RoyaltiesPaymentPercentage",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_RoyaltyAndMilestoneInterestsProceeds": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Royalty and Milestone Interests Proceeds",
        "label": "Royalty and Milestone Interests Proceeds",
        "terseLabel": "Royalty and milestone interests proceeds"
       }
      }
     },
     "localname": "RoyaltyAndMilestoneInterestsProceeds",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_RoyaltyAndMilestoneInterestsRemainingProceeds": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Royalty and milestone interests remaining proceeds.",
        "label": "Royalty and Milestone Interests Remaining Proceeds",
        "terseLabel": "Royalty and milestone interests remaining proceeds"
       }
      }
     },
     "localname": "RoyaltyAndMilestoneInterestsRemainingProceeds",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_RoyaltyFinancingAnnualInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Royalty financing annual interest rate.",
        "label": "Royalty Financing Annual Interest Rate",
        "terseLabel": "Royalty financing annual interest rate"
       }
      }
     },
     "localname": "RoyaltyFinancingAnnualInterestRate",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_RoyaltyFinancingFundReceived": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Royalty finance fund received.",
        "label": "Royalty Financing Fund Received",
        "terseLabel": "Royalty financing fund received"
       }
      }
     },
     "localname": "RoyaltyFinancingFundReceived",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_RoyaltyFinancingLiabilityMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Royalty financing liability.",
        "label": "Royalty Financing Liability [Member]",
        "terseLabel": "Royalty Financing Liability"
       }
      }
     },
     "localname": "RoyaltyFinancingLiabilityMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsSummaryOfRoyaltyFinancingLiabilityActivityDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_RoyaltyFinancingLiabilityNoncurrent": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Royalty financing liability noncurrent.",
        "label": "Royalty financing liability at December 31, 2022",
        "terseLabel": "Royalty financing liability",
        "totalLabel": "Royalty financing liability at December 31, 2022",
        "verboseLabel": "Royalty financing liability, long-term"
       }
      }
     },
     "localname": "RoyaltyFinancingLiabilityNoncurrent",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsSummaryOfRoyaltyFinancingLiabilityActivityDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_RoyaltyFinancingPayments": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Royalty financing payments",
        "label": "Royalty Financing Payments",
        "negatedLabel": "Less: Royalty financing payments",
        "terseLabel": "Less: Royalty financing payments"
       }
      }
     },
     "localname": "RoyaltyFinancingPayments",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsSummaryOfRoyaltyFinancingLiabilityActivityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_SagardAndIMCOInvestorsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sagard and IMCO Investors.",
        "label": "Sagard And I M C O Investors [Member]",
        "terseLabel": "Sagard and IMCO Investors"
       }
      }
     },
     "localname": "SagardAndIMCOInvestorsMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_SagardHealthcarePartnersMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sagard Healthcare Partners.",
        "label": "Sagard Healthcare Partners [Member]",
        "terseLabel": "Sagard"
       }
      }
     },
     "localname": "SagardHealthcarePartnersMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_SagardHealthcareRoyaltyPartnersLPMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sagard Healthcare Royalty Partners, LP.",
        "label": "Sagard Healthcare Royalty Partners L P [Member]",
        "terseLabel": "Sagard Healthcare Royalty Partners, LP"
       }
      }
     },
     "localname": "SagardHealthcareRoyaltyPartnersLPMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_SaleOfCommonStockThroughAtmAndEmployeeStockPurchasePlanShares": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale of common stock through ATM and employee stock purchase plan shares.",
        "label": "Sale of common stock through ATM and Employee Stock Purchase Plan Shares",
        "terseLabel": "Sale of common stock through ATM and ESPP, shares"
       }
      }
     },
     "localname": "SaleOfCommonStockThroughAtmAndEmployeeStockPurchasePlanShares",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "sharesItemType"
    },
    "atnx_SaleOfCommonStockThroughAtmAndEmployeeStockPurchasePlanValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale of common stock through ATM and employee stock purchase plan value.",
        "label": "Sale of Common Stock Through ATM and Employee Stock Purchase Plan Value",
        "terseLabel": "Sale of common stock through ATM and ESPP"
       }
      }
     },
     "localname": "SaleOfCommonStockThroughAtmAndEmployeeStockPurchasePlanValue",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_SaleOfCommonStockThroughAtmShares": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale of common stock through ATM shares",
        "label": "Sale Of Common Stock Through ATM Shares",
        "terseLabel": "Sale of common stock through ATM shares"
       }
      }
     },
     "localname": "SaleOfCommonStockThroughAtmShares",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "sharesItemType"
    },
    "atnx_SaleOfCommonStockThroughAtmValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale of common stock through ATM value",
        "label": "Sale Of Common Stock Through ATM Value",
        "terseLabel": "Sale of common stock through ATM"
       }
      }
     },
     "localname": "SaleOfCommonStockThroughAtmValue",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_SaleOfCommonStockThroughEsppShares": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale of common stock through ESPP shares.",
        "label": "Sale Of Common Stock Through ESPP Shares",
        "terseLabel": "Sale of common stock through ESPP shares"
       }
      }
     },
     "localname": "SaleOfCommonStockThroughEsppShares",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "sharesItemType"
    },
    "atnx_SaleOfCommonStockThroughEsppValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale of common stock through ESPP value",
        "label": "Sale Of Common Stock Through ESPP Value",
        "terseLabel": "Sale of common stock through ESPP"
       }
      }
     },
     "localname": "SaleOfCommonStockThroughEsppValue",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_SaleOfPreFundedWarrants": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale of pre-funded warrants.",
        "label": "Sale of Pre-funded Warrants",
        "terseLabel": "Issuance of pre-funded warrants, net of costs of $155"
       }
      }
     },
     "localname": "SaleOfPreFundedWarrants",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_SalesAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sales agreement.",
        "label": "Sales Agreement [Member]",
        "terseLabel": "Sales Agreement"
       }
      }
     },
     "localname": "SalesAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_SalesDiscountGoodsPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sales discount, goods, percentage.",
        "label": "Sales Discount Goods Percentage",
        "terseLabel": "Revenue recognition cash discount percentage"
       }
      }
     },
     "localname": "SalesDiscountGoodsPercentage",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "atnx_ScheduleOfComponentsOfIncomeTaxExpenseBenefitFromDiscontinuedOperationsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of components of income tax expense benefit from discontinued operations.",
        "label": "Schedule of Components of Income Tax Expense Benefit from Discontinued Operations [Table Text Block]",
        "terseLabel": "Components of the Income Tax (Benefit) Expense from Discontinuing Operations"
       }
      }
     },
     "localname": "ScheduleOfComponentsOfIncomeTaxExpenseBenefitFromDiscontinuedOperationsTableTextBlock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "atnx_ScheduleOfFiniteAndIndefiniteLivedIntangibleAssetsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of finite and indefinite lived intangible asset.",
        "label": "Schedule Of Finite And Indefinite Lived Intangible Assets [Line Items]",
        "terseLabel": "Schedule Of Finite And Indefinite Lived Intangible Assets [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfFiniteAndIndefiniteLivedIntangibleAssetsLineItems",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_ScheduleOfFiniteAndIndefiniteLivedIntangibleAssetsTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of finite and indefinite lived intangible assets.",
        "label": "Schedule Of Finite And Indefinite Lived Intangible Assets [Table]",
        "terseLabel": "Schedule Of Finite And Indefinite Lived Intangible Assets [Table]"
       }
      }
     },
     "localname": "ScheduleOfFiniteAndIndefiniteLivedIntangibleAssetsTable",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_ScheduleOfFutureMinimumPaymentsAndMaturitiesOfOperatingAndFinanceLeasesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of future minimum payments and maturities of operating and finance leases.",
        "label": "Schedule Of Future Minimum Payments And Maturities Of Operating And Finance Leases Table [Text Block]",
        "terseLabel": "Schedule of Future Minimum Payments and Maturities of Leases"
       }
      }
     },
     "localname": "ScheduleOfFutureMinimumPaymentsAndMaturitiesOfOperatingAndFinanceLeasesTableTextBlock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "atnx_ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignFromDiscontinuedOperationsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of income before income tax domestic and foreign from discontinued operations.",
        "label": "Schedule of Income Before Income Tax Domestic and Foreign from Discontinued Operations [Table Text Block]",
        "terseLabel": "Components of Loss Before Income Tax Expense (Benefit) from Discontinuing Operations"
       }
      }
     },
     "localname": "ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignFromDiscontinuedOperationsTableTextBlock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "atnx_ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of supplemental balance sheet information related to leases.",
        "label": "Schedule Of Supplemental Balance Sheet Information Related To Leases Table [Text Block]",
        "terseLabel": "Schedule of Supplemental Balance Sheet Information Related to Leases of Debt"
       }
      }
     },
     "localname": "ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "atnx_ScheduleOfSupplementalCashFlowAndOtherInformationRelatedToLeasesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of supplemental cash flow and other information related to leases.",
        "label": "Schedule Of Supplemental Cash Flow And Other Information Related To Leases Table [Text Block]",
        "terseLabel": "Schedule of Supplemental Cash Flow Information Related to Leases"
       }
      }
     },
     "localname": "ScheduleOfSupplementalCashFlowAndOtherInformationRelatedToLeasesTableTextBlock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "atnx_SecondTermMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Second term.",
        "label": "Second Term [Member]",
        "terseLabel": "Second Term"
       }
      }
     },
     "localname": "SecondTermMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_SegmentReportingInformationRevenueByProductGroupAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Segment reporting information revenue by product group.",
        "label": "Segment Reporting Information Revenue By Product Group [Abstract]",
        "terseLabel": "Total revenue by product group:"
       }
      }
     },
     "localname": "SegmentReportingInformationRevenueByProductGroupAbstract",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByProductGroupDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_SeniorCreditAgreementAndRevenueInterestPurchaseAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Senior credit agreement and revenue interest purchase agreement.",
        "label": "Senior Credit Agreement And Revenue Interest Purchase Agreement [Member]",
        "terseLabel": "Senior Credit Agreement and RIPA"
       }
      }
     },
     "localname": "SeniorCreditAgreementAndRevenueInterestPurchaseAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRestrictedCashAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_SeniorCreditAgreementFifthAmendmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Senior credit agreement fifth amendment.",
        "label": "Senior Credit Agreement Fifth Amendment [Member]",
        "terseLabel": "Senior Credit Agreement Fifth Amendment"
       }
      }
     },
     "localname": "SeniorCreditAgreementFifthAmendmentMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_SeniorCreditAgreementFourthAmendmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Senior credit agreement fourth amendment.",
        "label": "Senior Credit Agreement Fourth Amendment [Member]",
        "terseLabel": "Senior Credit Agreement Fourth Amendment"
       }
      }
     },
     "localname": "SeniorCreditAgreementFourthAmendmentMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_SeniorCreditAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Senior credit agreement.",
        "label": "Senior Credit Agreement [Member]",
        "terseLabel": "Senior Credit Agreement",
        "verboseLabel": "Senior Credit Agreements"
       }
      }
     },
     "localname": "SeniorCreditAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRestrictedCashAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_SeniorCreditAgreementSixthAmendmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Senior credit agreement sixth amendments.",
        "label": "Senior Credit Agreement Sixth Amendments [Member]",
        "terseLabel": "Senior Credit Agreement"
       }
      }
     },
     "localname": "SeniorCreditAgreementSixthAmendmentsMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_SeniorCreditAgreementThirdAmendmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Senior credit agreement third amendment.",
        "label": "Senior Credit Agreement Third Amendment [Member]",
        "terseLabel": "Senior Credit Agreement Third Amendment"
       }
      }
     },
     "localname": "SeniorCreditAgreementThirdAmendmentMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_SeniorLoanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Senior loan.",
        "label": "Senior Loan [Member]",
        "terseLabel": "Senior Loan"
       }
      }
     },
     "localname": "SeniorLoanMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_SeniorSecuredLoanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Senior secured loan.",
        "label": "Senior Secured Loan [Member]",
        "terseLabel": "Senior Secured Loan"
       }
      }
     },
     "localname": "SeniorSecuredLoanMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsIntrinsicValueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share based compensation arrangement by share based payment award options intrinsic value.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Options Intrinsic Value [Abstract]",
        "terseLabel": "Aggregate Intrinsic Value"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsIntrinsicValueAbstract",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageRemainingContractualTermAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share based compensation arrangement by share based payment award options weighted average remaining contractual term.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Options Weighted Average Remaining Contractual Term [Abstract]",
        "terseLabel": "Weighted Average Remaining Contractual Term"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsWeightedAverageRemainingContractualTermAbstract",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_ShareholderDerivativeLawsuitMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Shareholder derivative lawsuit.",
        "label": "Shareholder Derivative Lawsuit [Member]",
        "terseLabel": "Shareholder Derivative Lawsuit"
       }
      }
     },
     "localname": "ShareholderDerivativeLawsuitMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_SharesIssuedPricePerPrefundedWarrants": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Shares issued price per prefunded warrant.",
        "label": "Shares Issued Price Per Prefunded Warrants",
        "terseLabel": "Shares issued price per prefunded warrant"
       }
      }
     },
     "localname": "SharesIssuedPricePerPrefundedWarrants",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "atnx_SixthAmendmentToCreditAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sixth Amendment To Credit Agreement.",
        "label": "Sixth Amendment To Credit Agreement [Member]",
        "terseLabel": "Sixth Amendment To Credit Agreement"
       }
      }
     },
     "localname": "SixthAmendmentToCreditAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_SponsorInvestigationCharges": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sponsor investigation charges.",
        "label": "Sponsor Investigation Charges",
        "terseLabel": "Sponsor investigation charges"
       }
      }
     },
     "localname": "SponsorInvestigationCharges",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_StockAwardedToDirectorsAndOfficersMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock awarded to directors and officers.",
        "label": "Stock Awarded To Directors And Officers [Member]",
        "terseLabel": "Stock Awarded to Directors and Officers"
       }
      }
     },
     "localname": "StockAwardedToDirectorsAndOfficersMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockBasedCompensationCostDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_StockIssuanceCostAndDiscounts": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issuance cost and discounts.",
        "label": "Stock Issuance Cost And Discounts",
        "terseLabel": "Stock issuance costs and discounts"
       }
      }
     },
     "localname": "StockIssuanceCostAndDiscounts",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_StockIssuanceCosts": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issuance costs.",
        "label": "Stock Issuance Costs",
        "terseLabel": "Stock issuance costs"
       }
      }
     },
     "localname": "StockIssuanceCosts",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_StockIssuedForPeriodSharesIssuedForResearchAndDevelopmentLicensingFeeSatisfiedWithStock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issued for period shares issued for research and development licensing fee satisfied with stock.",
        "label": "Stock Issued For Period Shares Issued For Research And Development Licensing Fee Satisfied With Stock",
        "terseLabel": "Research and development licensing fee satisfied with stock, shares"
       }
      }
     },
     "localname": "StockIssuedForPeriodSharesIssuedForResearchAndDevelopmentLicensingFeeSatisfiedWithStock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "atnx_StockIssuedForPeriodValueIssuedForResearchAndDevelopmentLicensingFeeSatisfiedWithStock": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock issued for period value issued for research and development licensing fee satisfied with stock.",
        "label": "Stock Issued For Period Value Issued For Research And Development Licensing Fee Satisfied With Stock",
        "terseLabel": "Research and development licensing fee satisfied with stock"
       }
      }
     },
     "localname": "StockIssuedForPeriodValueIssuedForResearchAndDevelopmentLicensingFeeSatisfiedWithStock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_SummaryOfRoyaltyFinancingLiabilityActivityTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of royalty financing liability activity.",
        "label": "Summary Of Royalty Financing Liability Activity [Table Text Block]",
        "terseLabel": "Summary Of Royalty Financing Liability Activity"
       }
      }
     },
     "localname": "SummaryOfRoyaltyFinancingLiabilityActivityTableTextBlock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "atnx_SummaryOfSignificantAccountingPoliciesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of significant accounting policies.",
        "label": "Summary Of Significant Accounting Policies [Line Items]",
        "terseLabel": "Summary Of Significant Accounting Policies [Line Items]"
       }
      }
     },
     "localname": "SummaryOfSignificantAccountingPoliciesLineItems",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_SummaryOfSignificantAccountingPoliciesTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summary of significant accounting policies.",
        "label": "Summary Of Significant Accounting Policies [Table]",
        "terseLabel": "Summary Of Significant Accounting Policies [Table]"
       }
      }
     },
     "localname": "SummaryOfSignificantAccountingPoliciesTable",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_SvbLeerinkLlcMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SVB leerink LLC.",
        "label": "SVB Leerink LLC [Member]",
        "terseLabel": "SVB Leerink LLC"
       }
      }
     },
     "localname": "SvbLeerinkLlcMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_TcrTTechnologyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "TCR-T technology.",
        "label": "TCR-T technology [Member]",
        "terseLabel": "TCR-T technology"
       }
      }
     },
     "localname": "TcrTTechnologyMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_TermOfCommittedToHireEmployeeFirstPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Term of committed to hire employee First period.",
        "label": "Term Of Committed To Hire Employee First Period",
        "terseLabel": "Term of committed to hire employee first period"
       }
      }
     },
     "localname": "TermOfCommittedToHireEmployeeFirstPeriod",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "atnx_TermOfCommittedToHireMinimumEmployee": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Term of committed to hire minimum employee.",
        "label": "Term Of Committed To Hire Minimum Employee",
        "terseLabel": "Term of committed to hire minimum employee"
       }
      }
     },
     "localname": "TermOfCommittedToHireMinimumEmployee",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "atnx_ThirdAmendmentOnJanuaryTwoThousandTwentyTwoMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Third amendment on january two thousand twenty two.",
        "label": "Third Amendment On January Two Thousand Twenty Two [Member]",
        "terseLabel": "Third Amendment on January 2022"
       }
      }
     },
     "localname": "ThirdAmendmentOnJanuaryTwoThousandTwentyTwoMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ThirdAmendmentToCreditAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Third amendment to credit agreement.",
        "label": "Third Amendment To Credit Agreement [Member]",
        "terseLabel": "Third Amendment to Credit Agreement"
       }
      }
     },
     "localname": "ThirdAmendmentToCreditAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ThirdAndSixthAmendmentToCreditAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Third and sixth amendment to credit agreement.",
        "label": "Third And SIxth Amendment To Credit Agreement"
       }
      }
     },
     "localname": "ThirdAndSixthAmendmentToCreditAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ThirdfourthfifthandsixthamendmenttocreditagreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Third fourth fifth and sixth amendment to credit agreement.",
        "label": "Third Fourth Fifth And Sixth Amendment To Credit Agreement [Member]",
        "terseLabel": "Third Fourth Fifth And Sixth Amendment To Credit Agreement Member"
       }
      }
     },
     "localname": "ThirdfourthfifthandsixthamendmenttocreditagreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_TiheCapitalBeijingCompanyLimitedMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "TiHe Capital (Beijing) Co., Ltd.",
        "label": "TiHe Capital (Beijing) Company Limited [Member]",
        "terseLabel": "TiHe Capital (Beijing) Co. Ltd."
       }
      }
     },
     "localname": "TiheCapitalBeijingCompanyLimitedMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_TrancheABAndCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tranche A,B and C.",
        "label": "Tranche A B And C [Member]",
        "terseLabel": "Tranche A,B and C"
       }
      }
     },
     "localname": "TrancheABAndCMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_TrancheAMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tranche A.",
        "label": "Tranche A [Member]",
        "terseLabel": "Tranche A"
       }
      }
     },
     "localname": "TrancheAMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_TrancheAbAndDMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tranche A,B and D.",
        "label": "Tranche AB And D [Member]",
        "terseLabel": "Tranche A,B and D"
       }
      }
     },
     "localname": "TrancheAbAndDMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_TrancheBMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tranche B.",
        "label": "Tranche B [Member]",
        "terseLabel": "Tranche B"
       }
      }
     },
     "localname": "TrancheBMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_TrancheCAndEMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tranche C and E.",
        "label": "Tranche C and E [Member]",
        "terseLabel": "Tranche C and E"
       }
      }
     },
     "localname": "TrancheCAndEMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_TrancheCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tranche C.",
        "label": "Tranche C [Member]",
        "terseLabel": "Tranche C"
       }
      }
     },
     "localname": "TrancheCMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_TrancheDMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tranche D.",
        "label": "Tranche D [Member]",
        "terseLabel": "Tranche D 90 Days After Closing Date Through June 20, 2022"
       }
      }
     },
     "localname": "TrancheDMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_TrancheEMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tranche E.",
        "label": "Tranche E [Member]",
        "terseLabel": "Tranche E 90 Days After Closing Date Through June 19, 2023"
       }
      }
     },
     "localname": "TrancheEMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_TwoThousandFourAndTwoThousandSevenAndTwoThousandThirteenAndTwoThousandSeventeenCommonStockOptionPlansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "2017, 2013, 2007 and 2004 plans.",
        "label": "Two Thousand Four And Two Thousand Seven And Two Thousand Thirteen And Two Thousand Seventeen Common Stock Option Plans [Member]",
        "terseLabel": "2017, 2013, 2007 and 2004 Plans"
       }
      }
     },
     "localname": "TwoThousandFourAndTwoThousandSevenAndTwoThousandThirteenAndTwoThousandSeventeenCommonStockOptionPlansMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_TwoThousandSeventeenOmnibusIncentivePlanAndTwoThousandSeventeenEmployeeStockPurchasePlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand seventeen omnibus incentive plan and two thousand seventeen employee stock purchase plan.",
        "label": "Two Thousand Seventeen Omnibus Incentive Plan And Two Thousand Seventeen Employee Stock Purchase Plan [Member]",
        "terseLabel": "2017 Plans"
       }
      }
     },
     "localname": "TwoThousandSeventeenOmnibusIncentivePlanAndTwoThousandSeventeenEmployeeStockPurchasePlanMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_TwoThousandSeventeenOmnibusIncentivePlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two thousand seventeen omnibus incentive plan.",
        "label": "Two Thousand Seventeen Omnibus Incentive Plan [Member]",
        "terseLabel": "2017 Omnibus Incentive Plan"
       }
      }
     },
     "localname": "TwoThousandSeventeenOmnibusIncentivePlanMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_UnvestedRestrictedCommonSharesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unvested restricted common shares.",
        "label": "Unvested Restricted Common Shares [Member]",
        "terseLabel": "Unvested Restricted Common Shares"
       }
      }
     },
     "localname": "UnvestedRestrictedCommonSharesMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureNetLossPerShareAttributableToAthenexIncCommonStockholdersScheduleWeightedAverageOutstandingSharesOfCommonStockEquivalentsExcludedFromCalculationOfDilutedNetLossPerShareDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_UpfrontPaymentToStockholdersInCommonStock": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Upfront payment to stockholders in common stock.",
        "label": "Upfront Payment To Stockholders In Common Stock",
        "terseLabel": "Upfront payment to stockholders in common stock"
       }
      }
     },
     "localname": "UpfrontPaymentToStockholdersInCommonStock",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ValuationAllowanceDeferredTaxAssetChangeInAmountContinuingOperations": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation allowance deferred tax asset change in amount continuing operations.",
        "label": "Valuation Allowance Deferred Tax Asset Change in Amount Continuing Operations",
        "negatedLabel": "Change in valuation allowance",
        "terseLabel": "Change in valuation allowance"
       }
      }
     },
     "localname": "ValuationAllowanceDeferredTaxAssetChangeInAmountContinuingOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_ValuationAllowanceDeferredTaxAssetChangeInAmountDiscontinuingOperations": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails": {
       "order": 2.0,
       "parentTag": "atnx_IncomeTaxExpenseBenefitDiscontinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation allowance deferred tax asset change in amount discontinuing operations.",
        "label": "Valuation Allowance Deferred Tax Asset Change in Amount Discontinuing Operations",
        "negatedLabel": "Change in valuation allowance",
        "terseLabel": "Change in valuation allowance"
       }
      }
     },
     "localname": "ValuationAllowanceDeferredTaxAssetChangeInAmountDiscontinuingOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxBenefitExpenseFromDiscontinuingOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_WarrantsExpirationTerm": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrants expiration term.",
        "label": "Warrants Expiration Term",
        "terseLabel": "Warrants expiration term"
       }
      }
     },
     "localname": "WarrantsExpirationTerm",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "atnx_WeightedAverageDiscountRateAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average discount rate.",
        "label": "Weighted Average Discount Rate [Abstract]",
        "terseLabel": "Weighted average discount rate:"
       }
      }
     },
     "localname": "WeightedAverageDiscountRateAbstract",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_WeightedAverageRemainingLeaseTermAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average remaining lease term.",
        "label": "Weighted Average Remaining Lease Term [Abstract]",
        "terseLabel": "Weighted average remaining lease term (in years):"
       }
      }
     },
     "localname": "WeightedAverageRemainingLeaseTermAbstract",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "atnx_WriteOffOfInventoryDiscontinuedOperations": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Write-off of inventory discontinued operations.",
        "label": "Write Off of Inventory Discontinued Operations",
        "terseLabel": "Write-off of inventory"
       }
      }
     },
     "localname": "WriteOffOfInventoryDiscontinuedOperations",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "atnx_XiangxueLicenseAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Xiangxue license agreement.",
        "label": "Xiangxue License Agreement [Member]",
        "terseLabel": "Xiangxue License"
       }
      }
     },
     "localname": "XiangxueLicenseAgreementMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "atnx_ZenRxMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ZenRx.",
        "label": "Zen Rx [Member]",
        "terseLabel": "ZenRx"
       }
      }
     },
     "localname": "ZenRxMember",
     "nsuri": "http://www.athenex.com/20221231",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "country_CN": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "CHINA",
        "terseLabel": "China"
       }
      }
     },
     "localname": "CN",
     "nsuri": "http://xbrl.sec.gov/country/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "country_ES": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "SPAIN",
        "terseLabel": "Spain"
       }
      }
     },
     "localname": "ES",
     "nsuri": "http://xbrl.sec.gov/country/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByGeographicalSegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "country_TW": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "TAIWAN",
        "terseLabel": "Taiwan"
       }
      }
     },
     "localname": "TW",
     "nsuri": "http://xbrl.sec.gov/country/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "country_US": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "UNITED STATES",
        "terseLabel": "United States"
       }
      }
     },
     "localname": "US",
     "nsuri": "http://xbrl.sec.gov/country/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByGeographicalSegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "dei_AmendmentFlag": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission.",
        "label": "Amendment Flag",
        "verboseLabel": "Amendment Flag"
       }
      }
     },
     "localname": "AmendmentFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_AuditorFirmId": {
     "auth_ref": [
      "r920",
      "r921",
      "r922"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "PCAOB issued Audit Firm Identifier",
        "label": "Auditor Firm ID"
       }
      }
     },
     "localname": "AuditorFirmId",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "nonemptySequenceNumberItemType"
    },
    "dei_AuditorLocation": {
     "auth_ref": [
      "r920",
      "r921",
      "r922"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Location"
       }
      }
     },
     "localname": "AuditorLocation",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "internationalNameItemType"
    },
    "dei_AuditorName": {
     "auth_ref": [
      "r920",
      "r921",
      "r922"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Name"
       }
      }
     },
     "localname": "AuditorName",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "internationalNameItemType"
    },
    "dei_CityAreaCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Area code of city",
        "label": "City Area Code",
        "terseLabel": "City Area Code"
       }
      }
     },
     "localname": "CityAreaCode",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_CoverAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cover page.",
        "label": "Cover [Abstract]"
       }
      }
     },
     "localname": "CoverAbstract",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "xbrltype": "stringItemType"
    },
    "dei_CurrentFiscalYearEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "End date of current fiscal year in the format --MM-DD.",
        "label": "Current Fiscal Year End Date",
        "terseLabel": "Current Fiscal Year End Date"
       }
      }
     },
     "localname": "CurrentFiscalYearEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "gMonthDayItemType"
    },
    "dei_DocumentAnnualReport": {
     "auth_ref": [
      "r920",
      "r921",
      "r922"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as an annual report.",
        "label": "Document Annual Report",
        "terseLabel": "Document Annual Report"
       }
      }
     },
     "localname": "DocumentAnnualReport",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentFiscalPeriodFocus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Document Fiscal Period Focus",
        "terseLabel": "Document Fiscal Period Focus"
       }
      }
     },
     "localname": "DocumentFiscalPeriodFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "fiscalPeriodItemType"
    },
    "dei_DocumentFiscalYearFocus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Document Fiscal Year Focus",
        "verboseLabel": "Document Fiscal Year Focus"
       }
      }
     },
     "localname": "DocumentFiscalYearFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "gYearItemType"
    },
    "dei_DocumentPeriodEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Document Period End Date",
        "terseLabel": "Document Period End Date"
       }
      }
     },
     "localname": "DocumentPeriodEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentTransitionReport": {
     "auth_ref": [
      "r923"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as a transition report.",
        "label": "Document Transition Report",
        "terseLabel": "Document Transition Report"
       }
      }
     },
     "localname": "DocumentTransitionReport",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentType": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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'.",
        "label": "Document Type",
        "terseLabel": "Document Type"
       }
      }
     },
     "localname": "DocumentType",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "submissionTypeItemType"
    },
    "dei_DocumentsIncorporatedByReferenceTextBlock": {
     "auth_ref": [
      "r918"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Documents incorporated by reference.",
        "label": "Documents Incorporated by Reference [Text Block]",
        "terseLabel": "Documents Incorporated by Reference"
       }
      }
     },
     "localname": "DocumentsIncorporatedByReferenceTextBlock",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "dei_EntityAddressAddressLine1": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name",
        "label": "Entity Address, Address Line One",
        "terseLabel": "Entity Address, Address Line One"
       }
      }
     },
     "localname": "EntityAddressAddressLine1",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressAddressLine2": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Address Line 2 such as Street or Suite number",
        "label": "Entity Address, Address Line Two",
        "verboseLabel": "Entity Address, Address Line Two"
       }
      }
     },
     "localname": "EntityAddressAddressLine2",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressCityOrTown": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the City or Town",
        "label": "Entity Address, City or Town",
        "verboseLabel": "Entity Address, City or Town"
       }
      }
     },
     "localname": "EntityAddressCityOrTown",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressPostalZipCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Code for the postal or zip code",
        "label": "Entity Address, Postal Zip Code",
        "terseLabel": "Entity Address, Postal Zip Code"
       }
      }
     },
     "localname": "EntityAddressPostalZipCode",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressStateOrProvince": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the state or province.",
        "label": "Entity Address, State or Province",
        "terseLabel": "Entity Address, State or Province"
       }
      }
     },
     "localname": "EntityAddressStateOrProvince",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "stateOrProvinceItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r917"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK.",
        "label": "Entity Central Index Key",
        "terseLabel": "Entity Central Index Key"
       }
      }
     },
     "localname": "EntityCentralIndexKey",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "centralIndexKeyItemType"
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Entity Common Stock, Shares Outstanding",
        "verboseLabel": "Entity Common Stock, Shares Outstanding"
       }
      }
     },
     "localname": "EntityCommonStockSharesOutstanding",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "sharesItemType"
    },
    "dei_EntityCurrentReportingStatus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Entity Current Reporting Status",
        "terseLabel": "Entity Current Reporting Status"
       }
      }
     },
     "localname": "EntityCurrentReportingStatus",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Entity [Domain]",
        "terseLabel": "Entity"
       }
      }
     },
     "localname": "EntityDomain",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRestrictedCashAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "dei_EntityEmergingGrowthCompany": {
     "auth_ref": [
      "r917"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate if registrant meets the emerging growth company criteria.",
        "label": "Entity Emerging Growth Company",
        "terseLabel": "Entity Emerging Growth Company"
       }
      }
     },
     "localname": "EntityEmergingGrowthCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityExTransitionPeriod": {
     "auth_ref": [
      "r926"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate if an emerging growth company has elected not to use the extended transition period for complying with any new or revised financial accounting standards.",
        "label": "Entity Ex Transition Period",
        "terseLabel": "Entity Ex Transition Period"
       }
      }
     },
     "localname": "EntityExTransitionPeriod",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityFileNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Securities Act File Number",
        "terseLabel": "Entity File Number"
       }
      }
     },
     "localname": "EntityFileNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "fileNumberItemType"
    },
    "dei_EntityFilerCategory": {
     "auth_ref": [
      "r917"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Entity Filer Category",
        "terseLabel": "Entity Filer Category"
       }
      }
     },
     "localname": "EntityFilerCategory",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "filerCategoryItemType"
    },
    "dei_EntityIncorporationStateCountryCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two-character EDGAR code representing the state or country of incorporation.",
        "label": "Entity Incorporation, State or Country Code",
        "terseLabel": "Entity Incorporation, State or Country Code"
       }
      }
     },
     "localname": "EntityIncorporationStateCountryCode",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "edgarStateCountryItemType"
    },
    "dei_EntityInteractiveDataCurrent": {
     "auth_ref": [
      "r924"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Entity Interactive Data Current",
        "terseLabel": "Entity Interactive Data Current"
       }
      }
     },
     "localname": "EntityInteractiveDataCurrent",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityPublicFloat": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Entity Public Float",
        "verboseLabel": "Entity Public Float"
       }
      }
     },
     "localname": "EntityPublicFloat",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "monetaryItemType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r917"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC.",
        "label": "Entity Registrant Name",
        "terseLabel": "Entity Registrant Name"
       }
      }
     },
     "localname": "EntityRegistrantName",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityShellCompany": {
     "auth_ref": [
      "r917"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act.",
        "label": "Entity Shell Company",
        "terseLabel": "Entity Shell Company"
       }
      }
     },
     "localname": "EntityShellCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntitySmallBusiness": {
     "auth_ref": [
      "r917"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC).",
        "label": "Entity Small Business",
        "terseLabel": "Entity Small Business"
       }
      }
     },
     "localname": "EntitySmallBusiness",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityTaxIdentificationNumber": {
     "auth_ref": [
      "r917"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS.",
        "label": "Entity Tax Identification Number",
        "terseLabel": "Entity Tax Identification Number"
       }
      }
     },
     "localname": "EntityTaxIdentificationNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "employerIdItemType"
    },
    "dei_EntityVoluntaryFilers": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Entity Voluntary Filers",
        "terseLabel": "Entity Voluntary Filers"
       }
      }
     },
     "localname": "EntityVoluntaryFilers",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "auth_ref": [
      "r925"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Entity Well-known Seasoned Issuer",
        "terseLabel": "Entity Well-known Seasoned Issuer"
       }
      }
     },
     "localname": "EntityWellKnownSeasonedIssuer",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_IcfrAuditorAttestationFlag": {
     "auth_ref": [
      "r920",
      "r921",
      "r922"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ICFR Auditor Attestation Flag",
        "terseLabel": "ICFR Auditor Attestation Flag"
       }
      }
     },
     "localname": "IcfrAuditorAttestationFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_LegalEntityAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The set of legal entities associated with a report.",
        "label": "Legal Entity [Axis]",
        "terseLabel": "Legal Entity"
       }
      }
     },
     "localname": "LegalEntityAxis",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRestrictedCashAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_LocalPhoneNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Local phone number for entity.",
        "label": "Local Phone Number",
        "terseLabel": "Local Phone Number"
       }
      }
     },
     "localname": "LocalPhoneNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_Security12bTitle": {
     "auth_ref": [
      "r916"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Title of a 12(b) registered security.",
        "label": "Title of 12(b) Security",
        "terseLabel": "Title of 12(b) Security"
       }
      }
     },
     "localname": "Security12bTitle",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "securityTitleItemType"
    },
    "dei_SecurityExchangeName": {
     "auth_ref": [
      "r919"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the Exchange on which a security is registered.",
        "label": "Security Exchange Name",
        "terseLabel": "Security Exchange Name"
       }
      }
     },
     "localname": "SecurityExchangeName",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "edgarExchangeCodeItemType"
    },
    "dei_TradingSymbol": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Trading symbol of an instrument as listed on an exchange.",
        "label": "Trading Symbol",
        "terseLabel": "Trading Symbol"
       }
      }
     },
     "localname": "TradingSymbol",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "tradingSymbolItemType"
    },
    "srt_ConsolidatedEntitiesAxis": {
     "auth_ref": [
      "r356",
      "r664",
      "r665",
      "r668",
      "r669",
      "r755",
      "r841",
      "r846",
      "r985",
      "r988",
      "r989",
      "r1087",
      "r1090",
      "r1091"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by consolidated entity or group of entities.",
        "label": "Consolidated Entities [Axis]",
        "terseLabel": "Consolidated Entities"
       }
      }
     },
     "localname": "ConsolidatedEntitiesAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidatedEntitiesDomain": {
     "auth_ref": [
      "r356",
      "r664",
      "r665",
      "r668",
      "r669",
      "r755",
      "r841",
      "r846",
      "r985",
      "r988",
      "r989",
      "r1087",
      "r1090",
      "r1091"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Entity or group of entities consolidated into reporting entity.",
        "label": "Consolidated Entities [Domain]",
        "terseLabel": "Consolidated Entities"
       }
      }
     },
     "localname": "ConsolidatedEntitiesDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ConsolidationItemsAxis": {
     "auth_ref": [
      "r356",
      "r408",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r432",
      "r436",
      "r519",
      "r520",
      "r521",
      "r522",
      "r524",
      "r525",
      "r527",
      "r529",
      "r530",
      "r858",
      "r859",
      "r860",
      "r861",
      "r862",
      "r863",
      "r864",
      "r865",
      "r866",
      "r986",
      "r987",
      "r1088",
      "r1089"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by components, eliminations, non-segment corporate-level activity and reconciling items used in consolidating a parent entity and its subsidiaries or its operating segments.",
        "label": "Consolidation Items [Axis]",
        "terseLabel": "Consolidation Items"
       }
      }
     },
     "localname": "ConsolidationItemsAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfDepreciationAmortizationAndAssetsBySegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueBySegmentsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfSegmentInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidationItemsDomain": {
     "auth_ref": [
      "r356",
      "r408",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r432",
      "r436",
      "r519",
      "r520",
      "r521",
      "r522",
      "r524",
      "r525",
      "r527",
      "r529",
      "r530",
      "r858",
      "r859",
      "r860",
      "r861",
      "r862",
      "r863",
      "r864",
      "r865",
      "r866",
      "r986",
      "r987",
      "r1088",
      "r1089"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Components, elimination, non-segment corporate-level activity and reconciling items used in consolidating a parent entity and its subsidiaries or its operating segments.",
        "label": "Consolidation Items [Domain]",
        "terseLabel": "Consolidation Items"
       }
      }
     },
     "localname": "ConsolidationItemsDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfDepreciationAmortizationAndAssetsBySegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueBySegmentsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfSegmentInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_CounterpartyNameAxis": {
     "auth_ref": [
      "r354",
      "r355",
      "r535",
      "r550",
      "r867",
      "r875",
      "r877"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of counterparty. A counterparty is the other party that participates in a financial transaction. Examples include, but not limited to, the name of the financial institution.",
        "label": "Counterparty Name [Axis]",
        "terseLabel": "Counterparty Name"
       }
      }
     },
     "localname": "CounterpartyNameAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_EquityMethodInvesteeNameDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of investment including named security. Excludes entity that is consolidated.",
        "label": "Investment, Name [Domain]"
       }
      }
     },
     "localname": "EquityMethodInvesteeNameDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ExecutiveOfficerMember": {
     "auth_ref": [
      "r960"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Person with designation of executive officer.",
        "label": "Executive Officer [Member]",
        "terseLabel": "Executive Officer"
       }
      }
     },
     "localname": "ExecutiveOfficerMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_LitigationCaseAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of judicial proceeding, alternative dispute resolution or claim.",
        "label": "Litigation Case [Axis]"
       }
      }
     },
     "localname": "LitigationCaseAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_LitigationCaseTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Judicial proceeding, alternative dispute resolution or claim. For example, but not limited to, name of case, category of litigation, or other differentiating information.",
        "label": "Litigation Case [Domain]"
       }
      }
     },
     "localname": "LitigationCaseTypeDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MajorCustomersAxis": {
     "auth_ref": [
      "r442",
      "r894",
      "r993",
      "r1066"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name or description of a single external customer or a group of external customers.",
        "label": "Customer [Axis]",
        "terseLabel": "Customer"
       }
      }
     },
     "localname": "MajorCustomersAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MaximumMember": {
     "auth_ref": [
      "r515",
      "r516",
      "r517",
      "r518",
      "r578",
      "r763",
      "r795",
      "r843",
      "r844",
      "r890",
      "r904",
      "r914",
      "r990",
      "r1054",
      "r1055",
      "r1056",
      "r1057",
      "r1058",
      "r1059"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Upper limit of the provided range.",
        "label": "Maximum [Member]",
        "terseLabel": "Maximum"
       }
      }
     },
     "localname": "MaximumMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MinimumMember": {
     "auth_ref": [
      "r515",
      "r516",
      "r517",
      "r518",
      "r578",
      "r763",
      "r795",
      "r843",
      "r844",
      "r890",
      "r904",
      "r914",
      "r990",
      "r1054",
      "r1055",
      "r1056",
      "r1057",
      "r1058",
      "r1059"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lower limit of the provided range.",
        "label": "Minimum [Member]",
        "terseLabel": "Minimum"
       }
      }
     },
     "localname": "MinimumMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_NameOfMajorCustomerDomain": {
     "auth_ref": [
      "r442",
      "r894",
      "r993",
      "r1066"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Single external customer or group of external customers.",
        "label": "Customer [Domain]",
        "terseLabel": "Customer"
       }
      }
     },
     "localname": "NameOfMajorCustomerDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_OwnershipAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of entity in which ownership interest is disclosed. Excludes equity method investee and named security investment.",
        "label": "Ownership [Axis]",
        "terseLabel": "Ownership"
       }
      }
     },
     "localname": "OwnershipAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_OwnershipDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of entity in which ownership interest is disclosed. Excludes equity method investee and named security investment.",
        "label": "Ownership [Domain]",
        "terseLabel": "Ownership"
       }
      }
     },
     "localname": "OwnershipDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ProductOrServiceAxis": {
     "auth_ref": [
      "r438",
      "r765",
      "r892",
      "r912",
      "r982",
      "r983",
      "r993",
      "r1065"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by product and service, or group of similar products and similar services.",
        "label": "Product and Service [Axis]",
        "terseLabel": "Product and Service"
       }
      }
     },
     "localname": "ProductOrServiceAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByProductGroupDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ProductsAndServicesDomain": {
     "auth_ref": [
      "r438",
      "r765",
      "r892",
      "r912",
      "r982",
      "r983",
      "r993",
      "r1065"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Product or service, or a group of similar products or similar services.",
        "label": "Product and Service [Domain]",
        "terseLabel": "Product and Service"
       }
      }
     },
     "localname": "ProductsAndServicesDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByProductGroupDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RangeAxis": {
     "auth_ref": [
      "r515",
      "r516",
      "r517",
      "r518",
      "r570",
      "r578",
      "r605",
      "r606",
      "r607",
      "r762",
      "r763",
      "r795",
      "r843",
      "r844",
      "r890",
      "r904",
      "r914",
      "r978",
      "r990",
      "r1055",
      "r1056",
      "r1057",
      "r1058",
      "r1059"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median.",
        "label": "Statistical Measurement [Axis]",
        "terseLabel": "Statistical Measurement"
       }
      }
     },
     "localname": "RangeAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RangeMember": {
     "auth_ref": [
      "r515",
      "r516",
      "r517",
      "r518",
      "r570",
      "r578",
      "r605",
      "r606",
      "r607",
      "r762",
      "r763",
      "r795",
      "r843",
      "r844",
      "r890",
      "r904",
      "r914",
      "r978",
      "r990",
      "r1055",
      "r1056",
      "r1057",
      "r1058",
      "r1059"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median.",
        "label": "Statistical Measurement [Domain]",
        "terseLabel": "Statistical Measurement"
       }
      }
     },
     "localname": "RangeMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis": {
     "auth_ref": [
      "r842",
      "r848",
      "r868",
      "r1069",
      "r1070",
      "r1071",
      "r1072",
      "r1073",
      "r1074",
      "r1075",
      "r1076",
      "r1079",
      "r1080",
      "r1081",
      "r1082",
      "r1083",
      "r1084",
      "r1085",
      "r1086"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of property.",
        "label": "Name of Property [Axis]",
        "terseLabel": "Name of Property"
       }
      }
     },
     "localname": "RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RealEstateAndAccumulatedDepreciationNameOfPropertyDomain": {
     "auth_ref": [
      "r842",
      "r848",
      "r1069",
      "r1070",
      "r1071",
      "r1072",
      "r1073",
      "r1074",
      "r1075",
      "r1076",
      "r1079",
      "r1080",
      "r1081",
      "r1082",
      "r1083",
      "r1084",
      "r1085",
      "r1086"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the property, for example, but not limited to, ABC Shopping Center.",
        "label": "Name of Property [Domain]",
        "terseLabel": "Name of Property"
       }
      }
     },
     "localname": "RealEstateAndAccumulatedDepreciationNameOfPropertyDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RepurchaseAgreementCounterpartyNameDomain": {
     "auth_ref": [
      "r354",
      "r355",
      "r535",
      "r550",
      "r876",
      "r877"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Named other party that participates in a financial transaction. Examples include, but not limited to, the name of the financial institution.",
        "label": "Counterparty Name [Domain]",
        "terseLabel": "Counterparty Name"
       }
      }
     },
     "localname": "RepurchaseAgreementCounterpartyNameDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScenarioForecastMember": {
     "auth_ref": [
      "r579",
      "r956",
      "r1078"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information reported for future period. Excludes information expected to be reported in future period for effect on historical fact.",
        "label": "Forecast [Member]",
        "terseLabel": "Scenario Forecast"
       }
      }
     },
     "localname": "ScenarioForecastMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScenarioUnspecifiedDomain": {
     "auth_ref": [
      "r381",
      "r579",
      "r927",
      "r956"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Scenario reported, distinguishing information from actual fact. Includes, but is not limited to, pro forma and forecast. Excludes actual facts.",
        "label": "Scenario [Domain]",
        "terseLabel": "Scenario"
       }
      }
     },
     "localname": "ScenarioUnspecifiedDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis": {
     "auth_ref": [
      "r450"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of investment including named security. Excludes entity that is consolidated.",
        "label": "Investment, Name [Axis]"
       }
      }
     },
     "localname": "ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock": {
     "auth_ref": [
      "r364",
      "r857"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for valuation and qualifying accounts and reserves.",
        "label": "SEC Schedule, 12-09, Schedule of Valuation and Qualifying Accounts Disclosure [Text Block]",
        "terseLabel": "Schedule of Valuation and Qualifying Accounts"
       }
      }
     },
     "localname": "ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccounts"
     ],
     "xbrltype": "textBlockItemType"
    },
    "srt_SegmentGeographicalDomain": {
     "auth_ref": [
      "r439",
      "r440",
      "r832",
      "r833",
      "r834",
      "r835",
      "r836",
      "r837",
      "r838",
      "r839",
      "r840",
      "r845",
      "r849",
      "r850",
      "r851",
      "r852",
      "r853",
      "r854",
      "r855",
      "r856",
      "r893",
      "r913",
      "r993"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Geographical area.",
        "label": "Geographical [Domain]",
        "terseLabel": "Geographical"
       }
      }
     },
     "localname": "SegmentGeographicalDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByGeographicalSegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_StatementGeographicalAxis": {
     "auth_ref": [
      "r439",
      "r440",
      "r825",
      "r832",
      "r833",
      "r834",
      "r835",
      "r836",
      "r837",
      "r838",
      "r839",
      "r840",
      "r845",
      "r847",
      "r893",
      "r913",
      "r993"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by geographical components.",
        "label": "Geographical [Axis]",
        "terseLabel": "Geographical"
       }
      }
     },
     "localname": "StatementGeographicalAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByGeographicalSegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_StatementScenarioAxis": {
     "auth_ref": [
      "r381",
      "r579",
      "r927",
      "r928",
      "r956"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by scenario reported, distinguishing information from actual fact. Includes, but is not limited to, pro forma and forecast. Excludes actual facts.",
        "label": "Scenario [Axis]",
        "terseLabel": "Scenario"
       }
      }
     },
     "localname": "StatementScenarioAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_SubsidiariesMember": {
     "auth_ref": [
      "r996",
      "r1048",
      "r1049",
      "r1051"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Entity owned or controlled by another entity.",
        "label": "Subsidiaries [Member]",
        "terseLabel": "Chinese Subsidiaries"
       }
      }
     },
     "localname": "SubsidiariesMember",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_TitleOfIndividualAxis": {
     "auth_ref": [
      "r960",
      "r1050"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by title of individual or nature of relationship to individual or group of individuals.",
        "label": "Title of Individual [Axis]"
       }
      }
     },
     "localname": "TitleOfIndividualAxis",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_TitleOfIndividualWithRelationshipToEntityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Title of individual, or nature of relationship to individual or group of individuals.",
        "label": "Title of Individual [Domain]"
       }
      }
     },
     "localname": "TitleOfIndividualWithRelationshipToEntityDomain",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ValuationAndQualifyingAccountsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "SEC Schedule, 12-09, Valuation and Qualifying Accounts [Abstract]"
       }
      }
     },
     "localname": "ValuationAndQualifyingAccountsAbstract",
     "nsuri": "http://fasb.org/srt/2022",
     "xbrltype": "stringItemType"
    },
    "srt_ValuationAndQualifyingAccountsDisclosureLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "SEC Schedule, 12-09, Valuation and Qualifying Accounts Disclosure [Line Items]",
        "terseLabel": "Valuation and Qualifying Accounts Disclosure [Line Items]"
       }
      }
     },
     "localname": "ValuationAndQualifyingAccountsDisclosureLineItems",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccountsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ValuationAndQualifyingAccountsDisclosureTable": {
     "auth_ref": [
      "r357",
      "r358",
      "r359",
      "r362",
      "r363",
      "r857"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of valuation and qualifying accounts and reserves.",
        "label": "SEC Schedule, 12-09, Valuation and Qualifying Accounts Disclosure [Table]",
        "terseLabel": "Valuation And Qualifying Accounts Disclosure [Table]"
       }
      }
     },
     "localname": "ValuationAndQualifyingAccountsDisclosureTable",
     "nsuri": "http://fasb.org/srt/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccountsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "stpr_NY": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "NEW YORK",
        "terseLabel": "New York State",
        "verboseLabel": "NY"
       }
      }
     },
     "localname": "NY",
     "nsuri": "http://xbrl.sec.gov/stpr/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Abstract]"
       }
      }
     },
     "localname": "AccountingPoliciesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountingStandardsUpdate201602Member": {
     "auth_ref": [
      "r720"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounting Standards Update 2016-02 Leases (Topic 842).",
        "label": "Accounting Standards Update 2016-02 [Member]",
        "terseLabel": "ASU No. 2016-02"
       }
      }
     },
     "localname": "AccountingStandardsUpdate201602Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingStandardsUpdateExtensibleList": {
     "auth_ref": [
      "r299",
      "r300",
      "r301",
      "r302",
      "r303",
      "r369",
      "r370",
      "r371",
      "r447",
      "r448",
      "r455",
      "r456",
      "r457",
      "r458",
      "r459",
      "r460",
      "r614",
      "r615",
      "r616",
      "r639",
      "r640",
      "r658",
      "r659",
      "r660",
      "r671",
      "r672",
      "r673",
      "r674",
      "r675",
      "r676",
      "r677",
      "r678",
      "r679",
      "r680",
      "r681",
      "r682",
      "r692",
      "r693",
      "r695",
      "r696",
      "r697",
      "r698",
      "r699",
      "r700",
      "r716",
      "r717",
      "r722",
      "r723",
      "r724",
      "r743",
      "r744",
      "r745",
      "r746",
      "r747",
      "r748",
      "r796",
      "r797",
      "r798",
      "r799",
      "r800",
      "r801",
      "r802",
      "r803",
      "r804",
      "r805",
      "r806",
      "r807",
      "r954"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates amendment to accounting standards.",
        "label": "Accounting Standards Update [Extensible Enumeration]",
        "terseLabel": "Accounting Standards Update Extensible List"
       }
      }
     },
     "localname": "AccountingStandardsUpdateExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_AccountsPayableAccruedLiabilitiesAndOtherLiabilitiesDisclosureCurrentTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for accounts payable, accrued expenses, and other liabilities that are classified as current at the end of the reporting period.",
        "label": "Accounts Payable, Accrued Liabilities, and Other Liabilities Disclosure, Current [Text Block]",
        "terseLabel": "Accrued Expenses"
       }
      }
     },
     "localname": "AccountsPayableAccruedLiabilitiesAndOtherLiabilitiesDisclosureCurrentTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpenses"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AccountsPayableCurrent": {
     "auth_ref": [
      "r47",
      "r911"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Accounts Payable, Current",
        "terseLabel": "Accounts payable",
        "totalLabel": "Accounts Payable, Current, Total",
        "verboseLabel": "Accounts payable"
       }
      }
     },
     "localname": "AccountsPayableCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccountsPayableRelatedPartiesCurrentAndNoncurrent": {
     "auth_ref": [
      "r250",
      "r265",
      "r289",
      "r945"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount for accounts payable to related parties.",
        "label": "Accounts Payable, Related Parties",
        "terseLabel": "Accounts payable owed to counterparties"
       }
      }
     },
     "localname": "AccountsPayableRelatedPartiesCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccountsReceivableGrossCurrent": {
     "auth_ref": [
      "r320",
      "r444",
      "r445",
      "r871"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfAccountsReceivableBalancesByReportableSegmentsDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_AccountsReceivableNetCurrent",
       "weight": 1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfReceivablesAndContractLiabilitiesFromContractsWithCustomersDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_AccountsReceivableNetCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allowance for credit loss, of right to consideration from customer for product sold and service rendered in normal course of business, classified as current.",
        "label": "Accounts Receivable, before Allowance for Credit Loss, Current",
        "terseLabel": "Accounts receivable, gross"
       }
      }
     },
     "localname": "AccountsReceivableGrossCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfAccountsReceivableBalancesByReportableSegmentsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfReceivablesAndContractLiabilitiesFromContractsWithCustomersDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccountsReceivableMember": {
     "auth_ref": [
      "r826"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Due from customers or clients for goods or services that have been delivered or sold.",
        "label": "Accounts Receivable [Member]",
        "terseLabel": "Accounts Receivable"
       }
      }
     },
     "localname": "AccountsReceivableMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountsReceivableNetCurrent": {
     "auth_ref": [
      "r444",
      "r445"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfAccountsReceivableBalancesByReportableSegmentsDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfReceivablesAndContractLiabilitiesFromContractsWithCustomersDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Accounts Receivable, after Allowance for Credit Loss, Current",
        "terseLabel": "Accounts receivable, net of chargebacks and other deductions of $29,470 and $22,869, respectively, and provision for credit losses of $9,676 and $9,069, respectively",
        "totalLabel": "Accounts receivable, net"
       }
      }
     },
     "localname": "AccountsReceivableNetCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfAccountsReceivableBalancesByReportableSegmentsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfReceivablesAndContractLiabilitiesFromContractsWithCustomersDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedIncomeTaxesCurrent": {
     "auth_ref": [
      "r33",
      "r257",
      "r281"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail": {
       "order": 7.0,
       "parentTag": "us-gaap_AccruedLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of the unpaid sum of the known and estimated amounts payable to satisfy all currently due domestic and foreign income tax obligations.",
        "label": "Accrued Income Taxes, Current",
        "terseLabel": "Accrued tax withholdings"
       }
      }
     },
     "localname": "AccruedIncomeTaxesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedLiabilitiesCurrent": {
     "auth_ref": [
      "r50"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of obligations incurred and payable, pertaining to costs that are statutory in nature, are incurred on contractual obligations, or accumulate over time and for which invoices have not yet been received or will not be rendered. Examples include taxes, interest, rent and utilities. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Accrued Liabilities, Current",
        "terseLabel": "Accrued expenses",
        "totalLabel": "Total accrued expenses"
       }
      }
     },
     "localname": "AccruedLiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedLiabilitiesCurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued Liabilities, Current [Abstract]"
       }
      }
     },
     "localname": "AccruedLiabilitiesCurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccruedRoyaltiesCurrent": {
     "auth_ref": [
      "r50",
      "r872"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail": {
       "order": 10.0,
       "parentTag": "us-gaap_AccruedLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of obligations incurred through that date and payable for royalties. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Accrued Royalties, Current",
        "terseLabel": "Accrued R&amp;D licensing fees"
       }
      }
     },
     "localname": "AccruedRoyaltiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment": {
     "auth_ref": [
      "r150",
      "r314"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated depreciation, depletion and amortization for physical assets used in the normal conduct of business to produce goods and services.",
        "label": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment",
        "negatedLabel": "Less: accumulated depreciation",
        "periodEndLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Ending Balance",
        "periodStartLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Beginning Balance",
        "totalLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Total"
       }
      }
     },
     "localname": "AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Accumulated Other Comprehensive Income (Loss) [Line Items]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss) [Line Items]"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossIncomeScheduleOfComponentsAndChangesOfAccumulatedOtherComprehensiveLossIncomeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r63",
      "r65",
      "r66",
      "r321",
      "r790",
      "r803",
      "r807"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated change in equity from transactions and other events and circumstances from non-owner sources, net of tax effect, at period end. Excludes Net Income (Loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners. Includes foreign currency translation items, certain pension adjustments, unrealized gains and losses on certain investments in debt and equity securities, other than temporary impairment (OTTI) losses related to factors other than credit losses on available-for-sale and held-to-maturity debt securities that an entity does not intend to sell and it is not more likely than not that the entity will be required to sell before recovery of the amortized cost basis, as well as changes in the fair value of derivatives related to the effective portion of a designated cash flow hedge.",
        "label": "Accumulated Other Comprehensive Income (Loss), Net of Tax",
        "terseLabel": "Accumulated other comprehensive income (loss)",
        "totalLabel": "Accumulated Other Comprehensive Income (Loss), Net of Tax, Total"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossTable": {
     "auth_ref": [
      "r336",
      "r337",
      "r706",
      "r707",
      "r708",
      "r709",
      "r710",
      "r713"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about components of accumulated other comprehensive income (loss).",
        "label": "Accumulated Other Comprehensive Income (Loss) [Table]",
        "terseLabel": "Accumulated Other Comprehensive Income Loss [Table]"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossIncomeScheduleOfComponentsAndChangesOfAccumulatedOtherComprehensiveLossIncomeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r62",
      "r66",
      "r226",
      "r748",
      "r798",
      "r799",
      "r935",
      "r936",
      "r937",
      "r951",
      "r952",
      "r953"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "AOCI Attributable to Parent [Member]",
        "terseLabel": "Accumulated Other Comprehensive (Loss) Income"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossIncomeScheduleOfComponentsAndChangesOfAccumulatedOtherComprehensiveLossIncomeDetail",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife": {
     "auth_ref": [
      "r132"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Acquired Finite-Lived Intangible Assets, Weighted Average Useful Life",
        "terseLabel": "Weighted-average useful life of intangible assets"
       }
      }
     },
     "localname": "AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_AdditionalPaidInCapitalCommonStock": {
     "auth_ref": [
      "r39"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Additional Paid in Capital, Common Stock",
        "periodEndLabel": "Additional Paid in Capital, Common Stock, Ending Balance",
        "periodStartLabel": "Additional Paid in Capital, Common Stock, Beginning Balance",
        "terseLabel": "Additional paid-in capital"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "auth_ref": [
      "r614",
      "r615",
      "r616",
      "r951",
      "r952",
      "r953",
      "r1037"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Additional Paid-in Capital [Member]",
        "terseLabel": "Additional Paid-in Capital"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis": {
     "auth_ref": [
      "r299",
      "r300",
      "r301",
      "r302",
      "r303",
      "r369",
      "r370",
      "r371",
      "r372",
      "r381",
      "r447",
      "r448",
      "r455",
      "r456",
      "r457",
      "r458",
      "r459",
      "r460",
      "r614",
      "r615",
      "r616",
      "r637",
      "r638",
      "r639",
      "r640",
      "r658",
      "r659",
      "r660",
      "r671",
      "r672",
      "r673",
      "r674",
      "r675",
      "r676",
      "r677",
      "r678",
      "r679",
      "r680",
      "r681",
      "r682",
      "r692",
      "r693",
      "r695",
      "r696",
      "r697",
      "r698",
      "r699",
      "r700",
      "r716",
      "r717",
      "r722",
      "r723",
      "r724",
      "r725",
      "r743",
      "r744",
      "r745",
      "r746",
      "r747",
      "r748",
      "r767",
      "r768",
      "r769",
      "r796",
      "r797",
      "r798",
      "r799",
      "r800",
      "r801",
      "r802",
      "r803",
      "r804",
      "r805",
      "r806",
      "r807"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by amendment to accounting standards.",
        "label": "Accounting Standards Update [Axis]",
        "terseLabel": "Accounting Standards Update"
       }
      }
     },
     "localname": "AdjustmentsForNewAccountingPronouncementsAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase to additional paid-in capital (APIC) for recognition of cost for restricted stock unit under share-based payment arrangement.",
        "label": "APIC, Share-Based Payment Arrangement, Restricted Stock Unit, Increase for Cost Recognition",
        "terseLabel": "Restricted stock expense"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase to additional paid-in capital (APIC) for recognition of cost for option under share-based payment arrangement.",
        "label": "APIC, Share-Based Payment Arrangement, Option, Increase for Cost Recognition",
        "terseLabel": "Stock-based compensation cost"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalWarrantIssued": {
     "auth_ref": [
      "r160",
      "r164",
      "r169"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in additional paid in capital (APIC) resulting from the issuance of warrants. Includes allocation of proceeds of debt securities issued with detachable stock purchase warrants.",
        "label": "Adjustments to Additional Paid in Capital, Warrant Issued",
        "terseLabel": "Issuance of warrant"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalWarrantIssued",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Adjustments to reconcile net loss to net cash used in operating activities of continuing operations:"
       }
      }
     },
     "localname": "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "auth_ref": [
      "r609"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized.",
        "label": "Share-Based Payment Arrangement, Expense",
        "terseLabel": "Stock-based compensation expense recognized",
        "verboseLabel": "Stock-based compensation expense"
       }
      }
     },
     "localname": "AllocatedShareBasedCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockBasedCompensationCostDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForCreditLossMember": {
     "auth_ref": [
      "r946",
      "r947",
      "r948",
      "r949",
      "r950"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Allowance for credit loss from right to consideration in exchange for good or service transferred to customer when right is conditioned on something other than passage of time.",
        "label": "SEC Schedule, 12-09, Allowance, Credit Loss [Member]",
        "terseLabel": "Provision for credit losses"
       }
      }
     },
     "localname": "AllowanceForCreditLossMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccountsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent": {
     "auth_ref": [
      "r322",
      "r446",
      "r464"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfAccountsReceivableBalancesByReportableSegmentsDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_AccountsReceivableNetCurrent",
       "weight": -1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfReceivablesAndContractLiabilitiesFromContractsWithCustomersDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_AccountsReceivableNetCurrent",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of allowance for credit loss on accounts receivable, classified as current.",
        "label": "Accounts Receivable, Allowance for Credit Loss, Current",
        "negatedLabel": "Provision for credit losses",
        "terseLabel": "Provision for credit losses (in dollars)",
        "verboseLabel": "Provision for credit losses"
       }
      }
     },
     "localname": "AllowanceForDoubtfulAccountsReceivableCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsParentheticalDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfAccountsReceivableBalancesByReportableSegmentsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfReceivablesAndContractLiabilitiesFromContractsWithCustomersDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivableRecoveries": {
     "auth_ref": [
      "r468"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in allowance for credit loss on accounts receivable, from recovery.",
        "label": "Accounts Receivable, Allowance for Credit Loss, Recovery",
        "terseLabel": "Recovery of credit losses"
       }
      }
     },
     "localname": "AllowanceForDoubtfulAccountsReceivableRecoveries",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AmortizationOfDebtDiscountPremium": {
     "auth_ref": [
      "r81",
      "r96",
      "r245",
      "r547"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of noncash expense included in interest expense to amortize debt discount and premium associated with the related debt instruments. Excludes amortization of financing costs. Alternate captions include noncash interest expense.",
        "label": "Amortization of Debt Discount (Premium)",
        "terseLabel": "Amortization of debt discount and royalty financing liability",
        "verboseLabel": "Amortization of debt discount"
       }
      }
     },
     "localname": "AmortizationOfDebtDiscountPremium",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AmortizationOfIntangibleAssets": {
     "auth_ref": [
      "r96",
      "r130",
      "r138"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Amortization of Intangible Assets",
        "terseLabel": "Amortization expense of intangible assets",
        "totalLabel": "Amortization of Intangible Assets, Total"
       }
      }
     },
     "localname": "AmortizationOfIntangibleAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount": {
     "auth_ref": [
      "r390"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount",
        "terseLabel": "Total potential dilutive common shares"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureNetLossPerShareAttributableToAthenexIncCommonStockholdersScheduleWeightedAverageOutstandingSharesOfCommonStockEquivalentsExcludedFromCalculationOfDilutedNetLossPerShareDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis": {
     "auth_ref": [
      "r105"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of antidilutive security.",
        "label": "Antidilutive Securities [Axis]",
        "terseLabel": "Antidilutive Securities"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureNetLossPerShareAttributableToAthenexIncCommonStockholdersScheduleWeightedAverageOutstandingSharesOfCommonStockEquivalentsExcludedFromCalculationOfDilutedNetLossPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]",
        "terseLabel": "Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items]"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureNetLossPerShareAttributableToAthenexIncCommonStockholdersScheduleWeightedAverageOutstandingSharesOfCommonStockEquivalentsExcludedFromCalculationOfDilutedNetLossPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AntidilutiveSecuritiesNameDomain": {
     "auth_ref": [
      "r105"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Antidilutive Securities, Name [Domain]",
        "terseLabel": "Antidilutive Securities, Name"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureNetLossPerShareAttributableToAthenexIncCommonStockholdersScheduleWeightedAverageOutstandingSharesOfCommonStockEquivalentsExcludedFromCalculationOfDilutedNetLossPerShareDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ArrangementsAndNonarrangementTransactionsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Collaborative arrangement and arrangement other than collaborative applicable to revenue-generating activity or operations.",
        "label": "Collaborative Arrangement and Arrangement Other than Collaborative [Domain]",
        "terseLabel": "Collaborative Arrangement and Arrangement Other than Collaborative"
       }
      }
     },
     "localname": "ArrangementsAndNonarrangementTransactionsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredParentheticalDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Assets": {
     "auth_ref": [
      "r255",
      "r280",
      "r318",
      "r350",
      "r416",
      "r428",
      "r434",
      "r451",
      "r519",
      "r520",
      "r522",
      "r523",
      "r524",
      "r526",
      "r528",
      "r530",
      "r531",
      "r664",
      "r668",
      "r691",
      "r911",
      "r986",
      "r987",
      "r1052"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Assets",
        "terseLabel": "Total assets",
        "totalLabel": "Total assets"
       }
      }
     },
     "localname": "Assets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfDepreciationAmortizationAndAssetsBySegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "Assets",
        "verboseLabel": "Total assets:"
       }
      }
     },
     "localname": "AssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfDepreciationAmortizationAndAssetsBySegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsCurrent": {
     "auth_ref": [
      "r309",
      "r325",
      "r350",
      "r451",
      "r519",
      "r520",
      "r522",
      "r523",
      "r524",
      "r526",
      "r528",
      "r530",
      "r531",
      "r664",
      "r668",
      "r691",
      "r911",
      "r986",
      "r987",
      "r1052"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Assets, Current",
        "totalLabel": "Total current assets"
       }
      }
     },
     "localname": "AssetsCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsCurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Current [Abstract]",
        "terseLabel": "Current assets:"
       }
      }
     },
     "localname": "AssetsCurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "auth_ref": [
      "r233"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets, Fair Value Disclosure",
        "terseLabel": "Total assets",
        "totalLabel": "Total assets"
       }
      }
     },
     "localname": "AssetsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsFairValueDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Fair Value Disclosure [Abstract]",
        "terseLabel": "Assets:"
       }
      }
     },
     "localname": "AssetsFairValueDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation": {
     "auth_ref": [
      "r0",
      "r1",
      "r20",
      "r152",
      "r307",
      "r308"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as assets attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Assets",
        "totalLabel": "Total assets attributable to discontinued operations"
       }
      }
     },
     "localname": "AssetsOfDisposalGroupIncludingDiscontinuedOperation",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent": {
     "auth_ref": [
      "r0",
      "r1",
      "r20",
      "r147",
      "r152",
      "r307",
      "r308"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as assets attributable to disposal group held for sale or disposed of, expected to be disposed of within one year or the normal operating cycle, if longer.",
        "label": "Disposal Group, Including Discontinued Operation, Assets, Current",
        "terseLabel": "Discontinued operations, current portion",
        "totalLabel": "Disposal Group, Including Discontinued Operation, Assets, Current, Total"
       }
      }
     },
     "localname": "AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableforsaleSecuritiesMember": {
     "auth_ref": [
      "r449"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Available-for-Sale Securities [Member]",
        "terseLabel": "Available-for-Sale Investment"
       }
      }
     },
     "localname": "AvailableforsaleSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AwardTypeAxis": {
     "auth_ref": [
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r588",
      "r589",
      "r590",
      "r591",
      "r592",
      "r593",
      "r594",
      "r595",
      "r596",
      "r597",
      "r598",
      "r599",
      "r600",
      "r601",
      "r602",
      "r603",
      "r604",
      "r605",
      "r606",
      "r607",
      "r608"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of award under share-based payment arrangement.",
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type"
       }
      }
     },
     "localname": "AwardTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureStockbasedCompensationScheduleOfStatusOfRestrictedStockAwardsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockBasedCompensationCostDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by location on balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Axis]",
        "terseLabel": "Balance Sheet Location"
       }
      }
     },
     "localname": "BalanceSheetLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "auth_ref": [
      "r230",
      "r231"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Location in the balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Domain]",
        "terseLabel": "Balance Sheet Location"
       }
      }
     },
     "localname": "BalanceSheetLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Basis of Accounting, Policy [Policy Text Block]",
        "terseLabel": "Basis of Presentation and Principles of Consolidation"
       }
      }
     },
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BusinessAcquisitionAcquireeDomain": {
     "auth_ref": [
      "r656",
      "r902",
      "r903"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identification of the acquiree in a material business combination (or series of individually immaterial business combinations), which may include the name or other type of identification of the acquiree.",
        "label": "Business Acquisition, Acquiree [Domain]",
        "terseLabel": "Business Acquisition, Acquiree"
       }
      }
     },
     "localname": "BusinessAcquisitionAcquireeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredParentheticalDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationScheduleOfReconciliationOfContingentConsiderationLiabilityRelatedToAcquisitionDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetGoodwillDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BusinessAcquisitionAxis": {
     "auth_ref": [
      "r200",
      "r201",
      "r656",
      "r902",
      "r903"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by business combination or series of individually immaterial business combinations.",
        "label": "Business Acquisition [Axis]",
        "terseLabel": "Global Supply Chain Platform"
       }
      }
     },
     "localname": "BusinessAcquisitionAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredParentheticalDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationScheduleOfReconciliationOfContingentConsiderationLiabilityRelatedToAcquisitionDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetGoodwillDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessAcquisitionContingentConsiderationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Business Acquisition, Contingent Consideration [Line Items]"
       }
      }
     },
     "localname": "BusinessAcquisitionContingentConsiderationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationScheduleOfReconciliationOfContingentConsiderationLiabilityRelatedToAcquisitionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued": {
     "auth_ref": [
      "r214"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of equity interests issued or issuable to acquire entity.",
        "label": "Business Acquisition, Equity Interest Issued or Issuable, Number of Shares",
        "terseLabel": "Business acquisition, common stock issued"
       }
      }
     },
     "localname": "BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredParentheticalDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_BusinessAcquisitionLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Business Acquisition [Line Items]",
        "terseLabel": "Acquisition [Line Items]"
       }
      }
     },
     "localname": "BusinessAcquisitionLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredParentheticalDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired": {
     "auth_ref": [
      "r199"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of voting equity interests acquired at the acquisition date in the business combination.",
        "label": "Business Acquisition, Percentage of Voting Interests Acquired",
        "terseLabel": "Business acquisition, percentage of outstanding shares"
       }
      }
     },
     "localname": "BusinessAcquisitionPercentageOfVotingInterestsAcquired",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_BusinessAcquisitionProFormaInformationTextBlock": {
     "auth_ref": [
      "r1034",
      "r1035"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of pro forma results of operations for a material business acquisition or series of individually immaterial business acquisitions that are material in the aggregate.",
        "label": "Business Acquisition, Pro Forma Information [Table Text Block]",
        "terseLabel": "Schedule of Unaudited Pro Forma Consolidated Financial Information"
       }
      }
     },
     "localname": "BusinessAcquisitionProFormaInformationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BusinessAcquisitionSharePrice": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Price of a single share of a number of saleable stocks paid or offered to be paid in a business combination.",
        "label": "Business Acquisition, Share Price",
        "terseLabel": "Business acquisition, share price"
       }
      }
     },
     "localname": "BusinessAcquisitionSharePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredParentheticalDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss": {
     "auth_ref": [
      "r654",
      "r655"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The pro forma net Income or Loss for the period as if the business combination or combinations had been completed at the beginning of a period.",
        "label": "Business Acquisition, Pro Forma Net Income (Loss)",
        "terseLabel": "Consolidated net loss"
       }
      }
     },
     "localname": "BusinessAcquisitionsProFormaNetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationScheduleOfUnauditedProFormaConsolidatedFinancialInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessAcquisitionsProFormaRevenue": {
     "auth_ref": [
      "r654",
      "r655"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The pro forma revenue for a period as if the business combination or combinations had been completed at the beginning of the period.",
        "label": "Business Acquisition, Pro Forma Revenue",
        "terseLabel": "Consolidated revenue"
       }
      }
     },
     "localname": "BusinessAcquisitionsProFormaRevenue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationScheduleOfUnauditedProFormaConsolidatedFinancialInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationAcquisitionRelatedCosts": {
     "auth_ref": [
      "r198"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents acquisition-related costs incurred to effect a business combination which costs have been expensed during the period. Such costs include finder's fees; advisory, legal, accounting, valuation, and other professional or consulting fees; general administrative costs, including the costs of maintaining an internal acquisitions department; and may include costs of registering and issuing debt and equity securities.",
        "label": "Business Combination, Acquisition Related Costs",
        "terseLabel": "Acquisition-related costs"
       }
      }
     },
     "localname": "BusinessCombinationAcquisitionRelatedCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationConsiderationTransferred1": {
     "auth_ref": [
      "r209",
      "r210",
      "r213"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of consideration transferred, consisting of acquisition-date fair value of assets transferred by the acquirer, liabilities incurred by the acquirer, and equity interest issued by the acquirer.",
        "label": "Business Combination, Consideration Transferred",
        "terseLabel": "Purchase price:",
        "totalLabel": "Business Combination, Consideration Transferred, Total"
       }
      }
     },
     "localname": "BusinessCombinationConsiderationTransferred1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationConsiderationTransferredAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Consideration Transferred [Abstract]",
        "terseLabel": "Preliminary Allocation of Consideration:",
        "verboseLabel": "Allocation of Consideration:"
       }
      }
     },
     "localname": "BusinessCombinationConsiderationTransferredAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable": {
     "auth_ref": [
      "r209",
      "r210"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of equity interests of the acquirer, including instruments or interests issued or issuable in consideration for the business combination.",
        "label": "Equity consideration in connection with acquisition",
        "terseLabel": "Stock issued (711,404 shares at $74.20)",
        "verboseLabel": "Fair value of common stock"
       }
      }
     },
     "localname": "BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1": {
     "auth_ref": [
      "r662",
      "r939"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in the value of a contingent consideration liability, including, but not limited to, differences arising upon settlement.",
        "label": "Business Combination, Contingent Consideration Arrangements, Change in Amount of Contingent Consideration, Liability",
        "terseLabel": "Change in fair value of contingent consideration"
       }
      }
     },
     "localname": "BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationScheduleOfReconciliationOfContingentConsiderationLiabilityRelatedToAcquisitionDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationContingentConsiderationLiability": {
     "auth_ref": [
      "r208",
      "r211",
      "r661"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liability recognized arising from contingent consideration in a business combination.",
        "label": "Business Combination, Contingent Consideration, Liability",
        "periodEndLabel": "Ending balance, inclusive of current and non-current portion",
        "periodStartLabel": "Beginning Balance",
        "terseLabel": "Contingent consideration",
        "totalLabel": "Business Combination, Contingent Consideration, Liability, Total",
        "verboseLabel": "Contingent consideration"
       }
      }
     },
     "localname": "BusinessCombinationContingentConsiderationLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationScheduleOfReconciliationOfContingentConsiderationLiabilityRelatedToAcquisitionDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent": {
     "auth_ref": [
      "r208",
      "r212"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liability recognized arising from contingent consideration in a business combination, expected to be settled within one year or the normal operating cycle, if longer.",
        "label": "Business Combination, Contingent Consideration, Liability, Current",
        "terseLabel": "Current portion of contingent consideration"
       }
      }
     },
     "localname": "BusinessCombinationContingentConsiderationLiabilityCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationContingentConsiderationLiabilityNoncurrent": {
     "auth_ref": [
      "r208",
      "r212"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liability recognized arising from contingent consideration in a business combination, expected to be settled beyond one year or the normal operating cycle, if longer.",
        "label": "Business Combination, Contingent Consideration, Liability, Noncurrent",
        "terseLabel": "Contingent consideration"
       }
      }
     },
     "localname": "BusinessCombinationContingentConsiderationLiabilityNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationDisclosureTextBlock": {
     "auth_ref": [
      "r216",
      "r657"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for a business combination (or series of individually immaterial business combinations) completed during the period, including background, timing, and recognized assets and liabilities. The disclosure may include leverage buyout transactions (as applicable).",
        "label": "Business Combination Disclosure [Text Block]",
        "terseLabel": "ACQUISITIONS",
        "verboseLabel": "Business Combination"
       }
      }
     },
     "localname": "BusinessCombinationDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombination1"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents": {
     "auth_ref": [
      "r203"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions, acquired at the acquisition date. 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.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Cash and Equivalents",
        "terseLabel": "Cash and cash equivalents"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets": {
     "auth_ref": [
      "r203"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset related to consideration paid in advance for costs that provide economic benefits in future periods, and amount of other assets that are expected to be realized or consumed within one year or the normal operating cycle, if longer, acquired at the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Assets, Prepaid Expense and Other Assets",
        "terseLabel": "Prepaid expenses and other current assets"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable": {
     "auth_ref": [
      "r203"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities incurred for goods and services received that are used in an entity's business and related party payables, assumed at the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Liabilities, Accounts Payable",
        "negatedLabel": "Accounts payable"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities": {
     "auth_ref": [
      "r203"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences assumed at the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Deferred Tax Liabilities",
        "negatedLabel": "Deferred income tax liability",
        "terseLabel": "Deferred tax liability"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet": {
     "auth_ref": [
      "r202",
      "r203"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount recognized as of the acquisition date for the identifiable assets acquired in excess of (less than) the aggregate liabilities assumed.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Net",
        "totalLabel": "Total identifiable net assets"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet": {
     "auth_ref": [
      "r203"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount recognized for assets, including goodwill, in excess of (less than) the aggregate liabilities assumed.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired, Goodwill, and Liabilities Assumed, Net",
        "totalLabel": "Total purchase price allocation"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Assets Acquired, Goodwill, and Liabilities Assumed, Net [Abstract]",
        "verboseLabel": "Net assets acquired:"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessCombinationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combinations [Abstract]"
       }
      }
     },
     "localname": "BusinessCombinationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessCombinationsPolicy": {
     "auth_ref": [
      "r197"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for completed business combinations (purchase method, acquisition method or combination of entities under common control). This accounting policy may include a general discussion of the purchase method or acquisition method of accounting (including for example, the treatment accorded contingent consideration, the identification of assets and liabilities, the purchase price allocation process, how the fair values of acquired assets and liabilities are determined) and the entity's specific application thereof. An entity that acquires another entity in a leveraged buyout transaction generally discloses the accounting policy followed by the acquiring entity in determining the basis used to value its interest in the acquired entity, and the rationale for that accounting policy.",
        "label": "Business Combinations Policy [Policy Text Block]",
        "terseLabel": "Business Acquisitions"
       }
      }
     },
     "localname": "BusinessCombinationsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CapitalExpenditureDiscontinuedOperations": {
     "auth_ref": [
      "r19"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of capital expenditure attributable to discontinued operations.",
        "label": "Capital Expenditure, Discontinued Operations",
        "negatedLabel": "Cash paid for capital expenditures",
        "terseLabel": "Cash paid for capital expenditures"
       }
      }
     },
     "localname": "CapitalExpenditureDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalLeaseObligationsIncurred": {
     "auth_ref": [
      "r101",
      "r102"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in lease obligation from new lease.",
        "label": "Lease Obligation Incurred",
        "terseLabel": "Property and equipment financed under finance leases"
       }
      }
     },
     "localname": "CapitalLeaseObligationsIncurred",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalizedComputerSoftwareGross": {
     "auth_ref": [
      "r1077"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before accumulated amortization of capitalized costs for computer software, including but not limited to, acquired and internally developed computer software.",
        "label": "Capitalized Computer Software, Gross",
        "terseLabel": "Computer hardware"
       }
      }
     },
     "localname": "CapitalizedComputerSoftwareGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAcquiredFromAcquisition": {
     "auth_ref": [
      "r83"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the acquisition of business during the period (for example, cash that was held by the acquired business).",
        "label": "Cash Acquired from Acquisition",
        "terseLabel": "Acquisition activity"
       }
      }
     },
     "localname": "CashAcquiredFromAcquisition",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "auth_ref": [
      "r98",
      "r312",
      "r869"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Cash and Cash Equivalents, at Carrying Value",
        "periodEndLabel": "Cash and Cash Equivalents, at Carrying Value, Ending Balance",
        "periodStartLabel": "Cash and Cash Equivalents, at Carrying Value, Beginning Balance",
        "terseLabel": "Cash and cash equivalents",
        "totalLabel": "Cash and Cash Equivalents, at Carrying Value, Total"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsAxis": {
     "auth_ref": [
      "r312"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of cash and cash equivalent balance.",
        "label": "Cash and Cash Equivalents [Axis]",
        "terseLabel": "Cash and Cash Equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CashAndCashEquivalentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Cash and Cash Equivalents [Member]",
        "terseLabel": "Cash and Cash Equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CashAndCashEquivalentsRestrictedCashAndCashEquivalentsPolicy": {
     "auth_ref": [
      "r99",
      "r254"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Entity's cash and cash equivalents accounting policy with respect to restricted balances. Restrictions may include legally restricted deposits held as compensating balances against short-term borrowing arrangements, contracts entered into with others, or company statements of intention with regard to particular deposits; however, time deposits and short-term certificates of deposit are not generally included in legally restricted deposits.",
        "label": "Cash and Cash Equivalents, Restricted Cash and Cash Equivalents, Policy [Policy Text Block]",
        "terseLabel": "Cash, Cash Equivalents, Restricted Cash, and Short-term Investments"
       }
      }
     },
     "localname": "CashAndCashEquivalentsRestrictedCashAndCashEquivalentsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations": {
     "auth_ref": [
      "r91",
      "r98",
      "r103"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations",
        "periodEndLabel": "Cash, cash equivalents, and restricted cash, end of period (See Note 5)",
        "periodStartLabel": "Cash, cash equivalents, and restricted cash beginning of period",
        "totalLabel": "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations, Total"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "auth_ref": [
      "r91",
      "r244"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect",
        "totalLabel": "Net (decrease) increase in cash, cash equivalents, and restricted cash from continuing operations"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Flow, Noncash Investing and Financing Activities Disclosure [Abstract]",
        "terseLabel": "Non-cash investing and financing activities:"
       }
      }
     },
     "localname": "CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CashProvidedByUsedInFinancingActivitiesDiscontinuedOperations": {
     "auth_ref": [
      "r91"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInDiscontinuedOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) of financing activities of 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.",
        "label": "Cash Provided by (Used in) Financing Activities, Discontinued Operations",
        "terseLabel": "Net cash used in financing activities of discontinued operations"
       }
      }
     },
     "localname": "CashProvidedByUsedInFinancingActivitiesDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashProvidedByUsedInInvestingActivitiesDiscontinuedOperations": {
     "auth_ref": [
      "r18",
      "r91"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInDiscontinuedOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) of investing activities of 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.",
        "label": "Cash Provided by (Used in) Investing Activities, Discontinued Operations",
        "terseLabel": "Net cash provided by (used in) investing activities of discontinued operations"
       }
      }
     },
     "localname": "CashProvidedByUsedInInvestingActivitiesDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations": {
     "auth_ref": [
      "r18",
      "r91"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInDiscontinuedOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) of operating activities of discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities.",
        "label": "Cash Provided by (Used in) Operating Activities, Discontinued Operations",
        "terseLabel": "Net cash used in operating activities of discontinued operations"
       }
      }
     },
     "localname": "CashProvidedByUsedInOperatingActivitiesDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CertificatesOfDepositMember": {
     "auth_ref": [
      "r272"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Short to medium-term investment available at banks and savings and loan institutions where a customer agrees to lend money to the institution for a certain amount of time and is paid a predetermined rate of interest. Certificates of deposit (CD) are typically Federal Deposit Insurance Corporation (FDIC) insured.",
        "label": "Certificates of Deposit [Member]",
        "terseLabel": "Short-term Investments - Certificates of Deposits"
       }
      }
     },
     "localname": "CertificatesOfDepositMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdopted": {
     "auth_ref": [
      "r299",
      "r300",
      "r368",
      "r447",
      "r448",
      "r452",
      "r453",
      "r454",
      "r455",
      "r456",
      "r637",
      "r658",
      "r659",
      "r670",
      "r671",
      "r672",
      "r682",
      "r692",
      "r694",
      "r695",
      "r696",
      "r699",
      "r700",
      "r716",
      "r721",
      "r722",
      "r723",
      "r724",
      "r743",
      "r744",
      "r767",
      "r768",
      "r796",
      "r797"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates (true false) whether accounting standards update was adopted.",
        "label": "Change in Accounting Principle, Accounting Standards Update, Adopted [true false]",
        "terseLabel": "Accounting standards adopted"
       }
      }
     },
     "localname": "ChangeInAccountingPrincipleAccountingStandardsUpdateAdopted",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "booleanItemType"
    },
    "us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdoptionDate": {
     "auth_ref": [
      "r299",
      "r300",
      "r447",
      "r448",
      "r452",
      "r453",
      "r454",
      "r455",
      "r456",
      "r637",
      "r658",
      "r659",
      "r660",
      "r670",
      "r671",
      "r672",
      "r673",
      "r676",
      "r682",
      "r692",
      "r694",
      "r695",
      "r696",
      "r699",
      "r700",
      "r716",
      "r721",
      "r722",
      "r723",
      "r724",
      "r743",
      "r744",
      "r767",
      "r768",
      "r796",
      "r797",
      "r955"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Date accounting standards update was adopted, in YYYY-MM-DD format.",
        "label": "Change in Accounting Principle, Accounting Standards Update, Adoption Date",
        "terseLabel": "Accounting standards adoption date"
       }
      }
     },
     "localname": "ChangeInAccountingPrincipleAccountingStandardsUpdateAdoptionDate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "us-gaap_ChangeInContractWithCustomerLiabilityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Change in Contract with Customer, Liability [Abstract]"
       }
      }
     },
     "localname": "ChangeInContractWithCustomerLiabilityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ClassOfWarrantOrRightAxis": {
     "auth_ref": [
      "r176",
      "r177"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of warrant or right issued.",
        "label": "Class of Warrant or Right [Axis]"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ClassOfWarrantOrRightDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Class of Warrant or Right [Domain]"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1": {
     "auth_ref": [
      "r551"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Exercise price per share or per unit of warrants or rights outstanding.",
        "label": "Class of Warrant or Right, Exercise Price of Warrants or Rights",
        "terseLabel": "Purchase price",
        "verboseLabel": "Warrant exercise price"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights": {
     "auth_ref": [
      "r551"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Class of Warrant or Right, Number of Securities Called by Warrants or Rights",
        "terseLabel": "Warrant to purchase common stock"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ClassOfWarrantOrRightOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of warrants or rights outstanding.",
        "label": "Class of Warrant or Right, Outstanding",
        "terseLabel": "Warrants to purchase common stock outstanding"
       }
      }
     },
     "localname": "ClassOfWarrantOrRightOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CoVenturerMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other venturer from the perspective of the entity in the corporate joint venture.",
        "label": "Co-venturer [Member]",
        "terseLabel": "XLifeSc"
       }
      }
     },
     "localname": "CoVenturerMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommercialPaperMember": {
     "auth_ref": [
      "r158"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unsecured promissory note (generally negotiable) that provides institutions with short-term funds.",
        "label": "Commercial Paper [Member]",
        "terseLabel": "Short-term Investments - Commercial Paper"
       }
      }
     },
     "localname": "CommercialPaperMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommitmentsAndContingencies": {
     "auth_ref": [
      "r56",
      "r266",
      "r288"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Commitments and Contingencies",
        "terseLabel": "Commitments and contingencies (Note 20)"
       }
      }
     },
     "localname": "CommitmentsAndContingencies",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Abstract]"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "auth_ref": [
      "r157",
      "r513",
      "r514",
      "r827",
      "r984"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for commitments and contingencies.",
        "label": "Commitments and Contingencies Disclosure [Text Block]",
        "terseLabel": "Commitments and Contingencies"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingencies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CommonStockCapitalSharesReservedForFutureIssuance": {
     "auth_ref": [
      "r57"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate number of common shares reserved for future issuance.",
        "label": "Common Stock, Capital Shares Reserved for Future Issuance",
        "terseLabel": "Common stock reserved for future issuance"
       }
      }
     },
     "localname": "CommonStockCapitalSharesReservedForFutureIssuance",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockMember": {
     "auth_ref": [
      "r951",
      "r952",
      "r1037"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock that is subordinate to all other stock of the issuer.",
        "label": "Common Stock [Member]",
        "terseLabel": "Common Stock"
       }
      }
     },
     "localname": "CommonStockMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face amount or stated value per share of common stock.",
        "label": "Common Stock, Par or Stated Value Per Share",
        "terseLabel": "Common stock, par value (in dollars per share)",
        "verboseLabel": "Common stock, par value"
       }
      }
     },
     "localname": "CommonStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws.",
        "label": "Common Stock, Shares Authorized",
        "terseLabel": "Common stock, shares authorized"
       }
      }
     },
     "localname": "CommonStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesIssued": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Shares sold",
        "terseLabel": "Common stock, shares issued",
        "totalLabel": "Common Stock, Shares, Issued, Total",
        "verboseLabel": "Common stock issued related to transaction incentive liability"
       }
      }
     },
     "localname": "CommonStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "auth_ref": [
      "r38",
      "r164"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation.",
        "label": "Common Stock, Shares, Outstanding",
        "periodEndLabel": "Common Stock, Shares, Outstanding, Ending Balance",
        "periodStartLabel": "Common Stock, Shares, Outstanding, Beginning Balance",
        "terseLabel": "Common Stock, shares outstanding"
       }
      }
     },
     "localname": "CommonStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockValue": {
     "auth_ref": [
      "r38",
      "r911"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Common Stock, Value, Issued",
        "periodEndLabel": "Common Stock, Value, Issued, Ending Balance",
        "periodStartLabel": "Common Stock, Value, Issued, Beginning Balance",
        "terseLabel": "Common stock, par value $0.001 per share, 25,000,000 and 12,500,000 shares authorized at December 31, 2022 and 2021, respectively; 8,711,696 and 5,590,149 shares issued at December 31, 2022 and 2021, respectively; 8,626,769 and 5,506,503 shares outstanding at December 31, 2022 and 2021, respectively",
        "totalLabel": "Common Stock, Value, Issued, Total",
        "verboseLabel": "Common stock value"
       }
      }
     },
     "localname": "CommonStockValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CompensationRelatedCostsPolicyTextBlock": {
     "auth_ref": [
      "r178"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Compensation Related Costs, Policy [Policy Text Block]",
        "terseLabel": "Stock-Based Compensation"
       }
      }
     },
     "localname": "CompensationRelatedCostsPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of Deferred Tax Assets and Liabilities [Abstract]",
        "terseLabel": "Components of Deferred Tax Assets and Liabilities [Abstract]"
       }
      }
     },
     "localname": "ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "auth_ref": [
      "r69",
      "r332",
      "r334",
      "r342",
      "r785",
      "r792"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Comprehensive Income (Loss), Net of Tax, Attributable to Parent",
        "totalLabel": "Comprehensive loss"
       }
      }
     },
     "localname": "ComprehensiveIncomeNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ComprehensiveIncomeNoteTextBlock": {
     "auth_ref": [
      "r82",
      "r341",
      "r784",
      "r791"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Comprehensive Income (Loss) Note [Text Block]",
        "terseLabel": "Accumulated Other Comprehensive (Loss) Income"
       }
      }
     },
     "localname": "ComprehensiveIncomeNoteTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossIncome"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ComprehensiveIncomePolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for comprehensive income.",
        "label": "Comprehensive Income, Policy [Policy Text Block]",
        "terseLabel": "Comprehensive Income (Loss)"
       }
      }
     },
     "localname": "ComprehensiveIncomePolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ComputerEquipmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Long lived, depreciable assets that are used in the creation, maintenance and utilization of information systems.",
        "label": "Computer Equipment [Member]",
        "terseLabel": "Computer hardware"
       }
      }
     },
     "localname": "ComputerEquipmentMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConcentrationRiskBenchmarkDomain": {
     "auth_ref": [
      "r109",
      "r110",
      "r240",
      "r241",
      "r442",
      "r826"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The denominator in a calculation of a disclosed concentration risk percentage.",
        "label": "Concentration Risk Benchmark [Domain]",
        "terseLabel": "Concentration Risk Benchmark"
       }
      }
     },
     "localname": "ConcentrationRiskBenchmarkDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConcentrationRiskByBenchmarkAxis": {
     "auth_ref": [
      "r109",
      "r110",
      "r240",
      "r241",
      "r442",
      "r808",
      "r826"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by benchmark of concentration risk.",
        "label": "Concentration Risk Benchmark [Axis]",
        "terseLabel": "Concentration Risk Benchmark"
       }
      }
     },
     "localname": "ConcentrationRiskByBenchmarkAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskByTypeAxis": {
     "auth_ref": [
      "r109",
      "r110",
      "r240",
      "r241",
      "r442",
      "r826",
      "r1068"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of concentration risk, for example, but not limited to, asset, liability, net assets, geographic, customer, employees, supplier, lender.",
        "label": "Concentration Risk Type [Axis]",
        "terseLabel": "Concentration Risk Type"
       }
      }
     },
     "localname": "ConcentrationRiskByTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskCreditRisk": {
     "auth_ref": [
      "r276",
      "r400"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for credit risk.",
        "label": "Concentration Risk, Credit Risk, Policy [Policy Text Block]",
        "terseLabel": "Concentration of Credit Risk, Other Risks and Uncertainties"
       }
      }
     },
     "localname": "ConcentrationRiskCreditRisk",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ConcentrationRiskLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Concentration Risk [Line Items]",
        "terseLabel": "Concentration Risk [Line Items]"
       }
      }
     },
     "localname": "ConcentrationRiskLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskPercentage1": {
     "auth_ref": [
      "r109",
      "r110",
      "r240",
      "r241",
      "r442"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Concentration Risk, Percentage",
        "terseLabel": "Concentration risk, percentage"
       }
      }
     },
     "localname": "ConcentrationRiskPercentage1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ConcentrationRiskTable": {
     "auth_ref": [
      "r107",
      "r109",
      "r110",
      "r111",
      "r240",
      "r242",
      "r826"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Describes the nature of a concentration, a benchmark to which it is compared, and the percentage that the risk is to the benchmark.",
        "label": "Concentration Risk [Table]",
        "terseLabel": "Concentration Risk [Table]"
       }
      }
     },
     "localname": "ConcentrationRiskTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskTypeDomain": {
     "auth_ref": [
      "r109",
      "r110",
      "r240",
      "r241",
      "r442",
      "r826"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Concentration Risk Type [Domain]",
        "terseLabel": "Concentration Risk Type"
       }
      }
     },
     "localname": "ConcentrationRiskTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConstructionInProgressGross": {
     "auth_ref": [
      "r149"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of structure or a modification to a structure under construction. Includes recently completed structures or modifications to structures that have not been placed into service.",
        "label": "Construction in Progress, Gross",
        "terseLabel": "Construction in process"
       }
      }
     },
     "localname": "ConstructionInProgressGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ConstructionInProgressMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Construction in Progress [Member]",
        "terseLabel": "Construction in process"
       }
      }
     },
     "localname": "ConstructionInProgressMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ContractWithCustomerAssetAndLiabilityTableTextBlock": {
     "auth_ref": [
      "r992"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Contract with Customer, Contract Asset, Contract Liability, and Receivable [Table Text Block]",
        "terseLabel": "Summary of Receivables and Contract Liabilities From Contracts with Customers"
       }
      }
     },
     "localname": "ContractWithCustomerAssetAndLiabilityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ContractWithCustomerAssetCreditLossExpense": {
     "auth_ref": [
      "r467",
      "r564",
      "r891"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense (reversal of expense) for expected credit loss on right to consideration in exchange for good or service transferred to customer when right is conditioned on something other than passage of time.",
        "label": "Contract with Customer, Asset, Credit Loss Expense (Reversal)",
        "terseLabel": "Provision for expected credit losses related to currency conversion"
       }
      }
     },
     "localname": "ContractWithCustomerAssetCreditLossExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ContractWithCustomerLiability": {
     "auth_ref": [
      "r553",
      "r554",
      "r566"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of obligation to transfer good or service to customer for which consideration has been received or is receivable.",
        "label": "Contract with Customer, Liability",
        "terseLabel": "Total contract liabilities",
        "totalLabel": "Total contract liabilities",
        "verboseLabel": "Deferred revenue"
       }
      }
     },
     "localname": "ContractWithCustomerLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfReceivablesAndContractLiabilitiesFromContractsWithCustomersDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ContractWithCustomerLiabilityCurrent": {
     "auth_ref": [
      "r553",
      "r554",
      "r566"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of obligation to transfer good or service to customer for which consideration has been received or is receivable, classified as current.",
        "label": "Contract with Customer, Liability, Current",
        "terseLabel": "Deferred revenue"
       }
      }
     },
     "localname": "ContractWithCustomerLiabilityCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfReceivablesAndContractLiabilitiesFromContractsWithCustomersDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ContractWithCustomerLiabilityRevenueRecognized": {
     "auth_ref": [
      "r567"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of revenue recognized that was previously included in balance of obligation to transfer good or service to customer for which consideration from customer has been received or is due.",
        "label": "Contract with Customer, Liability, Revenue Recognized",
        "terseLabel": "Revenue recognized"
       }
      }
     },
     "localname": "ContractWithCustomerLiabilityRevenueRecognized",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ConversionGainsAndLossesOnForeignInvestments": {
     "auth_ref": [
      "r243"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents gains or losses resulting from transactions conducted in foreign currencies.",
        "label": "Conversion Gains and Losses on Foreign Investments",
        "terseLabel": "Provision related to currency conversion"
       }
      }
     },
     "localname": "ConversionGainsAndLossesOnForeignInvestments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CostOfGoodsAndServicesSold": {
     "auth_ref": [
      "r78",
      "r765"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 1.0,
       "parentTag": "us-gaap_GrossProfit",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Cost of Goods and Services Sold",
        "terseLabel": "Cost of sales",
        "totalLabel": "Cost of Goods and Services Sold, Total",
        "verboseLabel": "Cost of sales"
       }
      }
     },
     "localname": "CostOfGoodsAndServicesSold",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CostOfSalesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing cost of sales.",
        "label": "Cost of Sales [Member]",
        "terseLabel": "Cost of Sales"
       }
      }
     },
     "localname": "CostOfSalesMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockBasedCompensationCostDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CreditFacilityAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of credit facility. Credit facilities provide capital to borrowers without the need to structure a loan for each borrowing.",
        "label": "Credit Facility [Axis]"
       }
      }
     },
     "localname": "CreditFacilityAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CreditFacilityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of credit facility. Credit facilities provide capital to borrowers without the need to structure a loan for each borrowing.",
        "label": "Credit Facility [Domain]"
       }
      }
     },
     "localname": "CreditFacilityDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CreditLossFinancialInstrumentPolicyTextBlock": {
     "auth_ref": [
      "r461",
      "r462",
      "r463",
      "r465",
      "r466",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for credit loss on financial instrument measured at amortized cost basis, net investment in lease, off-balance sheet credit exposure, and available-for-sale debt security. Includes, but is not limited to, methodology used to estimate allowance for credit loss, how writeoff of uncollectible amount is recognized, and determination of past due status and nonaccrual status.",
        "label": "Credit Loss, Financial Instrument [Policy Text Block]",
        "terseLabel": "Credit Losses"
       }
      }
     },
     "localname": "CreditLossFinancialInstrumentPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CurrentFederalTaxExpenseBenefit": {
     "auth_ref": [
      "r944",
      "r1030",
      "r1032"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_CurrentIncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Current Federal Tax Expense (Benefit)",
        "terseLabel": "Federal"
       }
      }
     },
     "localname": "CurrentFederalTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CurrentForeignTaxExpenseBenefit": {
     "auth_ref": [
      "r944",
      "r1030"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_CurrentIncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current foreign income tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Current Foreign Tax Expense (Benefit)",
        "terseLabel": "Foreign"
       }
      }
     },
     "localname": "CurrentForeignTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CurrentIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r196",
      "r634",
      "r644",
      "r944"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) pertaining to taxable income (loss) from continuing operations.",
        "label": "Current Income Tax Expense (Benefit)",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "CurrentIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Income Tax Expense (Benefit), Continuing Operations [Abstract]",
        "terseLabel": "Current:"
       }
      }
     },
     "localname": "CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CurrentStateAndLocalTaxExpenseBenefit": {
     "auth_ref": [
      "r944",
      "r1030",
      "r1032"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_CurrentIncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Current State and Local Tax Expense (Benefit)",
        "terseLabel": "State"
       }
      }
     },
     "localname": "CurrentStateAndLocalTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CustomerConcentrationRiskMember": {
     "auth_ref": [
      "r108",
      "r442"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Customer Concentration Risk [Member]",
        "terseLabel": "Customer Concentration Risk"
       }
      }
     },
     "localname": "CustomerConcentrationRiskMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CustomerListsMember": {
     "auth_ref": [
      "r205"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information about customers such as their name and contact information; it may also be an extensive database that includes other information about the customers such as their order history and demographic information.",
        "label": "Customer Lists [Member]",
        "terseLabel": "Customer List"
       }
      }
     },
     "localname": "CustomerListsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentAnnualPrincipalPayment": {
     "auth_ref": [
      "r34"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the total principal payments made during the annual reporting period.",
        "label": "Debt Instrument, Annual Principal Payment",
        "terseLabel": "Debt instrument payments"
       }
      }
     },
     "localname": "DebtInstrumentAnnualPrincipalPayment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentAxis": {
     "auth_ref": [
      "r32",
      "r33",
      "r34",
      "r256",
      "r259",
      "r278",
      "r356",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r719",
      "r885",
      "r886",
      "r887",
      "r888",
      "r889",
      "r942"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities.",
        "label": "Debt Instrument [Axis]",
        "terseLabel": "Debt Instrument"
       }
      }
     },
     "localname": "DebtInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtParentheticalDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRestrictedCashAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentBasisSpreadOnVariableRate1": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage points added to the reference rate to compute the variable rate on the debt instrument.",
        "label": "Debt Instrument, Basis Spread on Variable Rate",
        "terseLabel": "Basis spread on variable rate"
       }
      }
     },
     "localname": "DebtInstrumentBasisSpreadOnVariableRate1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentFaceAmount": {
     "auth_ref": [
      "r246",
      "r248",
      "r532",
      "r719",
      "r886",
      "r887"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face (par) amount of debt instrument at time of issuance.",
        "label": "Debt Instrument, Face Amount",
        "terseLabel": "Term loans and commitments",
        "verboseLabel": "Principal value of loan"
       }
      }
     },
     "localname": "DebtInstrumentFaceAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentFrequencyOfPeriodicPayment": {
     "auth_ref": [
      "r53",
      "r273"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of the frequency of periodic payments (monthly, quarterly, annual).",
        "label": "Debt Instrument, Frequency of Periodic Payment",
        "terseLabel": "Frequency of payment"
       }
      }
     },
     "localname": "DebtInstrumentFrequencyOfPeriodicPayment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentInterestRateIncreaseDecrease": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Incremental percentage increase (decrease) in the stated rate on a debt instrument.",
        "label": "Debt Instrument, Interest Rate, Increase (Decrease)",
        "terseLabel": "Debt incremental borrowing rate"
       }
      }
     },
     "localname": "DebtInstrumentInterestRateIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "auth_ref": [
      "r52",
      "r533"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement.",
        "label": "Debt Instrument, Interest Rate, Stated Percentage",
        "terseLabel": "Interest rate"
       }
      }
     },
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentInterestRateTerms": {
     "auth_ref": [
      "r52"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of the interest rate as being fixed or variable, and, if variable, identification of the index or rate on which the interest rate is based and the number of points or percentage added to that index or rate to set the rate, and other pertinent information, such as frequency of rate resets.",
        "label": "Debt Instrument, Interest Rate Terms",
        "terseLabel": "Interest rate terms"
       }
      }
     },
     "localname": "DebtInstrumentInterestRateTerms",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Debt Instrument [Line Items]",
        "terseLabel": "Debt Instrument [Line Items]"
       }
      }
     },
     "localname": "DebtInstrumentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsSummaryOfRoyaltyFinancingLiabilityActivityDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentMaturityDate": {
     "auth_ref": [
      "r326",
      "r885",
      "r1038"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Date when the debt instrument is scheduled to be fully repaid, in YYYY-MM-DD format.",
        "label": "Debt Instrument, Maturity Date",
        "terseLabel": "Senior Credit Agreement, maturity date",
        "verboseLabel": "Debt maturity date"
       }
      }
     },
     "localname": "DebtInstrumentMaturityDate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "auth_ref": [
      "r53",
      "r356",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r719",
      "r885",
      "r886",
      "r887",
      "r888",
      "r889",
      "r942"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The name for the particular debt instrument or borrowing that distinguishes it from other debt instruments or borrowings, including draws against credit facilities.",
        "label": "Debt Instrument, Name [Domain]",
        "terseLabel": "Debt Instrument, Name"
       }
      }
     },
     "localname": "DebtInstrumentNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtParentheticalDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRestrictedCashAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentPeriodicPayment": {
     "auth_ref": [
      "r53",
      "r273"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the required periodic payments including both interest and principal payments.",
        "label": "Debt instrument periodic payment",
        "terseLabel": "Quarterly payments",
        "totalLabel": "Debt Instrument, Periodic Payment, Total"
       }
      }
     },
     "localname": "DebtInstrumentPeriodicPayment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodAxis": {
     "auth_ref": [
      "r274"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information about timing of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period [Axis]"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodDomain": {
     "auth_ref": [
      "r274"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period as defined under terms of the debt agreement for debt redemption features.",
        "label": "Debt Instrument, Redemption, Period [Domain]"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodFiveMember": {
     "auth_ref": [
      "r274"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period five representing fifth most current period of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period Five [Member]",
        "terseLabel": "Quarterly Payment Five",
        "verboseLabel": "Expected To Be Due From Sale of Operations"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodFiveMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodFourMember": {
     "auth_ref": [
      "r274"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period four representing fourth most current period of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period Four [Member]",
        "terseLabel": "Quarterly Payment Four"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodFourMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodOneMember": {
     "auth_ref": [
      "r274"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period one representing most current period of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period One [Member]",
        "terseLabel": "Quarterly Payment One"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodOneMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodThreeMember": {
     "auth_ref": [
      "r274"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period three representing third most current period of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period Three [Member]",
        "terseLabel": "Quarterly Payment Three"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodThreeMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodTwoMember": {
     "auth_ref": [
      "r274"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period two representing second most current period of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period Two [Member]",
        "terseLabel": "Quarterly Payment Two"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodTwoMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentTable": {
     "auth_ref": [
      "r53",
      "r165",
      "r166",
      "r167",
      "r168",
      "r245",
      "r246",
      "r248",
      "r275",
      "r356",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r719",
      "r885",
      "r886",
      "r887",
      "r888",
      "r889",
      "r942"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Schedule of Long-Term Debt Instruments [Table]",
        "terseLabel": "Debt Instrument [Table]"
       }
      }
     },
     "localname": "DebtInstrumentTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsSummaryOfRoyaltyFinancingLiabilityActivityDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentUnamortizedDiscount": {
     "auth_ref": [
      "r245",
      "r248",
      "r991"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after accumulated amortization, of debt discount.",
        "label": "Debt Instrument, Unamortized Discount",
        "terseLabel": "Discount on extinguishment of debt",
        "totalLabel": "Debt Instrument, Unamortized Discount, Total"
       }
      }
     },
     "localname": "DebtInstrumentUnamortizedDiscount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentUnamortizedDiscountNoncurrent": {
     "auth_ref": [
      "r245",
      "r248"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of debt discount to be amortized after one year or the normal operating cycle, if longer.",
        "label": "Debt Instrument, Unamortized Discount, Noncurrent",
        "terseLabel": "Unamortized debt discount"
       }
      }
     },
     "localname": "DebtInstrumentUnamortizedDiscountNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet": {
     "auth_ref": [
      "r247",
      "r538",
      "r549",
      "r886",
      "r887"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unamortized debt discount (premium) and debt issuance costs.",
        "label": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net",
        "terseLabel": "Debt discount and financing fees",
        "totalLabel": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net, Total"
       }
      }
     },
     "localname": "DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredFederalIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r944",
      "r1031",
      "r1032"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_DeferredIncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Deferred Federal Income Tax Expense (Benefit)",
        "terseLabel": "Federal"
       }
      }
     },
     "localname": "DeferredFederalIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredForeignIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r196",
      "r944",
      "r1031"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredIncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred foreign income tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Deferred Foreign Income Tax Expense (Benefit)",
        "terseLabel": "Foreign"
       }
      }
     },
     "localname": "DeferredForeignIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r96",
      "r196",
      "r635",
      "r643",
      "r644",
      "r944"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Deferred Income Tax Expense (Benefit)",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "DeferredIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Income Tax Expense (Benefit), Continuing Operations [Abstract]",
        "terseLabel": "Deferred:"
       }
      }
     },
     "localname": "DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredIncomeTaxLiabilities": {
     "auth_ref": [
      "r35",
      "r36",
      "r258",
      "r277",
      "r628"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences.",
        "label": "Deferred Tax Liabilities, Gross",
        "negatedTotalLabel": "Gross deferred income tax liabilities",
        "totalLabel": "Deferred Tax Liabilities, Gross, Total"
       }
      }
     },
     "localname": "DeferredIncomeTaxLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxLiabilitiesNet": {
     "auth_ref": [
      "r620",
      "r621"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences with jurisdictional netting.",
        "label": "Deferred Income Tax Liabilities, Net",
        "terseLabel": "Deferred tax liabilities",
        "totalLabel": "Deferred Income Tax Liabilities, Net, Total"
       }
      }
     },
     "localname": "DeferredIncomeTaxLiabilitiesNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxesAndTaxCredits": {
     "auth_ref": [
      "r97"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 15.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred income tax expense (benefit) and income tax credits.",
        "label": "Deferred Income Taxes and Tax Credits",
        "terseLabel": "Deferred income taxes",
        "totalLabel": "Deferred Income Taxes and Tax Credits, Total"
       }
      }
     },
     "localname": "DeferredIncomeTaxesAndTaxCredits",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredRevenueArrangementTypeAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of deferred revenue arrangement.",
        "label": "Deferred Revenue Arrangement Type [Axis]",
        "terseLabel": "Deferred Revenue Arrangement Type"
       }
      }
     },
     "localname": "DeferredRevenueArrangementTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredRevenueArrangementTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Category of obligation arising when an entity receives consideration from a customer before achieving certain criteria that must be met for revenue to be recognized.",
        "label": "Deferred Revenue [Domain]",
        "terseLabel": "Deferred Revenue"
       }
      }
     },
     "localname": "DeferredRevenueArrangementTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DeferredRevenueCurrent": {
     "auth_ref": [
      "r931"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail": {
       "order": 9.0,
       "parentTag": "us-gaap_AccruedLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred income and obligation to transfer product and service to customer for which consideration has been received or is receivable, classified as current.",
        "label": "Deferred Revenue, Current",
        "terseLabel": "Deferred revenue",
        "totalLabel": "Deferred Revenue, Current, Total"
       }
      }
     },
     "localname": "DeferredRevenueCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r944",
      "r1031",
      "r1032"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredIncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Deferred State and Local Income Tax Expense (Benefit)",
        "terseLabel": "State"
       }
      }
     },
     "localname": "DeferredStateAndLocalIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetInterestCarryforward": {
     "auth_ref": [
      "r1029"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 6.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible interest carryforward.",
        "label": "Deferred Tax Asset, Interest Carryforward",
        "terseLabel": "Interest expense"
       }
      }
     },
     "localname": "DeferredTaxAssetInterestCarryforward",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsCapitalLossCarryforwards": {
     "auth_ref": [
      "r194",
      "r1029"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 5.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible capital loss carryforwards.",
        "label": "Deferred Tax Assets, Capital Loss Carryforwards",
        "terseLabel": "Capital loss"
       }
      }
     },
     "localname": "DeferredTaxAssetsCapitalLossCarryforwards",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from intangible assets including goodwill.",
        "label": "Deferred Tax Assets, Goodwill and Intangible Assets",
        "terseLabel": "Intangible assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsGoodwillAndIntangibleAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsGross": {
     "auth_ref": [
      "r629"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards.",
        "label": "Deferred Tax Assets, Gross",
        "totalLabel": "Gross deferred income tax assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsInProcessResearchAndDevelopment": {
     "auth_ref": [
      "r194",
      "r1029"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 9.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from in-process research and development costs expensed in connection with a business combination.",
        "label": "Deferred Tax Assets, in Process Research and Development",
        "terseLabel": "Research and development deduction"
       }
      }
     },
     "localname": "DeferredTaxAssetsInProcessResearchAndDevelopment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsNet": {
     "auth_ref": [
      "r1028"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_DeferredTaxLiabilities",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards.",
        "label": "Deferred Tax Assets, Net of Valuation Allowance",
        "totalLabel": "Net deferred income tax assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwards": {
     "auth_ref": [
      "r194",
      "r1029"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards.",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards",
        "terseLabel": "Net operating loss carryforwards",
        "totalLabel": "Deferred Tax Assets, Operating Loss Carryforwards, Total"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwards",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsDomestic": {
     "auth_ref": [
      "r194",
      "r1029"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, Domestic",
        "terseLabel": "Federal net operating losses"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsDomestic",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsForeign": {
     "auth_ref": [
      "r194",
      "r1029"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible foreign operating loss carryforwards.",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, Foreign",
        "terseLabel": "Foreign net operating losses"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsForeign",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards that are not subject to expiration dates.",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, Not Subject to Expiration",
        "terseLabel": "Federal net operating losses, not subject to expiration"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsNotSubjectToExpiration",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal": {
     "auth_ref": [
      "r194",
      "r1029"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible state and local operating loss carryforwards.",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, State and Local",
        "terseLabel": "State net operating losses"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsSubjectToExpiration": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards that are subject to expiration dates.",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, Subject to Expiration",
        "terseLabel": "Federal net operating losses, subject to expiration"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsSubjectToExpiration",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from property, plant, and equipment.",
        "label": "Deferred Tax Assets, Property, Plant and Equipment",
        "terseLabel": "Property and equipment"
       }
      }
     },
     "localname": "DeferredTaxAssetsPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsTaxCreditCarryforwards": {
     "auth_ref": [
      "r193",
      "r194",
      "r1029"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 8.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allocation of a valuation allowances, of deferred tax assets attributable to deductible tax credit carryforwards including, but not limited to, research, foreign, general business, alternative minimum tax, and other deductible tax credit carryforwards.",
        "label": "Deferred Tax Assets, Tax Credit Carryforwards",
        "terseLabel": "Tax credit carryforwards",
        "totalLabel": "Deferred Tax Assets, Tax Credit Carryforwards, Total"
       }
      }
     },
     "localname": "DeferredTaxAssetsTaxCreditCarryforwards",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost": {
     "auth_ref": [
      "r194",
      "r1029"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from share-based compensation.",
        "label": "Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits, Share-Based Compensation Cost",
        "terseLabel": "Stock-based compensation"
       }
      }
     },
     "localname": "DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves": {
     "auth_ref": [
      "r194",
      "r1029"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 10.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences from reserves, classified as other.",
        "label": "Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Reserves",
        "terseLabel": "Reserves and accruals"
       }
      }
     },
     "localname": "DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsReserves",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsValuationAllowance": {
     "auth_ref": [
      "r630"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized.",
        "label": "Deferred Tax Assets, Valuation Allowance",
        "negatedLabel": "Less: valuation allowance",
        "totalLabel": "Deferred Tax Assets, Valuation Allowance, Total"
       }
      }
     },
     "localname": "DeferredTaxAssetsValuationAllowance",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilities": {
     "auth_ref": [
      "r189",
      "r1028"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences without jurisdictional netting.",
        "label": "Deferred Tax Liabilities, Net",
        "negatedTotalLabel": "Net deferred income tax liabilities",
        "totalLabel": "Deferred Tax Liabilities, Net, Total"
       }
      }
     },
     "localname": "DeferredTaxLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets": {
     "auth_ref": [
      "r194",
      "r1029"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from intangible assets including goodwill.",
        "label": "Deferred Tax Liabilities, Goodwill and Intangible Assets",
        "negatedLabel": "Intangible assets",
        "totalLabel": "Deferred Tax Liabilities, Goodwill and Intangible Assets, Total"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesGoodwillAndIntangibleAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment": {
     "auth_ref": [
      "r194",
      "r1029"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from property, plant, and equipment.",
        "label": "Deferred Tax Liabilities, Property, Plant and Equipment",
        "negatedLabel": "Property and equipment"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredIncomeTaxLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Depreciation": {
     "auth_ref": [
      "r96",
      "r148"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Depreciation",
        "terseLabel": "Depreciation Expense",
        "totalLabel": "Depreciation, Total"
       }
      }
     },
     "localname": "Depreciation",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepreciationAndAmortizationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation, Depletion and Amortization [Abstract]",
        "terseLabel": "Total depreciation and amortization"
       }
      }
     },
     "localname": "DepreciationAndAmortizationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfDepreciationAmortizationAndAssetsBySegmentDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DepreciationAndAmortizationDiscontinuedOperations": {
     "auth_ref": [
      "r306",
      "r940"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deprecation and amortization expense attributable to property, plant and equipment and intangible assets of discontinued operations.",
        "label": "Depreciation and Amortization, Discontinued Operations",
        "terseLabel": "Depreciation and amortization expense"
       }
      }
     },
     "localname": "DepreciationAndAmortizationDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepreciationDepletionAndAmortization": {
     "auth_ref": [
      "r96",
      "r411"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate expense recognized in the current period that allocates the cost of tangible assets, intangible assets, or depleting assets to periods that benefit from use of the assets.",
        "label": "Depreciation, Depletion and Amortization",
        "terseLabel": "Depreciation and amortization",
        "totalLabel": "Depreciation, Depletion and Amortization, Total",
        "verboseLabel": "Total consolidated depreciation and amortization"
       }
      }
     },
     "localname": "DepreciationDepletionAndAmortization",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfDepreciationAmortizationAndAssetsBySegmentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisaggregationOfRevenueLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Disaggregation of Revenue [Line Items]",
        "terseLabel": "Disaggregation Of Revenue [Line Items]"
       }
      }
     },
     "localname": "DisaggregationOfRevenueLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisaggregationOfRevenueTable": {
     "auth_ref": [
      "r565",
      "r892",
      "r893",
      "r894",
      "r895",
      "r896",
      "r897",
      "r898"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Disaggregation of Revenue [Table]",
        "terseLabel": "Disaggregation Of Revenue [Table]"
       }
      }
     },
     "localname": "DisaggregationOfRevenueTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisaggregationOfRevenueTableTextBlock": {
     "auth_ref": [
      "r993"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Disaggregation of Revenue [Table Text Block]",
        "terseLabel": "Schedule of Company's Revenue for Reportable Segment by Country Based on Locations of Customer"
       }
      }
     },
     "localname": "DisaggregationOfRevenueTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "auth_ref": [
      "r582",
      "r610",
      "r611",
      "r613",
      "r617",
      "r905"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for share-based payment arrangement.",
        "label": "Share-Based Payment Arrangement [Text Block]",
        "terseLabel": "Stock-Based Compensation"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement [Abstract]"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DiscontinuedOperationAlternativeCashFlowInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Discontinued Operation, Alternative Cash Flow Information [Abstract]"
       }
      }
     },
     "localname": "DiscontinuedOperationAlternativeCashFlowInformationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DiscontinuedOperationGainLossOnDisposalOfDiscontinuedOperationNetOfTax": {
     "auth_ref": [
      "r3",
      "r5",
      "r9",
      "r22"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of gain (loss) not previously recognized resulting from the disposal of a discontinued operation.",
        "label": "Discontinued Operation, Gain (Loss) on Disposal of Discontinued Operation, Net of Tax",
        "negatedLabel": "Gain on sale of discontinued operation",
        "terseLabel": "Gain on sale of discontinued operation",
        "totalLabel": "Discontinued Operation, Gain (Loss) on Disposal of Discontinued Operation, Net of Tax, Total"
       }
      }
     },
     "localname": "DiscontinuedOperationGainLossOnDisposalOfDiscontinuedOperationNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DiscontinuedOperationGainLossOnDisposalStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration": {
     "auth_ref": [
      "r304"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of income or comprehensive income that includes gain (loss) from disposal of discontinued operation.",
        "label": "Discontinued Operation, Gain (Loss) on Disposal, Statement of Income or Comprehensive Income [Extensible Enumeration]"
       }
      }
     },
     "localname": "DiscontinuedOperationGainLossOnDisposalStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax": {
     "auth_ref": [
      "r3",
      "r4",
      "r5",
      "r6",
      "r9",
      "r16",
      "r73",
      "r291"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before tax of income (loss) from a discontinued operation. Includes, but is not limited to, the income (loss) from operations during the phase-out period, gain (loss) on disposal, gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and adjustments to a prior period gain (loss) on disposal.",
        "label": "Pre-tax loss"
       }
      }
     },
     "localname": "DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation": {
     "auth_ref": [
      "r4",
      "r5",
      "r6",
      "r9",
      "r16",
      "r22",
      "r622",
      "r642",
      "r649"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of tax expense (benefit) related to a discontinued operation. Includes, but is not limited to, tax expense (benefit) related to income (loss) from operations during the phase-out period, tax expense (benefit) related to gain (loss) on disposal, tax expense (benefit) related to gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and tax expense (benefit) related to adjustments of a prior period gain (loss) on disposal.",
        "label": "Discontinued Operation, Tax Effect of Discontinued Operation",
        "terseLabel": "Income tax expense"
       }
      }
     },
     "localname": "DiscontinuedOperationTaxEffectOfDiscontinuedOperation",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DiscontinuedOperationsAndDisposalGroupsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Discontinued Operations and Disposal Groups [Abstract]"
       }
      }
     },
     "localname": "DiscontinuedOperationsAndDisposalGroupsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DiscontinuedOperationsDisposedOfBySaleMember": {
     "auth_ref": [
      "r2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Component or group of components disposed of by sale and representing a strategic shift that has or will have a major effect on operations and financial results.",
        "label": "Discontinued Operations, Disposed of by Sale [Member]",
        "terseLabel": "Discontinued Operations, Disposed of by Sale"
       }
      }
     },
     "localname": "DiscontinuedOperationsDisposedOfBySaleMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DiscontinuedOperationsPolicyTextBlock": {
     "auth_ref": [
      "r10",
      "r26"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for discontinued operations. Includes, but is not limited to, method of interest allocation to a discontinued operation.",
        "label": "Discontinued Operations, Policy [Policy Text Block]",
        "terseLabel": "Discontinued Operations"
       }
      }
     },
     "localname": "DiscontinuedOperationsPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisposalGroupClassificationAxis": {
     "auth_ref": [
      "r307"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by disposal group classification.",
        "label": "Disposal Group Classification [Axis]"
       }
      }
     },
     "localname": "DisposalGroupClassificationAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisposalGroupClassificationDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Component or group of components disposed of, including but not limited to, disposal group held-for-sale or disposed of by sale, disposed of by means other than sale, and discontinued operations.",
        "label": "Disposal Group Classification [Domain]"
       }
      }
     },
     "localname": "DisposalGroupClassificationDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsNotesAndLoansReceivableNet": {
     "auth_ref": [
      "r0",
      "r1",
      "r20",
      "r152"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as accounts, notes and loans receivable attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Accounts, Notes and Loans Receivable, Net",
        "terseLabel": "Accounts receivable, net of provision for credit losses"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationAccountsNotesAndLoansReceivableNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsPayable": {
     "auth_ref": [
      "r0",
      "r1",
      "r20",
      "r152"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as accounts payable attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Accounts Payable",
        "terseLabel": "Accounts payable"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationAccountsPayable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsPayableAndAccruedLiabilities": {
     "auth_ref": [
      "r0",
      "r1",
      "r20",
      "r152"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as accounts payable and accrued liabilities attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Accounts Payable and Accrued Liabilities",
        "terseLabel": "Accounts payable and accrued expenses",
        "totalLabel": "Disposal Group, Including Discontinued Operation, Accounts Payable and Accrued Liabilities, Total"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationAccountsPayableAndAccruedLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationAccruedLiabilities": {
     "auth_ref": [
      "r0",
      "r1",
      "r20",
      "r152"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as accrued liabilities attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Accrued Liabilities",
        "terseLabel": "Accrued expenses"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationAccruedLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationAssetsNoncurrent": {
     "auth_ref": [
      "r0",
      "r1",
      "r20",
      "r145",
      "r152",
      "r307",
      "r308"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as assets attributable to disposal group held for sale or disposed of, expected to be disposed of after one year or the normal operating cycle, if longer.",
        "label": "Disposal Group, Including Discontinued Operation, Assets, Noncurrent",
        "terseLabel": "Discontinued operations, non-current portion",
        "totalLabel": "Disposal Group, Including Discontinued Operation, Assets, Noncurrent, Total"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationAssetsNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationBalanceSheetDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disposal Group, Including Discontinued Operation, Balance Sheet Disclosures [Abstract]"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationBalanceSheetDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationConsideration": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of consideration received or receivable for the disposal of assets and liabilities, including discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, Consideration",
        "terseLabel": "Purchase price"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationConsideration",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold": {
     "auth_ref": [
      "r17",
      "r308"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of costs of goods sold attributable to disposal group, including, but not limited to, discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, Costs of Goods Sold",
        "negatedLabel": "Cost of sales",
        "terseLabel": "Cost of sales"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationGeneralAndAdministrativeExpense": {
     "auth_ref": [
      "r17"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of general and administrative expense attributable to disposal group, including, but not limited to, discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, General and Administrative Expense",
        "negatedLabel": "Selling, general, and administrative expenses",
        "terseLabel": "Selling, general, and administrative expenses"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationGeneralAndAdministrativeExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationInterestExpense": {
     "auth_ref": [
      "r7",
      "r8",
      "r17",
      "r26"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 8.0,
       "parentTag": "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest expense attributable to disposal group, including, but not limited to, discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, Interest Expense",
        "negatedLabel": "Interest expense",
        "terseLabel": "Interest expense"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationInterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationInventoryCurrent": {
     "auth_ref": [
      "r0",
      "r1",
      "r20",
      "r147",
      "r152"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as inventory attributable to disposal group, expected to be disposed of within one year or the normal operating cycle, if longer.",
        "label": "Disposal Group, Including Discontinued Operation, Inventory, Current",
        "terseLabel": "Inventories"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationInventoryCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherIncome": {
     "auth_ref": [
      "r17"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 6.0,
       "parentTag": "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of other income attributable to disposal group, including, but not limited to, discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, Other Income",
        "terseLabel": "Other income"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationOtherIncome",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationPrepaidAndOtherAssetsCurrent": {
     "auth_ref": [
      "r0",
      "r1",
      "r20",
      "r147",
      "r152"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as prepaid and other assets attributable to disposal group held for sale or disposed of, expected to be disposed of within one year or the normal operating cycle, if longer.",
        "label": "Disposal Group, Including Discontinued Operation, Prepaid and Other Assets, Current",
        "terseLabel": "Prepaid expenses and other current assets"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationPrepaidAndOtherAssetsCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipment": {
     "auth_ref": [
      "r0",
      "r1",
      "r20",
      "r152"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as property, plant and equipment attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Property, Plant and Equipment",
        "terseLabel": "Property and equipment, net",
        "verboseLabel": "Property and equipment"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue": {
     "auth_ref": [
      "r17",
      "r308"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of revenue attributable to disposal group, including, but not limited to, discontinued operation.",
        "label": "Disposal Group, Including Discontinued Operation, Revenue",
        "terseLabel": "Revenue"
       }
      }
     },
     "localname": "DisposalGroupIncludingDiscontinuedOperationRevenue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisposalGroupNotDiscontinuedOperationIncomeStatementDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disposal Group, Including Discontinued Operation, Income Statement Disclosures [Abstract]"
       }
      }
     },
     "localname": "DisposalGroupNotDiscontinuedOperationIncomeStatementDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock": {
     "auth_ref": [
      "r27",
      "r156"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure related to a disposal group. Includes, but is not limited to, a discontinued operation, disposal classified as held-for-sale or disposed of by means other than sale or disposal of an individually significant component.",
        "label": "Disposal Groups, Including Discontinued Operations, Disclosure [Text Block]",
        "terseLabel": "Discontinued Operations"
       }
      }
     },
     "localname": "DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperations3"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain": {
     "auth_ref": [
      "r902",
      "r903"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of disposal group.",
        "label": "Disposal Group Name [Domain]"
       }
      }
     },
     "localname": "DisposalGroupsIncludingDiscontinuedOperationsNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DomesticCountryMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Designated tax department of the government that is entitled to levy and collect income taxes from the entity in its country of domicile.",
        "label": "Domestic Tax Authority [Member]",
        "terseLabel": "Federal"
       }
      }
     },
     "localname": "DomesticCountryMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DueToRelatedPartiesNoncurrent": {
     "auth_ref": [
      "r54",
      "r521",
      "r522",
      "r523",
      "r529",
      "r530",
      "r531",
      "r752",
      "r945"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Portion of the carrying amount as of the balance sheet date of obligations due all related parties that is payable after one year or beyond the normal operating cycle if longer.",
        "label": "Due to Related Parties, Noncurrent",
        "terseLabel": "Payments due to related parties",
        "totalLabel": "Due to Related Parties, Noncurrent, Total"
       }
      }
     },
     "localname": "DueToRelatedPartiesNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EarningsPerShareAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share [Abstract]",
        "terseLabel": "Basic and diluted loss per Athenex, Inc. common share (Note 16):"
       }
      }
     },
     "localname": "EarningsPerShareAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareBasic": {
     "auth_ref": [
      "r343",
      "r373",
      "r374",
      "r375",
      "r376",
      "r377",
      "r382",
      "r384",
      "r387",
      "r388",
      "r389",
      "r393",
      "r680",
      "r681",
      "r786",
      "r793",
      "r881"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period.",
        "label": "Earnings Per Share, Basic",
        "terseLabel": "Net loss per share attributable to Athenex, Inc. common stockholders, basic",
        "totalLabel": "Net loss per share attributable to Athenex, Inc. common stockholders, basic"
       }
      }
     },
     "localname": "EarningsPerShareBasic",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareDiluted": {
     "auth_ref": [
      "r343",
      "r373",
      "r374",
      "r375",
      "r376",
      "r377",
      "r384",
      "r387",
      "r388",
      "r389",
      "r393",
      "r680",
      "r681",
      "r786",
      "r793",
      "r881"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Earnings Per Share, Diluted",
        "terseLabel": "Net loss per share attributable to Athenex, Inc. common stockholders, diluted",
        "totalLabel": "Net loss per share attributable to Athenex, Inc. common stockholders, diluted"
       }
      }
     },
     "localname": "EarningsPerShareDiluted",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "auth_ref": [
      "r390",
      "r391",
      "r392",
      "r394"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for earnings per share.",
        "label": "Earnings Per Share [Text Block]",
        "terseLabel": "Net Loss per Share Attributable to Athenex, Inc. Common Stockholders"
       }
      }
     },
     "localname": "EarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureNetLossPerShareAttributableToAthenexIncCommonStockholders"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations": {
     "auth_ref": [
      "r1040"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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; 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.",
        "label": "Effect of Exchange Rate on Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations",
        "terseLabel": "Effect of exchange rate changes on cash, cash equivalents, and restricted cash",
        "totalLabel": "Effect of Exchange Rate on Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations, Total"
       }
      }
     },
     "localname": "EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateContinuingOperations": {
     "auth_ref": [
      "r623"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Effective Income Tax Rate Reconciliation, Percent",
        "totalLabel": "Effective rate"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate": {
     "auth_ref": [
      "r352",
      "r623",
      "r646"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of domestic federal statutory tax rate applicable to pretax income (loss).",
        "label": "Effective Income Tax Rate Reconciliation, at Federal Statutory Income Tax Rate, Percent",
        "verboseLabel": "Statutory rate"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance": {
     "auth_ref": [
      "r1026",
      "r1033"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "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 valuation allowance for deferred tax assets.",
        "label": "Effective Income Tax Rate Reconciliation, Change in Deferred Tax Assets Valuation Allowance, Percent",
        "terseLabel": "Valuation allowance"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential": {
     "auth_ref": [
      "r1026",
      "r1033"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "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 statutory income tax expense (benefit) outside of the country of domicile.",
        "label": "Effective Income Tax Rate Reconciliation, Foreign Income Tax Rate Differential, Percent",
        "terseLabel": "Foreign rate differential"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseImpairmentLosses": {
     "auth_ref": [
      "r1026",
      "r1033"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail": {
       "order": 5.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "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 impairment loss.",
        "label": "Effective Income Tax Rate Reconciliation, Nondeductible Expense, Impairment Losses, Percent",
        "terseLabel": "Goodwill Impairment"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationNondeductibleExpenseImpairmentLosses",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments": {
     "auth_ref": [
      "r1026",
      "r1033"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail": {
       "order": 10.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "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 other adjustments.",
        "label": "Effective Income Tax Rate Reconciliation, Other Adjustments, Percent",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationOtherAdjustments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, Other Reconciling Items, Percent [Abstract]",
        "terseLabel": "Effective Income Tax Rate Reconciliation, Other Reconciling Items, Percent [Abstract]"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent": {
     "auth_ref": [
      "r1025",
      "r1026"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying domestic federal statutory income tax rate to pretax income (loss) from continuing operation, attributable to expense for award under share-based payment arrangement. Excludes expense determined to be nondeductible upon grant or after for award under share-based payment arrangement.",
        "label": "Effective Income Tax Rate Reconciliation, Tax Expense (Benefit), Share-Based Payment Arrangement, Percent",
        "terseLabel": "Stock-based compensation"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes": {
     "auth_ref": [
      "r1026",
      "r1033"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Effective Income Tax Rate Reconciliation, State and Local Income Taxes, Percent",
        "terseLabel": "State taxes, net of federal benefit"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationTaxContingenciesForeign": {
     "auth_ref": [
      "r1026",
      "r1033"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail": {
       "order": 9.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "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 foreign income tax contingency.",
        "label": "Effective Income Tax Rate Reconciliation, Tax Contingency, Foreign, Percent",
        "terseLabel": "Sale of China API operations"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationTaxContingenciesForeign",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits": {
     "auth_ref": [
      "r1026",
      "r1033"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail": {
       "order": 7.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "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 tax credits. Including, but not limited to, research credit, foreign tax credit, investment tax credit, and other tax credits.",
        "label": "Effective Income Tax Rate Reconciliation, Tax Credit, Percent",
        "terseLabel": "Tax credits",
        "totalLabel": "Effective Income Tax Rate Reconciliation, Tax Credit, Percent, Total"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationTaxCredits",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeTaxExpenseBenefitFromContinuingOperationsDiffersFromTheFederalStatutoryRateDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EmployeeRelatedLiabilitiesCurrent": {
     "auth_ref": [
      "r50"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_AccruedLiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Employee-related Liabilities, Current",
        "terseLabel": "Accrued wages and benefits",
        "totalLabel": "Employee-related Liabilities, Current, Total"
       }
      }
     },
     "localname": "EmployeeRelatedLiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesScheduleOfAccruedExpensestDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized": {
     "auth_ref": [
      "r612"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost not yet recognized for nonvested award under share-based payment arrangement.",
        "label": "Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount",
        "terseLabel": "Unrecognized compensation cost related to non-vested stock options expected to be recognized",
        "totalLabel": "Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount, Total"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1": {
     "auth_ref": [
      "r612"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition",
        "terseLabel": "Unrecognized compensation expense related to non-vested stock options, weighted-average period of recognition"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions": {
     "auth_ref": [
      "r1023"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost to be recognized for nonvested award under share-based payment arrangement. Excludes share and unit options.",
        "label": "Share-Based Payment Arrangement, Nonvested Award, Excluding Option, Cost Not yet Recognized, Amount",
        "terseLabel": "Unrecognized cost related to non-vested restricted stock awards"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EmployeeStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "An Employee Stock Purchase Plan is a tax-efficient means by which employees of a corporation can purchase the corporation's stock.",
        "label": "Employee Stock [Member]",
        "terseLabel": "Employee Stock Purchase Plan"
       }
      }
     },
     "localname": "EmployeeStockMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EmployeeStockOptionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Share-Based Payment Arrangement, Option [Member]",
        "terseLabel": "Stock Options"
       }
      }
     },
     "localname": "EmployeeStockOptionMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockBasedCompensationCostDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquipmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tangible personal property used to produce goods and services.",
        "label": "Equipment [Member]",
        "terseLabel": "Equipment"
       }
      }
     },
     "localname": "EquipmentMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [Abstract]"
       }
      }
     },
     "localname": "EquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquityComponentDomain": {
     "auth_ref": [
      "r164",
      "r301",
      "r336",
      "r337",
      "r338",
      "r365",
      "r366",
      "r367",
      "r370",
      "r378",
      "r380",
      "r396",
      "r458",
      "r552",
      "r614",
      "r615",
      "r616",
      "r639",
      "r640",
      "r679",
      "r706",
      "r707",
      "r708",
      "r709",
      "r710",
      "r713",
      "r748",
      "r798",
      "r799",
      "r800"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Equity Component [Domain]",
        "terseLabel": "Equity Component"
       }
      }
     },
     "localname": "EquityComponentDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossIncomeScheduleOfComponentsAndChangesOfAccumulatedOtherComprehensiveLossIncomeDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityIssuedInBusinessCombinationFairValueDisclosure": {
     "auth_ref": [
      "r233"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of equity issued in a business combination.",
        "label": "Equity Issued in Business Combination, Fair Value Disclosure",
        "terseLabel": "Fair value of equity shares issued"
       }
      }
     },
     "localname": "EquityIssuedInBusinessCombinationFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityMethodInvestmentOwnershipPercentage": {
     "auth_ref": [
      "r125"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting.",
        "label": "Equity Method Investment, Ownership Percentage",
        "terseLabel": "Percentage of ownership interest",
        "verboseLabel": "Percentage of equity interests"
       }
      }
     },
     "localname": "EquityMethodInvestmentOwnershipPercentage",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EscrowDeposit": {
     "auth_ref": [
      "r264",
      "r828"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The designation of funds furnished by a borrower to a lender to assure future payments of the borrower's real estate taxes and insurance obligations with respect to a mortgaged property. Escrow deposits may be made for a variety of other purposes such as earnest money and contingent payments. This element excludes replacement reserves which are an escrow separately provided for within the US GAAP taxonomy.",
        "label": "Escrow Deposit",
        "terseLabel": "Escrow deposit"
       }
      }
     },
     "localname": "EscrowDeposit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ExciseAndSalesTaxes": {
     "auth_ref": [
      "r340"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of excise and sales taxes included in sales and revenues, which are then deducted as a cost of sales. Includes excise taxes, which are applied to specific types of transactions or items (such as gasoline or alcohol); and sales, use and value added taxes, which are applied to a broad class of revenue-producing transactions involving a wide range of goods and services.",
        "label": "Excise and Sales Taxes",
        "terseLabel": "Value added tax"
       }
      }
     },
     "localname": "ExciseAndSalesTaxes",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "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]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "auth_ref": [
      "r683",
      "r684",
      "r689"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about asset and liability measured at fair value on recurring and nonrecurring basis.",
        "label": "Fair Value, Recurring and Nonrecurring [Table]",
        "terseLabel": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisTextBlock": {
     "auth_ref": [
      "r233",
      "r234",
      "r235"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of assets and liabilities by class, including financial instruments measured at fair value that are classified in shareholders' equity, if any, that are measured at fair value on a nonrecurring basis in periods after initial recognition (for example, impaired assets). Disclosures may include, but are not limited to: (a) the fair value measurements recorded and the reasons for the measurements and (b) the level within the fair value hierarchy in which the fair value measurements are categorized in their entirety (levels 1, 2, 3).",
        "label": "Fair Value Measurements, Nonrecurring [Table Text Block]",
        "terseLabel": "Schedule of Assets Measured at Fair Value on a Non-recurring Basis"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain": {
     "auth_ref": [
      "r236"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of asset.",
        "label": "Asset Class [Domain]",
        "terseLabel": "Asset Class"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueByAssetClassAxis": {
     "auth_ref": [
      "r233",
      "r237"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by class of asset.",
        "label": "Asset Class [Axis]",
        "terseLabel": "Asset Class"
       }
      }
     },
     "localname": "FairValueByAssetClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "auth_ref": [
      "r540",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r684",
      "r759",
      "r760",
      "r761",
      "r886",
      "r887",
      "r899",
      "r900",
      "r901"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient.",
        "label": "Fair Value Hierarchy and NAV [Axis]",
        "terseLabel": "Fair Value Hierarchy and NAV"
       }
      }
     },
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationScheduleOfReconciliationOfContingentConsiderationLiabilityRelatedToAcquisitionDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "auth_ref": [
      "r683",
      "r684",
      "r685",
      "r686",
      "r690"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement frequency.",
        "label": "Measurement Frequency [Axis]"
       }
      }
     },
     "localname": "FairValueByMeasurementFrequencyAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationScheduleOfReconciliationOfContingentConsiderationLiabilityRelatedToAcquisitionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "localname": "FairValueDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "auth_ref": [
      "r688"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Fair Value Disclosures [Text Block]",
        "terseLabel": "Fair Value Measurements"
       }
      }
     },
     "localname": "FairValueDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "auth_ref": [
      "r540",
      "r571",
      "r576",
      "r684",
      "r759",
      "r899",
      "r900",
      "r901"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date.",
        "label": "Fair Value, Inputs, Level 1 [Member]",
        "terseLabel": "Quoted Prices in Active Markets for Identical Assets (Level 1)"
       }
      }
     },
     "localname": "FairValueInputsLevel1Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "auth_ref": [
      "r540",
      "r571",
      "r576",
      "r684",
      "r760",
      "r886",
      "r887",
      "r899",
      "r900",
      "r901"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Fair Value, Inputs, Level 2 [Member]",
        "terseLabel": "Significant Other Observable Inputs (Level 2)"
       }
      }
     },
     "localname": "FairValueInputsLevel2Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "auth_ref": [
      "r540",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r684",
      "r761",
      "r886",
      "r887",
      "r899",
      "r900",
      "r901"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "terseLabel": "Significant Unobservable Inputs (Level 3)",
        "verboseLabel": "Level 3 Inputs"
       }
      }
     },
     "localname": "FairValueInputsLevel3Member",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationScheduleOfReconciliationOfContingentConsiderationLiabilityRelatedToAcquisitionDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement frequency.",
        "label": "Measurement Frequency [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementFrequencyDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationScheduleOfReconciliationOfContingentConsiderationLiabilityRelatedToAcquisitionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationLiabilityTransfersIntoLevel3": {
     "auth_ref": [
      "r687"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfers of financial instrument classified as a liability into level 3 of the fair value hierarchy.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Liability, Transfers Into Level 3",
        "terseLabel": "Fair value liabilities, transfers into Level 3"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationLiabilityTransfersIntoLevel3",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationLiabilityTransfersOutOfLevel3": {
     "auth_ref": [
      "r687"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfers of financial instrument classified as a liability out of level 3 of the fair value hierarchy.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Liability, Transfers out of Level 3",
        "terseLabel": "Fair value liabilities, transfers out of Level 3"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationLiabilityTransfersOutOfLevel3",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3": {
     "auth_ref": [
      "r687"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfer of financial instrument classified as an asset into level 3 of the fair value hierarchy.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Transfers Into Level 3",
        "terseLabel": "Fair value assets, transfers into Level 3"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3": {
     "auth_ref": [
      "r687"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfers of financial instrument classified as an asset out of level 3 of the fair value hierarchy.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3",
        "terseLabel": "Fair value assets, transfers out of Level 3"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "auth_ref": [
      "r540",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r759",
      "r760",
      "r761",
      "r886",
      "r887",
      "r899",
      "r900",
      "r901"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "terseLabel": "Fair Value Hierarchy and NAV"
       }
      }
     },
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationScheduleOfReconciliationOfContingentConsiderationLiabilityRelatedToAcquisitionDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "auth_ref": [
      "r688",
      "r690"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Frequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, frequently measured at fair value.",
        "label": "Fair Value, Recurring [Member]",
        "terseLabel": "Fair Value, Recurring"
       }
      }
     },
     "localname": "FairValueMeasurementsRecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationScheduleOfReconciliationOfContingentConsiderationLiabilityRelatedToAcquisitionDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueOfFinancialInstrumentsPolicy": {
     "auth_ref": [
      "r238",
      "r239"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for determining the fair value of financial instruments.",
        "label": "Fair Value of Financial Instruments, Policy [Policy Text Block]",
        "terseLabel": "Fair Value of Financial Instruments"
       }
      }
     },
     "localname": "FairValueOfFinancialInstrumentsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FinanceLeaseInterestExpense": {
     "auth_ref": [
      "r729",
      "r735",
      "r910"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfComponentsOfLeaseExpenseDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest expense on finance lease liability.",
        "label": "Finance Lease, Interest Expense",
        "terseLabel": "Interest on lease liabilities"
       }
      }
     },
     "localname": "FinanceLeaseInterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfComponentsOfLeaseExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseInterestPaymentOnLiability": {
     "auth_ref": [
      "r731",
      "r737"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest paid on finance lease liability.",
        "label": "Finance Lease, Interest Payment on Liability",
        "negatedLabel": "Operating cash flows from finance leases"
       }
      }
     },
     "localname": "FinanceLeaseInterestPaymentOnLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalCashFlowInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilitiesPaymentsDueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Liability, to be Paid [Abstract]",
        "terseLabel": "Finance Leases"
       }
      }
     },
     "localname": "FinanceLeaseLiabilitiesPaymentsDueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinanceLeaseLiability": {
     "auth_ref": [
      "r727",
      "r742"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail2": {
       "order": 1.0,
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from finance lease.",
        "label": "Finance Lease, Liability",
        "totalLabel": "Total finance lease obligations"
       }
      }
     },
     "localname": "FinanceLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityCurrent": {
     "auth_ref": [
      "r727"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail2": {
       "order": 0.0,
       "parentTag": "us-gaap_FinanceLeaseLiability",
       "weight": 1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail": {
       "order": 0.0,
       "parentTag": "atnx_FinanceLeaseObligations",
       "weight": 1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail": {
       "order": 3.0,
       "parentTag": "atnx_DebtCurrentAndNonCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from finance lease, classified as current.",
        "label": "Finance Lease, Liability, Current",
        "negatedLabel": "Less: Current obligations",
        "terseLabel": "Current obligations of finance leases",
        "verboseLabel": "Current portion of finance lease obligations"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList": {
     "auth_ref": [
      "r728"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of financial position that includes current finance lease liability.",
        "label": "Finance Lease, Liability, Current, Statement of Financial Position [Extensible Enumeration]"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_FinanceLeaseLiabilityNoncurrent": {
     "auth_ref": [
      "r727"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail2": {
       "order": 1.0,
       "parentTag": "us-gaap_FinanceLeaseLiability",
       "weight": 1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail": {
       "order": 1.0,
       "parentTag": "atnx_FinanceLeaseObligations",
       "weight": 1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail": {
       "order": 5.0,
       "parentTag": "atnx_DebtCurrentAndNonCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from finance lease, classified as noncurrent.",
        "label": "Finance Lease, Liability, Noncurrent",
        "terseLabel": "Long-term portion of finance leases",
        "verboseLabel": "Long-term portion of finance lease obligations"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityNoncurrentStatementOfFinancialPositionExtensibleList": {
     "auth_ref": [
      "r728"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of financial position that includes noncurrent finance lease liability.",
        "label": "Finance Lease, Liability, Noncurrent, Statement of Financial Position [Extensible Enumeration]"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityNoncurrentStatementOfFinancialPositionExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDue": {
     "auth_ref": [
      "r742"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payments for finance lease.",
        "label": "Finance Lease, Liability, to be Paid",
        "totalLabel": "Total lease payments"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "auth_ref": [
      "r742"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance 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).",
        "label": "Finance Lease, Liability, to be Paid, Year One",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDueNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive": {
     "auth_ref": [
      "r742"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance 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).",
        "label": "Finance Lease, Liability, to be Paid, Year Five",
        "terseLabel": "2027"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDueYearFive",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour": {
     "auth_ref": [
      "r742"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance 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).",
        "label": "Finance Lease, Liability, to be Paid, Year Four",
        "terseLabel": "2026"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDueYearFour",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree": {
     "auth_ref": [
      "r742"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance 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).",
        "label": "Finance Lease, Liability, to be Paid, Year Three",
        "terseLabel": "2025"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDueYearThree",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo": {
     "auth_ref": [
      "r742"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance 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).",
        "label": "Finance Lease, Liability, to be Paid, Year Two",
        "terseLabel": "2024"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDueYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount": {
     "auth_ref": [
      "r742"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail2": {
       "order": 0.0,
       "parentTag": "us-gaap_FinanceLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for finance lease.",
        "label": "Finance Lease, Liability, Undiscounted Excess Amount",
        "negatedLabel": "Less: Imputed interest"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityUndiscountedExcessAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeasePrincipalPayments": {
     "auth_ref": [
      "r730",
      "r737"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow for principal payment on finance lease.",
        "label": "Finance Lease, Principal Payments",
        "negatedLabel": "Financing cash flows from finance leases"
       }
      }
     },
     "localname": "FinanceLeasePrincipalPayments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalCashFlowInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseRightOfUseAsset": {
     "auth_ref": [
      "r726"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after accumulated amortization, of right-of-use asset from finance lease.",
        "label": "Finance Lease, Right-of-Use Asset, after Accumulated Amortization",
        "totalLabel": "Property and equipment, net"
       }
      }
     },
     "localname": "FinanceLeaseRightOfUseAsset",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseRightOfUseAssetAmortization": {
     "auth_ref": [
      "r729",
      "r735",
      "r910"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfComponentsOfLeaseExpenseDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of amortization expense attributable to right-of-use asset from finance lease.",
        "label": "Finance Lease, Right-of-Use Asset, Amortization",
        "terseLabel": "Amortization of assets"
       }
      }
     },
     "localname": "FinanceLeaseRightOfUseAssetAmortization",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfComponentsOfLeaseExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList": {
     "auth_ref": [
      "r728"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of financial position that includes finance lease right-of-use asset.",
        "label": "Finance Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration]",
        "terseLabel": "Finance Lease, Right-of-Use Asset, Statement of Financial Position [Extensible List]"
       }
      }
     },
     "localname": "FinanceLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_FinanceLeaseWeightedAverageDiscountRatePercent": {
     "auth_ref": [
      "r740",
      "r910"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average discount rate for finance lease calculated at point in time.",
        "label": "Finance Lease, Weighted Average Discount Rate, Percent",
        "terseLabel": "Finance leases"
       }
      }
     },
     "localname": "FinanceLeaseWeightedAverageDiscountRatePercent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_FinanceLeaseWeightedAverageRemainingLeaseTerm1": {
     "auth_ref": [
      "r739",
      "r910"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Finance Lease, Weighted Average Remaining Lease Term",
        "terseLabel": "Finance leases"
       }
      }
     },
     "localname": "FinanceLeaseWeightedAverageRemainingLeaseTerm1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetUsefulLife": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Useful life of finite-lived intangible assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Finite-Lived Intangible Asset, Useful Life",
        "terseLabel": "Acquired finite-lived intangible assets, amortization period"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetUsefulLife",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization": {
     "auth_ref": [
      "r316",
      "r504"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated amount of amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
        "label": "Finite-Lived Intangible Assets, Accumulated Amortization",
        "terseLabel": "Finite-lived intangible asset, Accumulated Amortization"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAccumulatedAmortization",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationExpenseOfFiniteLivedIntangibleAssetsDetail": {
       "order": 5.0,
       "parentTag": "us-gaap_FiniteLivedIntangibleAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Finite-Lived Intangible Asset, Expected Amortization, after Year Five",
        "terseLabel": "Thereafter"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationExpenseOfFiniteLivedIntangibleAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths": {
     "auth_ref": [
      "r139"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationExpenseOfFiniteLivedIntangibleAssetsDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_FiniteLivedIntangibleAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Finite-Lived Intangible Asset, Expected Amortization, Year One",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationExpenseOfFiniteLivedIntangibleAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive": {
     "auth_ref": [
      "r139"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationExpenseOfFiniteLivedIntangibleAssetsDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_FiniteLivedIntangibleAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Finite-Lived Intangible Asset, Expected Amortization, Year Five",
        "terseLabel": "2027"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseYearFive",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationExpenseOfFiniteLivedIntangibleAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour": {
     "auth_ref": [
      "r139"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationExpenseOfFiniteLivedIntangibleAssetsDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_FiniteLivedIntangibleAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Finite-Lived Intangible Asset, Expected Amortization, Year Four",
        "terseLabel": "2026"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseYearFour",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationExpenseOfFiniteLivedIntangibleAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree": {
     "auth_ref": [
      "r139"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationExpenseOfFiniteLivedIntangibleAssetsDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_FiniteLivedIntangibleAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Finite-Lived Intangible Asset, Expected Amortization, Year Three",
        "terseLabel": "2025"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseYearThree",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationExpenseOfFiniteLivedIntangibleAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo": {
     "auth_ref": [
      "r139"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationExpenseOfFiniteLivedIntangibleAssetsDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_FiniteLivedIntangibleAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Finite-Lived Intangible Asset, Expected Amortization, Year Two",
        "terseLabel": "2024"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationExpenseOfFiniteLivedIntangibleAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis": {
     "auth_ref": [
      "r500",
      "r503",
      "r504",
      "r506",
      "r766",
      "r770"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by major type or class of finite-lived intangible assets.",
        "label": "Finite-Lived Intangible Assets by Major Class [Axis]",
        "terseLabel": "Finite-Lived Intangible Assets by Major Class"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsByMajorClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Net, Amortization Expense, Fiscal Year Maturity [Abstract]"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsGross": {
     "auth_ref": [
      "r137",
      "r770"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
        "label": "Finite-Lived Intangible Assets, Gross",
        "terseLabel": "Finite-lived intangible asset, Cost/Fair Value",
        "totalLabel": "Finite-Lived Intangible Assets, Gross, Total"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Finite-Lived Intangible Assets [Line Items]",
        "terseLabel": "Finite Lived Intangible Assets [Line Items]"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain": {
     "auth_ref": [
      "r131",
      "r136"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Finite-Lived Intangible Assets, Major Class Name [Domain]",
        "terseLabel": "Finite-Lived Intangible Assets, Major Class Name"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsMajorClassNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsNet": {
     "auth_ref": [
      "r137",
      "r766"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationExpenseOfFiniteLivedIntangibleAssetsDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
        "label": "Finite-Lived Intangible Assets, Net",
        "periodEndLabel": "Finite-Lived Intangible Assets, Net, Ending Balance",
        "periodStartLabel": "Finite-Lived Intangible Assets, Net, Beginning Balance",
        "terseLabel": "Finite-lived intangible asset, Net",
        "totalLabel": "Finite-lived intangible asset, Net"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationExpenseOfFiniteLivedIntangibleAssetsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinitelivedIntangibleAssetsAcquired1": {
     "auth_ref": [
      "r501"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in assets, excluding financial assets, lacking physical substance with a definite life, from an acquisition.",
        "label": "Finite-Lived Intangible Assets Acquired",
        "terseLabel": "Finite-lived intangible assets acquired"
       }
      }
     },
     "localname": "FinitelivedIntangibleAssetsAcquired1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ForeignCurrencyTransactionsAndTranslationsPolicyTextBlock": {
     "auth_ref": [
      "r715"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Foreign Currency Transactions and Translations Policy [Policy Text Block]",
        "terseLabel": "Functional Currency"
       }
      }
     },
     "localname": "ForeignCurrencyTransactionsAndTranslationsPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FurnitureAndFixturesGross": {
     "auth_ref": [
      "r149"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before accumulated depreciation of equipment commonly used in offices and stores that have no permanent connection to the structure of a building or utilities. Examples include, but are not limited to, desks, chairs, tables, and bookcases.",
        "label": "Furniture and Fixtures, Gross",
        "terseLabel": "Furniture and fixtures"
       }
      }
     },
     "localname": "FurnitureAndFixturesGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FurnitureAndFixturesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equipment commonly used in offices and stores that have no permanent connection to the structure of a building or utilities. Examples include, but are not limited to, desks, chairs, tables, and bookcases.",
        "label": "Furniture and Fixtures [Member]",
        "terseLabel": "Furniture and fixtures"
       }
      }
     },
     "localname": "FurnitureAndFixturesMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_GainLossOnDispositionOfAssets1": {
     "auth_ref": [
      "r940"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) on sale or disposal of assets, including but not limited to property plant and equipment, intangible assets and equity in securities of subsidiaries or equity method investee.",
        "label": "Gain (Loss) on Disposition of Assets",
        "negatedLabel": "Loss (gain) on disposal of assets",
        "terseLabel": "(Gain) loss on disposal of assets",
        "totalLabel": "Gain (Loss) on Disposition of Assets, Total"
       }
      }
     },
     "localname": "GainLossOnDispositionOfAssets1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainsLossesOnExtinguishmentOfDebt": {
     "auth_ref": [
      "r96",
      "r161",
      "r162"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": -1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 3.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Difference between the fair value of payments made and the carrying amount of debt which is extinguished prior to maturity.",
        "label": "Gain (Loss) on Extinguishment of Debt",
        "negatedLabel": "Loss on extinguishment of debt and write-off of deferred issuance costs",
        "negatedTerseLabel": "Loss on extinguishment of debt",
        "terseLabel": "Loss on partial extinguishment of debt",
        "totalLabel": "Gain (Loss) on Extinguishment of Debt, Total"
       }
      }
     },
     "localname": "GainsLossesOnExtinguishmentOfDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Goodwill": {
     "auth_ref": [
      "r315",
      "r486",
      "r783",
      "r884",
      "r911",
      "r966",
      "r973"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after accumulated impairment loss of an asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized.",
        "label": "Goodwill",
        "periodEndLabel": "Ending Balance",
        "periodStartLabel": "Beginning Balance",
        "terseLabel": "Goodwill",
        "totalLabel": "Goodwill, Total"
       }
      }
     },
     "localname": "Goodwill",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetGoodwillDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GoodwillAcquiredDuringPeriod": {
     "auth_ref": [
      "r489",
      "r884"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized resulting from a business combination.",
        "label": "Goodwill, Acquired During Period",
        "terseLabel": "Goodwill acquired in connection with acquisition of Kuur"
       }
      }
     },
     "localname": "GoodwillAcquiredDuringPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetGoodwillDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GoodwillAndIntangibleAssetImpairment": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 2.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total loss recognized during the period from the impairment of goodwill plus the loss recognized in the period resulting from the impairment of the carrying amount of intangible assets, other than goodwill.",
        "label": "Goodwill and Intangible Asset Impairment",
        "terseLabel": "Impairment of goodwill and intangible assets",
        "totalLabel": "Goodwill and Intangible Asset Impairment, Total",
        "verboseLabel": "Impairments"
       }
      }
     },
     "localname": "GoodwillAndIntangibleAssetImpairment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GoodwillAndIntangibleAssetsDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill and Intangible Assets Disclosure [Abstract]"
       }
      }
     },
     "localname": "GoodwillAndIntangibleAssetsDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_GoodwillAndIntangibleAssetsDisclosureTextBlock": {
     "auth_ref": [
      "r142"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for goodwill and intangible assets.",
        "label": "Goodwill and Intangible Assets Disclosure [Text Block]",
        "terseLabel": "Goodwill and Intangible Assets, Net"
       }
      }
     },
     "localname": "GoodwillAndIntangibleAssetsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNet"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_GoodwillAndIntangibleAssetsGoodwillPolicy": {
     "auth_ref": [
      "r498",
      "r499",
      "r884"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for goodwill. This accounting policy also may address how an entity assesses and measures impairment of goodwill, how reporting units are determined, how goodwill is allocated to such units, and how the fair values of the reporting units are determined.",
        "label": "Goodwill and Intangible Assets, Goodwill, Policy [Policy Text Block]",
        "terseLabel": "Goodwill"
       }
      }
     },
     "localname": "GoodwillAndIntangibleAssetsGoodwillPolicy",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_GoodwillAndIntangibleAssetsIntangibleAssetsPolicy": {
     "auth_ref": [
      "r134"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Goodwill and Intangible Assets, Intangible Assets, Policy [Policy Text Block]",
        "terseLabel": "Intangible Assets, net"
       }
      }
     },
     "localname": "GoodwillAndIntangibleAssetsIntangibleAssetsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_GoodwillForeignCurrencyTranslationGainLoss": {
     "auth_ref": [
      "r493"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of foreign currency translation gain (loss) which increases (decreases) an asset representing future economic benefits from other assets acquired in a business combination that are not individually identified and separately recognized.",
        "label": "Goodwill, Foreign Currency Translation Gain (Loss)",
        "negatedLabel": "Effect of currency translation adjustment"
       }
      }
     },
     "localname": "GoodwillForeignCurrencyTranslationGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetGoodwillDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GoodwillImpairmentLoss": {
     "auth_ref": [
      "r96",
      "r487",
      "r492",
      "r498",
      "r884"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of loss from the write-down of an asset representing the future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized.",
        "label": "Goodwill, Impairment Loss",
        "negatedLabel": "Impairment",
        "terseLabel": "Goodwill impairment",
        "verboseLabel": "Impairments"
       }
      }
     },
     "localname": "GoodwillImpairmentLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetGoodwillDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GoodwillLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Goodwill [Line Items]",
        "terseLabel": "Goodwill [Line Items]"
       }
      }
     },
     "localname": "GoodwillLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetGoodwillDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_GrossProfit": {
     "auth_ref": [
      "r76",
      "r350",
      "r416",
      "r427",
      "r433",
      "r436",
      "r451",
      "r519",
      "r520",
      "r522",
      "r523",
      "r524",
      "r526",
      "r528",
      "r530",
      "r531",
      "r691",
      "r883",
      "r986"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 0.0,
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate revenue less cost of goods and services sold or operating expenses directly attributable to the revenue generation activity.",
        "label": "Gross Profit",
        "totalLabel": "Gross profit"
       }
      }
     },
     "localname": "GrossProfit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IPOMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "First sale of stock by a private company to the public.",
        "label": "IPO [Member]",
        "terseLabel": "Public Offering"
       }
      }
     },
     "localname": "IPOMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ImpairmentOfIntangibleAssetFiniteLivedStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration": {
     "auth_ref": [
      "r507"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of income or comprehensive income that includes impairment of finite-lived intangible asset.",
        "label": "Impairment, Intangible Asset, Finite-Lived, Statement of Income or Comprehensive Income [Extensible Enumeration]"
       }
      }
     },
     "localname": "ImpairmentOfIntangibleAssetFiniteLivedStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_ImpairmentOfIntangibleAssetIndefiniteLivedExcludingGoodwillStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration": {
     "auth_ref": [
      "r507"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of income or comprehensive income that includes impairment of indefinite-lived intangible asset excluding goodwill.",
        "label": "Impairment, Intangible Asset, Indefinite-Lived (Excluding Goodwill), Statement of Income or Comprehensive Income [Extensible Enumeration]"
       }
      }
     },
     "localname": "ImpairmentOfIntangibleAssetIndefiniteLivedExcludingGoodwillStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill": {
     "auth_ref": [
      "r96",
      "r141"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of impairment loss recognized in the period resulting from the write-down of the carrying amount of an intangible asset (excluding goodwill) to fair value.",
        "label": "Impairment of Intangible Assets (Excluding Goodwill)",
        "terseLabel": "Intangible assets Impairments",
        "totalLabel": "Impairment of Intangible Assets (Excluding Goodwill), Total",
        "verboseLabel": "Impairments of intangible assets"
       }
      }
     },
     "localname": "ImpairmentOfIntangibleAssetsExcludingGoodwill",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairmentOfIntangibleAssetsFinitelived": {
     "auth_ref": [
      "r940",
      "r977"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Impairment of Intangible Assets, Finite-Lived",
        "terseLabel": "Finite-lived intangible asset, Impairments"
       }
      }
     },
     "localname": "ImpairmentOfIntangibleAssetsFinitelived",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill": {
     "auth_ref": [
      "r940",
      "r977"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of impairment loss resulting from write-down of assets, excluding financial assets and goodwill, lacking physical substance and having a projected indefinite period of benefit to fair value.",
        "label": "Impairment of Intangible Assets, Indefinite-Lived (Excluding Goodwill)",
        "terseLabel": "Indefinite-lived intangible asset, Impairments"
       }
      }
     },
     "localname": "ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf": {
     "auth_ref": [
      "r96",
      "r146"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate amount of write-downs for impairments recognized during the period for long-lived assets held for abandonment, exchange or sale.",
        "label": "Impairment of Long-Lived Assets to be Disposed of",
        "terseLabel": "Impairment of long-lived assets other than goodwill"
       }
      }
     },
     "localname": "ImpairmentOfLongLivedAssetsToBeDisposedOf",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairmentOrDisposalOfLongLivedAssetsPolicyTextBlock": {
     "auth_ref": [
      "r143",
      "r155"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for recognizing and measuring the impairment of long-lived assets. An entity also may disclose its accounting policy for long-lived assets to be sold. This policy excludes goodwill and intangible assets.",
        "label": "Impairment or Disposal of Long-Lived Assets, Policy [Policy Text Block]",
        "terseLabel": "Impairment of Long-Lived Assets"
       }
      }
     },
     "localname": "ImpairmentOrDisposalOfLongLivedAssetsPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InProcessResearchAndDevelopmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "In process investigation of new knowledge useful in developing new product or service or new process or technique or improvement to existing product or process, and translation of knowledge into plan or design for new product or process or for improvement to existing product or process.",
        "label": "In Process Research and Development [Member]",
        "terseLabel": "IPR &amp; D"
       }
      }
     },
     "localname": "InProcessResearchAndDevelopmentMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperations": {
     "auth_ref": [
      "r77",
      "r97",
      "r219",
      "r373",
      "r374",
      "r375",
      "r376",
      "r386",
      "r389"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 1.0,
       "parentTag": "us-gaap_ProfitLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of income (loss) from continuing operations attributable to the parent.",
        "label": "Income (Loss) from Continuing Operations, Net of Tax, Attributable to Parent",
        "terseLabel": "Net loss from continuing operations",
        "totalLabel": "Net loss from continuing operations"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic": {
     "auth_ref": [
      "r351",
      "r645"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeIncomeTaxExpenseBenefitFromContinuingOperationsDetail": {
       "order": 0.0,
       "parentTag": "atnx_IncomeLossFromContinuingAndDiscontinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The portion of earnings or loss from continuing operations before income taxes that is attributable to domestic operations.",
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Domestic",
        "terseLabel": "Domestic"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeIncomeTaxExpenseBenefitFromContinuingOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "auth_ref": [
      "r72",
      "r253",
      "r268",
      "r294",
      "r416",
      "r427",
      "r433",
      "r436",
      "r787",
      "r883"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 0.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Noncontrolling Interest",
        "totalLabel": "Loss from continuing operations before income tax expense (benefit)"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign": {
     "auth_ref": [
      "r351",
      "r645"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeIncomeTaxExpenseBenefitFromContinuingOperationsDetail": {
       "order": 1.0,
       "parentTag": "atnx_IncomeLossFromContinuingAndDiscontinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Foreign",
        "terseLabel": "Foreign"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeIncomeTaxExpenseBenefitFromContinuingOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestmentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income (Loss) from Continuing Operations before Equity Method Investments, Income Taxes, Noncontrolling Interest [Abstract]",
        "terseLabel": "Income (Loss) from Continuing Operations before Equity Method Investments, Income Taxes, Noncontrolling Interest [Abstract]"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestmentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfLossBeforeIncomeTaxExpenseBenefitFromContinuingOperationsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsPerBasicShare": {
     "auth_ref": [
      "r71",
      "r267",
      "r269",
      "r290",
      "r343",
      "r369",
      "r373",
      "r374",
      "r375",
      "r376",
      "r384",
      "r387",
      "r388",
      "r681",
      "r786"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 0.0,
       "parentTag": "us-gaap_EarningsPerShareBasic",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) from continuing operations per each share of common stock or unit outstanding during the reporting period.",
        "label": "Income (Loss) from Continuing Operations, Per Basic Share",
        "terseLabel": "Net loss from continuing operations, Basic"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsPerBasicShare",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare": {
     "auth_ref": [
      "r71",
      "r290",
      "r293",
      "r343",
      "r369",
      "r373",
      "r374",
      "r375",
      "r376",
      "r384",
      "r387",
      "r388",
      "r389",
      "r681",
      "r786",
      "r793"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 0.0,
       "parentTag": "us-gaap_EarningsPerShareDiluted",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) derived from continuing operations during 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.",
        "label": "Income (Loss) from Continuing Operations, Per Diluted Share",
        "terseLabel": "Net loss from continuing operations, Diluted"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsPerDilutedShare",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax": {
     "auth_ref": [
      "r3",
      "r4",
      "r5",
      "r6",
      "r9",
      "r22",
      "r291",
      "r308",
      "r650"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of income (loss) from a discontinued operation including the portion attributable to the noncontrolling interest. Includes, but is not limited to, the income (loss) from operations during the phase-out period, gain (loss) on disposal, gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and adjustments to a prior period gain (loss) on disposal.",
        "label": "Income (Loss) from Discontinued Operations, Net of Tax, Including Portion Attributable to Noncontrolling Interest",
        "negatedTotalLabel": "Loss from discontinued operations",
        "terseLabel": "(Loss) gain from discontinued Dunkirk operations",
        "totalLabel": "(Loss) gain from discontinued operations"
       }
      }
     },
     "localname": "IncomeLossFromDiscontinuedOperationsNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity": {
     "auth_ref": [
      "r3",
      "r4",
      "r5",
      "r6",
      "r9",
      "r16",
      "r22",
      "r220"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 0.0,
       "parentTag": "us-gaap_ProfitLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of income (loss) from a discontinued operation attributable to the parent. Includes, but is not limited to, the income (loss) from operations during the phase-out period, gain (loss) on disposal, gain (loss) for reversal of write-down (write-down) to fair value, less cost to sell, and adjustments to a prior period gain (loss) on disposal.",
        "label": "Income (Loss) from Discontinued Operations, Net of Tax, Attributable to Parent",
        "negatedLabel": "Loss from discontinued operations (Note 3)",
        "terseLabel": "Loss from discontinued operations (Note 4)",
        "totalLabel": "Income (Loss) from Discontinued Operations, Net of Tax, Attributable to Parent, Total",
        "verboseLabel": "Net loss from discontinued operations"
       }
      }
     },
     "localname": "IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerBasicShare": {
     "auth_ref": [
      "r73",
      "r291",
      "r293",
      "r343",
      "r385",
      "r387",
      "r388",
      "r1062",
      "r1064"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 1.0,
       "parentTag": "us-gaap_EarningsPerShareBasic",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Per basic share amount, after tax, of income (loss) from the day-to-day business activities of the discontinued operation and gain (loss) from the disposal of the discontinued operation.",
        "label": "Income (Loss) from Discontinued Operations and Disposal of Discontinued Operations, Net of Tax, Per Basic Share",
        "terseLabel": "Net loss from discontinued operations, Basic",
        "totalLabel": "Income (Loss) from Discontinued Operations and Disposal of Discontinued Operations, Net of Tax, Per Basic Share, Total"
       }
      }
     },
     "localname": "IncomeLossFromDiscontinuedOperationsNetOfTaxPerBasicShare",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerDilutedShare": {
     "auth_ref": [
      "r229",
      "r385",
      "r387",
      "r388"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 1.0,
       "parentTag": "us-gaap_EarningsPerShareDiluted",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Per diluted share amount, after tax, of income (loss) from the day-to-day business activities of the discontinued operation and gain (loss) from the disposal of the discontinued operation.",
        "label": "Income (Loss) from Discontinued Operations and Disposal of Discontinued Operations, Net of Tax, Per Diluted Share",
        "terseLabel": "Net loss from discontinued operations, Diluted",
        "totalLabel": "Income (Loss) from Discontinued Operations and Disposal of Discontinued Operations, Net of Tax, Per Diluted Share, Total"
       }
      }
     },
     "localname": "IncomeLossFromDiscontinuedOperationsNetOfTaxPerDilutedShare",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_IncomeStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "localname": "IncomeStatementAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis": {
     "auth_ref": [
      "r902",
      "r903"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of disposal group.",
        "label": "Disposal Group Name [Axis]"
       }
      }
     },
     "localname": "IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items]"
       }
      }
     },
     "localname": "IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable": {
     "auth_ref": [
      "r1",
      "r10",
      "r11",
      "r12",
      "r13",
      "r14",
      "r15",
      "r21",
      "r23",
      "r24",
      "r25",
      "r153",
      "r154"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about a disposal group. Includes, but is not limited to, a discontinued operation, disposal classified as held-for-sale or disposed of by means other than sale or disposal of an individually significant component.",
        "label": "Disposal Groups, Including Discontinued Operations [Table]"
       }
      }
     },
     "localname": "IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationAxis": {
     "auth_ref": [
      "r508",
      "r510"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by location in the income statement.",
        "label": "Income Statement Location [Axis]",
        "terseLabel": "Income Statement Location"
       }
      }
     },
     "localname": "IncomeStatementLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockBasedCompensationCostDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationDomain": {
     "auth_ref": [
      "r510"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Location in the income statement.",
        "label": "Income Statement Location [Domain]",
        "terseLabel": "Income Statement Location"
       }
      }
     },
     "localname": "IncomeStatementLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockBasedCompensationCostDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeTaxAuthorityAxis": {
     "auth_ref": [
      "r191"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by tax jurisdiction.",
        "label": "Income Tax Authority [Axis]",
        "terseLabel": "Income Tax Authority"
       }
      }
     },
     "localname": "IncomeTaxAuthorityAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxAuthorityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Income Tax Authority [Domain]",
        "terseLabel": "Income Tax Authority"
       }
      }
     },
     "localname": "IncomeTaxAuthorityDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Abstract]"
       }
      }
     },
     "localname": "IncomeTaxDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "auth_ref": [
      "r352",
      "r624",
      "r626",
      "r633",
      "r641",
      "r647",
      "r651",
      "r652",
      "r653"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Income Tax Disclosure [Text Block]",
        "terseLabel": "Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxes"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxExaminationPenaltiesAndInterestExpense": {
     "auth_ref": [
      "r1027"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The sum of the amounts of estimated penalties and interest recognized in the period arising from income tax examinations.",
        "label": "Income Tax Examination, Penalties and Interest Expense",
        "terseLabel": "Interest or penalties related to income taxes",
        "totalLabel": "Income Tax Examination, Penalties and Interest Expense, Total"
       }
      }
     },
     "localname": "IncomeTaxExaminationPenaltiesAndInterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r353",
      "r379",
      "r380",
      "r414",
      "r622",
      "r642",
      "r648",
      "r794"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Income Tax Expense (Benefit)",
        "terseLabel": "Income tax expense (benefit)",
        "totalLabel": "Total",
        "verboseLabel": "Income tax expense (benefit) from continuing operations"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureIncomeTaxesComponentsOfTheIncomeTaxExpenseBenefitFromContinuingOperationsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxPolicyTextBlock": {
     "auth_ref": [
      "r335",
      "r618",
      "r619",
      "r626",
      "r627",
      "r632",
      "r636"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Income Tax, Policy [Policy Text Block]",
        "terseLabel": "Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxesPaid": {
     "auth_ref": [
      "r93",
      "r100"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income.",
        "label": "Income Taxes Paid",
        "terseLabel": "Income taxes paid"
       }
      }
     },
     "localname": "IncomeTaxesPaid",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the amounts payable to vendors for goods and services received and the amount of obligations and expenses incurred but not paid.",
        "label": "Increase (Decrease) in Accounts Payable and Accrued Liabilities",
        "terseLabel": "Accounts payable and accrued expenses",
        "totalLabel": "Increase (Decrease) in Accounts Payable and Accrued Liabilities, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccountsPayableAndAccruedLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInInventories": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Increase (Decrease) in Inventories",
        "negatedLabel": "Inventories",
        "totalLabel": "Increase (Decrease) in Inventories, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInInventories",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOperatingCapitalAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Operating Capital [Abstract]",
        "terseLabel": "Changes in operating assets and liabilities, net of effect of acquisition:"
       }
      }
     },
     "localname": "IncreaseDecreaseInOperatingCapitalAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in prepaid expenses, and assets classified as other.",
        "label": "Increase (Decrease) in Prepaid Expense and Other Assets",
        "negatedLabel": "Prepaid expenses and other assets",
        "totalLabel": "Increase (Decrease) in Prepaid Expense and Other Assets, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInReceivables": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Increase (Decrease) in Receivables",
        "negatedLabel": "Receivables, net",
        "totalLabel": "Increase (Decrease) in Receivables, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInReceivables",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis": {
     "auth_ref": [
      "r502",
      "r505"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type or class of assets, excluding financial assets and goodwill, lacking physical substance and having a projected indefinite period of benefit.",
        "label": "Indefinite-Lived Intangible Assets [Axis]",
        "terseLabel": "Indefinite-lived Intangible Assets"
       }
      }
     },
     "localname": "IndefiniteLivedIntangibleAssetsByMajorClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill": {
     "auth_ref": [
      "r140"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of assets, excluding financial assets and goodwill, lacking physical substance and having a projected indefinite period of benefit.",
        "label": "Indefinite-Lived Intangible Assets (Excluding Goodwill)",
        "periodEndLabel": "Indefinite-lived Intangible Assets (Excluding Goodwill), Ending Balance",
        "periodStartLabel": "Indefinite-lived Intangible Assets (Excluding Goodwill), Beginning Balance",
        "terseLabel": "Indefinite-lived intangible asset, Cost/Fair Value",
        "totalLabel": "Indefinite-lived Intangible Assets (Excluding Goodwill), Total"
       }
      }
     },
     "localname": "IndefiniteLivedIntangibleAssetsExcludingGoodwill",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IndefiniteLivedIntangibleAssetsForeignCurrencyTranslationGainLoss": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of foreign currency translation gain (loss) which increases (decreases) an asset, excluding financial assets and goodwill, lacking physical substance and having a projected indefinite period of benefit to fair value.",
        "label": "Indefinite-Lived Intangible Assets, Foreign Currency Translation Gain (Loss)",
        "terseLabel": "Intangible asset, Effect of currency translation adjustment"
       }
      }
     },
     "localname": "IndefiniteLivedIntangibleAssetsForeignCurrencyTranslationGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain": {
     "auth_ref": [
      "r133",
      "r140"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The major class of indefinite-lived intangible asset (for example, trade names, etc. but not all-inclusive), excluding goodwill. 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 the company.",
        "label": "Indefinite-Lived Intangible Assets, Major Class Name [Domain]",
        "terseLabel": "Indefinite-lived Intangible Assets, Major Class Name"
       }
      }
     },
     "localname": "IndefiniteLivedIntangibleAssetsMajorClassNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IntangibleAssetsGrossExcludingGoodwill": {
     "auth_ref": [
      "r315"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before accumulated amortization of intangible assets, excluding goodwill.",
        "label": "Intangible Assets, Gross (Excluding Goodwill)",
        "terseLabel": "Intangible assets Cost/Fair Value",
        "totalLabel": "Intangible Assets, Gross (Excluding Goodwill), Total"
       }
      }
     },
     "localname": "IntangibleAssetsGrossExcludingGoodwill",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IntangibleAssetsNetExcludingGoodwill": {
     "auth_ref": [
      "r129",
      "r135"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Intangible Assets, Net (Excluding Goodwill)",
        "terseLabel": "Intangible assets, net",
        "totalLabel": "Intangible Assets, Net (Excluding Goodwill), Total"
       }
      }
     },
     "localname": "IntangibleAssetsNetExcludingGoodwill",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpense": {
     "auth_ref": [
      "r247",
      "r271",
      "r339",
      "r410",
      "r718"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the cost of borrowed funds accounted for as interest expense.",
        "label": "Interest Expense",
        "terseLabel": "Interest expense",
        "totalLabel": "Interest Expense, Total",
        "verboseLabel": "Interest expense recognized"
       }
      }
     },
     "localname": "InterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsSummaryOfRoyaltyFinancingLiabilityActivityDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseMember": {
     "auth_ref": [
      "r232"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing interest expense.",
        "label": "Interest Expense [Member]",
        "terseLabel": "Interest Expenses"
       }
      }
     },
     "localname": "InterestExpenseMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestPaidNet": {
     "auth_ref": [
      "r345",
      "r347",
      "r348"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Interest Paid, Excluding Capitalized Interest, Operating Activities",
        "terseLabel": "Interest paid"
       }
      }
     },
     "localname": "InterestPaidNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IntersegmentEliminationMember": {
     "auth_ref": [
      "r408",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r432",
      "r436"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Eliminating entries used in operating segment consolidation.",
        "label": "Intersegment Eliminations [Member]",
        "terseLabel": "Intersegment Eliminations",
        "verboseLabel": "Discontinued operations"
       }
      }
     },
     "localname": "IntersegmentEliminationMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfDepreciationAmortizationAndAssetsBySegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueBySegmentsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfSegmentInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InventoryAdjustments": {
     "auth_ref": [
      "r126",
      "r932"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of inventory reserves for last-in first-out (LIFO) and other inventory valuation methods.",
        "label": "Inventory Adjustments",
        "terseLabel": "Reserves on inventory",
        "totalLabel": "Inventory Adjustments, Total"
       }
      }
     },
     "localname": "InventoryAdjustments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory Disclosure [Abstract]"
       }
      }
     },
     "localname": "InventoryDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_InventoryDisclosureTextBlock": {
     "auth_ref": [
      "r485"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Inventory Disclosure [Text Block]",
        "terseLabel": "Inventories"
       }
      }
     },
     "localname": "InventoryDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureInventories"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InventoryFinishedGoodsNetOfReserves": {
     "auth_ref": [
      "r127",
      "r873"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_InventoryNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Inventory, Finished Goods, Net of Reserves",
        "terseLabel": "Finished goods"
       }
      }
     },
     "localname": "InventoryFinishedGoodsNetOfReserves",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryNet": {
     "auth_ref": [
      "r324",
      "r870",
      "r911"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after valuation and LIFO reserves of inventory expected to be sold, or consumed within one year or operating cycle, if longer.",
        "label": "Inventory, Net",
        "terseLabel": "Inventories",
        "totalLabel": "Total inventories"
       }
      }
     },
     "localname": "InventoryNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryPolicyTextBlock": {
     "auth_ref": [
      "r311",
      "r323",
      "r395",
      "r482",
      "r484",
      "r485",
      "r764",
      "r878"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Inventory, Policy [Policy Text Block]",
        "terseLabel": "Inventories"
       }
      }
     },
     "localname": "InventoryPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InventoryRawMaterialsAndPurchasedPartsNetOfReserves": {
     "auth_ref": [
      "r127",
      "r932"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_InventoryNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount, net of valuation reserves and adjustments, as of the balance sheet date of items purchased for use as components of a finished product or pieces of machinery and equipment plus any items in their natural and unrefined state. This element may be used when the reporting entity combines raw materials and purchased parts into an aggregate amount.",
        "label": "Inventory, Raw Materials and Purchased Parts, Net of Reserves",
        "terseLabel": "Raw materials and purchased parts"
       }
      }
     },
     "localname": "InventoryRawMaterialsAndPurchasedPartsNetOfReserves",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryWorkInProcessNetOfReserves": {
     "auth_ref": [
      "r127",
      "r874"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_InventoryNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Inventory, Work in Process, Net of Reserves",
        "terseLabel": "Work in progress"
       }
      }
     },
     "localname": "InventoryWorkInProcessNetOfReserves",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InventoryWriteDown": {
     "auth_ref": [
      "r483"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of loss from reductions in inventory due to subsequent measurement adjustments, including, but not limited to, physical deterioration, obsolescence, or changes in price levels.",
        "label": "Inventory Write-down",
        "terseLabel": "Write-off of excess and obsolete inventory"
       }
      }
     },
     "localname": "InventoryWriteDown",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentIncomeInterest": {
     "auth_ref": [
      "r80",
      "r409"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before accretion (amortization) of purchase discount (premium) of interest income on nonoperating securities.",
        "label": "Investment Income, Interest",
        "negatedLabel": "Interest and other income"
       }
      }
     },
     "localname": "InvestmentIncomeInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentOwnedBalanceShares": {
     "auth_ref": [
      "r295",
      "r812"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Balance held at close of period in number of shares.",
        "label": "Investment Owned, Balance, Shares",
        "terseLabel": "Number of shares owned by company"
       }
      }
     },
     "localname": "InvestmentOwnedBalanceShares",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_InvestmentTypeAxis": {
     "auth_ref": [
      "r809",
      "r810",
      "r811",
      "r813",
      "r814",
      "r815",
      "r816",
      "r817",
      "r818",
      "r819",
      "r820",
      "r821",
      "r822",
      "r823",
      "r824"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of investments.",
        "label": "Investment Type [Axis]",
        "terseLabel": "Investment Type"
       }
      }
     },
     "localname": "InvestmentTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "auth_ref": [
      "r809",
      "r810",
      "r811",
      "r813",
      "r814",
      "r815",
      "r816",
      "r817",
      "r818",
      "r819",
      "r820",
      "r821",
      "r822",
      "r823",
      "r824"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Asset obtained to generate income or appreciate in value.",
        "label": "Investments [Domain]",
        "terseLabel": "Investments"
       }
      }
     },
     "localname": "InvestmentTypeCategorizationMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Land": {
     "auth_ref": [
      "r930"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before accumulated depletion of real estate held for productive use, excluding land held for sale.",
        "label": "Land",
        "terseLabel": "Land"
       }
      }
     },
     "localname": "Land",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LandMember": {
     "auth_ref": [
      "r994"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Part of earth's surface not covered by water.",
        "label": "Land [Member]",
        "terseLabel": "Land"
       }
      }
     },
     "localname": "LandMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LeaseAgreementsMember": {
     "auth_ref": [
      "r207"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual agreement that stipulates the lessee pay the lessor for use of an asset.",
        "label": "Lease Agreements [Member]",
        "terseLabel": "Lease Agreement"
       }
      }
     },
     "localname": "LeaseAgreementsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LeaseContractualTermAxis": {
     "auth_ref": [
      "r1045"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by contractual term of lease arrangement.",
        "label": "Lease Contractual Term [Axis]"
       }
      }
     },
     "localname": "LeaseContractualTermAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LeaseContractualTermDomain": {
     "auth_ref": [
      "r1045"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual term of lease arrangement.",
        "label": "Lease Contractual Term [Domain]"
       }
      }
     },
     "localname": "LeaseContractualTermDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LeaseCost": {
     "auth_ref": [
      "r741",
      "r910"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfComponentsOfLeaseExpenseDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lease cost recognized by lessee for lease contract.",
        "label": "Lease, Cost",
        "totalLabel": "Total net lease cost"
       }
      }
     },
     "localname": "LeaseCost",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfComponentsOfLeaseExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LeaseCostTableTextBlock": {
     "auth_ref": [
      "r1046"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Lease, Cost [Table Text Block]",
        "terseLabel": "Summary of Components of Lease Expense"
       }
      }
     },
     "localname": "LeaseCostTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LeaseholdImprovementsGross": {
     "auth_ref": [
      "r149"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before accumulated depreciation of additions or improvements to assets held under a lease arrangement.",
        "label": "Leasehold Improvements, Gross",
        "terseLabel": "Leasehold improvements"
       }
      }
     },
     "localname": "LeaseholdImprovementsGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LeaseholdImprovementsMember": {
     "auth_ref": [
      "r149"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Additions or improvements to assets held under a lease arrangement.",
        "label": "Leasehold Improvements [Member]",
        "terseLabel": "Leasehold improvements"
       }
      }
     },
     "localname": "LeaseholdImprovementsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LesseeLeasesPolicyTextBlock": {
     "auth_ref": [
      "r733"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for leasing arrangement entered into by lessee.",
        "label": "Lessee, Leases [Policy Text Block]",
        "terseLabel": "Leases"
       }
      }
     },
     "localname": "LesseeLeasesPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock": {
     "auth_ref": [
      "r1047"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Lessee, Operating Lease, Liability, Maturity [Table Text Block]",
        "terseLabel": "Schedule of Future Minimum Payments Under Non-Cancelable Leases"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue": {
     "auth_ref": [
      "r742"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsUnderNonCancelableLeasesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease.",
        "label": "Lessee, Operating Lease, Liability, to be Paid",
        "totalLabel": "Total lease payments"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsUnderNonCancelableLeasesDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive": {
     "auth_ref": [
      "r742"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsUnderNonCancelableLeasesDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, after Year Five",
        "terseLabel": "2027 and thereafter"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsUnderNonCancelableLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "auth_ref": [
      "r742"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsUnderNonCancelableLeasesDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year One",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsUnderNonCancelableLeasesDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive": {
     "auth_ref": [
      "r742"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Five",
        "terseLabel": "2027"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFive",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour": {
     "auth_ref": [
      "r742"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsUnderNonCancelableLeasesDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Four",
        "terseLabel": "2026"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsUnderNonCancelableLeasesDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree": {
     "auth_ref": [
      "r742"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsUnderNonCancelableLeasesDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Three",
        "terseLabel": "2025"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsUnderNonCancelableLeasesDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo": {
     "auth_ref": [
      "r742"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsUnderNonCancelableLeasesDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Two",
        "terseLabel": "2024"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsUnderNonCancelableLeasesDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount": {
     "auth_ref": [
      "r742"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail2": {
       "order": 0.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for operating lease.",
        "label": "Lessee, Operating Lease, Liability, Undiscounted Excess Amount",
        "negatedLabel": "Less: Imputed interest"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityUndiscountedExcessAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseOptionToExtend": {
     "auth_ref": [
      "r734"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Lessee, Operating Lease, Option to Extend",
        "terseLabel": "Lease term extend"
       }
      }
     },
     "localname": "LesseeOperatingLeaseOptionToExtend",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LesseeOperatingLeaseRenewalTerm": {
     "auth_ref": [
      "r1044"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Lessee, Operating Lease, Renewal Term",
        "terseLabel": "Renewal lease term"
       }
      }
     },
     "localname": "LesseeOperatingLeaseRenewalTerm",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_LesseeOperatingLeaseTermOfContract": {
     "auth_ref": [
      "r1044"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Term of lessee's operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Lessee, Operating Lease, Term of Contract",
        "terseLabel": "Lease term",
        "verboseLabel": "Lease facilities rental agreement duration"
       }
      }
     },
     "localname": "LesseeOperatingLeaseTermOfContract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_LettersOfCreditOutstandingAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of the contingent obligation under letters of credit outstanding as of the reporting date.",
        "label": "Letters of Credit Outstanding, Amount",
        "terseLabel": "Irrevocable letter of credit issued"
       }
      }
     },
     "localname": "LettersOfCreditOutstandingAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Liabilities": {
     "auth_ref": [
      "r49",
      "r350",
      "r451",
      "r519",
      "r520",
      "r522",
      "r523",
      "r524",
      "r526",
      "r528",
      "r530",
      "r531",
      "r665",
      "r668",
      "r669",
      "r691",
      "r882",
      "r986",
      "r1052",
      "r1053"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Liabilities",
        "totalLabel": "Total liabilities"
       }
      }
     },
     "localname": "Liabilities",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "auth_ref": [
      "r43",
      "r261",
      "r286",
      "r911",
      "r943",
      "r965",
      "r1039"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any.",
        "label": "Liabilities and Equity",
        "totalLabel": "Total liabilities and stockholders' (deficit) equity"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities and Equity [Abstract]",
        "terseLabel": "Liabilities and stockholders' equity"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesCurrent": {
     "auth_ref": [
      "r51",
      "r310",
      "r350",
      "r451",
      "r519",
      "r520",
      "r522",
      "r523",
      "r524",
      "r526",
      "r528",
      "r530",
      "r531",
      "r665",
      "r668",
      "r669",
      "r691",
      "r911",
      "r986",
      "r1052",
      "r1053"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Liabilities, Current",
        "totalLabel": "Total current liabilities"
       }
      }
     },
     "localname": "LiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesCurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities, Current [Abstract]",
        "terseLabel": "Current liabilities:"
       }
      }
     },
     "localname": "LiabilitiesCurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesFairValueDisclosure": {
     "auth_ref": [
      "r233"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial and nonfinancial obligations.",
        "label": "Liabilities, Fair Value Disclosure",
        "terseLabel": "Total liabilities",
        "totalLabel": "Total liabilities"
       }
      }
     },
     "localname": "LiabilitiesFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesFairValueDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities, Fair Value Disclosure [Abstract]",
        "terseLabel": "Liabilities:"
       }
      }
     },
     "localname": "LiabilitiesFairValueDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesNoncurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities, Noncurrent [Abstract]",
        "terseLabel": "Long-term liabilities:"
       }
      }
     },
     "localname": "LiabilitiesNoncurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation": {
     "auth_ref": [
      "r0",
      "r1",
      "r20",
      "r152",
      "r307",
      "r308"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as liabilities attributable to disposal group held for sale or disposed of.",
        "label": "Disposal Group, Including Discontinued Operation, Liabilities",
        "totalLabel": "Total liabilities attributable to discontinued operations"
       }
      }
     },
     "localname": "LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsScheduleOfFinancialResultsOfDiscontinuedOperationsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationCurrent": {
     "auth_ref": [
      "r0",
      "r1",
      "r20",
      "r147",
      "r152",
      "r307",
      "r308"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as liabilities attributable to disposal group held for sale or disposed of, expected to be disposed of within one year or the normal operating cycle, if longer.",
        "label": "Disposal Group, Including Discontinued Operation, Liabilities, Current",
        "terseLabel": "Discontinued operations, current portion",
        "totalLabel": "Disposal Group, Including Discontinued Operation, Liabilities, Current, Total"
       }
      }
     },
     "localname": "LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationNoncurrent": {
     "auth_ref": [
      "r0",
      "r1",
      "r20",
      "r145",
      "r152",
      "r307",
      "r308"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 7.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount classified as liabilities attributable to disposal group held for sale or disposed of, expected to be disposed of beyond one year or the normal operating cycle, if longer.",
        "label": "Disposal Group, Including Discontinued Operation, Liabilities, Noncurrent",
        "terseLabel": "Discontinued operations, non-current portion",
        "totalLabel": "Disposal Group, Including Discontinued Operation, Liabilities, Noncurrent, Total"
       }
      }
     },
     "localname": "LiabilitiesOfDisposalGroupIncludingDiscontinuedOperationNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilityForUncertainTaxPositionsCurrent": {
     "auth_ref": [
      "r50"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount recognized for uncertainty in income taxes classified as current.",
        "label": "Liability for Uncertainty in Income Taxes, Current",
        "terseLabel": "Uncertain tax positions"
       }
      }
     },
     "localname": "LiabilityForUncertainTaxPositionsCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LicenseMember": {
     "auth_ref": [
      "r994"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Right to use intangible asset. Intangible asset includes, but is not limited to, patent, copyright, technology, manufacturing process, software or trademark.",
        "label": "License [Member]",
        "terseLabel": "License Revenue",
        "verboseLabel": "License Fees"
       }
      }
     },
     "localname": "LicenseMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByProductGroupDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LicensingAgreementsMember": {
     "auth_ref": [
      "r206"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rights, generally of limited duration, under a license arrangement (for example, to sell or otherwise utilize specified products or processes in a specified territory).",
        "label": "Licensing Agreements [Member]",
        "terseLabel": "Licensing Agreements",
        "verboseLabel": "Licenses"
       }
      }
     },
     "localname": "LicensingAgreementsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetSummaryOfIdentifiableIntangibleAssetNetDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LimitedLiabilityCompanyLLCOrLimitedPartnershipLPMembersOrLimitedPartnersOwnershipInterest": {
     "auth_ref": [
      "r106"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage investment held by members or limited partners of limited liability company (LLC) or limited partnership (LP).",
        "label": "Limited Liability Company or Limited Partnership, Members or Limited Partners, Ownership Interest",
        "terseLabel": "Percentage of ownership in joint venture",
        "verboseLabel": "Percentage of ownership interest of newly formed entity"
       }
      }
     },
     "localname": "LimitedLiabilityCompanyLLCOrLimitedPartnershipLPMembersOrLimitedPartnersOwnershipInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_LimitedPartnersContributedCapital": {
     "auth_ref": [
      "r173"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of capital contributed by the limited partners.",
        "label": "Limited Partners' Contributed Capital",
        "terseLabel": "Capital contributions to joint venture"
       }
      }
     },
     "localname": "LimitedPartnersContributedCapital",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCredit": {
     "auth_ref": [
      "r34",
      "r259",
      "r278"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Long-Term Line of Credit",
        "terseLabel": "Line of credit due",
        "totalLabel": "Long-term Line of Credit, Total",
        "verboseLabel": "Chongqing Maliu credit agreement"
       }
      }
     },
     "localname": "LineOfCredit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCreditFacilityAxis": {
     "auth_ref": [
      "r48",
      "r942"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of lender, which may be a single entity (for example, but not limited to, a bank, pension fund, venture capital firm) or a group of entities that participate in the line of credit.",
        "label": "Lender Name [Axis]",
        "terseLabel": "Lender Name"
       }
      }
     },
     "localname": "LineOfCreditFacilityAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LineOfCreditFacilityCommitmentFeePercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fee, expressed as a percentage of the line of credit facility, for the line of credit facility regardless of whether the facility has been used.",
        "label": "Line of Credit Facility, Commitment Fee Percentage",
        "terseLabel": "Commitment fee percentage will be paid"
       }
      }
     },
     "localname": "LineOfCreditFacilityCommitmentFeePercentage",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity": {
     "auth_ref": [
      "r48"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current borrowing capacity under the credit facility considering any current restrictions on the amount that could be borrowed (for example, borrowings may be limited by the amount of current assets), but without considering any amounts currently outstanding under the facility.",
        "label": "Line of Credit Facility, Current Borrowing Capacity",
        "terseLabel": "Senior Credit Agreement, amount drawn",
        "verboseLabel": "Debt instrument, amount drawn"
       }
      }
     },
     "localname": "LineOfCreditFacilityCurrentBorrowingCapacity",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCreditFacilityFrequencyOfPayments": {
     "auth_ref": [
      "r48"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of the frequency of periodic payments, which may be presented in a variety of ways (for example, monthly, quarterly, annually).",
        "label": "Line of Credit Facility, Frequency of Payments",
        "terseLabel": "Line of credit frequency of payments"
       }
      }
     },
     "localname": "LineOfCreditFacilityFrequencyOfPayments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LineOfCreditFacilityInterestRateDuringPeriod": {
     "auth_ref": [
      "r48"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The effective interest rate during the reporting period.",
        "label": "Line of Credit Facility, Interest Rate During Period",
        "terseLabel": "Long-term line of credit, interest rate"
       }
      }
     },
     "localname": "LineOfCreditFacilityInterestRateDuringPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_LineOfCreditFacilityLenderDomain": {
     "auth_ref": [
      "r48",
      "r942"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identification of the lender, which may be a single entity (for example, a bank, pension fund, venture capital firm) or a group of entities that participate in the line of credit, including a letter of credit facility.",
        "label": "Line of Credit Facility, Lender [Domain]",
        "terseLabel": "Line of Credit Facility, Lender"
       }
      }
     },
     "localname": "LineOfCreditFacilityLenderDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity": {
     "auth_ref": [
      "r48"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Line of Credit Facility, Maximum Borrowing Capacity",
        "terseLabel": "Senior Credit Agreement, maximum borrowing capacity",
        "verboseLabel": "Debt instrument, maximum borrowing capacity"
       }
      }
     },
     "localname": "LineOfCreditFacilityMaximumBorrowingCapacity",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCreditFacilityPeriodicPayment": {
     "auth_ref": [
      "r48"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the required periodic payments of both interest and principal.",
        "label": "Line of Credit Facility, Periodic Payment",
        "terseLabel": "Senior credit agreement payment"
       }
      }
     },
     "localname": "LineOfCreditFacilityPeriodicPayment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity": {
     "auth_ref": [
      "r48"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of borrowing capacity currently available under the credit facility (current borrowing capacity less the amount of borrowings outstanding).",
        "label": "Additional debt amount tranches available",
        "terseLabel": "Senior Credit Agreement, additional debt tranches available",
        "verboseLabel": "Available borrowing capacity upon approval of oral paclitaxel"
       }
      }
     },
     "localname": "LineOfCreditFacilityRemainingBorrowingCapacity",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LitigationReserve": {
     "auth_ref": [
      "r56",
      "r979"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate carrying amount of the estimated litigation liability for known or estimated probable loss from litigation, which may include attorneys' fees and other litigation costs.",
        "label": "Estimated Litigation Liability",
        "terseLabel": "Liability related to class action lawsuit"
       }
      }
     },
     "localname": "LitigationReserve",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LondonInterbankOfferedRateLIBORMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate at which a bank borrows funds from other banks in the London interbank market.",
        "label": "London Interbank Offered Rate (LIBOR) [Member]",
        "terseLabel": "LIBOR"
       }
      }
     },
     "localname": "LondonInterbankOfferedRateLIBORMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LongLivedAssetsByGeographicAreasTableTextBlock": {
     "auth_ref": [
      "r123"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of long-lived assets, excluding financial instruments, long-term customer relationships of a financial institution, mortgage rights, deferred policy acquisition costs, and deferred tax assets, by geographic areas located in the entity's country of domicile and foreign countries in which the entity holds assets.",
        "label": "Long-Lived Assets by Geographic Areas [Table Text Block]",
        "terseLabel": "Summary of Property and Equipment by Geographical Segment"
       }
      }
     },
     "localname": "LongLivedAssetsByGeographicAreasTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent": {
     "auth_ref": [
      "r50"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt and lease obligation, classified as current.",
        "label": "Long-Term Debt and Lease Obligation, Current",
        "terseLabel": "Current portion of long-term debt and finance lease obligations",
        "totalLabel": "Long-term Debt and Lease Obligation, Current, Total"
       }
      }
     },
     "localname": "LongTermDebtAndCapitalLeaseObligationsCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtNoncurrent": {
     "auth_ref": [
      "r319"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail": {
       "order": 8.0,
       "parentTag": "atnx_DebtCurrentAndNonCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, excluding unamortized premium (discount) and debt issuance cost, of long-term debt classified as noncurrent. Excludes lease obligation.",
        "label": "Long-Term Debt, Excluding Current Maturities",
        "terseLabel": "Senior secured loan as long-term debt",
        "totalLabel": "Long-term Debt, Excluding Current Maturities, Total",
        "verboseLabel": "Senior secured loan, net of debt discount and financing fees of $7,698 and $8,663, respectively"
       }
      }
     },
     "localname": "LongTermDebtNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtPercentageBearingFixedInterestRate": {
     "auth_ref": [
      "r52"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The interest rate applicable to the portion of the carrying amount of long-term borrowings outstanding as of the balance sheet date, including current maturities, which accrues interest at a set, unchanging rate.",
        "label": "Long-Term Debt, Percentage Bearing Fixed Interest, Percentage Rate",
        "terseLabel": "Bearing interest at a fixed annual rate"
       }
      }
     },
     "localname": "LongTermDebtPercentageBearingFixedInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "auth_ref": [
      "r53"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of long-term debt.",
        "label": "Long-Term Debt, Type [Axis]",
        "terseLabel": "Long-term Debt, Type"
       }
      }
     },
     "localname": "LongtermDebtTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsSummaryOfRoyaltyFinancingLiabilityActivityDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "auth_ref": [
      "r53",
      "r159"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Long-Term Debt, Type [Domain]",
        "terseLabel": "Long-term Debt, Type"
       }
      }
     },
     "localname": "LongtermDebtTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsSummaryOfRoyaltyFinancingLiabilityActivityDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LossContingencyDamagesSoughtValue": {
     "auth_ref": [
      "r979",
      "r980",
      "r981"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The value (monetary amount) of the award the plaintiff seeks in the legal matter.",
        "label": "Loss Contingency, Damages Sought, Value",
        "terseLabel": "Damages sought value"
       }
      }
     },
     "localname": "LossContingencyDamagesSoughtValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MachineryAndEquipmentGross": {
     "auth_ref": [
      "r149"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before accumulated depreciation of tangible personal property used to produce goods and services, including, but is not limited to, tools, dies and molds, computer and office equipment.",
        "label": "Machinery and Equipment, Gross",
        "terseLabel": "Equipment",
        "totalLabel": "Machinery and Equipment, Gross, Total"
       }
      }
     },
     "localname": "MachineryAndEquipmentGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ManufacturingFacilityMember": {
     "auth_ref": [
      "r149"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Structure used in the manufacturing of goods.",
        "label": "Manufacturing Facility [Member]",
        "terseLabel": "Manufacturing Facility"
       }
      }
     },
     "localname": "ManufacturingFacilityMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MinorityInterest": {
     "auth_ref": [
      "r60",
      "r260",
      "r285",
      "r350",
      "r451",
      "r519",
      "r522",
      "r523",
      "r524",
      "r530",
      "r531",
      "r691"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total of all stockholders' equity (deficit) items, net of receivables from officers, directors, owners, and affiliates of the entity which is directly or indirectly attributable to that ownership interest in subsidiary equity which is not attributable to the parent (that is, noncontrolling interest, previously referred to as minority interest).",
        "label": "Stockholders' Equity Attributable to Noncontrolling Interest",
        "periodEndLabel": "Stockholders' Equity Attributable to Noncontrolling Interest, Ending Balance",
        "periodStartLabel": "Stockholders' Equity Attributable to Noncontrolling Interest, Beginning Balance",
        "terseLabel": "Non-controlling interests",
        "totalLabel": "Stockholders' Equity Attributable to Noncontrolling Interest, Total"
       }
      }
     },
     "localname": "MinorityInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders": {
     "auth_ref": [
      "r169"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Decrease in noncontrolling interest balance from payment of dividends or other distributions by the non-wholly owned subsidiary or partially owned entity, included in the consolidation of the parent entity, to the noncontrolling interest holders.",
        "label": "Noncontrolling Interest, Decrease from Distributions to Noncontrolling Interest Holders",
        "terseLabel": "Controlling interest sold to non-controlling interest"
       }
      }
     },
     "localname": "MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MoneyMarketFundsMember": {
     "auth_ref": [
      "r995"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fund that invests in short-term money-market instruments, for example, but not limited to, commercial paper, banker's acceptances, repurchase agreements, government securities, certificates of deposit, and other highly liquid securities.",
        "label": "Money Market Funds [Member]",
        "terseLabel": "Money Market Funds"
       }
      }
     },
     "localname": "MoneyMarketFundsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NatureOfOperations": {
     "auth_ref": [
      "r397",
      "r403"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for the nature of an entity's business, major products or services, principal markets including location, and the relative importance of its operations in each business and the basis for the determination, including but not limited to, assets, revenues, or earnings. For an entity that has not commenced principal operations, disclosures about the risks and uncertainties related to the activities in which the entity is currently engaged and an understanding of what those activities are being directed toward.",
        "label": "Nature of Operations [Text Block]",
        "terseLabel": "Company and Nature of Business"
       }
      }
     },
     "localname": "NatureOfOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusiness"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NetCashProvidedByUsedInDiscontinuedOperations": {
     "auth_ref": [
      "r91"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (decrease) in cash associated with the entity's discontinued operations.",
        "label": "Net Cash Provided by (Used in) Discontinued Operations",
        "totalLabel": "Net increase (decrease) in cash and cash equivalents from discontinued operations"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations": {
     "auth_ref": [
      "r938"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) of financing activities, excluding 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.",
        "label": "Net Cash Provided by (Used in) Financing Activities, Continuing Operations",
        "totalLabel": "Net cash provided by financing activities of continuing operations"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivitiesContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Financing Activities, Continuing Operations [Abstract]",
        "terseLabel": "Cash flows from financing activities of continuing operations:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations": {
     "auth_ref": [
      "r938"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) of investing activities, excluding 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.",
        "label": "Net Cash Provided by (Used in) Investing Activities, Continuing Operations",
        "totalLabel": "Net cash provided by investing activities of continuing operations"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Investing Activities, Continuing Operations [Abstract]",
        "terseLabel": "Cash flows from investing activities of continuing operations:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations": {
     "auth_ref": [
      "r91",
      "r94",
      "r97"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from operating activities, excluding discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities.",
        "label": "Net Cash Provided by (Used in) Operating Activities, Continuing Operations",
        "totalLabel": "Net cash used in operating activities of continuing operations"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Operating Activities, Continuing Operations [Abstract]",
        "terseLabel": "Cash flows from operating activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivitiesContinuingOperationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLoss": {
     "auth_ref": [
      "r74",
      "r97",
      "r270",
      "r292",
      "r308",
      "r330",
      "r333",
      "r338",
      "r350",
      "r369",
      "r373",
      "r374",
      "r375",
      "r376",
      "r379",
      "r380",
      "r386",
      "r416",
      "r427",
      "r433",
      "r436",
      "r451",
      "r519",
      "r520",
      "r522",
      "r523",
      "r524",
      "r526",
      "r528",
      "r530",
      "r531",
      "r681",
      "r691",
      "r883",
      "r986"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 0.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent.",
        "label": "Net Income (Loss) Attributable to Parent",
        "terseLabel": "Total consolidated net loss attributable to Athenex, Inc.",
        "totalLabel": "Net loss attributable to Athenex, Inc.",
        "verboseLabel": "Contributed net income (loss )"
       }
      }
     },
     "localname": "NetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfSegmentInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAttributableToNoncontrollingInterest": {
     "auth_ref": [
      "r223",
      "r228",
      "r330",
      "r333",
      "r379",
      "r380",
      "r937"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Net Income (Loss) attributable to noncontrolling interest.",
        "label": "Net Income (Loss) Attributable to Noncontrolling Interest",
        "terseLabel": "Less: net loss attributable to non-controlling interests",
        "totalLabel": "Net Income (Loss) Attributable to Noncontrolling Interest, Total"
       }
      }
     },
     "localname": "NetIncomeLossAttributableToNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "New Accounting Pronouncements, Policy [Policy Text Block]",
        "terseLabel": "Recently Accounting Pronouncements Not Yet Adopted"
       }
      }
     },
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NonUsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Countries excluding the United States of America (US).",
        "label": "Non-US [Member]",
        "terseLabel": "Other Foreign Countries"
       }
      }
     },
     "localname": "NonUsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByGeographicalSegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NoncontrollingInterestIncreaseFromSaleOfParentEquityInterest": {
     "auth_ref": [
      "r170",
      "r222",
      "r224"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in noncontrolling interest from sale of a portion of the parent's controlling interest.",
        "label": "Noncontrolling Interest, Increase from Sale of Parent Equity Interest",
        "terseLabel": "Disposal of non-controlling interest"
       }
      }
     },
     "localname": "NoncontrollingInterestIncreaseFromSaleOfParentEquityInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoncontrollingInterestMember": {
     "auth_ref": [
      "r217",
      "r552",
      "r951",
      "r952",
      "r953"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Noncontrolling Interest [Member]",
        "terseLabel": "Non-Controlling Interests"
       }
      }
     },
     "localname": "NoncontrollingInterestMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NonvestedRestrictedStockSharesActivityTableTextBlock": {
     "auth_ref": [
      "r179"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the changes in outstanding nonvested restricted stock shares.",
        "label": "Nonvested Restricted Stock Shares Activity [Table Text Block]",
        "terseLabel": "Schedule of Status of Restricted Stock Awards"
       }
      }
     },
     "localname": "NonvestedRestrictedStockSharesActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NotesPayableToBanksMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A written promise to pay a note to a bank.",
        "label": "Notes Payable to Banks [Member]",
        "terseLabel": "Unsecured, Subordinated Bank Loan from China Merchants Bank"
       }
      }
     },
     "localname": "NotesPayableToBanksMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NumberOfOperatingSegments": {
     "auth_ref": [
      "r959"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Number of Operating Segments",
        "terseLabel": "Number of operating segments"
       }
      }
     },
     "localname": "NumberOfOperatingSegments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_NumberOfReportingUnits": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of reporting units tested for impairment of goodwill. A reporting unit is an operating segment or one level below an operating segment.",
        "label": "Number of Reporting Units",
        "terseLabel": "Number of reporting units"
       }
      }
     },
     "localname": "NumberOfReportingUnits",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_OperatingExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 1.0,
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Generally recurring costs associated with normal operations except for the portion of these expenses which can be clearly related to production and included in cost of sales or services. Includes selling, general and administrative expense.",
        "label": "Operating Expenses",
        "totalLabel": "Total operating expenses"
       }
      }
     },
     "localname": "OperatingExpenses",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingExpensesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Expenses [Abstract]",
        "terseLabel": "Operating expenses:"
       }
      }
     },
     "localname": "OperatingExpensesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OperatingIncomeLoss": {
     "auth_ref": [
      "r416",
      "r427",
      "r433",
      "r436",
      "r883"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 0.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net result for the period of deducting operating expenses from operating revenues.",
        "label": "Operating Income (Loss)",
        "totalLabel": "Operating loss"
       }
      }
     },
     "localname": "OperatingIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseCost": {
     "auth_ref": [
      "r736",
      "r910"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfComponentsOfLeaseExpenseDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of single lease cost, calculated by allocation of remaining cost of lease over remaining lease term. Includes, but is not limited to, single lease cost, after impairment of right-of-use asset, calculated by amortization of remaining right-of-use asset and accretion of lease liability.",
        "label": "Operating Lease, Cost",
        "terseLabel": "Operating lease cost"
       }
      }
     },
     "localname": "OperatingLeaseCost",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfComponentsOfLeaseExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseExpense": {
     "auth_ref": [
      "r1043"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating lease expense. Excludes sublease income.",
        "label": "Operating Lease, Expense",
        "terseLabel": "Rent expense"
       }
      }
     },
     "localname": "OperatingLeaseExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid [Abstract]",
        "terseLabel": "Operating Leases"
       }
      }
     },
     "localname": "OperatingLeaseLiabilitiesPaymentsDueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OperatingLeaseLiability": {
     "auth_ref": [
      "r727"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail2": {
       "order": 1.0,
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease.",
        "label": "Operating Lease, Liability",
        "totalLabel": "Total lease obligations"
       }
      }
     },
     "localname": "OperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiabilityCurrent": {
     "auth_ref": [
      "r727"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail2": {
       "order": 0.0,
       "parentTag": "us-gaap_OperatingLeaseLiability",
       "weight": 1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail": {
       "order": 4.0,
       "parentTag": "atnx_DebtCurrentAndNonCurrent",
       "weight": 1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease, classified as current.",
        "label": "Operating Lease, Liability, Current",
        "negatedLabel": "Less: Current obligations",
        "terseLabel": "Current portion of operating lease liabilities",
        "verboseLabel": "Current portion of operating lease obligations"
       }
      }
     },
     "localname": "OperatingLeaseLiabilityCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiabilityNoncurrent": {
     "auth_ref": [
      "r727"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail2": {
       "order": 1.0,
       "parentTag": "us-gaap_OperatingLeaseLiability",
       "weight": 1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail": {
       "order": 6.0,
       "parentTag": "atnx_DebtCurrentAndNonCurrent",
       "weight": 1.0
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease, classified as noncurrent.",
        "label": "Long-term lease obligations",
        "terseLabel": "Long-term operating lease liabilities",
        "verboseLabel": "Long-term portion of operating lease obligations"
       }
      }
     },
     "localname": "OperatingLeaseLiabilityNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfFutureMinimumPaymentsAndMaturitiesOfLeasesDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasePayments": {
     "auth_ref": [
      "r732",
      "r737"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use.",
        "label": "Operating Lease, Payments",
        "negatedLabel": "Operating cash flows from operating leases"
       }
      }
     },
     "localname": "OperatingLeasePayments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalCashFlowInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "auth_ref": [
      "r726"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's right to use underlying asset under operating lease.",
        "label": "Operating Lease, Right-of-Use Asset",
        "terseLabel": "Operating lease right-of-use assets, net"
       }
      }
     },
     "localname": "OperatingLeaseRightOfUseAsset",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent": {
     "auth_ref": [
      "r740",
      "r910"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average discount rate for operating lease calculated at point in time.",
        "label": "Operating Lease, Weighted Average Discount Rate, Percent",
        "terseLabel": "Operating leases"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageDiscountRatePercent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1": {
     "auth_ref": [
      "r739",
      "r910"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Operating Lease, Weighted Average Remaining Lease Term",
        "terseLabel": "Operating leases"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageRemainingLeaseTerm1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesOfDebtDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_OperatingLossCarryforwardsLimitationsOnUse": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A description of the limitations on the use of all operating loss carryforwards available to reduce future taxable income.",
        "label": "Operating Loss Carryforwards, Limitations on Use",
        "terseLabel": "Operating loss carryforwards, limitations on use description"
       }
      }
     },
     "localname": "OperatingLossCarryforwardsLimitationsOnUse",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OperatingSegmentsMember": {
     "auth_ref": [
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r436"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Operating Segments [Member]",
        "terseLabel": "Operating Segments"
       }
      }
     },
     "localname": "OperatingSegmentsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfDepreciationAmortizationAndAssetsBySegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueBySegmentsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfSegmentInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements [Abstract]"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherAssetsNoncurrent": {
     "auth_ref": [
      "r317"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of noncurrent assets classified as other.",
        "label": "Other Assets, Noncurrent",
        "terseLabel": "Other assets",
        "totalLabel": "Other Assets, Noncurrent, Total"
       }
      }
     },
     "localname": "OtherAssetsNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent": {
     "auth_ref": [
      "r220",
      "r221",
      "r225"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 3.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax and 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, attributable to parent entity.",
        "label": "Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, Net of Tax, Portion Attributable to Parent",
        "terseLabel": "Foreign currency translation adjustment, net of income taxes",
        "totalLabel": "Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, Net of Tax, Portion Attributable to Parent, Total",
        "verboseLabel": "Foreign currency translation adjustment, net of income taxes"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax": {
     "auth_ref": [
      "r61",
      "r63",
      "r701",
      "r702",
      "r705"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Gain (Loss) Arising During Period, Net of Tax",
        "terseLabel": "Foreign currency translation adjustment"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossIncomeScheduleOfComponentsAndChangesOfAccumulatedOtherComprehensiveLossIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationReclassificationAdjustmentFromAOCIRealizedUponSaleOrLiquidationNetOfTax": {
     "auth_ref": [
      "r63",
      "r67",
      "r68",
      "r329",
      "r704"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of reclassification adjustment from accumulated other comprehensive income for translation gain (loss) realized upon the sale or liquidation of an investment in a foreign entity and foreign currency hedges that are designated and qualified as hedging instruments for hedges of the foreign currency exposure of a net investment in a foreign operation.",
        "label": "Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Reclassification Adjustment from AOCI, Realized upon Sale or Liquidation, Net of Tax",
        "terseLabel": "Reclassification of foreign currency translation included in net loss"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationReclassificationAdjustmentFromAOCIRealizedUponSaleOrLiquidationNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossIncomeScheduleOfComponentsAndChangesOfAccumulatedOtherComprehensiveLossIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationReclassificationAdjustmentFromAOCIRealizedUponSaleOrLiquidationTax": {
     "auth_ref": [
      "r64",
      "r703",
      "r712"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 4.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of tax expense (benefit) of reclassification adjustment from accumulated other comprehensive income for translation gain (loss) realized upon the sale or liquidation of an investment in a foreign entity and foreign currency hedges that are designated and qualified as hedging instruments for hedges of the foreign currency exposure of a net investment in a foreign operation.",
        "label": "Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Reclassification Adjustment from AOCI, Realized upon Sale or Liquidation, Tax",
        "terseLabel": "Less: reclassification of foreign currency translation included in net loss"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationReclassificationAdjustmentFromAOCIRealizedUponSaleOrLiquidationTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r70",
      "r164",
      "r331",
      "r334",
      "r341",
      "r706",
      "r711",
      "r713",
      "r784",
      "r791",
      "r935",
      "r936"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax and reclassification adjustments of other comprehensive income (loss).",
        "label": "Other Comprehensive Income (Loss), Net of Tax",
        "terseLabel": "Other comprehensive gain, net of tax",
        "totalLabel": "Other Comprehensive Income (Loss), Net of Tax, Total"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax": {
     "auth_ref": [
      "r327",
      "r328"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 1.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax and before adjustment, of unrealized holding gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). Excludes unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "OCI, Debt Securities, Available-for-Sale, Unrealized Holding Gain (Loss), before Adjustment, after Tax",
        "terseLabel": "Unrealized gain on investment",
        "verboseLabel": "Unrealized gain on investment, net of income taxes"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossIncomeScheduleOfComponentsAndChangesOfAccumulatedOtherComprehensiveLossIncomeDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilitiesNoncurrent": {
     "auth_ref": [
      "r55"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities classified as other, due after one year or the normal operating cycle, if longer.",
        "label": "Other Liabilities, Noncurrent",
        "terseLabel": "Other long-term liabilities",
        "totalLabel": "Other Liabilities, Noncurrent, Total"
       }
      }
     },
     "localname": "OtherLiabilitiesNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OverAllotmentOptionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Right given to the underwriter to sell additional shares over the initial allotment.",
        "label": "Over-Allotment Option [Member]",
        "terseLabel": "Underwritten Public Offering"
       }
      }
     },
     "localname": "OverAllotmentOptionMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OverTheCounterMember": {
     "auth_ref": [
      "r877"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Transaction that does not take place on an organized exchange.",
        "label": "Over-the-Counter [Member]",
        "terseLabel": "OTC"
       }
      }
     },
     "localname": "OverTheCounterMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ParentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Portion of equity, or net assets, in the consolidated entity attributable, directly or indirectly, to the parent. Excludes noncontrolling interests.",
        "label": "Parent [Member]",
        "terseLabel": "Total Athenex, Inc. Stockholders' Equity (Deficit)"
       }
      }
     },
     "localname": "ParentMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PayablesAndAccrualsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payables and Accruals [Abstract]"
       }
      }
     },
     "localname": "PayablesAndAccrualsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_PaymentsOfStockIssuanceCosts": {
     "auth_ref": [
      "r90"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow for cost incurred directly with the issuance of an equity security.",
        "label": "Payments of Stock Issuance Costs",
        "negatedLabel": "Costs incurred related to the sale of stock",
        "terseLabel": "Payments for offering expenses"
       }
      }
     },
     "localname": "PaymentsOfStockIssuanceCosts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "auth_ref": [
      "r85"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Payments to Acquire Property, Plant, and Equipment",
        "negatedLabel": "Purchase of property and equipment",
        "totalLabel": "Payments to Acquire Property, Plant, and Equipment, Total"
       }
      }
     },
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireShortTermInvestments": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow for securities or other assets acquired, which qualify for treatment as an investing activity and are to be liquidated, if necessary, within the current operating cycle. Includes cash flows from securities classified as trading securities that were acquired for reasons other than sale in the short-term.",
        "label": "Payments to Acquire Short-Term Investments",
        "negatedLabel": "Purchases of short-term investments"
       }
      }
     },
     "localname": "PaymentsToAcquireShortTermInvestments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PlanNameAxis": {
     "auth_ref": [
      "r997",
      "r998",
      "r999",
      "r1000",
      "r1001",
      "r1002",
      "r1003",
      "r1004",
      "r1005",
      "r1006",
      "r1007",
      "r1008",
      "r1009",
      "r1010",
      "r1011",
      "r1012",
      "r1013",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1018",
      "r1019",
      "r1020",
      "r1021",
      "r1022"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by plan name for share-based payment arrangement.",
        "label": "Plan Name [Axis]",
        "terseLabel": "Plan Name"
       }
      }
     },
     "localname": "PlanNameAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PlanNameDomain": {
     "auth_ref": [
      "r997",
      "r998",
      "r999",
      "r1000",
      "r1001",
      "r1002",
      "r1003",
      "r1004",
      "r1005",
      "r1006",
      "r1007",
      "r1008",
      "r1009",
      "r1010",
      "r1011",
      "r1012",
      "r1013",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1018",
      "r1019",
      "r1020",
      "r1021",
      "r1022"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan name for share-based payment arrangement.",
        "label": "Plan Name [Domain]",
        "terseLabel": "Plan Name"
       }
      }
     },
     "localname": "PlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PrepaidExpenseAndOtherAssetsCurrent": {
     "auth_ref": [
      "r934"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset related to consideration paid in advance for costs that provide economic benefits in future periods, and amount of other assets that are expected to be realized or consumed within one year or the normal operating cycle, if longer.",
        "label": "Prepaid Expense and Other Assets, Current",
        "terseLabel": "Prepaid expenses and other current assets"
       }
      }
     },
     "localname": "PrepaidExpenseAndOtherAssetsCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing prepaid expenses and other current assets.",
        "label": "Prepaid Expenses and Other Current Assets [Member]",
        "terseLabel": "Prepaid Expenses and Other Current Assets"
       }
      }
     },
     "localname": "PrepaidExpensesAndOtherCurrentAssetsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ProceedsFromCollaborators": {
     "auth_ref": [
      "r92"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash received from collaborators during the current period.",
        "label": "Proceeds from Collaborators",
        "terseLabel": "Proceeds from state",
        "verboseLabel": "Fund for construction costs"
       }
      }
     },
     "localname": "ProceedsFromCollaborators",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromDivestitureOfBusinesses": {
     "auth_ref": [
      "r83"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the amount received from the sale of a portion of the company's business, for example a segment, division, branch or other business, during the period.",
        "label": "Proceeds from Divestiture of Businesses",
        "terseLabel": "Disposal activity",
        "verboseLabel": "Cash proceeds from sale of discontinued operations"
       }
      }
     },
     "localname": "ProceedsFromDivestitureOfBusinesses",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromDivestitureOfBusinessesNetOfCashDivested": {
     "auth_ref": [
      "r83"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the cash inflow during the period from the sale of a component of the entity.",
        "label": "Proceeds from Divestiture of Businesses, Net of Cash Divested",
        "terseLabel": "Disposal activity",
        "totalLabel": "Proceeds from Divestiture of Businesses, Net of Cash Divested, Total"
       }
      }
     },
     "localname": "ProceedsFromDivestitureOfBusinessesNetOfCashDivested",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfCommonStock": {
     "auth_ref": [
      "r87"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from the additional capital contribution to the entity.",
        "label": "Proceeds from Issuance of Common Stock",
        "terseLabel": "Proceeds from sale of stock",
        "verboseLabel": "Net proceeds from stock issuance"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromLinesOfCredit": {
     "auth_ref": [
      "r88",
      "r942"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from contractual arrangement with the lender, including but not limited to, letter of credit, standby letter of credit and revolving credit arrangements.",
        "label": "Proceeds from Lines of Credit",
        "terseLabel": "Proceeds from credit agreement",
        "totalLabel": "Proceeds from Lines of Credit, Total"
       }
      }
     },
     "localname": "ProceedsFromLinesOfCredit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromLongTermLinesOfCredit": {
     "auth_ref": [
      "r88"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Proceeds from Long-Term Lines of Credit",
        "terseLabel": "Debt instrument, amount drawn"
       }
      }
     },
     "localname": "ProceedsFromLongTermLinesOfCredit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfShortTermInvestments": {
     "auth_ref": [
      "r84"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from sales of all investments, including securities and other assets, having ready marketability and intended by management to be liquidated, if necessary, within the current operating cycle. Includes cash flows from securities classified as trading securities that were acquired for reasons other than sale in the short-term.",
        "label": "Proceeds from Sale of Short-Term Investments",
        "terseLabel": "Sale of short-term investments"
       }
      }
     },
     "localname": "ProceedsFromSaleOfShortTermInvestments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromStockOptionsExercised": {
     "auth_ref": [
      "r87",
      "r187"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from exercise of option under share-based payment arrangement.",
        "label": "Proceeds from Stock Options Exercised",
        "terseLabel": "Proceeds from exercise of stock options"
       }
      }
     },
     "localname": "ProceedsFromStockOptionsExercised",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProductAndServiceOtherMember": {
     "auth_ref": [
      "r994"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Article or substance produced by nature, labor or machinery and act of providing assistance, classified as other.",
        "label": "Product and Service, Other [Member]",
        "terseLabel": "Other Revenue"
       }
      }
     },
     "localname": "ProductAndServiceOtherMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByProductGroupDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ProductMember": {
     "auth_ref": [
      "r892"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Article or substance produced by nature, labor or machinery.",
        "label": "Product [Member]",
        "terseLabel": "Product Sales, Net"
       }
      }
     },
     "localname": "ProductMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ProfitLoss": {
     "auth_ref": [
      "r308",
      "r330",
      "r333",
      "r346",
      "r350",
      "r369",
      "r379",
      "r380",
      "r416",
      "r427",
      "r433",
      "r436",
      "r451",
      "r519",
      "r520",
      "r522",
      "r523",
      "r524",
      "r526",
      "r528",
      "r530",
      "r531",
      "r663",
      "r666",
      "r667",
      "r681",
      "r691",
      "r787",
      "r883",
      "r908",
      "r909",
      "r937",
      "r986"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 0.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest.",
        "label": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest",
        "terseLabel": "Net loss",
        "totalLabel": "Net loss"
       }
      }
     },
     "localname": "ProfitLoss",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Abstract]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentByTypeAxis": {
     "auth_ref": [
      "r151"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of long-lived, physical assets used to produce goods and services and not intended for resale.",
        "label": "Long-Lived Tangible Asset [Axis]",
        "terseLabel": "Long-Lived Tangible Asset"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentByTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentDisclosureTextBlock": {
     "auth_ref": [
      "r156",
      "r829",
      "r830",
      "r831"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Property, Plant and Equipment Disclosure [Text Block]",
        "terseLabel": "Property and Equipment, Net"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNet"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentEstimatedUsefulLives": {
     "auth_ref": [
      "r144"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Describes the periods of time over which an entity anticipates to receive utility from its property, plant and equipment (that is, the periods of time over which an entity allocates the initial cost of its property, plant and equipment).",
        "label": "Property, Plant and Equipment, Estimated Useful Lives",
        "terseLabel": "Property and Equipment, Estimated Useful Life"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentEstimatedUsefulLives",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentGross": {
     "auth_ref": [
      "r149",
      "r313"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail": {
       "order": 0.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Property, Plant and Equipment, Gross",
        "periodEndLabel": "Property, Plant and Equipment, Gross, Ending Balance",
        "periodStartLabel": "Property, Plant and Equipment, Gross, Beginning Balance",
        "totalLabel": "Property and equipment, gross"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Property, Plant and Equipment [Line Items]",
        "terseLabel": "Property, Plant and Equipment [Line Items]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "auth_ref": [
      "r151",
      "r287",
      "r789",
      "r911"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Property, Plant and Equipment, Net",
        "periodEndLabel": "Property, Plant and Equipment, Net, Ending Balance",
        "periodStartLabel": "Property, Plant and Equipment, Net, Beginning Balance",
        "terseLabel": "Property and equipment, net",
        "totalLabel": "Property and equipment, net",
        "verboseLabel": "Total property and equipment, net"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentNet",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetScheduleOfPropertyPlantAndEquipmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentPolicyTextBlock": {
     "auth_ref": [
      "r151",
      "r829",
      "r830"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Property, Plant and Equipment, Policy [Policy Text Block]",
        "terseLabel": "Property and Equipment, net"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentTextBlock": {
     "auth_ref": [
      "r151"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Property, Plant and Equipment [Table Text Block]",
        "terseLabel": "Schedule of Property, Plant and Equipment"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentTypeDomain": {
     "auth_ref": [
      "r149"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Long-Lived Tangible Asset [Domain]",
        "terseLabel": "Long-Lived Tangible Asset"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentUsefulLife": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Property, Plant and Equipment, Useful Life",
        "terseLabel": "Property and Equipment, Estimated Useful Life"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentUsefulLife",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ProvisionForDoubtfulAccounts": {
     "auth_ref": [
      "r344",
      "r467"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 13.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense (reversal of expense) for expected credit loss on accounts receivable.",
        "label": "Accounts Receivable, Credit Loss Expense (Reversal)",
        "terseLabel": "Provision for credit losses"
       }
      }
     },
     "localname": "ProvisionForDoubtfulAccounts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReceivablesPolicyTextBlock": {
     "auth_ref": [
      "r961",
      "r962",
      "r963",
      "r964"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for receivable. Includes, but is not limited to, accounts receivable and financing receivable.",
        "label": "Receivable [Policy Text Block]",
        "terseLabel": "Accounts Receivable, net"
       }
      }
     },
     "localname": "ReceivablesPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTextBlock": {
     "auth_ref": [
      "r118",
      "r120"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of all significant reconciling items in the reconciliation of total assets from reportable segments to the entity's consolidated assets.",
        "label": "Reconciliation of Assets from Segment to Consolidated [Table Text Block]",
        "terseLabel": "Summary of Depreciation, Amortization and Assets by Segment"
       }
      }
     },
     "localname": "ReconciliationOfAssetsFromSegmentToConsolidatedTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ReconciliationOfRevenueFromSegmentsToConsolidatedTextBlock": {
     "auth_ref": [
      "r117",
      "r120"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of all significant reconciling items in the reconciliation of total revenues from reportable segments to the entity's consolidated revenues.",
        "label": "Reconciliation of Revenue from Segments to Consolidated [Table Text Block]",
        "terseLabel": "Summary of Revenue by Segments"
       }
      }
     },
     "localname": "ReconciliationOfRevenueFromSegmentsToConsolidatedTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RelatedPartyDomain": {
     "auth_ref": [
      "r577",
      "r751",
      "r752"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Related Party [Domain]",
        "terseLabel": "Related Party"
       }
      }
     },
     "localname": "RelatedPartyDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RelatedPartyTransactionAxis": {
     "auth_ref": [
      "r298",
      "r751",
      "r752",
      "r1051"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of related party transaction.",
        "label": "Related Party Transaction [Axis]",
        "terseLabel": "Related Party Transaction"
       }
      }
     },
     "localname": "RelatedPartyTransactionAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionDomain": {
     "auth_ref": [
      "r298"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Transaction between related party.",
        "label": "Related Party Transaction [Domain]",
        "terseLabel": "Related Party Transaction"
       }
      }
     },
     "localname": "RelatedPartyTransactionDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty": {
     "auth_ref": [
      "r249"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expenses recognized resulting from transactions (excluding transactions that are eliminated in consolidated or combined financial statements) with related party.",
        "label": "Related Party Transaction, Expenses from Transactions with Related Party",
        "terseLabel": "Royalty financing liability transaction cost"
       }
      }
     },
     "localname": "RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RelatedPartyTransactionLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Related Party Transaction [Line Items]",
        "terseLabel": "Related Party Transaction [Line Items]"
       }
      }
     },
     "localname": "RelatedPartyTransactionLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Purchases during the period (excluding transactions that are eliminated in consolidated or combined financial statements) with related party.",
        "label": "Related Party Transaction, Purchases from Related Party",
        "terseLabel": "Funds paid to related party"
       }
      }
     },
     "localname": "RelatedPartyTransactionPurchasesFromRelatedParty",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RelatedPartyTransactionsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transactions [Abstract]"
       }
      }
     },
     "localname": "RelatedPartyTransactionsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionsByRelatedPartyAxis": {
     "auth_ref": [
      "r577",
      "r751",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r778",
      "r779",
      "r780",
      "r781",
      "r782",
      "r1051"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Related Party [Axis]",
        "terseLabel": "Related Party"
       }
      }
     },
     "localname": "RelatedPartyTransactionsByRelatedPartyAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionsDisclosureTextBlock": {
     "auth_ref": [
      "r749",
      "r750",
      "r752",
      "r753",
      "r754"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Related Party Transactions Disclosure [Text Block]",
        "terseLabel": "Related Party Transactions"
       }
      }
     },
     "localname": "RelatedPartyTransactionsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactions"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RepaymentsOfLinesOfCredit": {
     "auth_ref": [
      "r89",
      "r942"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow for payment of an obligation from a lender, including but not limited to, letter of credit, standby letter of credit and revolving credit arrangements.",
        "label": "Repayments of Lines of Credit",
        "terseLabel": "Repay to credit agreement"
       }
      }
     },
     "localname": "RepaymentsOfLinesOfCredit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepaymentsOfSecuredDebt": {
     "auth_ref": [
      "r89"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow to repay long-term debt that is wholly or partially secured by collateral. Excludes repayments of tax exempt secured debt.",
        "label": "Repayments of Secured Debt",
        "terseLabel": "Senior credit agreement payment"
       }
      }
     },
     "localname": "RepaymentsOfSecuredDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ResearchAndDevelopmentExpense": {
     "auth_ref": [
      "r188",
      "r297",
      "r1060"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 0.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Research and Development Expense",
        "terseLabel": "Research and development expenses",
        "totalLabel": "Research and Development Expense, Total"
       }
      }
     },
     "localname": "ResearchAndDevelopmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ResearchAndDevelopmentExpenseMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption in which the reported facts about research and development expense have been included.",
        "label": "Research and Development Expense [Member]",
        "terseLabel": "Research and Development Expenses"
       }
      }
     },
     "localname": "ResearchAndDevelopmentExpenseMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockBasedCompensationCostDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ResearchAndDevelopmentExpensePolicy": {
     "auth_ref": [
      "r188"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for costs it has 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.",
        "label": "Research and Development Expense, Policy [Policy Text Block]",
        "terseLabel": "Research and Development Expenses"
       }
      }
     },
     "localname": "ResearchAndDevelopmentExpensePolicy",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RestrictedCash": {
     "auth_ref": [
      "r929",
      "r941",
      "r1061",
      "r1063"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash restricted as to withdrawal or usage. 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.",
        "label": "Restricted Cash",
        "totalLabel": "Restricted Cash, Total"
       }
      }
     },
     "localname": "RestrictedCash",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RestrictedCashAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted Cash [Abstract]"
       }
      }
     },
     "localname": "RestrictedCashAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember": {
     "auth_ref": [
      "r312"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of cash and cash equivalent. Cash is 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.",
        "label": "Cash and Cash Equivalents [Domain]",
        "terseLabel": "Cash and Cash Equivalents"
       }
      }
     },
     "localname": "RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedCashCurrent": {
     "auth_ref": [
      "r929",
      "r941"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash restricted as to withdrawal or usage, classified as current. 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.",
        "label": "Restricted Cash, Current",
        "terseLabel": "Restricted cash"
       }
      }
     },
     "localname": "RestrictedCashCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRestrictedCashAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RestrictedStockMember": {
     "auth_ref": [
      "r105"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Restricted Stock [Member]",
        "terseLabel": "Restricted Stock Awards",
        "verboseLabel": "Restricted Stock Expense"
       }
      }
     },
     "localname": "RestrictedStockMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureStockbasedCompensationScheduleOfStatusOfRestrictedStockAwardsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockBasedCompensationCostDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "auth_ref": [
      "r40",
      "r169",
      "r284",
      "r802",
      "r807",
      "r911"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings (Accumulated Deficit)",
        "negatedLabel": "Accumulated deficit",
        "periodEndLabel": "Retained Earnings (Accumulated Deficit), Ending Balance",
        "periodStartLabel": "Retained Earnings (Accumulated Deficit), Beginning Balance",
        "terseLabel": "Accumulated deficit",
        "totalLabel": "Retained Earnings (Accumulated Deficit), Total"
       }
      }
     },
     "localname": "RetainedEarningsAccumulatedDeficit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RetainedEarningsMember": {
     "auth_ref": [
      "r301",
      "r365",
      "r366",
      "r367",
      "r370",
      "r378",
      "r380",
      "r458",
      "r614",
      "r615",
      "r616",
      "r639",
      "r640",
      "r679",
      "r798",
      "r800"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings [Member]",
        "terseLabel": "Accumulated Deficit"
       }
      }
     },
     "localname": "RetainedEarningsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from Contract with Customer [Abstract]"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax": {
     "auth_ref": [
      "r407",
      "r408",
      "r426",
      "r431",
      "r432",
      "r438",
      "r439",
      "r442",
      "r563",
      "r565",
      "r765"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 0.0,
       "parentTag": "us-gaap_GrossProfit",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Revenue",
        "terseLabel": "Total revenue",
        "totalLabel": "Revenue from Contract with Customer, Excluding Assessed Tax, Total",
        "verboseLabel": "Total consolidated revenue"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerExcludingAssessedTax",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByGeographicalSegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByProductGroupDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueBySegmentsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerTextBlock": {
     "auth_ref": [
      "r555",
      "r556",
      "r557",
      "r558",
      "r559",
      "r560",
      "r561",
      "r562",
      "r568",
      "r569"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Revenue from Contract with Customer [Text Block]",
        "terseLabel": "Revenue Recognition"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognition"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RevenueFromExternalCustomersByGeographicAreasTableTextBlock": {
     "auth_ref": [
      "r122"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of revenue from external customers by geographic areas attributed to the entity's country of domicile and to foreign countries from which the entity derives revenue.",
        "label": "Revenue from External Customers by Geographic Areas [Table Text Block]",
        "terseLabel": "Summary of Revenue by Geographical Segment"
       }
      }
     },
     "localname": "RevenueFromExternalCustomersByGeographicAreasTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RevenueFromRelatedParties": {
     "auth_ref": [
      "r75",
      "r296",
      "r521",
      "r522",
      "r523",
      "r529",
      "r530",
      "r531"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of revenue, fees and commissions earned from transactions between (a) a parent company and its subsidiaries; (b) subsidiaries of a common parent; (c) an entity and trusts for the benefit of employees, for example, but not limited to, pension and profit-sharing trusts that are managed by or under the trusteeship of the entity's management; (d) an entity and its principal, owners, management, or members of their immediate families; and (e) affiliates.",
        "label": "Revenue from Related Parties",
        "terseLabel": "Licenses revenue"
       }
      }
     },
     "localname": "RevenueFromRelatedParties",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RevenueRecognitionAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue Recognition [Abstract]"
       }
      }
     },
     "localname": "RevenueRecognitionAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RevenueRecognitionMilestoneMethodLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Revenue Recognition, Milestone Method [Line Items]",
        "terseLabel": "Revenue Recognition Milestone Method [Line Items]"
       }
      }
     },
     "localname": "RevenueRecognitionMilestoneMethodLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RevenueRecognitionMilestoneMethodTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule detailing the characteristics of milestone payments recognized under the milestone method by arrangement. For each arrangement that includes a milestone payment, this includes: (1) a description of the overall arrangement; (2) a description of each milestone and related contingent consideration; (3) a determination of whether each milestone is considered substantive; (4) the factors the entity considered in determining whether each milestone or milestones are substantive; and (5) the amount of contingent consideration recognized during the period for each milestone.",
        "label": "Revenue Recognition, Milestone Method [Table]",
        "terseLabel": "Revenue Recognition Milestone Method [Table]"
       }
      }
     },
     "localname": "RevenueRecognitionMilestoneMethodTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RevenueRecognitionPolicyTextBlock": {
     "auth_ref": [
      "r879",
      "r880"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for revenue. Includes revenue from contract with customer and from other sources.",
        "label": "Revenue [Policy Text Block]",
        "terseLabel": "Revenue Recognition"
       }
      }
     },
     "localname": "RevenueRecognitionPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RevenuesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenues [Abstract]",
        "terseLabel": "Revenue:"
       }
      }
     },
     "localname": "RevenuesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability": {
     "auth_ref": [
      "r738",
      "r910"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in right-of-use asset obtained in exchange for finance lease liability.",
        "label": "Right-of-Use Asset Obtained in Exchange for Finance Lease Liability",
        "terseLabel": "ROU assets recognized in exchange for new operating lease obligations"
       }
      }
     },
     "localname": "RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsScheduleOfSupplementalCashFlowInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability": {
     "auth_ref": [
      "r738",
      "r910"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in right-of-use asset obtained in exchange for operating lease liability.",
        "label": "Right-of-Use Asset Obtained in Exchange for Operating Lease Liability",
        "terseLabel": "ROU assets recognized in exchange for new lease obligations"
       }
      }
     },
     "localname": "RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RoyaltyMember": {
     "auth_ref": [
      "r994"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Money for usage-based right to asset.",
        "label": "Royalty [Member]",
        "terseLabel": "Royalty revenue"
       }
      }
     },
     "localname": "RoyaltyMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SaleOfStockNameOfTransactionDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale of the entity's stock, including, but not limited to, initial public offering (IPO) and private placement.",
        "label": "Sale of Stock [Domain]",
        "terseLabel": "Sale of Stock"
       }
      }
     },
     "localname": "SaleOfStockNameOfTransactionDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SalesRevenueNetMember": {
     "auth_ref": [
      "r442",
      "r958"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Revenue Benchmark [Member]",
        "terseLabel": "Customer Revenue"
       }
      }
     },
     "localname": "SalesRevenueNetMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfCustomerRevenueAndAccountsReceivableConcentrationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ScheduleOfAccruedLiabilitiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of accrued liabilities.",
        "label": "Schedule of Accrued Liabilities [Table Text Block]",
        "terseLabel": "Schedule of Accrued Expenses"
       }
      }
     },
     "localname": "ScheduleOfAccruedLiabilitiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAccruedExpensesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock": {
     "auth_ref": [
      "r66",
      "r1041",
      "r1042"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of accumulated other comprehensive income (loss).",
        "label": "Schedule of Accumulated Other Comprehensive Income (Loss) [Table Text Block]",
        "terseLabel": "Schedule of Components and Changes of Accumulated Other Comprehensive (Loss) Income"
       }
      }
     },
     "localname": "ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossIncomeTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable": {
     "auth_ref": [
      "r105"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule for securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented, by Antidilutive Securities.",
        "label": "Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table]",
        "terseLabel": "Schedule Of Antidilutive Securities Excluded From Computation Of Earnings Per Share [Table]"
       }
      }
     },
     "localname": "ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureNetLossPerShareAttributableToAthenexIncCommonStockholdersScheduleWeightedAverageOutstandingSharesOfCommonStockEquivalentsExcludedFromCalculationOfDilutedNetLossPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock": {
     "auth_ref": [
      "r105"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented, by antidilutive securities.",
        "label": "Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table Text Block]",
        "terseLabel": "Schedule Weighted Average Outstanding Shares of Common Stock Equivalents Excluded from the Calculation of Diluted Net Loss Per Share"
       }
      }
     },
     "localname": "ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureNetLossPerShareAttributableToAthenexIncCommonStockholdersTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionContingentConsiderationTable": {
     "auth_ref": [
      "r215"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of information about a contingent payment arrangement including the terms that will result in payment and the accounting treatment that will be followed if such contingency occurs, including the potential impact on earnings per share if the contingency is to be settled in shares of common stock of the entity. The description also may include the period over which amounts are expected to be paid, and changes in the amount since the previous reporting period. This also includes contingent options and commitments.",
        "label": "Schedule of Business Acquisitions by Acquisition, Contingent Consideration [Table]"
       }
      }
     },
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionContingentConsiderationTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationScheduleOfReconciliationOfContingentConsiderationLiabilityRelatedToAcquisitionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionContingentConsiderationTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of contingent payment arrangements including the terms that will result in payment and the accounting treatment that will be followed if such contingencies occur, including the potential impact on earnings per share if contingencies are to be settled in common stock of the entity. The description also may include the period over which amounts are expected to be paid, and changes in the amount since the previous reporting period. This also includes contingent options and commitments.",
        "label": "Schedule of Business Acquisitions by Acquisition, Contingent Consideration [Table Text Block]",
        "terseLabel": "Schedule of Reconciliation of Contingent Consideration Liability Related to Acquisition"
       }
      }
     },
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionContingentConsiderationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureContingentConsiderationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable": {
     "auth_ref": [
      "r200",
      "r201",
      "r656"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule reflecting each material business combination (or series of individually immaterial business combinations) completed during the period, including background, timing, and recognized assets and liabilities.",
        "label": "Schedule of Business Acquisitions, by Acquisition [Table]",
        "terseLabel": "Schedule Of Business Acquisitions By Acquisition [Table]"
       }
      }
     },
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredParentheticalDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock": {
     "auth_ref": [
      "r195"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Schedule of Components of Income Tax Expense (Benefit) [Table Text Block]",
        "terseLabel": "Components of the Income Tax Expense (Benefit) from Continuing Operations"
       }
      }
     },
     "localname": "ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDebtTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of information pertaining to short-term and long-debt instruments or arrangements, including but not limited to identification of terms, features, collateral requirements and other information necessary to a fair presentation.",
        "label": "Schedule of Debt [Table Text Block]",
        "terseLabel": "Schedule of Debt"
       }
      }
     },
     "localname": "ScheduleOfDebtTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock": {
     "auth_ref": [
      "r192"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Schedule of Deferred Tax Assets and Liabilities [Table Text Block]",
        "terseLabel": "Schedule of Net Deferred Income Tax Liabilities"
       }
      }
     },
     "localname": "ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock": {
     "auth_ref": [
      "r1",
      "r10",
      "r11",
      "r12",
      "r13",
      "r14",
      "r15",
      "r21",
      "r23",
      "r24",
      "r25",
      "r153",
      "r154"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of information related to a disposal group. Includes, but is not limited to, a discontinued operation, disposal classified as held-for-sale or disposed of by means other than sale or disposal of an individually significant component.",
        "label": "Disposal Groups, Including Discontinued Operations [Table Text Block]",
        "terseLabel": "Schedule of Financial Results of Discontinued Operations"
       }
      }
     },
     "localname": "ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock": {
     "auth_ref": [
      "r190"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Schedule of Effective Income Tax Rate Reconciliation [Table Text Block]",
        "terseLabel": "Schedule of Income Tax Expense (Benefit) from Continuing Operations Differs From the Federal Statutory Rate"
       }
      }
     },
     "localname": "ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock": {
     "auth_ref": [
      "r185"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of allocation of amount expensed and capitalized for award under share-based payment arrangement to statement of income or comprehensive income and statement of financial position. Includes, but is not limited to, corresponding line item in financial statement.",
        "label": "Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Table Text Block]",
        "terseLabel": "Schedule of Stock-Based Compensation Cost"
       }
      }
     },
     "localname": "ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTextBlock": {
     "auth_ref": [
      "r121"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of entity-wide revenues from external customers for each product or service or each group of similar products or services if the information is not provided as part of the reportable operating segment information.",
        "label": "Revenue from External Customers by Products and Services [Table Text Block]",
        "terseLabel": "Summary of Revenue by Product Group"
       }
      }
     },
     "localname": "ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock": {
     "auth_ref": [
      "r683",
      "r684"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Table Text Block]",
        "terseLabel": "Schedule of Assets and Liabilities Measured at Fair Value on a Recurring Basis"
       }
      }
     },
     "localname": "ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable": {
     "auth_ref": [
      "r131",
      "r136",
      "r766"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
        "label": "Schedule of Finite-Lived Intangible Assets [Table]",
        "terseLabel": "Schedule Of Finite Lived Intangible Assets [Table]"
       }
      }
     },
     "localname": "ScheduleOfFiniteLivedIntangibleAssetsTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTableTextBlock": {
     "auth_ref": [
      "r131",
      "r136"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of assets, excluding financial assets and goodwill, lacking physical substance with a finite life, by either major class or business segment.",
        "label": "Schedule of Finite-Lived Intangible Assets [Table Text Block]",
        "terseLabel": "Summary of Identifiable Intangible Asset, Net"
       }
      }
     },
     "localname": "ScheduleOfFiniteLivedIntangibleAssetsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfGoodwillTable": {
     "auth_ref": [
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r884"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of goodwill and the changes during the year due to acquisition, sale, impairment or for other reasons.",
        "label": "Schedule of Goodwill [Table]",
        "terseLabel": "Schedule Of Goodwill [Table]"
       }
      }
     },
     "localname": "ScheduleOfGoodwillTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetGoodwillDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfGoodwillTextBlock": {
     "auth_ref": [
      "r884",
      "r966",
      "r967",
      "r968",
      "r969",
      "r970",
      "r971",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of goodwill by reportable segment and in total which includes a rollforward schedule.",
        "label": "Schedule of Goodwill [Table Text Block]",
        "terseLabel": "Schedule of Changes in Carrying Amount of Goodwill for each Reporting Unit"
       }
      }
     },
     "localname": "ScheduleOfGoodwillTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock": {
     "auth_ref": [
      "r944"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of income before income tax between domestic and foreign jurisdictions.",
        "label": "Schedule of Income before Income Tax, Domestic and Foreign [Table Text Block]",
        "terseLabel": "Components of Loss Before Income Tax Expense (Benefit) from Continuing Operations"
       }
      }
     },
     "localname": "ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfInventoryCurrentTableTextBlock": {
     "auth_ref": [
      "r31",
      "r44",
      "r45",
      "r46"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Schedule of Inventory, Current [Table Text Block]",
        "terseLabel": "Schedule of Inventories"
       }
      }
     },
     "localname": "ScheduleOfInventoryCurrentTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureInventoriesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfPropertyPlantAndEquipmentTable": {
     "auth_ref": [
      "r151"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Property, Plant and Equipment [Table]",
        "terseLabel": "Schedule Of Property Plant And Equipment [Table]"
       }
      }
     },
     "localname": "ScheduleOfPropertyPlantAndEquipmentTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentUsefulLifeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock": {
     "auth_ref": [
      "r204"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the amounts recognized as of the acquisition date for each major class of assets acquired and liabilities assumed. May include but not limited to the following: (a) acquired receivables; (b) contingencies recognized at the acquisition date; and (c) the fair value of noncontrolling interests in the acquiree.",
        "label": "Schedule of Recognized Identified Assets Acquired and Liabilities Assumed [Table Text Block]",
        "terseLabel": "Summary of Final Purchase Price Allocation to Fair Value of Assets and Liabilities Acquired"
       }
      }
     },
     "localname": "ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable": {
     "auth_ref": [
      "r251",
      "r252"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Schedule of Related Party Transactions, by Related Party [Table]",
        "terseLabel": "Schedule Of Related Party Transactions By Related Party [Table]"
       }
      }
     },
     "localname": "ScheduleOfRelatedPartyTransactionsByRelatedPartyTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable": {
     "auth_ref": [
      "r115",
      "r116",
      "r119",
      "r128"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table disclosing the profit or loss and total assets for each reportable segment of the entity. 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.",
        "label": "Schedule of Segment Reporting Information, by Segment [Table]",
        "terseLabel": "Schedule Of Segment Reporting Information By Segment [Table]"
       }
      }
     },
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByGeographicalSegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByProductGroupDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueBySegmentsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfSegmentInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock": {
     "auth_ref": [
      "r115",
      "r116",
      "r119",
      "r128"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Schedule of Segment Reporting Information, by Segment [Table Text Block]",
        "terseLabel": "Summary of Segment Information"
       }
      }
     },
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "auth_ref": [
      "r580",
      "r581",
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r588",
      "r589",
      "r590",
      "r591",
      "r592",
      "r593",
      "r594",
      "r595",
      "r596",
      "r597",
      "r598",
      "r599",
      "r600",
      "r601",
      "r602",
      "r603",
      "r604",
      "r605",
      "r606",
      "r607",
      "r608"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about share-based payment arrangement.",
        "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]"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureStockbasedCompensationScheduleOfStatusOfRestrictedStockAwardsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockBasedCompensationCostDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock": {
     "auth_ref": [
      "r180",
      "r181",
      "r182"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Share-Based Payment Arrangement, Option, Activity [Table Text Block]",
        "terseLabel": "Schedule of Stock Option Activity"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock": {
     "auth_ref": [
      "r184"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the significant assumptions used during the year to estimate the fair value of stock options, including, but not limited to: (a) expected term of share options and similar instruments, (b) expected volatility of the entity's shares, (c) expected dividends, (d) risk-free rate(s), and (e) discount for post-vesting restrictions.",
        "label": "Schedule of Share-Based Payment Award, Stock Options, Valuation Assumptions [Table Text Block]",
        "terseLabel": "Schedule of Weighted-Average Assumptions Used as Inputs to Black-Scholes Option Pricing Model"
       }
      }
     },
     "localname": "ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock": {
     "auth_ref": [
      "r136"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the amount of amortization expense expected to be recorded in succeeding fiscal years for finite-lived intangible assets.",
        "label": "Schedule of Finite-Lived Intangible Assets, Future Amortization Expense [Table Text Block]",
        "terseLabel": "Schedule of Expected Amortization Expense of Finite-Lived Intangible Assets"
       }
      }
     },
     "localname": "ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureGoodwillAndIntangibleAssetsNetTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SchedulesOfConcentrationOfRiskByRiskFactorTextBlock": {
     "auth_ref": [
      "r107",
      "r109",
      "r110",
      "r111",
      "r240",
      "r242"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the nature of a concentration, a benchmark to which it is compared, and the percentage that the risk is to the benchmark.",
        "label": "Schedules of Concentration of Risk, by Risk Factor [Table Text Block]",
        "terseLabel": "Summary of Customer Revenue and Accounts Receivable Concentration"
       }
      }
     },
     "localname": "SchedulesOfConcentrationOfRiskByRiskFactorTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SecuredDebt": {
     "auth_ref": [
      "r34",
      "r259",
      "r283"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date, including the current and noncurrent portions, of collateralized debt obligations (with maturities initially due after one year or beyond the operating cycle, if longer). Such obligations include mortgage loans, chattel loans, and any other borrowings secured by assets of the borrower.",
        "label": "Secured Debt",
        "terseLabel": "Liability recorded",
        "totalLabel": "Secured Debt, Total"
       }
      }
     },
     "localname": "SecuredDebt",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SecuredDebtCurrent": {
     "auth_ref": [
      "r32",
      "r256",
      "r282"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail": {
       "order": 2.0,
       "parentTag": "atnx_DebtCurrentAndNonCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of the portion of long-term, collateralized debt obligations due within one year or the operating cycle, if longer. Such obligations include mortgage loans, chattel loans, and any other borrowings secured by assets of the borrower.",
        "label": "Secured Debt, Current",
        "terseLabel": "Current portion of senior secured loan, net of debt discount and financing fees of $7,698 and $0, respectively"
       }
      }
     },
     "localname": "SecuredDebtCurrent",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsSummaryOfBalancesOfDebtDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SegmentDomain": {
     "auth_ref": [
      "r404",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r432",
      "r433",
      "r434",
      "r436",
      "r442",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r496",
      "r511",
      "r512",
      "r884",
      "r1065"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Segments [Domain]",
        "terseLabel": "Segments"
       }
      }
     },
     "localname": "SegmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfDepreciationAmortizationAndAssetsBySegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueBySegmentsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfSegmentInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfAccountsReceivableBalancesByReportableSegmentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SegmentReportingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting [Abstract]"
       }
      }
     },
     "localname": "SegmentReportingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingDisclosureTextBlock": {
     "auth_ref": [
      "r404",
      "r405",
      "r406",
      "r416",
      "r419",
      "r430",
      "r434",
      "r435",
      "r436",
      "r437",
      "r438",
      "r441",
      "r442",
      "r443"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Segment Reporting Disclosure [Text Block]",
        "terseLabel": "Business Segment, Geographic, and Concentration Risk Information"
       }
      }
     },
     "localname": "SegmentReportingDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SegmentReportingInformationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Segment Reporting Information [Line Items]",
        "terseLabel": "Segment Reporting Information [Line Items]"
       }
      }
     },
     "localname": "SegmentReportingInformationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByGeographicalSegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByProductGroupDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueBySegmentsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfSegmentInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingInformationOperatingIncomeLossAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting Information, Operating Income (Loss) [Abstract]",
        "terseLabel": "Net loss attributable to Athenex, Inc.:"
       }
      }
     },
     "localname": "SegmentReportingInformationOperatingIncomeLossAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfSegmentInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingInformationRevenueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting Information, Revenue for Reportable Segment [Abstract]",
        "terseLabel": "Total revenue:"
       }
      }
     },
     "localname": "SegmentReportingInformationRevenueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueByGeographicalSegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueBySegmentsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingPolicyPolicyTextBlock": {
     "auth_ref": [
      "r420",
      "r421",
      "r422",
      "r423",
      "r424",
      "r425",
      "r439"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for segment reporting.",
        "label": "Segment Reporting, Policy [Policy Text Block]",
        "terseLabel": "Segment and Geographic Information"
       }
      }
     },
     "localname": "SegmentReportingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SellingGeneralAndAdministrativeExpense": {
     "auth_ref": [
      "r79"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss": {
       "order": 1.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Selling, General and Administrative Expense",
        "terseLabel": "Selling, general, and administrative expenses",
        "totalLabel": "Selling, General and Administrative Expense, Total"
       }
      }
     },
     "localname": "SellingGeneralAndAdministrativeExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SellingGeneralAndAdministrativeExpensesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing selling, general and administrative expense.",
        "label": "Selling, General and Administrative Expenses [Member]",
        "terseLabel": "Selling, General, and Administrative Expenses"
       }
      }
     },
     "localname": "SellingGeneralAndAdministrativeExpensesMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockBasedCompensationCostDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensation": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of noncash expense for share-based payment arrangement.",
        "label": "Share-Based Payment Arrangement, Noncash Expense",
        "terseLabel": "Stock-based compensation expense",
        "totalLabel": "Share-based Payment Arrangement, Noncash Expense, Total"
       }
      }
     },
     "localname": "ShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1": {
     "auth_ref": [
      "r905"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Award Vesting Period",
        "verboseLabel": "Stock options granted, vesting period"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "auth_ref": [
      "r599"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeited in Period",
        "negatedLabel": "Shares of Restricted Stock, Forfeited"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureStockbasedCompensationScheduleOfStatusOfRestrictedStockAwardsDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r599"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "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, Forfeited"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureStockbasedCompensationScheduleOfStatusOfRestrictedStockAwardsDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "auth_ref": [
      "r597"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period",
        "terseLabel": "Shares granted to employees",
        "verboseLabel": "Shares of Restricted Stock, Granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureStockbasedCompensationScheduleOfStatusOfRestrictedStockAwardsDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r597"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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).",
        "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, Granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureStockbasedCompensationScheduleOfStatusOfRestrictedStockAwardsDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "auth_ref": [
      "r594",
      "r595"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number",
        "periodEndLabel": "Shares of Restricted Stock, Nonvested Ending Balance",
        "periodStartLabel": "Shares of Restricted Stock, Nonvested Beginning Balance"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureStockbasedCompensationScheduleOfStatusOfRestrictedStockAwardsDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r594",
      "r595"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Per share or unit weighted-average fair value of nonvested award under share-based payment arrangement. Excludes share and unit options.",
        "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, Nonvested Ending Balance",
        "periodStartLabel": "Weighted Average Fair Value, Nonvested Beginning Balance"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureStockbasedCompensationScheduleOfStatusOfRestrictedStockAwardsDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod": {
     "auth_ref": [
      "r598"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period",
        "negatedLabel": "Shares of Restricted Stock, Vested",
        "terseLabel": "Shares of Restricted Stock, Vested"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureStockbasedCompensationScheduleOfStatusOfRestrictedStockAwardsDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue": {
     "auth_ref": [
      "r601"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of share-based awards for which the grantee gained the right by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period, Fair Value",
        "terseLabel": "Total fair value of stock awards vested"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r598"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average fair value as of grant date pertaining to an equity-based award plan other than a stock (or unit) option plan for which the grantee gained the right during the reporting period, by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash in accordance with the terms of the arrangement.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted Average Fair Value, Vested"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureStockbasedCompensationScheduleOfStatusOfRestrictedStockAwardsDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate": {
     "auth_ref": [
      "r606"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The estimated dividend rate (a percentage of the share price) to be paid (expected dividends) to holders of the underlying shares over the option's term.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Fair Value Assumptions, Expected Dividend Rate",
        "terseLabel": "Expected dividend yield"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfWeightedAverageAssumptionsUsedAsInputsToBlackScholesOptionPricingModelDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate": {
     "auth_ref": [
      "r607"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The risk-free interest rate assumption that is used in valuing an option on its own shares.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Fair Value Assumptions, Risk Free Interest Rate",
        "terseLabel": "Risk-free interest rate"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfWeightedAverageAssumptionsUsedAsInputsToBlackScholesOptionPricingModelDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate": {
     "auth_ref": [
      "r605"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rate of weighted-average expected volatility for award under share-based payment arrangement.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Fair Value Assumptions, Weighted Average Volatility Rate",
        "terseLabel": "Expected stock price volatility"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsWeightedAverageVolatilityRate",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfWeightedAverageAssumptionsUsedAsInputsToBlackScholesOptionPricingModelDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]",
        "terseLabel": "Share-based Compensation Arrangement by Share-based Payment Award [Line Items]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureStockbasedCompensationScheduleOfStatusOfRestrictedStockAwardsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockBasedCompensationCostDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of additional shares authorized for issuance under share-based payment arrangement.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Additional Shares Authorized",
        "terseLabel": "Increase in stock available for issuance under plan"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized": {
     "auth_ref": [
      "r907"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares authorized for issuance under share-based payment arrangement.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Shares Authorized",
        "terseLabel": "Common stock options authorized grant"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue": {
     "auth_ref": [
      "r601"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated difference between fair value of underlying shares on dates of exercise and exercise price on options exercised (or share units converted) into shares.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercises in Period, Intrinsic Value",
        "terseLabel": "Total intrinsic value of stock options exercised"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod": {
     "auth_ref": [
      "r1003"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For presentations that combine terminations, the number of shares under options that were cancelled during the reporting period as a result of occurrence of a terminating event specified in contractual agreements pertaining to the stock option plan or that expired.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Forfeitures and Expirations in Period",
        "negatedLabel": "Stock Options, Forfeited and expired",
        "totalLabel": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Forfeitures and Expirations in Period, Total"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice": {
     "auth_ref": [
      "r1003"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average price of options that were either forfeited or expired.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Forfeitures and Expirations in Period, Weighted Average Exercise Price",
        "terseLabel": "Weighted Average Exercise Price, Forfeited and expired"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross": {
     "auth_ref": [
      "r590"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross number of share options (or share units) granted during the period.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Grants in Period, Gross",
        "terseLabel": "Stock Options, Granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r600"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average grant-date fair value of options granted during the reporting period as calculated by applying the disclosed option pricing methodology.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Grants in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted average grant date fair value"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfWeightedAverageAssumptionsUsedAsInputsToBlackScholesOptionPricingModelDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue": {
     "auth_ref": [
      "r186"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount by which the current fair value of the underlying stock exceeds the exercise price of options outstanding.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Intrinsic Value",
        "terseLabel": "Aggregate Intrinsic Value, Outstanding"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber": {
     "auth_ref": [
      "r586",
      "r587"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of options outstanding, including both vested and non-vested options.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Number",
        "periodEndLabel": "Stock Options, Outstanding Ending Balance",
        "periodStartLabel": "Stock Options, Outstanding Beginning Balance"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding [Roll Forward]",
        "terseLabel": "Stock Options"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice": {
     "auth_ref": [
      "r586",
      "r587"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average price at which grantees can acquire the shares reserved for issuance under the stock option plan.",
        "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"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Exercise Price [Abstract]",
        "terseLabel": "Weighted Average Exercise Price"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber": {
     "auth_ref": [
      "r603"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of fully vested and expected to vest exercisable options that may 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.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Exercisable, Number",
        "terseLabel": "Stock Options, Vested and exercisable"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue": {
     "auth_ref": [
      "r602"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Outstanding, Aggregate Intrinsic Value",
        "terseLabel": "Aggregate Intrinsic Value, Vested and exercisable"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice": {
     "auth_ref": [
      "r602"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "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 and exercisable"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardPerShareWeightedAveragePriceOfSharesPurchased": {
     "auth_ref": [
      "r186"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Per share weighted-average price paid for shares purchased on open market for issuance under share-based payment arrangement.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Per Share Weighted Average Price of Shares Purchased",
        "terseLabel": "Common stock at an average price per share"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardPerShareWeightedAveragePriceOfSharesPurchased",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesPurchasedForAward": {
     "auth_ref": [
      "r1024"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares purchased for issuance under share-based payment arrangement.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Shares Purchased for Award",
        "terseLabel": "Number of common stock shares purchased"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesPurchasedForAward",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "auth_ref": [
      "r583",
      "r584",
      "r585",
      "r586",
      "r587",
      "r588",
      "r589",
      "r590",
      "r591",
      "r592",
      "r593",
      "r594",
      "r595",
      "r596",
      "r597",
      "r598",
      "r599",
      "r600",
      "r601",
      "r602",
      "r603",
      "r604",
      "r605",
      "r606",
      "r607",
      "r608"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Award under share-based payment arrangement.",
        "label": "Award Type [Domain]",
        "terseLabel": "Award Type"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureStockbasedCompensationScheduleOfStatusOfRestrictedStockAwardsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockBasedCompensationCostDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice": {
     "auth_ref": [
      "r591"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average price at which option holders acquired shares when converting their stock options into shares.",
        "label": "Share-Based Compensation Arrangements by Share-Based Payment Award, Options, Exercises in Period, Weighted Average Exercise Price",
        "terseLabel": "Weighted Average Exercise Price, Exercised"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice": {
     "auth_ref": [
      "r590"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average per share amount at which grantees can acquire shares of common stock by exercise of options.",
        "label": "Share-Based Compensation Arrangements by Share-Based Payment Award, Options, Grants in Period, Weighted Average Exercise Price",
        "terseLabel": "Weighted Average Exercise Price, Granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod": {
     "auth_ref": [
      "r906"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period from grant date that an equity-based award expires, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Expiration Period",
        "terseLabel": "Stock options granted, contractual term"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1": {
     "auth_ref": [
      "r604"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expected term of award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Fair Value Assumptions, Expected Term",
        "terseLabel": "Expected life of options (in years)"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfWeightedAverageAssumptionsUsedAsInputsToBlackScholesOptionPricingModelDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2": {
     "auth_ref": [
      "r183"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Remaining Contractual Term",
        "terseLabel": "Weighted Average Remaining Contractual Term, Outstanding"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1": {
     "auth_ref": [
      "r602"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Outstanding, Weighted Average Remaining Contractual Term",
        "terseLabel": "Weighted Average Remaining Contractual Term, Vested and exercisable"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharesIssuedPricePerShare": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Per share or per unit amount of equity securities issued.",
        "label": "Shares Issued, Price Per Share",
        "terseLabel": "Common stock share price",
        "verboseLabel": "Common stock price per share"
       }
      }
     },
     "localname": "SharesIssuedPricePerShare",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_SharesOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares issued which are neither cancelled nor held in the treasury.",
        "label": "Shares, Outstanding",
        "periodEndLabel": "Ending balance, shares",
        "periodStartLabel": "Beginning balance, shares"
       }
      }
     },
     "localname": "SharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShortTermInvestments": {
     "auth_ref": [
      "r262",
      "r263",
      "r279",
      "r933"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investments including trading securities, available-for-sale securities, held-to-maturity securities, and short-term investments classified as other and current.",
        "label": "Short-Term Investments",
        "terseLabel": "Short-term investments",
        "totalLabel": "Short-term Investments, Total"
       }
      }
     },
     "localname": "ShortTermInvestments",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShortTermInvestmentsMember": {
     "auth_ref": [
      "r822",
      "r823",
      "r824",
      "r915"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investments which are not otherwise included in another category or item that the entity has the intent to sell or dispose of within one year from the date of the balance sheet.",
        "label": "Short-Term Investments [Member]",
        "terseLabel": "Short-term Investments"
       }
      }
     },
     "localname": "ShortTermInvestmentsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SignificantAccountingPoliciesTextBlock": {
     "auth_ref": [
      "r104",
      "r349"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for all significant accounting policies of the reporting entity.",
        "label": "Significant Accounting Policies [Text Block]",
        "terseLabel": "Summary of Significant Accounting Policies"
       }
      }
     },
     "localname": "SignificantAccountingPoliciesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_StatementBusinessSegmentsAxis": {
     "auth_ref": [
      "r305",
      "r404",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r432",
      "r433",
      "r434",
      "r436",
      "r442",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r496",
      "r509",
      "r511",
      "r512",
      "r884",
      "r1065"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by business segments.",
        "label": "Segments [Axis]",
        "terseLabel": "Segments"
       }
      }
     },
     "localname": "StatementBusinessSegmentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfDepreciationAmortizationAndAssetsBySegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfRevenueBySegmentsDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfSegmentInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfAccountsReceivableBalancesByReportableSegmentsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "auth_ref": [
      "r59",
      "r164",
      "r301",
      "r336",
      "r337",
      "r338",
      "r365",
      "r366",
      "r367",
      "r370",
      "r378",
      "r380",
      "r396",
      "r458",
      "r552",
      "r614",
      "r615",
      "r616",
      "r639",
      "r640",
      "r679",
      "r706",
      "r707",
      "r708",
      "r709",
      "r710",
      "r713",
      "r748",
      "r798",
      "r799",
      "r800"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by component of equity.",
        "label": "Equity Components [Axis]",
        "terseLabel": "Equity Components"
       }
      }
     },
     "localname": "StatementEquityComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossIncomeScheduleOfComponentsAndChangesOfAccumulatedOtherComprehensiveLossIncomeDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Statement [Line Items]",
        "terseLabel": "Statement [Line Items]"
       }
      }
     },
     "localname": "StatementLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfDepreciationAmortizationAndAssetsBySegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Cash Flows [Abstract]"
       }
      }
     },
     "localname": "StatementOfCashFlowsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Financial Position [Abstract]"
       }
      }
     },
     "localname": "StatementOfFinancialPositionAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Stockholders' Equity [Abstract]"
       }
      }
     },
     "localname": "StatementOfStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementTable": {
     "auth_ref": [
      "r365",
      "r366",
      "r367",
      "r396",
      "r765"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Statement [Table]",
        "terseLabel": "Statement [Table]"
       }
      }
     },
     "localname": "StatementTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureBusinessSegmentGeographicAndConcentrationRiskInformationSummaryOfDepreciationAmortizationAndAssetsBySegmentDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockCompensationPlanMember": {
     "auth_ref": [
      "r957"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share-based payment arrangement in which award of equity shares are granted. Arrangement includes, but is not limited to, grantor incurring liability for product and service based on price of its shares.",
        "label": "Share-Based Payment Arrangement [Member]",
        "terseLabel": "Stock Options and Other Common Stock Equivalents"
       }
      }
     },
     "localname": "StockCompensationPlanMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureNetLossPerShareAttributableToAthenexIncCommonStockholdersScheduleWeightedAverageOutstandingSharesOfCommonStockEquivalentsExcludedFromCalculationOfDilutedNetLossPerShareDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesAcquisitions": {
     "auth_ref": [
      "r37",
      "r38",
      "r169"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of stock issued during the period pursuant to acquisitions.",
        "label": "Stock Issued During Period, Shares, Acquisitions",
        "terseLabel": "Equity consideration in connection with acquisition, shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesAcquisitions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesNewIssues": {
     "auth_ref": [
      "r37",
      "r38",
      "r164",
      "r169"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of new stock issued during the period.",
        "label": "Shares of common stock issued",
        "terseLabel": "Sale of common stock, shares",
        "verboseLabel": "Number of shares issued and sold"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesNewIssues",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross": {
     "auth_ref": [
      "r164",
      "r169"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total number of shares issued during the period, including shares forfeited, as a result of Restricted Stock Awards.",
        "label": "Stock Issued During Period, Shares, Restricted Stock Award, Gross",
        "terseLabel": "Restricted stock expense, shares",
        "verboseLabel": "Vesting of restricted stock units, shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesRestrictedStockAwardGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised": {
     "auth_ref": [
      "r37",
      "r38",
      "r164",
      "r169",
      "r591"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of share options (or share units) exercised during the current period.",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercises in Period",
        "negatedLabel": "Stock Options, Exercised",
        "terseLabel": "Stock options exercised, shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesStockOptionsExercised",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationScheduleOfStockOptionActivityDetail",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueAcquisitions": {
     "auth_ref": [
      "r59",
      "r164",
      "r169"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of stock issued pursuant to acquisitions during the period.",
        "label": "Stock Issued During Period, Value, Acquisitions",
        "terseLabel": "Equity consideration in connection with acquisition"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueAcquisitions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueNewIssues": {
     "auth_ref": [
      "r37",
      "r38",
      "r164",
      "r169"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Stock Issued During Period, Value, New Issues",
        "terseLabel": "Sale of common stock",
        "verboseLabel": "Sale of common stock"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueNewIssues",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross": {
     "auth_ref": [
      "r37",
      "r38",
      "r164",
      "r169"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate value of stock related to Restricted Stock Awards issued during the period.",
        "label": "Stock Issued During Period, Value, Restricted Stock Award, Gross",
        "terseLabel": "Vesting of restricted stock units"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueRestrictedStockAwardGross",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised": {
     "auth_ref": [
      "r59",
      "r164",
      "r169"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of stock issued as a result of the exercise of stock options.",
        "label": "Stock Issued During Period, Value, Stock Options Exercised",
        "terseLabel": "Stock options exercised"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueStockOptionsExercised",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquity": {
     "auth_ref": [
      "r38",
      "r41",
      "r42",
      "r124",
      "r911",
      "r943",
      "r965",
      "r1039"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total of all stockholders' equity (deficit) items, net of receivables from officers, directors, owners, and affiliates of the entity which are attributable to the parent. The amount of the economic entity's stockholders' equity attributable to the parent excludes the amount of stockholders' equity which is allocable to that ownership interest in subsidiary equity which is not attributable to the parent (noncontrolling interest, minority interest). This excludes temporary equity and is sometimes called permanent equity.",
        "label": "Stockholders' Equity Attributable to Parent",
        "periodEndLabel": "Stockholders' Equity Attributable to Parent, Ending Balance",
        "periodStartLabel": "Stockholders' Equity Attributable to Parent, Beginning Balance",
        "totalLabel": "Total Athenex, Inc. stockholders' (deficit) equity"
       }
      }
     },
     "localname": "StockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity Attributable to Parent [Abstract]",
        "terseLabel": "Stockholders' equity:"
       }
      }
     },
     "localname": "StockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest": {
     "auth_ref": [
      "r217",
      "r218",
      "r227",
      "r301",
      "r302",
      "r337",
      "r365",
      "r366",
      "r367",
      "r370",
      "r378",
      "r458",
      "r552",
      "r614",
      "r615",
      "r616",
      "r639",
      "r640",
      "r679",
      "r706",
      "r707",
      "r713",
      "r748",
      "r799",
      "r800",
      "r943",
      "r965",
      "r1039"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of stockholders' equity (deficit), net of receivables from officers, directors, owners, and affiliates of the entity, attributable to both the parent and noncontrolling interests. Amount excludes temporary equity. Alternate caption for the concept is permanent equity.",
        "label": "Stockholders' Equity, Including Portion Attributable to Noncontrolling Interest",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "totalLabel": "Total stockholders' (deficit) equity"
       }
      }
     },
     "localname": "StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossIncomeScheduleOfComponentsAndChangesOfAccumulatedOtherComprehensiveLossIncomeDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityNoteStockSplit": {
     "auth_ref": [
      "r172"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of the stock split arrangement. Also provide the retroactive effect given by a stock split that occurs after the balance date but before the release of financial statements.",
        "label": "Stockholders' Equity Note, Stock Split",
        "terseLabel": "Reverse stock split, description"
       }
      }
     },
     "localname": "StockholdersEquityNoteStockSplit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityNoteStockSplitConversionRatio1": {
     "auth_ref": [
      "r171"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio applied to the conversion of stock split, for example but not limited to, one share converted to two or two shares converted to one.",
        "label": "Stockholders' Equity Note, Stock Split, Conversion Ratio",
        "terseLabel": "Reverse stock split, conversion ratio"
       }
      }
     },
     "localname": "StockholdersEquityNoteStockSplitConversionRatio1",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_StockholdersEquityPolicyTextBlock": {
     "auth_ref": [
      "r163"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for its capital stock transactions, including dividends and accumulated other comprehensive income.",
        "label": "Stockholders' Equity, Policy [Policy Text Block]",
        "terseLabel": "Treasury Stock"
       }
      }
     },
     "localname": "StockholdersEquityPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_StockholdersEquityReverseStockSplit": {
     "auth_ref": [
      "r172"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of the reverse stock split arrangement. Also provide the retroactive effect given by the reverse split that occurs after the balance sheet date but before the release of financial statements.",
        "label": "Stockholders' Equity, Reverse Stock Split",
        "terseLabel": "Reverse stock split, description"
       }
      }
     },
     "localname": "StockholdersEquityReverseStockSplit",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Detail information of subsequent event by type. User is expected to use existing line items from elsewhere in the taxonomy as the primary line items for this disclosure, which is further associated with dimension and member elements pertaining to a subsequent event.",
        "label": "Subsequent Event [Line Items]",
        "terseLabel": "Subsequent Event [Line Items]"
       }
      }
     },
     "localname": "SubsequentEventLineItems",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventMember": {
     "auth_ref": [
      "r714",
      "r757"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identifies event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event [Member]",
        "terseLabel": "Subsequent Event"
       }
      }
     },
     "localname": "SubsequentEventMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventTable": {
     "auth_ref": [
      "r714",
      "r757"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discloses pertinent information about one or more significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued.",
        "label": "Subsequent Event [Table]",
        "terseLabel": "Subsequent Event [Table]"
       }
      }
     },
     "localname": "SubsequentEventTable",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventTypeAxis": {
     "auth_ref": [
      "r714",
      "r757"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Axis]",
        "terseLabel": "Subsequent Event Type"
       }
      }
     },
     "localname": "SubsequentEventTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventTypeDomain": {
     "auth_ref": [
      "r714",
      "r757"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Domain]",
        "terseLabel": "Subsequent Event Type"
       }
      }
     },
     "localname": "SubsequentEventTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureDiscontinuedOperationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Events [Abstract]"
       }
      }
     },
     "localname": "SubsequentEventsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventsTextBlock": {
     "auth_ref": [
      "r756",
      "r758"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued. Examples include: the sale of a capital stock issue, purchase of a business, settlement of litigation, catastrophic loss, significant foreign exchange rate changes, loans to insiders or affiliates, and transactions not in the ordinary course of business.",
        "label": "Subsequent Events [Text Block]",
        "terseLabel": "Subsequent Events"
       }
      }
     },
     "localname": "SubsequentEventsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEvents"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubsidiarySaleOfStockAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of sale of the entity's stock.",
        "label": "Sale of Stock [Axis]",
        "terseLabel": "Sale of Stock"
       }
      }
     },
     "localname": "SubsidiarySaleOfStockAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubstantialDoubtAboutGoingConcernConditionsOrEvents": {
     "auth_ref": [
      "r28",
      "r29"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of principal conditions or events that raised substantial doubt about the ability to continue as a going concern.",
        "label": "Substantial Doubt about Going Concern, Conditions or Events",
        "terseLabel": "Substantial doubt about going concern, conditions or events"
       }
      }
     },
     "localname": "SubstantialDoubtAboutGoingConcernConditionsOrEvents",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubstantialDoubtAboutGoingConcernWithinOneYear": {
     "auth_ref": [
      "r30"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates (true false) whether there was substantial doubt about ability to continue as going concern within one year after date financial statements are issued.",
        "label": "Substantial Doubt about Going Concern, within One Year [true false]",
        "terseLabel": "Substantial doubt about going concern, within next twelve month"
       }
      }
     },
     "localname": "SubstantialDoubtAboutGoingConcernWithinOneYear",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail"
     ],
     "xbrltype": "booleanItemType"
    },
    "us-gaap_SupplementalCashFlowElementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Cash Flow Elements [Abstract]",
        "terseLabel": "Supplemental cash flow disclosures"
       }
      }
     },
     "localname": "SupplementalCashFlowElementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TimingOfTransferOfGoodOrServiceAxis": {
     "auth_ref": [
      "r897",
      "r993"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by timing of transfer of good or service to customer.",
        "label": "Timing of Transfer of Good or Service [Axis]",
        "terseLabel": "Timing of Transfer of Good or Service"
       }
      }
     },
     "localname": "TimingOfTransferOfGoodOrServiceAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TimingOfTransferOfGoodOrServiceDomain": {
     "auth_ref": [
      "r897",
      "r993"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Timing of transfer of good or service to customer. Includes, but is not limited to, at point in time or over time.",
        "label": "Timing of Transfer of Good or Service [Domain]",
        "terseLabel": "Timing of Transfer of Good or Service"
       }
      }
     },
     "localname": "TimingOfTransferOfGoodOrServiceDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TransactionDomain": {
     "auth_ref": [
      "r877"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Agreement between buyer and seller for the exchange of financial instruments.",
        "label": "Transaction [Domain]",
        "terseLabel": "Transaction"
       }
      }
     },
     "localname": "TransactionDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TransactionTypeAxis": {
     "auth_ref": [
      "r877"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of agreement between buyer and seller for the exchange of financial instruments.",
        "label": "Transaction Type [Axis]",
        "terseLabel": "Transaction Type"
       }
      }
     },
     "localname": "TransactionTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TransferredAtPointInTimeMember": {
     "auth_ref": [
      "r897"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contract with customer in which good or service is transferred at point in time.",
        "label": "Transferred at Point in Time [Member]",
        "terseLabel": "Transferred at a Point in Time"
       }
      }
     },
     "localname": "TransferredAtPointInTimeMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfCompanySRevenueForReportableSegmentByCountryBasedOnLocationsOfCustomerDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TreasuryStockMember": {
     "auth_ref": [
      "r58",
      "r174"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Shares of an entity that have been repurchased by the entity. This stock has no voting rights and receives no dividends. Note that treasury stock may be recorded at its total cost or separately as par (or stated) value and additional paid in capital. Classified within stockholders' equity if nonredeemable or redeemable solely at the option of the issuer. Classified within temporary equity if redemption is outside the control of the issuer.",
        "label": "Treasury Stock [Member]",
        "terseLabel": "Treasury Stock"
       }
      }
     },
     "localname": "TreasuryStockMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TreasuryStockShares": {
     "auth_ref": [
      "r58",
      "r174"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of common and preferred shares that were previously issued and that were repurchased by the issuing entity and held in treasury on the financial statement date. This stock has no voting rights and receives no dividends.",
        "label": "Treasury Stock, Shares",
        "periodEndLabel": "Treasury Stock, Shares, Ending Balance",
        "periodStartLabel": "Treasury Stock, Shares, Beginning Balance",
        "terseLabel": "Treasury stock, shares",
        "totalLabel": "Treasury Stock, Shares, Total"
       }
      }
     },
     "localname": "TreasuryStockShares",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_TreasuryStockSharesAcquired": {
     "auth_ref": [
      "r38",
      "r164",
      "r169"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares that have been repurchased during the period and are being held in treasury.",
        "label": "Treasury Stock, Shares, Acquired",
        "negatedLabel": "Treasury stock repurchase, shares"
       }
      }
     },
     "localname": "TreasuryStockSharesAcquired",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_TreasuryStockValue": {
     "auth_ref": [
      "r58",
      "r174",
      "r175"
     ],
     "calculation": {
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount allocated to treasury stock. Treasury stock is common and preferred shares of an entity that were issued, repurchased by the entity, and are held in its treasury.",
        "label": "Treasury Stock, Value",
        "negatedLabel": "Less: treasury stock, at cost; 84,928 and 83,646 shares at December 31, 2022 and 2021, respectively",
        "periodEndLabel": "Treasury Stock, Value, Ending Balance",
        "periodStartLabel": "Treasury Stock, Value, Beginning Balance",
        "totalLabel": "Treasury Stock, Value, Total"
       }
      }
     },
     "localname": "TreasuryStockValue",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TreasuryStockValueAcquiredCostMethod": {
     "auth_ref": [
      "r164",
      "r169",
      "r174"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity impact of the cost of common and preferred stock that were repurchased during the period. Recorded using the cost method.",
        "label": "Treasury Stock, Value, Acquired, Cost Method",
        "negatedLabel": "Treasury stock repurchase"
       }
      }
     },
     "localname": "TreasuryStockValueAcquiredCostMethod",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TypeOfAdoptionMember": {
     "auth_ref": [
      "r299",
      "r300",
      "r301",
      "r302",
      "r303",
      "r369",
      "r370",
      "r371",
      "r372",
      "r381",
      "r447",
      "r448",
      "r455",
      "r456",
      "r457",
      "r458",
      "r459",
      "r460",
      "r614",
      "r615",
      "r616",
      "r637",
      "r638",
      "r639",
      "r640",
      "r658",
      "r659",
      "r660",
      "r671",
      "r672",
      "r673",
      "r674",
      "r675",
      "r676",
      "r677",
      "r678",
      "r679",
      "r680",
      "r681",
      "r682",
      "r692",
      "r693",
      "r695",
      "r696",
      "r697",
      "r698",
      "r699",
      "r700",
      "r716",
      "r717",
      "r722",
      "r723",
      "r724",
      "r725",
      "r743",
      "r744",
      "r745",
      "r746",
      "r747",
      "r748",
      "r767",
      "r768",
      "r769",
      "r796",
      "r797",
      "r798",
      "r799",
      "r800",
      "r801",
      "r802",
      "r803",
      "r804",
      "r805",
      "r806",
      "r807"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amendment to accounting standards.",
        "label": "Accounting Standards Update [Domain]",
        "terseLabel": "Accounting Standards Update"
       }
      }
     },
     "localname": "TypeOfAdoptionMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TypeOfArrangementAxis": {
     "auth_ref": [
      "r1036"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by collaborative arrangement and arrangement other than collaborative applicable to revenue-generating activity or operations.",
        "label": "Collaborative Arrangement and Arrangement Other than Collaborative [Axis]",
        "terseLabel": "Collaborative Arrangement and Arrangement Other than Collaborative"
       }
      }
     },
     "localname": "TypeOfArrangementAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationAdditionalInformationDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredDetails",
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureBusinessCombinationSummaryOfFinalPurchasePriceAllocationToFairValueOfAssetsAndLiabilitiesAcquiredParentheticalDetails",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSubsequentEventsAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TypeOfRevenueExtensibleList": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates type of revenue from product and service. Includes, but is not limited to, revenue from contract with customer and other sources.",
        "label": "Revenue, Product and Service [Extensible Enumeration]",
        "terseLabel": "Type of Revenue [Extensible List]"
       }
      }
     },
     "localname": "TypeOfRevenueExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_USTreasuryAndGovernmentMember": {
     "auth_ref": [
      "r788",
      "r899",
      "r1067"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This category includes investments in debt securities issued by the United States Department of the Treasury, US Government Agencies and US Government-sponsored Enterprises. Such securities may include treasury bills (short-term maturities - one year or less), treasury notes (intermediate term maturities - two to ten years), and treasury bonds (long-term maturities - ten to thirty years), debt securities issued by the Government National Mortgage Association (Ginnie Mae) and debt securities issued by the Federal National Mortgage Association (Fannie Mae) or the Federal Home Loan Mortgage Corporation (Freddie Mac).",
        "label": "US Treasury and Government [Member]",
        "terseLabel": "U.S. Government Bonds"
       }
      }
     },
     "localname": "USTreasuryAndGovernmentMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnARecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestExpense": {
     "auth_ref": [
      "r625"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for interest on an underpayment of income taxes and penalties related to a tax position claimed or expected to be claimed in the tax return.",
        "label": "Unrecognized Tax Benefits, Income Tax Penalties and Interest Expense",
        "terseLabel": "Amounts recognized for interest and penalties related to unrecognized tax benefits",
        "totalLabel": "Unrecognized Tax Benefits, Income Tax Penalties and Interest Expense, Total"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnusualRiskOrUncertaintyByNatureAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by nature of risk and uncertainty, for example, but not limited to, threat of expropriation of its assets by a foreign government, rapid technological obsolescence in the industry, risk of natural disaster from earthquake or weather events, and availability of or continuation of a labor force at a reasonable cost.",
        "label": "Unusual Risk or Uncertainty, Nature [Axis]",
        "terseLabel": "Unusual Risk or Uncertainty, Nature"
       }
      }
     },
     "localname": "UnusualRiskOrUncertaintyByNatureAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_UnusualRiskOrUncertaintyNatureDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Describes the nature of the unusual risk or uncertainty, such as the threat of expropriation of its assets by a foreign government, rapid technological obsolescence in the industry, risk of natural disaster from earthquake or weather events, and availability of or continuation of a labor force at a reasonable cost.",
        "label": "Unusual Risk or Uncertainty, Nature [Domain]",
        "terseLabel": "Unusual Risk or Uncertainty, Nature"
       }
      }
     },
     "localname": "UnusualRiskOrUncertaintyNatureDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UseOfEstimates": {
     "auth_ref": [
      "r112",
      "r113",
      "r114",
      "r398",
      "r399",
      "r401",
      "r402"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for the use of estimates in the preparation of financial statements in conformity with generally accepted accounting principles.",
        "label": "Use of Estimates, Policy [Policy Text Block]",
        "terseLabel": "Use of Estimates"
       }
      }
     },
     "localname": "UseOfEstimates",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount": {
     "auth_ref": [
      "r631"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in the valuation allowance for a specified deferred tax asset.",
        "label": "Valuation Allowance, Deferred Tax Asset, Increase (Decrease), Amount",
        "negatedLabel": "Change in valuation allowance",
        "negatedTerseLabel": "Increase (decrease) in valuation allowance for deferred tax assets",
        "terseLabel": "Increase (decrease) in valuation allowance for deferred tax assets"
       }
      }
     },
     "localname": "ValuationAllowanceDeferredTaxAssetChangeInAmount",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationAllowanceOfDeferredTaxAssetsMember": {
     "auth_ref": [
      "r946",
      "r947",
      "r948",
      "r949",
      "r950"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation allowance of deferred tax asset attributable to deductible temporary difference and carryforward.",
        "label": "SEC Schedule, 12-09, Valuation Allowance, Deferred Tax Asset [Member]",
        "terseLabel": "Deferred tax asset valuation allowance"
       }
      }
     },
     "localname": "ValuationAllowanceOfDeferredTaxAssetsMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccountsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ValuationAllowancesAndReservesBalance": {
     "auth_ref": [
      "r357",
      "r363"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of valuation and qualifying accounts and reserves.",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves, Amount",
        "periodEndLabel": "Balance at End of Period",
        "periodStartLabel": "Balance at Beginning of Period"
       }
      }
     },
     "localname": "ValuationAllowancesAndReservesBalance",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccountsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense": {
     "auth_ref": [
      "r360"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in valuation and qualifying accounts and reserves from charge to cost and expense.",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense",
        "terseLabel": "Charged to Costs &amp; Expenses"
       }
      }
     },
     "localname": "ValuationAllowancesAndReservesChargedToCostAndExpense",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccountsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationAllowancesAndReservesChargedToOtherAccounts": {
     "auth_ref": [
      "r361"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in valuation and qualifying accounts and reserves from charge to accounts other than cost and expense.",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Other Account",
        "terseLabel": "Charged to Other Accounts"
       }
      }
     },
     "localname": "ValuationAllowancesAndReservesChargedToOtherAccounts",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccountsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationAllowancesAndReservesDeductions": {
     "auth_ref": [
      "r362"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of decrease in valuation and qualifying accounts and reserves.",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction",
        "negatedLabel": "Deductions"
       }
      }
     },
     "localname": "ValuationAllowancesAndReservesDeductions",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccountsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationAllowancesAndReservesDomain": {
     "auth_ref": [
      "r357",
      "r358",
      "r359",
      "r362",
      "r363"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation and qualifying accounts and reserves.",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves [Domain]",
        "terseLabel": "SEC Schedule, 12-09, Valuation Allowances and Reserves"
       }
      }
     },
     "localname": "ValuationAllowancesAndReservesDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccountsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ValuationAllowancesAndReservesTypeAxis": {
     "auth_ref": [
      "r357",
      "r358",
      "r359",
      "r362",
      "r363"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by valuation and qualifying accounts and reserves.",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves Type [Axis]",
        "terseLabel": "SEC Schedule, 12-09, Valuation Allowances and Reserves Type"
       }
      }
     },
     "localname": "ValuationAllowancesAndReservesTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureScheduleIIValuationAndQualifyingAccountsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VariableRateAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of variable rate.",
        "label": "Variable Rate [Axis]",
        "terseLabel": "Variable Rate"
       }
      }
     },
     "localname": "VariableRateAxis",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VariableRateDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate that fluctuates over time as a result of an underlying benchmark interest rate or index.",
        "label": "Variable Rate [Domain]",
        "terseLabel": "Variable Rate"
       }
      }
     },
     "localname": "VariableRateDomain",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_WarrantMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Warrant [Member]",
        "terseLabel": "Common Warrants"
       }
      }
     },
     "localname": "WarrantMember",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureCompanyAndNatureOfBusinessAdditionalInformationDetail",
      "http://www.athenex.com/20221231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "auth_ref": [
      "r383",
      "r389"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Weighted Average Number of Shares Outstanding, Diluted",
        "terseLabel": "Weighted-average shares used in computing net loss per share attributableto Athenex, Inc. common stockholders, diluted (Note 16)",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Diluted, Total"
       }
      }
     },
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "auth_ref": [
      "r382",
      "r389"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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.",
        "label": "Weighted Average Number of Shares Outstanding, Basic",
        "terseLabel": "Weighted-average shares used in computing net loss per share attributable to Athenex, Inc. common stockholders, basic (Note 16)",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Basic, Total"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WriteOffOfDeferredDebtIssuanceCost": {
     "auth_ref": [
      "r81"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Write-off of amounts previously capitalized as debt issuance cost in an extinguishment of debt.",
        "label": "Write off of Deferred Debt Issuance Cost",
        "terseLabel": "Write off of deferred debt issuance costs",
        "verboseLabel": "Loss on extinguishment of debt and write-off of deferred issuance costs"
       }
      }
     },
     "localname": "WriteOffOfDeferredDebtIssuanceCost",
     "nsuri": "http://fasb.org/us-gaap/2022",
     "presentation": [
      "http://www.athenex.com/20221231/taxonomy/role/Role_DisclosureDebtAndLeaseObligationsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    }
   },
   "unitCount": 14
  }
 },
 "std_ref": {
  "r0": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222160&loc=d3e1107-107759",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222160&loc=SL51721533-107759",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r10": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r100": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4297-108586",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1000": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1001": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1002": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1003": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1004": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1005": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1006": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1007": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(04)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1008": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1009": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r101": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4304-108586",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1010": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1011": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1012": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1013": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1014": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1015": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1016": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1017": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1018": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1019": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r102": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4313-108586",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1020": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1021": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1022": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(v)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1023": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1024": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(l)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1025": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "740",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=126970579&loc=d3e23163-113944",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1026": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32687-109319",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1027": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32718-109319",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1028": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1029": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32621-109319",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r103": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=SL98516268-108586",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1030": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1031": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1032": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.7)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1033": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.4)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1034": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(2)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1035": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(3)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1036": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "808",
   "URI": "https://asc.fasb.org/extlink&oid=6931272&loc=SL5834143-161434",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1037": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(3)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1038": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(2)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1039": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123596393&loc=d3e14064-108612",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r104": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "235",
   "URI": "https://asc.fasb.org/topic&trid=2122369",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1040": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=123444420&loc=d3e33268-110906",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1041": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1042": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=6450520&loc=d3e32583-110901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1043": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918638-209977",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1044": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918673-209980",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1045": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918673-209980",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1046": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1047": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918701-209980",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1048": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1049": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r105": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1050": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39599-107864",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1051": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39603-107864",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1052": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "852",
   "URI": "https://asc.fasb.org/extlink&oid=124433192&loc=SL2890621-112765",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1053": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "852",
   "URI": "https://asc.fasb.org/extlink&oid=124433192&loc=SL2890621-112765",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1054": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1055": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1056": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1057": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1058": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1059": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r106": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "272",
   "URI": "https://asc.fasb.org/extlink&oid=6373374&loc=d3e70478-108055",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1060": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "730",
   "Topic": "912",
   "URI": "https://asc.fasb.org/extlink&oid=6472174&loc=d3e58812-109433",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1061": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(1)(a))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1062": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(27))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1063": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(2))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1064": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(23))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1065": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4H",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=116884468&loc=SL65671331-158438",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1066": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(c)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126561865&loc=SL117783719-158441",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1067": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124508989&loc=d3e19393-158473",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1068": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "825",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=123600520&loc=SL75241803-196195",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1069": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column B))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r107": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6327-108592",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1070": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column C))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1071": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column D))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1072": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column E))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1073": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column F))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1074": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column G))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1075": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column H))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1076": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column I))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1077": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "985",
   "URI": "https://asc.fasb.org/extlink&oid=6501960&loc=d3e128462-111756",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1078": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "11",
   "Subsection": "03",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1079": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column B",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r108": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1080": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column C",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1081": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column D",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1082": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column E",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1083": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column F",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1084": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column G",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1085": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column H",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1086": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column I",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1087": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(i)",
   "Subsection": "01",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1088": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(ii)",
   "Subsection": "01",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1089": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iii)",
   "Subsection": "01",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r109": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r1090": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iv)",
   "Subsection": "01",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r1091": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iv)",
   "Subsection": "02",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r11": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=d3e1474-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r110": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6404-108592",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r111": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6442-108592",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r112": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6061-108592",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r113": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6132-108592",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r114": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6143-108592",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r115": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r116": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8813-108599",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r117": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r118": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r119": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r12": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721659-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r120": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8924-108599",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r121": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9031-108599",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r122": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "a",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9038-108599",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r123": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "b",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9038-108599",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r124": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 4.E)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=122038336&loc=d3e74512-122707",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r125": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "323",
   "URI": "https://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r126": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "330",
   "URI": "https://asc.fasb.org/extlink&oid=116847112&loc=d3e4492-108314",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r127": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 5.BB)",
   "Topic": "330",
   "URI": "https://asc.fasb.org/extlink&oid=27011343&loc=d3e100047-122729",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r128": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r129": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=6388964&loc=d3e16212-109274",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r13": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721663-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r130": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=6388964&loc=d3e16225-109274",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r131": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r132": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(3)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r133": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r134": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r135": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "((a)(1),(b))",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r136": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r137": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(1)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r138": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(2)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r139": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(3)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r14": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721665-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r140": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r141": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16373-109275",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r142": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "350",
   "URI": "https://asc.fasb.org/topic&trid=2144416",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r143": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "05",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=109226317&loc=d3e202-110218",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r144": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=126905813&loc=d3e1205-110223",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r145": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=126905981&loc=d3e2510-110228",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r146": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=126905981&loc=d3e2611-110228",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r147": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=126905981&loc=d3e2473-110228",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r148": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r149": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r15": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721671-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r150": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r151": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r152": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r153": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r154": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=109226691&loc=SL51724579-110230",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r155": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 5.CC)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=27011434&loc=d3e125687-122742",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r156": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "360",
   "URI": "https://asc.fasb.org/topic&trid=2155823",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r157": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "440",
   "URI": "https://asc.fasb.org/topic&trid=2144648",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r158": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=99376301&loc=SL5988623-112600",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r159": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123465755&loc=SL6230698-112601",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r16": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r160": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466302&loc=d3e4724-112606",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r161": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "40",
   "SubTopic": "50",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126972273&loc=d3e12317-112629",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r162": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "40",
   "SubTopic": "50",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126972273&loc=d3e12355-112629",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r163": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21459-112644",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r164": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21463-112644",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r165": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21475-112644",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r166": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21506-112644",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r167": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21521-112644",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r168": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21538-112644",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r169": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-04)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r17": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r170": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r171": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 4.C)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=120397183&loc=d3e187143-122770",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r172": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 4.C)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=120397183&loc=d3e187143-122770",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r173": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 4.F)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=120397183&loc=d3e187171-122770",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r174": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=6405813&loc=d3e23239-112655",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r175": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=6405834&loc=d3e23315-112656",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r176": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "50",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=6784392&loc=d3e188667-122775",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r177": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5047-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r178": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b),(f(1))",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r179": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r18": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r180": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r181": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r182": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r183": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r184": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r185": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r186": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r187": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=SL79508275-113901",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r188": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "730",
   "URI": "https://asc.fasb.org/extlink&oid=6420194&loc=d3e21568-108373",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r189": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=123427490&loc=d3e31931-109318",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r19": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r190": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32687-109319",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r191": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32718-109319",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r192": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r193": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32559-109319",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r194": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32632-109319",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r195": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r196": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.7)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r197": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "05",
   "SubTopic": "10",
   "Subparagraph": "(a)-(d)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=6909625&loc=d3e227-128457",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r198": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=123586518&loc=d3e1043-128460",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r199": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r2": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222160&loc=SL51721494-107759",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r20": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r200": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r201": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1486-128463",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r202": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "37",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=123455525&loc=d3e2207-128464",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r203": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092470&loc=d3e4845-128472",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r204": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092470&loc=d3e4845-128472",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r205": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=123410050&loc=d3e5333-128473",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r206": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=123410050&loc=d3e5419-128473",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r207": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=123410050&loc=d3e5419-128473",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r208": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "30",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=6911189&loc=d3e6408-128476",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r209": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "30",
   "SubTopic": "30",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126966197&loc=d3e6578-128477",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r21": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r210": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "30",
   "SubTopic": "30",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126966197&loc=d3e6613-128477",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r211": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126966325&loc=d3e6819-128478",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r212": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "30",
   "Subparagraph": "b",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126966325&loc=d3e6819-128478",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r213": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r214": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(4)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r215": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "c",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r216": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "805",
   "URI": "https://asc.fasb.org/topic&trid=2303972",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r217": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4568447-111683",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r218": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4568740-111683",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r219": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4613673-111683",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r22": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721675-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r220": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4569616-111683",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r221": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4569643-111683",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r222": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4569655-111683",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r223": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r224": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r225": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r226": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c),(3)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r227": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4I",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=120409616&loc=SL4590271-111686",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r228": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=120409616&loc=SL4591551-111686",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r229": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 5.E)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=120398118&loc=d3e355146-122828",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r23": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721675-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r230": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r231": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r232": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=125515794&loc=SL5624177-113959",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r233": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r234": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r235": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r236": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r237": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19279-110258",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r238": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "60",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=7493716&loc=d3e21868-110260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r239": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123594938&loc=d3e13279-108611",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r24": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721677-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r240": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123594938&loc=d3e13531-108611",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r241": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123594938&loc=d3e13537-108611",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r242": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123594938&loc=d3e13537-108611",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r243": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "20",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=123602790&loc=d3e30226-110892",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r244": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=123444420&loc=d3e33268-110906",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r245": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=124435984&loc=d3e28541-108399",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r246": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=124435984&loc=d3e28551-108399",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r247": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=124435984&loc=d3e28555-108399",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r248": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r249": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r25": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721683-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r250": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r251": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r252": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39603-107864",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r253": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "940",
   "URI": "https://asc.fasb.org/extlink&oid=126941158&loc=d3e41242-110953",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r254": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(1)(a))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r255": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(11))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r256": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(13))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r257": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15)(1))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r258": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15)(2))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r259": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(16))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r26": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=26872618&loc=d3e7436-122677",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r260": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(22))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r261": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(23))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r262": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(4))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r263": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(5))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r264": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.10)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r265": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.15(5))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r266": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.17)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r267": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(19))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r268": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(15))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r269": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(20))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r27": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/subtopic&trid=2122178",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r270": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(22))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r271": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.9)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r272": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "405",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=116652737&loc=d3e64164-112818",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r273": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Subparagraph": "(c)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=123599511&loc=d3e64711-112823",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r274": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Subparagraph": "e",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=123599511&loc=d3e64711-112823",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r275": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=123599511&loc=d3e64711-112823",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r276": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "825",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126941378&loc=d3e61044-112788",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r277": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(15)(b)(2))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r278": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(16))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r279": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(1)(g))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r28": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=116846462&loc=SL51888443-203568",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r280": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r281": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(15)(b)(1))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r282": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16)(a)(1))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r283": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r284": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(4))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r285": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(24))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r286": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(25))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r287": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(8))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r288": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.(a),19)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r289": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.17)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r29": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=116846462&loc=SL51888449-203568",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r290": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(11))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r291": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(12))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r292": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(18))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r293": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(19))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r294": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(8))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r295": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(c)",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=99383244&loc=d3e12121-115841",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r296": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07.1(c))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=120401555&loc=SL114874292-224272",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r297": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "985",
   "URI": "https://asc.fasb.org/extlink&oid=6501960&loc=d3e128462-111756",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r298": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(n)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef"
  },
  "r299": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r3": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222160&loc=d3e957-107759",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r30": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=116846462&loc=SL51888449-203568",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r300": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r301": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r302": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r303": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "105",
   "URI": "https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r304": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r305": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r306": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721673-107760",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r307": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721675-107760",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r308": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=SL51721683-107760",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r309": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r31": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=6361739&loc=d3e7789-107766",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r310": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6904-107765",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r311": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=6361739&loc=d3e7789-107766",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r312": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r313": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(13))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r314": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(14))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r315": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(15))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r316": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(16))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r317": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(17))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r318": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(18))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r319": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(22))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r32": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r320": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(3)(a)(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r321": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(4))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r322": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(4))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r323": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r324": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r325": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(9))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r326": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(2))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r327": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669646-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r328": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e637-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r329": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL34724391-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r33": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(20))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r330": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669619-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r331": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669619-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r332": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669619-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r333": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669625-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r334": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669625-108580",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r335": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL116659661-227067",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r336": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124442407-227067",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r337": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124442411-227067",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r338": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124452729-227067",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r339": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(210.5-03(11))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r34": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(22))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r340": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(1))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r341": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(21))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r342": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(24))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r343": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(25))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r344": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(5))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r345": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3367-108585",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r346": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3000-108585",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r347": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3536-108585",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r348": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4297-108586",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r349": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=126899994&loc=d3e18726-107790",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r35": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(a))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r350": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r351": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(1))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r352": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(2))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r353": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r354": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(iii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r355": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(2)(ii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r356": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-04(a))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r357": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column B))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r358": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column C(1)))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r359": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column C(2)))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r36": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r360": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column C)(1))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r361": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column C)(2))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r362": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column D))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r363": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column E))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r364": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09)",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r365": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21914-107793",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r366": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21930-107793",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r367": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21711-107793",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r368": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r369": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r37": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(28))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r370": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r371": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(4)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r372": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r373": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22694-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r374": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22694-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r375": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22583-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r376": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22595-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r377": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r378": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r379": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22658-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r38": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(29))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r380": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22663-107794",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r381": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.M.Q2)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=122038215&loc=d3e31137-122693",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r382": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1448-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r383": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1505-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r384": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1252-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r385": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1278-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r386": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=SL5780133-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r387": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=SL5780133-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r388": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=126958026&loc=d3e1337-109256",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r389": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r39": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r390": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r391": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3630-109257",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r392": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=109243012&loc=SL65017193-207537",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r393": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=128363288&loc=d3e3842-109258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r394": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "260",
   "URI": "https://asc.fasb.org/topic&trid=2144383",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r395": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "270",
   "URI": "https://asc.fasb.org/extlink&oid=126900757&loc=d3e543-108305",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r396": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "https://asc.fasb.org/extlink&oid=125520817&loc=d3e70191-108054",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r397": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e5967-108592",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r398": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e5967-108592",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r399": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e5967-108592",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r4": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222160&loc=SL51721523-107759",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r40": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(3))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r400": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e5967-108592",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r401": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6161-108592",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r402": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6191-108592",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r403": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "275",
   "URI": "https://asc.fasb.org/topic&trid=2134479",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r404": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8657-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r405": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8721-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r406": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8721-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r407": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r408": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r409": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r41": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r410": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r411": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r412": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r413": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r414": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r415": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(j)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r416": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r417": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8813-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r418": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8813-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r419": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "26",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8844-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r42": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(31))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r420": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8864-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r421": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8864-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r422": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8864-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r423": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8864-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r424": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8864-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r425": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8864-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r426": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r427": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r428": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r429": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r43": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(32))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r430": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8924-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r431": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r432": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r433": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r434": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r435": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r436": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8933-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r437": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "34",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8981-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r438": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9031-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r439": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9038-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r44": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(a))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r440": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9038-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r441": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9038-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r442": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "42",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e9054-108599",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r443": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "280",
   "URI": "https://asc.fasb.org/topic&trid=2134510",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r444": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=124259787&loc=d3e4428-111522",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r445": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=124259787&loc=d3e4531-111522",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r446": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5074-111524",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r447": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=126986314&loc=SL124402458-218513",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r448": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=126986314&loc=SL124402458-218513",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r449": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "https://asc.fasb.org/extlink&oid=126970911&loc=SL6284393-111563",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r45": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r450": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "323",
   "URI": "https://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r451": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "323",
   "URI": "https://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r452": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL120254519-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r453": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL120320025-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r454": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL120320025-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r455": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r456": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r457": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r458": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r459": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r46": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(c))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r460": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(4)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r461": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "30",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124256539&loc=SL120269210-210444",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r462": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "30",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124256539&loc=SL120254536-210444",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r463": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8A",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124266218&loc=SL120267834-210445",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r464": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255206&loc=SL82895884-210446",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r465": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255206&loc=SL120267845-210446",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r466": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919244-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r467": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r468": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r469": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919253-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r47": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19(a))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r470": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919260-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r471": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL82919272-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r472": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL120267966-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r473": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124255953&loc=SL120267969-210447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r474": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Subparagraph": "(SAB Topic 6.M.Q4)",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=122651532&loc=SL122037091-237805",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r475": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "30",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124268681&loc=SL120267897-210452",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r476": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13A",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=125515542&loc=SL120267917-210453",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r477": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=125515542&loc=SL120269220-210453",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r478": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL120267853-210455",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r479": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL120267859-210455",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r48": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19(b),22(b))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r480": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL120267862-210455",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r481": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "https://asc.fasb.org/extlink&oid=124269663&loc=SL82922895-210455",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r482": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "330",
   "URI": "https://asc.fasb.org/extlink&oid=116847112&loc=d3e4492-108314",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r483": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "330",
   "URI": "https://asc.fasb.org/extlink&oid=116847112&loc=d3e4542-108314",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r484": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "330",
   "URI": "https://asc.fasb.org/extlink&oid=116847112&loc=d3e4556-108314",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r485": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "330",
   "URI": "https://asc.fasb.org/topic&trid=2126998",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r486": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=99380562&loc=d3e13770-109266",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r487": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=99380562&loc=d3e13777-109266",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r488": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r489": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r49": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19-26)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r490": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r491": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r492": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r493": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r494": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r495": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r496": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r497": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=SL108378252-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r498": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13854-109267",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r499": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "https://asc.fasb.org/subtopic&trid=2144439",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r5": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222160&loc=SL51721525-107759",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r50": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.20)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r500": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r501": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(1)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r502": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r503": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r504": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(1)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r505": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r506": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r507": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16373-109275",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r508": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r509": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "360",
   "URI": "https://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r51": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.21)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r510": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "420",
   "URI": "https://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r511": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "420",
   "URI": "https://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r512": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 5.P.4(d))",
   "Topic": "420",
   "URI": "https://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r513": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "440",
   "URI": "https://asc.fasb.org/extlink&oid=123406679&loc=d3e25336-109308",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r514": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "440",
   "URI": "https://asc.fasb.org/extlink&oid=123406679&loc=d3e25336-109308",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r515": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14435-108349",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r516": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14557-108349",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r517": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Subparagraph": "(SAB Topic 5.Y.Q2)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=27011672&loc=d3e149879-122751",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r518": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Subparagraph": "(SAB Topic 5.Y.Q4)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=27011672&loc=d3e149879-122751",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r519": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(i))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r52": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r520": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r521": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(B))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r522": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iv))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r523": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(5))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r524": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(i))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r525": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(A)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r526": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r527": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(B)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r528": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(B))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r529": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(C))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r53": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r530": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iv))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r531": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(5))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r532": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r533": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r534": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r535": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r536": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r537": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r538": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r539": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r54": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.23)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r540": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r541": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r542": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r543": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r544": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r545": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r546": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r547": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r548": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r549": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466204&loc=SL6031897-161870",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r55": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.24)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r550": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r551": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=d3e21475-112644",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r552": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-04)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r553": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126919976&loc=SL49130531-203044",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r554": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126919976&loc=SL49130532-203044",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r555": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130551-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r556": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130554-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r557": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130554-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r558": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130554-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r559": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130554-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r56": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.25)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r560": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130554-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r561": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130556-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r562": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130558-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r563": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130543-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r564": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130543-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r565": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130545-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r566": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130549-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r567": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130549-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r568": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130550-203045",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r569": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "606",
   "URI": "https://asc.fasb.org/topic&trid=49130388",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r57": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r570": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(i)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r571": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(01)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r572": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r573": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(A)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r574": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(B)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r575": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(C)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r576": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(03)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r577": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(n)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r578": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(d)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r579": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(f)(3)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r58": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29,30)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r580": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=126961718&loc=SL116886442-113899",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r581": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=126961718&loc=d3e4549-113899",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r582": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r583": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r584": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r585": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r586": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r587": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r588": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r589": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r59": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29-31)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r590": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r591": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r592": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r593": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(04)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r594": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r595": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r596": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r597": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(01)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r598": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(02)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r599": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(03)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r6": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222160&loc=d3e1012-107759",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r60": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.31)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r600": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r601": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r602": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r603": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r604": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r605": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(ii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r606": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iii)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r607": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(iv)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r608": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(v)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r609": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(1)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r61": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a-c)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669646-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r610": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r611": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(2)(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r612": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r613": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(l)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r614": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128097895&loc=SL121327923-165333",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r615": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128097895&loc=SL121327923-165333",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r616": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128097895&loc=SL121327923-165333",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r617": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "718",
   "URI": "https://asc.fasb.org/topic&trid=2228938",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r618": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=123427490&loc=d3e32247-109318",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r619": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=123427490&loc=d3e32280-109318",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r62": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669646-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r620": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=123427490&loc=d3e31917-109318",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r621": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=123427490&loc=d3e31931-109318",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r622": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32672-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r623": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32687-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r624": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32705-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r625": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32718-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r626": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32809-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r627": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32840-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r628": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r629": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r63": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e637-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r630": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r631": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r632": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32847-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r633": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32857-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r634": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r635": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r636": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r637": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r638": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r639": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r64": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e640-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r640": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(3)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r641": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.5.Q1)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r642": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.7)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r643": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.1)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r644": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.2)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r645": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.3)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r646": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.4)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r647": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.C)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=122134291&loc=d3e330215-122817",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r648": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=123586238&loc=d3e38679-109324",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r649": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=123586238&loc=d3e38679-109324",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r65": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e681-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r650": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "270",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=109227538&loc=d3e44648-109337",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r651": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "270",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=6424409&loc=d3e44925-109338",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r652": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "https://asc.fasb.org/extlink&oid=6424122&loc=d3e41874-109331",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r653": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "740",
   "URI": "https://asc.fasb.org/topic&trid=2144680",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r654": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(2)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r655": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(3)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r656": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092470&loc=d3e4946-128472",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r657": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092470&loc=d3e4946-128472",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r658": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092918&loc=SL128093175-196984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r659": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092918&loc=SL128093175-196984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r66": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=SL7669686-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r660": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=128092918&loc=SL128093175-196984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r661": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)(1)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r662": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(1)",
   "Topic": "805",
   "URI": "https://asc.fasb.org/extlink&oid=126975305&loc=d3e7008-128479",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r663": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=126929396&loc=SL4569616-111683",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r664": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r665": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r666": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r667": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r668": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r669": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r67": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e689-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r670": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=121483254&loc=SL120254523-199619",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r671": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r672": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)(2)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r673": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)(3)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r674": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)(1)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r675": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)(2)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r676": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r677": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r678": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(2)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r679": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(3)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r68": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e709-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r680": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(4)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r681": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r682": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "https://asc.fasb.org/extlink&oid=126732423&loc=SL126732908-238011",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r683": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r684": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r685": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(1)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r686": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(2)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r687": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r688": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19207-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r689": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=d3e19279-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r69": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126968391&loc=d3e557-108580",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r690": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "https://asc.fasb.org/extlink&oid=126976982&loc=SL6742756-110258",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r691": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=123596393&loc=d3e14064-108612",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r692": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL120254526-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r693": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL120254526-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r694": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL120254526-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r695": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r696": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r697": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r698": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r699": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL122642865-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r7": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222160&loc=d3e1060-107759",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r70": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124507222&loc=d3e1436-108581",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r700": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "825",
   "URI": "https://asc.fasb.org/extlink&oid=126983955&loc=SL122642865-165497",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r701": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=126980362&loc=d3e28129-110885",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r702": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "20",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=123602790&loc=d3e30304-110892",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r703": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=125521441&loc=d3e30755-110894",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r704": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "40",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=116633155&loc=d3e31531-110899",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r705": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32022-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r706": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32136-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r707": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r708": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r709": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r71": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(13))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868656-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r710": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r711": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r712": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=118261656&loc=d3e32262-110900",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r713": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=6450520&loc=d3e32583-110901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r714": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "https://asc.fasb.org/extlink&oid=6450520&loc=d3e32618-110901",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r715": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "830",
   "URI": "https://asc.fasb.org/topic&trid=2175825",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r716": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "832",
   "URI": "https://asc.fasb.org/extlink&oid=128342835&loc=SL128342857-244232",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r717": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "832",
   "URI": "https://asc.fasb.org/extlink&oid=128342835&loc=SL128342857-244232",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r718": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=6450988&loc=d3e26243-108391",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r719": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "https://asc.fasb.org/extlink&oid=124429444&loc=SL124452920-239629",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r72": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(10))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r720": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL77916155-209984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r721": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL120154346-209984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r722": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r723": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r724": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r725": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r726": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r727": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r728": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918631-209977",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r729": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918638-209977",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r73": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(14))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r730": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918643-209977",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r731": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918643-209977",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r732": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123391704&loc=SL77918643-209977",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r733": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918666-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r734": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918673-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r735": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r736": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r737": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(1)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r738": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(2)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r739": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(3)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r74": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(20))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r740": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(4)",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r741": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r742": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=128292326&loc=SL77918701-209980",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r743": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL122150809-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r744": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r745": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r746": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r747": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(01)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r748": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(03)",
   "Topic": "848",
   "URI": "https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r749": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r75": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.1(e))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r750": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r751": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r752": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r753": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "https://asc.fasb.org/extlink&oid=6457730&loc=d3e39691-107864",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r754": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "850",
   "URI": "https://asc.fasb.org/topic&trid=2122745",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r755": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "852",
   "URI": "https://asc.fasb.org/extlink&oid=124437977&loc=d3e55792-112764",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r756": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "855",
   "URI": "https://asc.fasb.org/extlink&oid=6842918&loc=SL6314017-165662",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r757": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "855",
   "URI": "https://asc.fasb.org/extlink&oid=6842918&loc=SL6314017-165662",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r758": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "855",
   "URI": "https://asc.fasb.org/topic&trid=2122774",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r759": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r76": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.1,2)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r760": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(2)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r761": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(3)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r762": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "860",
   "URI": "https://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r763": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "910",
   "URI": "https://asc.fasb.org/extlink&oid=126937589&loc=SL119991595-234733",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r764": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "330",
   "Topic": "912",
   "URI": "https://asc.fasb.org/extlink&oid=6471895&loc=d3e55923-109411",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r765": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.L)",
   "Topic": "924",
   "URI": "https://asc.fasb.org/extlink&oid=6472922&loc=d3e499488-122856",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r766": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "926",
   "URI": "https://asc.fasb.org/extlink&oid=120154696&loc=d3e54445-107959",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r767": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "926",
   "URI": "https://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r768": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "926",
   "URI": "https://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r769": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "926",
   "URI": "https://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r77": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.13)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r770": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "340",
   "Topic": "928",
   "URI": "https://asc.fasb.org/extlink&oid=6473545&loc=d3e61844-108004",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r771": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e61929-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r772": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e61929-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r773": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62059-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r774": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62059-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r775": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62395-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r776": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62395-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r777": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62479-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r778": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e62479-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r779": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "35A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=SL6807758-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r78": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.2(a),(d))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r780": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "35A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=SL6807758-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r781": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(c)(1)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e61872-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r782": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(c)(2)",
   "Topic": "932",
   "URI": "https://asc.fasb.org/extlink&oid=126939881&loc=d3e61872-109447",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r783": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10)(1))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r784": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(23))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r785": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(26))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r786": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(27))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r787": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.9-05(b)(2))",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=120399901&loc=d3e537907-122884",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r788": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=126980459&loc=d3e62557-112803",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r789": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "942",
   "URI": "https://asc.fasb.org/extlink&oid=124429447&loc=SL124453093-239630",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r79": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.4)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r790": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(3))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r791": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(19))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r792": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(22))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r793": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(23))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r794": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(9))",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r795": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124506351&loc=SL117782755-158439",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r796": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r797": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r798": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r799": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(1)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r8": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222160&loc=d3e1063-107759",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r80": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.7(b))",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r800": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(2)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r801": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(1)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r802": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(i)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r803": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(ii)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r804": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iii)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r805": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iv)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r806": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(1)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r807": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(2)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r808": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "825",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=123600520&loc=SL75241803-196195",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r809": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column B)(Footnote 1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r81": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.8)",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=126953954&loc=SL114868664-224227",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r810": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column B)(Footnote 6))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r811": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column B)(Footnote 7))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r812": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column B))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r813": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r814": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 6))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r815": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 7))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r816": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column D)(Footnote 1))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r817": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column D)(Footnote 6))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r818": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column D)(Footnote 7))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r819": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5D",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13D(Column B)(Footnote 2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=SL120429264-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r82": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "220",
   "URI": "https://asc.fasb.org/topic&trid=2134417",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r820": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5D",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13D(Column C)(Footnote 2))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=SL120429264-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r821": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column A))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611379-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r822": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column B))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611379-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r823": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column C))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611379-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r824": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column D))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611379-123010",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r825": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Topic": "948",
   "URI": "https://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r826": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Topic": "954",
   "URI": "https://asc.fasb.org/extlink&oid=126942805&loc=d3e3115-115594",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r827": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "440",
   "Subparagraph": "(a)",
   "Topic": "954",
   "URI": "https://asc.fasb.org/extlink&oid=6491277&loc=d3e6429-115629",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r828": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "440",
   "Subparagraph": "(d)",
   "Topic": "954",
   "URI": "https://asc.fasb.org/extlink&oid=6491277&loc=d3e6429-115629",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r829": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Subparagraph": "(d)",
   "Topic": "958",
   "URI": "https://asc.fasb.org/extlink&oid=126982197&loc=d3e99779-112916",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r83": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3179-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r830": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "958",
   "URI": "https://asc.fasb.org/extlink&oid=126982197&loc=d3e99893-112916",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r831": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "958",
   "URI": "https://asc.fasb.org/extlink&oid=126982197&loc=SL120174063-112916",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r832": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column B))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r833": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column C))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r834": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column D))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r835": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column E))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r836": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column F))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r837": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column G))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r838": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column H))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r839": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column I))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r84": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3179-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r840": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 2))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r841": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 4))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r842": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 5))",
   "Topic": "970",
   "URI": "https://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r843": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(c)",
   "Topic": "976",
   "URI": "https://asc.fasb.org/extlink&oid=6497875&loc=d3e22274-108663",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r844": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(b)",
   "Topic": "978",
   "URI": "https://asc.fasb.org/extlink&oid=126945304&loc=d3e27327-108691",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r845": {
   "Footnote": "2",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r846": {
   "Footnote": "4",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r847": {
   "Footnote": "4",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r848": {
   "Footnote": "5",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r849": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column B",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r85": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3213-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r850": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column C",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r851": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column D",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r852": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column E",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r853": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column F",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r854": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column G",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r855": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column H",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r856": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column I",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r857": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "09",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r858": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(i)",
   "Subsection": "01",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r859": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(i)",
   "Subsection": "02",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r86": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3213-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r860": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iii)(A)",
   "Subsection": "01",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r861": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iii)(A)",
   "Subsection": "02",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r862": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iii)(B)",
   "Subsection": "01",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r863": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iii)(B)",
   "Subsection": "02",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r864": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iii)(C)",
   "Subsection": "02",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r865": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iv)",
   "Subsection": "01",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r866": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iv)",
   "Subsection": "02",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r867": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(m)",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "(1)(iii)",
   "Subsection": "08",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r868": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "c",
   "Publisher": "SEC",
   "Section": "5",
   "Subparagraph": "Schedule III",
   "Subsection": "04",
   "role": "http://www.xbrl.org/2003/role/disclosureRef"
  },
  "r869": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r87": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3255-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r870": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r871": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r872": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=124098289&loc=d3e6935-107765",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r873": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(a)(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r874": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(a)(3))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r875": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=99393222&loc=SL20226024-175313",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r876": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=99393222&loc=SL20226049-175313",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r877": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=99393222&loc=SL20226052-175313",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r878": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=126899994&loc=d3e18823-107790",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r879": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=126899994&loc=d3e18823-107790",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r88": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3255-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r880": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=126899994&loc=d3e18823-107790",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r881": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "52",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=128363288&loc=d3e4984-109258",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r882": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8906-108599",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r883": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8924-108599",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r884": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=122137925&loc=d3e14258-109268",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r885": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r886": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69B",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495735-112612",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r887": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69C",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495737-112612",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r888": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69E",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495743-112612",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r889": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466577&loc=SL123495745-112612",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r89": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3291-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r890": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "505",
   "URI": "https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r891": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130551-203045",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r892": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920602&loc=SL49130690-203046-203046",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r893": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920602&loc=SL49130690-203046-203046",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r894": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920602&loc=SL49130690-203046-203046",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r895": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920602&loc=SL49130690-203046-203046",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r896": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920602&loc=SL49130690-203046-203046",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r897": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920602&loc=SL49130690-203046-203046",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r898": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920602&loc=SL49130690-203046-203046",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r899": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r9": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "205",
   "URI": "https://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r90": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3291-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r900": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(01)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r901": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123450688&loc=d3e4179-114921",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r902": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r903": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=65877416&loc=SL14450673-114947",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r904": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=35742348&loc=SL14450788-114948",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r905": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r906": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r907": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r908": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=120409616&loc=SL4591551-111686",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r909": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "https://asc.fasb.org/extlink&oid=120409616&loc=SL4591552-111686",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r91": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3521-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r910": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "53",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "https://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r911": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "852",
   "URI": "https://asc.fasb.org/extlink&oid=84165509&loc=d3e56426-112766",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r912": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126561865&loc=SL117783719-158441",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r913": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126561865&loc=SL117783719-158441",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r914": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "https://asc.fasb.org/extlink&oid=126561865&loc=SL117819544-158441",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r915": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column A))",
   "Topic": "946",
   "URI": "https://asc.fasb.org/extlink&oid=122147990&loc=d3e611379-123010",
   "role": "http://www.xbrl.org/2003/role/exampleRef"
  },
  "r916": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r917": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r918": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-23",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r919": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "d1-1",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r92": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3536-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r920": {
   "Name": "Form 10-K",
   "Number": "249",
   "Publisher": "SEC",
   "Section": "310",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r921": {
   "Name": "Form 20-F",
   "Number": "249",
   "Publisher": "SEC",
   "Section": "220",
   "Subsection": "f",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r922": {
   "Name": "Form 40-F",
   "Number": "249",
   "Publisher": "SEC",
   "Section": "240",
   "Subsection": "f",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r923": {
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "13",
   "Subsection": "a-1",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r924": {
   "Name": "Regulation S-T",
   "Number": "232",
   "Publisher": "SEC",
   "Section": "405",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r925": {
   "Name": "Securities Act",
   "Number": "230",
   "Publisher": "SEC",
   "Section": "405",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r926": {
   "Name": "Securities Act",
   "Number": "7A",
   "Publisher": "SEC",
   "Section": "B",
   "Subsection": "2",
   "role": "http://www.xbrl.org/2003/role/presentationRef"
  },
  "r927": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14615-108349",
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef"
  },
  "r928": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "855",
   "URI": "https://asc.fasb.org/extlink&oid=6842918&loc=SL6314020-165662",
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef"
  },
  "r929": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(1))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r93": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3536-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r930": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(13))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r931": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(20))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r932": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r933": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(8))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r934": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(9))",
   "Topic": "210",
   "URI": "https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r935": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124442407-227067",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r936": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124442411-227067",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r937": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "https://asc.fasb.org/extlink&oid=124431353&loc=SL124452729-227067",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r938": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3521-108585",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r939": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r94": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3536-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r940": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r941": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=SL98516268-108586",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r942": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(f))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r943": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r944": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(1)(Note 1))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r945": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(k)(1))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r946": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column B))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r947": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column C(1)))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r948": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column C(2)))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r949": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column D))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r95": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r950": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column E))",
   "Topic": "235",
   "URI": "https://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r951": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21914-107793",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r952": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21930-107793",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r953": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124436220&loc=d3e21711-107793",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r954": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r955": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22583-107794",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r956": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "https://asc.fasb.org/extlink&oid=124431687&loc=d3e22595-107794",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r957": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "https://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r958": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "https://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r959": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "https://asc.fasb.org/extlink&oid=126901519&loc=d3e8672-108599",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r96": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r960": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=124259787&loc=d3e4647-111522",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r961": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=123577603&loc=d3e5033-111524",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r962": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=84159169&loc=d3e10133-111534",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r963": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=84159169&loc=d3e10149-111534",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r964": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "https://asc.fasb.org/extlink&oid=84159169&loc=d3e10178-111534",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r965": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "323",
   "URI": "https://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r966": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r967": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r968": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r969": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r97": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3602-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r970": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r971": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r972": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r973": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r974": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r975": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=SL108378252-109267",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r976": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=121556970&loc=d3e13854-109267",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r977": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "350",
   "URI": "https://asc.fasb.org/extlink&oid=66006027&loc=d3e16373-109275",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r978": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "410",
   "URI": "https://asc.fasb.org/extlink&oid=6393242&loc=d3e13237-110859",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r979": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14326-108349",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r98": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126954810&loc=d3e3044-108585",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r980": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14435-108349",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r981": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14557-108349",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r982": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=121557415&loc=d3e14557-108349",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r983": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Subparagraph": "(SAB Topic 5.Y.Q2)",
   "Topic": "450",
   "URI": "https://asc.fasb.org/extlink&oid=27011672&loc=d3e149879-122751",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r984": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "450",
   "URI": "https://asc.fasb.org/topic&trid=2127136",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r985": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(i))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r986": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(ii))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r987": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r988": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iv))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442526-122756",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r989": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iv))",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=126975872&loc=SL124442552-122756",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r99": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "https://asc.fasb.org/extlink&oid=126999549&loc=d3e4273-108586",
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef"
  },
  "r990": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r991": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r992": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130551-203045",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r993": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920106&loc=SL49130545-203045",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r994": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "https://asc.fasb.org/extlink&oid=126920602&loc=SL49130690-203046-203046",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r995": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r996": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(n)",
   "Topic": "715",
   "URI": "https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r997": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r998": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  },
  "r999": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "718",
   "URI": "https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901",
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef"
  }
 },
 "version": "2.2"
}
