{
 "version": "2.2",
 "instance": {
  "afyaform20f_2025.htm": {
   "nsprefix": "afya",
   "nsuri": "http://afya.com.br/20251231",
   "dts": {
    "schema": {
     "local": [
      "afya-20251231.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/dtr/type/nonNumeric-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://www.xbrl.org/dtr/type/2022-03-31/types.xsd",
      "https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd",
      "https://xbrl.fasb.org/srt/2024/elts/srt-roles-2024.xsd",
      "https://xbrl.fasb.org/srt/2024/elts/srt-types-2024.xsd",
      "https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd",
      "https://xbrl.fasb.org/us-gaap/2024/elts/us-roles-2024.xsd",
      "https://xbrl.fasb.org/us-gaap/2024/elts/us-types-2024.xsd",
      "https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/dimensions/rol_full_ifrs-dim_2024-03-27.xsd",
      "https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/full_ifrs-cor_2024-03-27.xsd",
      "https://xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://xbrl.sec.gov/country/2024/country-2024.xsd",
      "https://xbrl.sec.gov/currency/2024/currency-2024.xsd",
      "https://xbrl.sec.gov/cyd/2024/cyd-2024.xsd",
      "https://xbrl.sec.gov/dei/2024/dei-2024.xsd",
      "https://xbrl.sec.gov/ecd/2024/ecd-2024.xsd",
      "https://xbrl.sec.gov/stpr/2024/stpr-2024.xsd"
     ]
    },
    "calculationLink": {
     "local": [
      "afya-20251231_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "afya-20251231_def.xml"
     ],
     "remote": [
      "https://xbrl.ifrs.org/taxonomy/2024-03-27/full_ifrs/dimensions/dim_full_ifrs_2024-03-27_role-995000.xml"
     ]
    },
    "labelLink": {
     "local": [
      "afya-20251231_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "afya-20251231_pre.xml"
     ]
    },
    "inline": {
     "local": [
      "afyaform20f_2025.htm"
     ]
    }
   },
   "keyStandard": 311,
   "keyCustom": 303,
   "axisStandard": 38,
   "axisCustom": 0,
   "memberStandard": 48,
   "memberCustom": 163,
   "hidden": {
    "total": 306,
    "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full": 170,
    "http://afya.com.br/20251231": 132,
    "http://xbrl.sec.gov/dei/2024": 4
   },
   "contextCount": 885,
   "entityCount": 1,
   "segmentCount": 220,
   "elementCount": 1090,
   "unitCount": 6,
   "baseTaxonomies": {
    "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full": 1716,
    "http://xbrl.sec.gov/dei/2024": 47,
    "http://xbrl.sec.gov/cyd/2024": 15,
    "http://xbrl.sec.gov/ecd/2024": 1
   },
   "report": {
    "R1": {
     "role": "http://afya.com.br/role/Cover",
     "longName": "00000001 - Document - Cover",
     "shortName": "Cover",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "b",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "b",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R2": {
     "role": "http://afya.com.br/role/StatementOfFinancialPosition",
     "longName": "00000002 - Statement - Consolidated statement of financial position",
     "shortName": "Consolidated statement of financial position",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "2",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:CashAndCashEquivalents",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:CurrentTaxAssets",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R3": {
     "role": "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome",
     "longName": "00000003 - Statement - Consolidated statement of income and other comprehensive income",
     "shortName": "Consolidated statement of income and other comprehensive income",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "3",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:Revenue",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:GeneralAndAdministrativeExpense",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R4": {
     "role": "http://afya.com.br/role/StatementOfChangesInEquity",
     "longName": "00000004 - Statement - Consolidated statement of changes in equity",
     "shortName": "Consolidated statement of changes in equity",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "AsOf2022-12-31_ifrs-full_IssuedCapitalMember",
      "name": "ifrs-full:Equity",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2022-12-31_ifrs-full_IssuedCapitalMember",
      "name": "ifrs-full:Equity",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R5": {
     "role": "http://afya.com.br/role/StatementOfCashFlows",
     "longName": "00000005 - Statement - Consolidated statement of cash flows",
     "shortName": "Consolidated statement of cash flows",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "5",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:IncomeLossBeforeIncomeTaxes",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:IncomeLossBeforeIncomeTaxes",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R6": {
     "role": "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc",
     "longName": "995447 - Disclosure - Insider Trading Policies and Procedures",
     "shortName": "Insider Trading Policies and Procedures",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "6",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ecd:InsiderTrdPoliciesProcAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ecd:InsiderTrdPoliciesProcAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R7": {
     "role": "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure",
     "longName": "995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure",
     "shortName": "Cybersecurity Risk Management and Strategy Disclosure",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "7",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "cyd:CybersecurityRiskManagementProcessesForAssessingIdentifyingAndManagingThreatsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "cyd:CybersecurityRiskManagementProcessesForAssessingIdentifyingAndManagingThreatsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R8": {
     "role": "http://afya.com.br/role/CorporateInformation",
     "longName": "999013 - Disclosure - Corporate information",
     "shortName": "Corporate information",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "8",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfGeneralInformationAboutFinancialStatementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfGeneralInformationAboutFinancialStatementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R9": {
     "role": "http://afya.com.br/role/MaterialAccountingPolicies",
     "longName": "999014 - Disclosure - Material accounting policies",
     "shortName": "Material accounting policies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "9",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R10": {
     "role": "http://afya.com.br/role/SegmentInformation",
     "longName": "999015 - Disclosure - Segment information",
     "shortName": "Segment information",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "10",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R11": {
     "role": "http://afya.com.br/role/BusinessCombinations",
     "longName": "999016 - Disclosure - Business combinations",
     "shortName": "Business combinations",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "11",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfBusinessCombinationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfBusinessCombinationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R12": {
     "role": "http://afya.com.br/role/CashAndCashEquivalents",
     "longName": "999017 - Disclosure - Cash and cash equivalents",
     "shortName": "Cash and cash equivalents",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "12",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosuresOfCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosuresOfCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R13": {
     "role": "http://afya.com.br/role/TradeReceivables",
     "longName": "999018 - Disclosure - Trade receivables",
     "shortName": "Trade receivables",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "13",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R14": {
     "role": "http://afya.com.br/role/RelatedParties",
     "longName": "999019 - Disclosure - Related parties",
     "shortName": "Related parties",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "14",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfRelatedPartyExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfRelatedPartyExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R15": {
     "role": "http://afya.com.br/role/OtherAssets",
     "longName": "999020 - Disclosure - Other assets",
     "shortName": "Other assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "15",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfOtherAssetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfOtherAssetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R16": {
     "role": "http://afya.com.br/role/InvestmentInAssociate",
     "longName": "999021 - Disclosure - Investment in associate",
     "shortName": "Investment in associate",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "16",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfJointVenturesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfJointVenturesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R17": {
     "role": "http://afya.com.br/role/PropertyAndEquipment",
     "longName": "999022 - Disclosure - Property and equipment",
     "shortName": "Property and equipment",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "17",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R18": {
     "role": "http://afya.com.br/role/IntangibleAssets",
     "longName": "999023 - Disclosure - Intangible assets",
     "shortName": "Intangible assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "18",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfIntangibleAssetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfIntangibleAssetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R19": {
     "role": "http://afya.com.br/role/FinancialAssetsAndLiabilities",
     "longName": "999024 - Disclosure - Financial assets and liabilities",
     "shortName": "Financial assets and liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "19",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R20": {
     "role": "http://afya.com.br/role/CapitalManagement",
     "longName": "999025 - Disclosure - Capital management",
     "shortName": "Capital management",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:CapitalManagementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:CapitalManagementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R21": {
     "role": "http://afya.com.br/role/LaborAndSocialObligations",
     "longName": "999026 - Disclosure - Labor and social obligations",
     "shortName": "Labor and social obligations",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "21",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:LaborAndSocialObligationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:LaborAndSocialObligationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R22": {
     "role": "http://afya.com.br/role/Equity",
     "longName": "999027 - Disclosure - Equity",
     "shortName": "Equity",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "22",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfEquityExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfEquityExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://afya.com.br/role/EarningsPerShare",
     "longName": "999028 - Disclosure - Earnings per share",
     "shortName": "Earnings per share",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "23",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfEarningsPerShareExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfEarningsPerShareExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://afya.com.br/role/Revenue",
     "longName": "999029 - Disclosure - Revenue",
     "shortName": "Revenue",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "24",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfRevenueExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfRevenueExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R25": {
     "role": "http://afya.com.br/role/CostsAndExpensesByNature",
     "longName": "999030 - Disclosure - Costs and expenses by nature",
     "shortName": "Costs and expenses by nature",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "25",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://afya.com.br/role/FinanceResult",
     "longName": "999031 - Disclosure - Finance result",
     "shortName": "Finance result",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "26",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://afya.com.br/role/IncomeTaxes",
     "longName": "999032 - Disclosure - Income taxes",
     "shortName": "Income taxes",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "27",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfIncomeTaxesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfIncomeTaxesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://afya.com.br/role/LegalProceedingsAndContingencies",
     "longName": "999033 - Disclosure - Legal proceedings and contingencies",
     "shortName": "Legal proceedings and contingencies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "28",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfLegalProceedingsAndContingenciesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfLegalProceedingsAndContingenciesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://afya.com.br/role/Non-cashTransactions",
     "longName": "999034 - Disclosure - Non-cash transactions",
     "shortName": "Non-cash transactions",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "29",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureNoncashTransactionsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureNoncashTransactionsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://afya.com.br/role/SubsequentEvents",
     "longName": "999035 - Disclosure - Subsequent events",
     "shortName": "Subsequent events",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "30",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R31": {
     "role": "http://afya.com.br/role/MaterialAccountingPoliciesPolicies",
     "longName": "999036 - Disclosure - Material accounting policies (Policies)",
     "shortName": "Material accounting policies (Policies)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "policies",
     "menuCat": "Policies",
     "order": "31",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:BusinessCombinationsAndGoodwillPolicyExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:BusinessCombinationsAndGoodwillPolicyExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "role": "http://afya.com.br/role/CorporateInformationTables",
     "longName": "999037 - Disclosure - Corporate information (Tables)",
     "shortName": "Corporate information (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "32",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfFairValuesOfIdentifiableAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfGeneralInformationAboutFinancialStatementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfFairValuesOfIdentifiableAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfGeneralInformationAboutFinancialStatementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://afya.com.br/role/MaterialAccountingPoliciesTables",
     "longName": "999038 - Disclosure - Material accounting policies (Tables)",
     "shortName": "Material accounting policies (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "33",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:SummaryOfSubsidiariesJointVenturesAndJointOperationsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:SummaryOfSubsidiariesJointVenturesAndJointOperationsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R34": {
     "role": "http://afya.com.br/role/SegmentInformationTables",
     "longName": "999039 - Disclosure - Segment information (Tables)",
     "shortName": "Segment information (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "34",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfAssetsAndLiabilitiesInformationForCompanysOperatingSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfAssetsAndLiabilitiesInformationForCompanysOperatingSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R35": {
     "role": "http://afya.com.br/role/BusinessCombinationsTables",
     "longName": "999040 - Disclosure - Business combinations (Tables)",
     "shortName": "Business combinations (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "35",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfFairValuesOfIdentifiableAssetsAcquiredAndLiabilitiesAssumedAcquisitionTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfBusinessCombinationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfFairValuesOfIdentifiableAssetsAcquiredAndLiabilitiesAssumedAcquisitionTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfBusinessCombinationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R36": {
     "role": "http://afya.com.br/role/CashAndCashEquivalentsTables",
     "longName": "999041 - Disclosure - Cash and cash equivalents (Tables)",
     "shortName": "Cash and cash equivalents (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "36",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfDetailedInformationAboutCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosuresOfCashAndCashEquivalentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfDetailedInformationAboutCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosuresOfCashAndCashEquivalentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R37": {
     "role": "http://afya.com.br/role/TradeReceivablesTables",
     "longName": "999042 - Disclosure - Trade receivables (Tables)",
     "shortName": "Trade receivables (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "37",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfTradeAndOtherReceivables1Explanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfTradeAndOtherReceivables1Explanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R38": {
     "role": "http://afya.com.br/role/RelatedPartiesTables",
     "longName": "999043 - Disclosure - Related parties (Tables)",
     "shortName": "Related parties (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "38",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfRelatedPartiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfRelatedPartiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R39": {
     "role": "http://afya.com.br/role/OtherAssetsTables",
     "longName": "999044 - Disclosure - Other assets (Tables)",
     "shortName": "Other assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "39",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfOtherAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfOtherAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfOtherAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfOtherAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R40": {
     "role": "http://afya.com.br/role/InvestmentInAssociateTables",
     "longName": "999045 - Disclosure - Investment in associate (Tables)",
     "shortName": "Investment in associate (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "40",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfInvestmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfJointVenturesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DisclosureOfInvestmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfJointVenturesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R41": {
     "role": "http://afya.com.br/role/PropertyAndEquipmentTables",
     "longName": "999046 - Disclosure - Property and equipment (Tables)",
     "shortName": "Property and equipment (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "41",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R42": {
     "role": "http://afya.com.br/role/IntangibleAssetsTables",
     "longName": "999047 - Disclosure - Intangible assets (Tables)",
     "shortName": "Intangible assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "42",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:SummaryOfIntangibleAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfIntangibleAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:SummaryOfIntangibleAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfIntangibleAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R43": {
     "role": "http://afya.com.br/role/FinancialAssetsAndLiabilitiesTables",
     "longName": "999048 - Disclosure - Financial assets and liabilities (Tables)",
     "shortName": "Financial assets and liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "43",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfFinancialAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfFinancialAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R44": {
     "role": "http://afya.com.br/role/LaborAndSocialObligationsTables",
     "longName": "999049 - Disclosure - Labor and social obligations (Tables)",
     "shortName": "Labor and social obligations (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "44",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfFairValueOfStockOptionsGrantsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:LaborAndSocialObligationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfFairValueOfStockOptionsGrantsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:LaborAndSocialObligationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R45": {
     "role": "http://afya.com.br/role/EquityTables",
     "longName": "999050 - Disclosure - Equity (Tables)",
     "shortName": "Equity (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "45",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfTreasurySharesMovementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfTreasurySharesMovementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R46": {
     "role": "http://afya.com.br/role/EarningsPerShareTables",
     "longName": "999051 - Disclosure - Earnings per share (Tables)",
     "shortName": "Earnings per share (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "46",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfEarningsPerShareTableExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfEarningsPerShareExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfEarningsPerShareTableExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfEarningsPerShareExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R47": {
     "role": "http://afya.com.br/role/RevenueTables",
     "longName": "999052 - Disclosure - Revenue (Tables)",
     "shortName": "Revenue (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "47",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfNetSalesRevenueExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfNetSalesRevenueExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R48": {
     "role": "http://afya.com.br/role/CostsAndExpensesByNatureTables",
     "longName": "999053 - Disclosure - Costs and expenses by nature (Tables)",
     "shortName": "Costs and expenses by nature (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "48",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfExpensesByNatureTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfExpensesByNatureTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R49": {
     "role": "http://afya.com.br/role/FinanceResultTables",
     "longName": "999054 - Disclosure - Finance result (Tables)",
     "shortName": "Finance result (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "49",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfFinanceResultTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfFinanceResultTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R50": {
     "role": "http://afya.com.br/role/IncomeTaxesTables",
     "longName": "999055 - Disclosure - Income taxes (Tables)",
     "shortName": "Income taxes (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "50",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfReconciliationOfIncomeTaxExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfIncomeTaxesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfReconciliationOfIncomeTaxExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfIncomeTaxesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R51": {
     "role": "http://afya.com.br/role/LegalProceedingsAndContingenciesTables",
     "longName": "999056 - Disclosure - Legal proceedings and contingencies (Tables)",
     "shortName": "Legal proceedings and contingencies (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "51",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfLegalProceedingsAndContingenciesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfLegalProceedingsAndContingenciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfLegalProceedingsAndContingenciesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureOfLegalProceedingsAndContingenciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R52": {
     "role": "http://afya.com.br/role/Non-cashTransactionsTables",
     "longName": "999057 - Disclosure - Non-cash transactions (Tables)",
     "shortName": "Non-cash transactions (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "52",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfNonCashTransactionsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureNoncashTransactionsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ScheduleOfNonCashTransactionsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "afya:DisclosureNoncashTransactionsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R53": {
     "role": "http://afya.com.br/role/CorporateInformationDetails",
     "longName": "999058 - Disclosure - Corporate information (Details)",
     "shortName": "Corporate information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "53",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:IndemnificationAssetsRecognisedAsOfAcquisitionDate",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:DisclosureOfOtherAssetsTableTextBlock",
       "afya:DisclosureOfOtherAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-05-07_custom_AfyaParticipacoesS.A.Member",
      "name": "ifrs-full:CashAndCashEquivalentsRecognisedAsOfAcquisitionDate",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfFairValuesOfIdentifiableAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
       "afya:DisclosureOfGeneralInformationAboutFinancialStatementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R54": {
     "role": "http://afya.com.br/role/CorporateInformationDetailsNarrative",
     "longName": "999059 - Disclosure - Corporate information (Details Narrative)",
     "shortName": "Corporate information (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "54",
     "firstAnchor": {
      "contextRef": "From2025-05-062025-05-07",
      "name": "afya:AdditionalPaymentToShareholder",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "afya:DisclosureOfGeneralInformationAboutFinancialStatementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-05-062025-05-07",
      "name": "afya:AdditionalPaymentToShareholder",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "afya:DisclosureOfGeneralInformationAboutFinancialStatementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R55": {
     "role": "http://afya.com.br/role/MaterialAccountingPoliciesDetails",
     "longName": "999060 - Disclosure - Material accounting policies (Details)",
     "shortName": "Material accounting policies (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "55",
     "firstAnchor": {
      "contextRef": "From2025-01-012025-12-31_custom_AfyaParticipacoesSAMember",
      "name": "afya:PrincipalActivities",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "afya:SummaryOfSubsidiariesJointVenturesAndJointOperationsTableTextBlock",
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-012025-12-31_custom_AfyaParticipacoesSAMember",
      "name": "afya:PrincipalActivities",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "afya:SummaryOfSubsidiariesJointVenturesAndJointOperationsTableTextBlock",
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R56": {
     "role": "http://afya.com.br/role/MaterialAccountingPoliciesDetails1",
     "longName": "999061 - Disclosure - Material accounting policies (Details 1)",
     "shortName": "Material accounting policies (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "56",
     "firstAnchor": {
      "contextRef": "From2025-01-012025-12-31_ifrs-full_Level2OfFairValueHierarchyMember",
      "name": "ifrs-full:DescriptionOfChangeInValuationTechniqueUsedInFairValueMeasurementAssets",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfMeasuringFairValuesForFinancialInstrumentsTableTextBlock",
       "afya:CurrentVersusNoncurrentClassificationPoliciesExplanatory",
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-012025-12-31_ifrs-full_Level2OfFairValueHierarchyMember",
      "name": "ifrs-full:DescriptionOfChangeInValuationTechniqueUsedInFairValueMeasurementAssets",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfMeasuringFairValuesForFinancialInstrumentsTableTextBlock",
       "afya:CurrentVersusNoncurrentClassificationPoliciesExplanatory",
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R57": {
     "role": "http://afya.com.br/role/MaterialAccountingPoliciesDetails2",
     "longName": "999062 - Disclosure - Material accounting policies (Details 2)",
     "shortName": "Material accounting policies (Details 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "57",
     "firstAnchor": {
      "contextRef": "From2025-01-012025-12-31_custom_FVTPLMember",
      "name": "ifrs-full:ExplanationOfFactsAndCircumstancesIndicatingRareSituationForReclassificationOutOfFinancialAssetsAtFairValueThroughProfitOrLoss",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfMeasurementAndGainsAndLossesTableTextBlock",
       "afya:FinancialInstrumentsInitialRecognitionAndMeasurementPolicyExplanatory",
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-012025-12-31_custom_FVTPLMember",
      "name": "ifrs-full:ExplanationOfFactsAndCircumstancesIndicatingRareSituationForReclassificationOutOfFinancialAssetsAtFairValueThroughProfitOrLoss",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfMeasurementAndGainsAndLossesTableTextBlock",
       "afya:FinancialInstrumentsInitialRecognitionAndMeasurementPolicyExplanatory",
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R58": {
     "role": "http://afya.com.br/role/MaterialAccountingPoliciesDetails3",
     "longName": "999063 - Disclosure - Material accounting policies (Details 3)",
     "shortName": "Material accounting policies (Details 3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "58",
     "firstAnchor": {
      "contextRef": "From2025-01-012025-12-31_ifrs-full_BuildingsMember",
      "name": "ifrs-full:UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfEstimatedUsefulLivesTableTextBlock",
       "ifrs-full:DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory",
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-012025-12-31_ifrs-full_BuildingsMember",
      "name": "ifrs-full:UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfEstimatedUsefulLivesTableTextBlock",
       "ifrs-full:DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory",
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R59": {
     "role": "http://afya.com.br/role/MaterialAccountingPoliciesDetails4",
     "longName": "999064 - Disclosure - Material accounting policies (Details 4)",
     "shortName": "Material accounting policies (Details 4)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "59",
     "firstAnchor": {
      "contextRef": "From2025-01-012025-12-31_ifrs-full_CustomerrelatedIntangibleAssetsMember",
      "name": "ifrs-full:UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfEtimatedUsefulLivesOfIntangibleAssetsTableTextBlock",
       "ifrs-full:DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory",
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-012025-12-31_ifrs-full_CustomerrelatedIntangibleAssetsMember",
      "name": "ifrs-full:UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfEtimatedUsefulLivesOfIntangibleAssetsTableTextBlock",
       "ifrs-full:DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory",
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R60": {
     "role": "http://afya.com.br/role/MaterialAccountingPoliciesDetails5",
     "longName": "999065 - Disclosure - Material accounting policies (Details 5)",
     "shortName": "Material accounting policies (Details 5)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "60",
     "firstAnchor": {
      "contextRef": "From2025-01-012025-12-31_custom_AmendmentsToIAS21Member",
      "name": "ifrs-full:TitleOfInitiallyAppliedIFRS",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfChangesInAccountingPoliciesAndDisclosuresExplanatory",
       "ifrs-full:DescriptionOfAccountingPolicyForTreasurySharesExplanatory",
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-012025-12-31_custom_AmendmentsToIAS21Member",
      "name": "ifrs-full:TitleOfInitiallyAppliedIFRS",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfChangesInAccountingPoliciesAndDisclosuresExplanatory",
       "ifrs-full:DescriptionOfAccountingPolicyForTreasurySharesExplanatory",
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R61": {
     "role": "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative",
     "longName": "999066 - Disclosure - Material accounting policies (Details Narrative)",
     "shortName": "Material accounting policies (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "61",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:ApplicableTaxRate",
      "unitRef": "Pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfReconciliationOfIncomeTaxExpenseExplanatory",
       "afya:DisclosureOfIncomeTaxesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-12-262024-12-27_custom_OrganizationForEconomicCooperationAndDevelopmentMember",
      "name": "ifrs-full:AverageEffectiveTaxRate",
      "unitRef": "Pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "ifrs-full:DescriptionOfAccountingPolicyForIncomeTaxExplanatory",
       "afya:DisclosureOfMaterialAccountingPoliciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R62": {
     "role": "http://afya.com.br/role/SegmentInformationDetails",
     "longName": "999067 - Disclosure - Segment information (Details)",
     "shortName": "Segment information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "62",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:Assets",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31_ifrs-full_OperatingSegmentsMember",
      "name": "ifrs-full:Assets",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfAssetsAndLiabilitiesInformationForCompanysOperatingSegmentsExplanatory",
       "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R63": {
     "role": "http://afya.com.br/role/SegmentInformationDetails1",
     "longName": "999068 - Disclosure - Segment information (Details 1)",
     "shortName": "Segment information (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "63",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:Revenue",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-012025-12-31_ifrs-full_OperatingSegmentsMember",
      "name": "afya:DepositsFromExternalCustomer",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfOperatingSegmentsExplanatory",
       "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R64": {
     "role": "http://afya.com.br/role/BusinessCombinationsDetails",
     "longName": "999069 - Disclosure - Business combinations (Details)",
     "shortName": "Business combinations (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "64",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:IndemnificationAssetsRecognisedAsOfAcquisitionDate",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:DisclosureOfOtherAssetsTableTextBlock",
       "afya:DisclosureOfOtherAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-07-01_custom_UnidomMember",
      "name": "ifrs-full:CashAndCashEquivalentsRecognisedAsOfAcquisitionDate",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfFairValuesOfIdentifiableAssetsAcquiredAndLiabilitiesAssumedAcquisitionTableTextBlock",
       "ifrs-full:DisclosureOfBusinessCombinationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R65": {
     "role": "http://afya.com.br/role/BusinessCombinationsDetails1",
     "longName": "999070 - Disclosure - Business combinations (Details 1)",
     "shortName": "Business combinations (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "65",
     "firstAnchor": {
      "contextRef": "From2024-06-292024-07-01_ifrs-full_LicencesAndFranchisesMember_custom_AcquisitionOfUnidomMember_custom_WithAndWithoutMethodMember",
      "name": "ifrs-full:DescriptionOfValuationTechniquesAndKeyModelInputsUsedForDeterminingNoncontrollingInterestInAnAcquireeMeasuredAtFairValue",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfAcquisitionOfUnidomExplanatory",
       "ifrs-full:DisclosureOfBusinessCombinationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-06-292024-07-01_ifrs-full_LicencesAndFranchisesMember_custom_AcquisitionOfUnidomMember_custom_WithAndWithoutMethodMember",
      "name": "ifrs-full:DescriptionOfValuationTechniquesAndKeyModelInputsUsedForDeterminingNoncontrollingInterestInAnAcquireeMeasuredAtFairValue",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfAcquisitionOfUnidomExplanatory",
       "ifrs-full:DisclosureOfBusinessCombinationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R66": {
     "role": "http://afya.com.br/role/BusinessCombinationsDetailsNarrative",
     "longName": "999071 - Disclosure - Business combinations (Details Narrative)",
     "shortName": "Business combinations (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "66",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:Revenue",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-06-292024-07-01_custom_AcquisitionOfUnidomMember",
      "name": "ifrs-full:DescriptionOfAcquiree",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ifrs-full:DisclosureOfBusinessCombinationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R67": {
     "role": "http://afya.com.br/role/CashAndCashEquivalentsDetails",
     "longName": "999072 - Disclosure - Cash and cash equivalents (Details)",
     "shortName": "Cash and cash equivalents (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "67",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:Cash",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:DisclosureOfDetailedInformationAboutCashAndCashEquivalentsExplanatory",
       "afya:DisclosuresOfCashAndCashEquivalentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:Cash",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:DisclosureOfDetailedInformationAboutCashAndCashEquivalentsExplanatory",
       "afya:DisclosuresOfCashAndCashEquivalentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R68": {
     "role": "http://afya.com.br/role/CashAndCashEquivalentsDetailsNarrative",
     "longName": "999073 - Disclosure - Cash and cash equivalents (Details Narrative)",
     "shortName": "Cash and cash equivalents (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "68",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:CashEquivalents",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:DisclosureOfDetailedInformationAboutCashAndCashEquivalentsExplanatory",
       "afya:DisclosuresOfCashAndCashEquivalentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31_custom_USDMember",
      "name": "ifrs-full:CashEquivalents",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "afya:DisclosuresOfCashAndCashEquivalentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R69": {
     "role": "http://afya.com.br/role/TradeReceivablesDetails",
     "longName": "999074 - Disclosure - Trade receivables (Details)",
     "shortName": "Trade receivables (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "69",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:ReceivablesGross",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:DisclosureOfTradeAndOtherReceivables1Explanatory",
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:AllowanceForDoubtfulAccountsFoReceivable1",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:DisclosureOfTradeAndOtherReceivables1Explanatory",
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R70": {
     "role": "http://afya.com.br/role/TradeReceivablesDetails1",
     "longName": "999075 - Disclosure - Trade receivables (Details 1)",
     "shortName": "Trade receivables (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "70",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:ReceivablesGross",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:DisclosureOfTradeAndOtherReceivables1Explanatory",
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31_ifrs-full_NotLaterThanOneMonthMember",
      "name": "afya:ReceivablesGross",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:DisclosureOfTradeAccountsReceivableByAgingExplanatory",
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R71": {
     "role": "http://afya.com.br/role/TradeReceivablesDetails2",
     "longName": "999076 - Disclosure - Trade receivables (Details 2)",
     "shortName": "Trade receivables (Details 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "71",
     "firstAnchor": {
      "contextRef": "AsOf2024-12-31",
      "name": "afya:AllowanceAccountForCreditLossesOfFinancialAsset",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:DisclosureOfAllowanceForDoubtfulAccountsExplanatory",
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2022-12-31",
      "name": "afya:AllowanceAccountForCreditLossesOfFinancialAsset",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:DisclosureOfAllowanceForDoubtfulAccountsExplanatory",
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R72": {
     "role": "http://afya.com.br/role/RelatedPartiesDetails",
     "longName": "999077 - Disclosure - Related parties (Details)",
     "shortName": "Related parties (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "72",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:RightofuseAssetsRelatedPartyTransactions",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:DisclosureOfRelatedPartiesExplanatory",
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:RightofuseAssetsRelatedPartyTransactions",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:DisclosureOfRelatedPartiesExplanatory",
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R73": {
     "role": "http://afya.com.br/role/RelatedPartiesDetails1",
     "longName": "999078 - Disclosure - Related parties (Details 1)",
     "shortName": "Related parties (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "73",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:KeyManagementPersonnelCompensationShorttermEmployeeBenefits",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:SummaryOfKeyManagementPersonnelCompensationTableTextBlock",
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:KeyManagementPersonnelCompensationShorttermEmployeeBenefits",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:SummaryOfKeyManagementPersonnelCompensationTableTextBlock",
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R74": {
     "role": "http://afya.com.br/role/RelatedPartiesDetailsNarrative",
     "longName": "999079 - Disclosure - Related parties (Details Narrative)",
     "shortName": "Related parties (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "74",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:LeaseLiabilities",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfLeasesTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2018-09-052018-09-06_custom_LeaseAgreements1Member",
      "name": "afya:OperatingLeaseTermOfContract",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R75": {
     "role": "http://afya.com.br/role/OtherAssetsDetails",
     "longName": "999080 - Disclosure - Other assets (Details)",
     "shortName": "Other assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "75",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:IndemnificationAssetsRecognisedAsOfAcquisitionDate",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:DisclosureOfOtherAssetsTableTextBlock",
       "afya:DisclosureOfOtherAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:Advances1",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:DisclosureOfOtherAssetsTableTextBlock",
       "afya:DisclosureOfOtherAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R76": {
     "role": "http://afya.com.br/role/InvestmentInAssociateDetails",
     "longName": "999081 - Disclosure - Investment in associate (Details)",
     "shortName": "Investment in associate (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "76",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:CurrentAssets",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31_ifrs-full_AssociatesMember",
      "name": "ifrs-full:CurrentAssets",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:DisclosureOfInvestmentsExplanatory",
       "ifrs-full:DisclosureOfJointVenturesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R77": {
     "role": "http://afya.com.br/role/PropertyAndEquipmentDetails",
     "longName": "999082 - Disclosure - Property and equipment (Details)",
     "shortName": "Property and equipment (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "77",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:PropertyPlantAndEquipmentNetBookValue",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
       "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:PropertyPlantAndEquipmentNetBookValue",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
       "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R78": {
     "role": "http://afya.com.br/role/IntangibleAssetsDetails",
     "longName": "999083 - Disclosure - Intangible assets (Details)",
     "shortName": "Intangible assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "78",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:WriteoffOfIntangibleAssets",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:IntangibleAssetsAndGoodwillNetBookValue",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "afya:SummaryOfIntangibleAssetsTableTextBlock",
       "afya:DisclosureOfIntangibleAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R79": {
     "role": "http://afya.com.br/role/IntangibleAssetsDetails1",
     "longName": "999084 - Disclosure - Intangible assets (Details 1)",
     "shortName": "Intangible assets (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "79",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31_custom_CarryingAmountsMember",
      "name": "ifrs-full:Goodwill",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:SummaryOfAssumptionsForIntangibleAssetImpairmentTestTableTextBlock",
       "afya:DisclosureOfIntangibleAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31_custom_CarryingAmountsMember",
      "name": "ifrs-full:Goodwill",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:SummaryOfAssumptionsForIntangibleAssetImpairmentTestTableTextBlock",
       "afya:DisclosureOfIntangibleAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R80": {
     "role": "http://afya.com.br/role/IntangibleAssetsDetails2",
     "longName": "999085 - Disclosure - Intangible assets (Details 2)",
     "shortName": "Intangible assets (Details 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "80",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:EbitdaGrowthRates",
      "unitRef": "Pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "afya:SchuduleOfAssumptionsUsedTableTextBlock",
       "afya:DisclosureOfIntangibleAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:EbitdaGrowthRates",
      "unitRef": "Pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "afya:SchuduleOfAssumptionsUsedTableTextBlock",
       "afya:DisclosureOfIntangibleAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R81": {
     "role": "http://afya.com.br/role/IntangibleAssetsDetailsNarrative",
     "longName": "999086 - Disclosure - Intangible assets (Details Narrative)",
     "shortName": "Intangible assets (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "81",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:ImpairmentLossRecognisedInProfitOrLossIntangibleAssetsAndGoodwill",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "afya:SchuduleOfAssumptionsUsedTableTextBlock",
       "afya:DisclosureOfIntangibleAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:ImpairmentLossRecognisedInProfitOrLossIntangibleAssetsAndGoodwill",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "afya:SchuduleOfAssumptionsUsedTableTextBlock",
       "afya:DisclosureOfIntangibleAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R82": {
     "role": "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails",
     "longName": "999087 - Disclosure - Financial assets and liabilities (Details)",
     "shortName": "Financial assets and liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "82",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:CashAndCashEquivalents",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31_ifrs-full_FinancialAssetsAtAmortisedCostMember",
      "name": "ifrs-full:CashAndCashEquivalents",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfFinancialAssetsTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R83": {
     "role": "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails1",
     "longName": "999088 - Disclosure - Financial assets and liabilities (Details 1)",
     "shortName": "Financial assets and liabilities (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "83",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:LoansAndFinancing",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfLoansAndFinancingTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31_ifrs-full_FinancialLiabilitiesAtAmortisedCostMember",
      "name": "ifrs-full:TradeAndOtherPayablesToTradeSuppliers",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfFinancialLiabilitiesTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R84": {
     "role": "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails2",
     "longName": "999089 - Disclosure - Financial assets and liabilities (Details 2)",
     "shortName": "Financial assets and liabilities (Details 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "84",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:FinancialLiabilitiesAtFairValues",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfFairValuesTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:FinancialLiabilitiesAtFairValues",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfFairValuesTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R85": {
     "role": "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3",
     "longName": "999090 - Disclosure - Financial assets and liabilities (Details 3)",
     "shortName": "Financial assets and liabilities (Details 3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "85",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:LoansAndFinancing",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfLoansAndFinancingTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:LoansAndFinancingCurrent",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfLoansAndFinancingTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R86": {
     "role": "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4",
     "longName": "999091 - Disclosure - Financial assets and liabilities  (Details 4)",
     "shortName": "Financial assets and liabilities  (Details 4)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "86",
     "firstAnchor": {
      "contextRef": "AsOf2024-12-31",
      "name": "ifrs-full:RightofuseAssets",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2022-12-31",
      "name": "ifrs-full:RightofuseAssets",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfLeasesTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R87": {
     "role": "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5",
     "longName": "999092 - Disclosure - Financial assets and liabilities (Details 5)",
     "shortName": "Financial assets and liabilities (Details 5)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "87",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:TradeAndOtherPayablesToRelatedParties",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfAccountsPayableToSellingShareholdersTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:AccountsPayableToSellingShareholdersCurrent",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfAccountsPayableToSellingShareholdersTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R88": {
     "role": "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails6",
     "longName": "999093 - Disclosure - Financial assets and liabilities (Details 6)",
     "shortName": "Financial assets and liabilities (Details 6)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "88",
     "firstAnchor": {
      "contextRef": "AsOf2024-12-31",
      "name": "ifrs-full:TradeAndOtherPayablesToRelatedParties",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfAccountsPayableToSellingShareholdersTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2022-12-31_custom_AccountsPayableToSellingShareholdersMember",
      "name": "ifrs-full:TradeAndOtherPayablesToRelatedParties",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:AccountsPayableToSellingShareholders1Explanatory",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R89": {
     "role": "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails7",
     "longName": "999094 - Disclosure - Financial assets and liabilities (Details 7)",
     "shortName": "Financial assets and liabilities (Details 7)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "89",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:FinancialLiabilities",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfFairValuesFinancialInstrumentstTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:FinancialLiabilitiesAtFairValue",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfFairValuesFinancialInstrumentstTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R90": {
     "role": "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8",
     "longName": "999095 - Disclosure - Financial assets and liabilities (Details 8)",
     "shortName": "Financial assets and liabilities (Details 8)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "90",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:BaseRate",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:SummaryOfSensitivityAnalysisEffectsOnIncomeStatementTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:BaseRate",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:SummaryOfSensitivityAnalysisEffectsOnIncomeStatementTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R91": {
     "role": "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails9",
     "longName": "999096 - Disclosure - Financial assets and liabilities (Details 9)",
     "shortName": "Financial assets and liabilities (Details 9)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "91",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:IncreaseDecreaseInCashAndCashEquivalents",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-012025-12-31_custom_ForeignCurrencyExposuresMember_ifrs-full_CurrencyRiskMember",
      "name": "ifrs-full:IncreaseDecreaseInCashAndCashEquivalents",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:SummaryOfCurrenciesUsedInSensitivityAnalysisTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R92": {
     "role": "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10",
     "longName": "999097 - Disclosure - Financial assets and liabilities (Details 10)",
     "shortName": "Financial assets and liabilities (Details 10)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "92",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:LoansAndFinancing",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfLoansAndFinancingTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31_ifrs-full_LiquidityRiskMember",
      "name": "ifrs-full:TradeAndOtherPayablesToTradeSuppliers",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:SummaryOfContractualMaturitiesOfFinancialLiabilitiesTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R93": {
     "role": "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails11",
     "longName": "999098 - Disclosure - Financial assets and liabilities (Details 11)",
     "shortName": "Financial assets and liabilities (Details 11)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "93",
     "firstAnchor": {
      "contextRef": "AsOf2024-12-31",
      "name": "ifrs-full:LiabilitiesArisingFromFinancingActivities",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfChangesInLiabilitiesArisingFromFinancingActivitiesTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2022-12-31",
      "name": "ifrs-full:LiabilitiesArisingFromFinancingActivities",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfChangesInLiabilitiesArisingFromFinancingActivitiesTableTextBlock",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R94": {
     "role": "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
     "longName": "999099 - Disclosure - Financial assets and liabilities (Details Narrative)",
     "shortName": "Financial assets and liabilities (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "94",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:TransactionCosts",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:TransactionCosts",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R95": {
     "role": "http://afya.com.br/role/LaborAndSocialObligationsDetails",
     "longName": "999100 - Disclosure - Labor and social obligations (Details)",
     "shortName": "Labor and social obligations (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "95",
     "firstAnchor": {
      "contextRef": "From2025-11-012025-11-30_ifrs-full_ShareOptionsMember",
      "name": "afya:NumberOfShareOptionsGrantedInValueSharebasedPaymentArrangement",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfFairValueOfStockOptionsGrantsExplanatory",
       "afya:LaborAndSocialObligationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-11-012025-11-30_ifrs-full_ShareOptionsMember",
      "name": "afya:NumberOfShareOptionsGrantedInValueSharebasedPaymentArrangement",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfFairValueOfStockOptionsGrantsExplanatory",
       "afya:LaborAndSocialObligationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R96": {
     "role": "http://afya.com.br/role/LaborAndSocialObligationsDetails1",
     "longName": "999101 - Disclosure - Labor and social obligations (Details 1)",
     "shortName": "Labor and social obligations (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "96",
     "firstAnchor": {
      "contextRef": "AsOf2024-12-31_ifrs-full_ShareOptionsMember",
      "name": "ifrs-full:WeightedAverageExercisePriceOfShareOptionsOutstandingInSharebasedPaymentArrangement2019",
      "unitRef": "BRLPShares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfSharebasedCompensationPlanExplanatory",
       "afya:LaborAndSocialObligationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2022-12-31_ifrs-full_ShareOptionsMember",
      "name": "ifrs-full:NumberOfOutstandingShareOptions",
      "unitRef": "N",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfSharebasedCompensationPlanExplanatory",
       "afya:LaborAndSocialObligationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R97": {
     "role": "http://afya.com.br/role/LaborAndSocialObligationsDetails2",
     "longName": "999102 - Disclosure - Labor and social obligations (Details 2)",
     "shortName": "Labor and social obligations (Details 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "97",
     "firstAnchor": {
      "contextRef": "From2025-01-012025-12-31_custom_November2025Member",
      "name": "afya:NumberOfRestrictedStockUnitsGrantedInSharebasedPaymentArrangement",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfGrantsRestrictedStockUnitsTableTextBlock",
       "afya:LaborAndSocialObligationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-012025-12-31_custom_November2025Member",
      "name": "afya:NumberOfRestrictedStockUnitsGrantedInSharebasedPaymentArrangement",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfGrantsRestrictedStockUnitsTableTextBlock",
       "afya:LaborAndSocialObligationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R98": {
     "role": "http://afya.com.br/role/LaborAndSocialObligationsDetails3",
     "longName": "999103 - Disclosure - Labor and social obligations (Details 3)",
     "shortName": "Labor and social obligations (Details 3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "98",
     "firstAnchor": {
      "contextRef": "AsOf2024-12-31_custom_RestrictedStockUnitsMember",
      "name": "ifrs-full:NumberOfOutstandingShareOptions",
      "unitRef": "N",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfStockOptionTableTextBlock",
       "afya:LaborAndSocialObligationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2022-12-31_custom_RestrictedStockUnitsMember",
      "name": "ifrs-full:NumberOfOutstandingShareOptions",
      "unitRef": "N",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfStockOptionTableTextBlock",
       "afya:LaborAndSocialObligationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R99": {
     "role": "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative",
     "longName": "999104 - Disclosure - Labor and social obligations (Details Narrative)",
     "shortName": "Labor and social obligations (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "99",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ShareBasedCompensationOfEmployees",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "span",
       "p",
       "afya:LaborAndSocialObligationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ShareBasedCompensationOfEmployees",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "span",
       "p",
       "afya:LaborAndSocialObligationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R100": {
     "role": "http://afya.com.br/role/EquityDetails",
     "longName": "999105 - Disclosure - Equity (Details)",
     "shortName": "Equity (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "100",
     "firstAnchor": {
      "contextRef": "AsOf2024-12-31",
      "name": "ifrs-full:NumberOfSharesOutstanding",
      "unitRef": "Shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfTreasurySharesMovementExplanatory",
       "afya:DisclosureOfEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2022-12-31",
      "name": "ifrs-full:NumberOfSharesOutstanding",
      "unitRef": "Shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfTreasurySharesMovementExplanatory",
       "afya:DisclosureOfEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R101": {
     "role": "http://afya.com.br/role/EquityDetailsNarrative",
     "longName": "999106 - Disclosure - Equity (Details Narrative)",
     "shortName": "Equity (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "101",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:IssuedCapital",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "afya:NumberOfSharesIssued1",
      "unitRef": "Shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "afya:DisclosureOfEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R102": {
     "role": "http://afya.com.br/role/EarningsPerShareDetails",
     "longName": "999107 - Disclosure - Earnings per share (Details)",
     "shortName": "Earnings per share (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "102",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:AdjustmentToProfitLossForPreferenceShareDividends",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfEarningsPerShareTableExplanatory",
       "ifrs-full:DisclosureOfEarningsPerShareExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:AdjustmentToProfitLossForPreferenceShareDividends",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfEarningsPerShareTableExplanatory",
       "ifrs-full:DisclosureOfEarningsPerShareExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R103": {
     "role": "http://afya.com.br/role/RevenueDetails",
     "longName": "999108 - Disclosure - Revenue (Details)",
     "shortName": "Revenue (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "103",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ProfessionalFeesExpenses",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfNetSalesRevenueExplanatory",
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:ProfessionalFeesExpenses",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfNetSalesRevenueExplanatory",
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R104": {
     "role": "http://afya.com.br/role/RevenueDetails1",
     "longName": "999109 - Disclosure - Revenue (Details 1)",
     "shortName": "Revenue (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "104",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:PaymentsToSuppliersForGoodsAndServices",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfRevenueBySegmentTableTextBlock",
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:PaymentsToSuppliersForGoodsAndServices",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfRevenueBySegmentTableTextBlock",
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R105": {
     "role": "http://afya.com.br/role/CostsAndExpensesByNatureDetails",
     "longName": "999110 - Disclosure - Costs and expenses by nature (Details)",
     "shortName": "Costs and expenses by nature (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "105",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:Payroll",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfExpensesByNatureTableTextBlock",
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:Payroll",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfExpensesByNatureTableTextBlock",
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R106": {
     "role": "http://afya.com.br/role/FinanceResultDetails",
     "longName": "999111 - Disclosure - Finance result (Details)",
     "shortName": "Finance result (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "106",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:FinancialIncomeFromCashEquivalents",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfFinanceResultTableTextBlock",
       "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:FinancialIncomeFromCashEquivalents",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfFinanceResultTableTextBlock",
       "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R107": {
     "role": "http://afya.com.br/role/IncomeTaxesDetails",
     "longName": "999112 - Disclosure - Income taxes (Details)",
     "shortName": "Income taxes (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "107",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:ProfitLossBeforeTax",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:TaxExpensesIncomeAtApplicableTaxRate",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfReconciliationOfIncomeTaxExpenseExplanatory",
       "afya:DisclosureOfIncomeTaxesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R108": {
     "role": "http://afya.com.br/role/IncomeTaxesDetails1",
     "longName": "999113 - Disclosure - Income taxes (Details 1)",
     "shortName": "Income taxes (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "108",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DeferredTaxAssetsLossCarryforwards",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfBalanceDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "afya:DisclosureOfIncomeTaxesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DeferredTaxAssetsLossCarryforwards",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfBalanceDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "afya:DisclosureOfIncomeTaxesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R109": {
     "role": "http://afya.com.br/role/IncomeTaxesDetailsNarrative",
     "longName": "999114 - Disclosure - Income taxes (Details Narrative)",
     "shortName": "Income taxes (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "109",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DeferredTaxExpenseIncomes",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "afya:DisclosureOfIncomeTaxesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "afya:DeferredTaxExpenseIncomes",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "afya:DisclosureOfIncomeTaxesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R110": {
     "role": "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails",
     "longName": "999115 - Disclosure - Legal proceedings and contingencies (Details)",
     "shortName": "Legal proceedings and contingencies (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "110",
     "firstAnchor": {
      "contextRef": "From2025-01-01to2025-12-31",
      "name": "ifrs-full:AdditionalProvisionsOtherProvisions",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfBalanceDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "afya:DisclosureOfIncomeTaxesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2022-12-31_ifrs-full_LegalProceedingsContingentLiabilityMember",
      "name": "ifrs-full:Provisions",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfLegalProceedingsAndContingenciesTableTextBlock",
       "afya:DisclosureOfLegalProceedingsAndContingenciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    },
    "R111": {
     "role": "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails1",
     "longName": "999116 - Disclosure - Legal proceedings and contingencies (Details 1)",
     "shortName": "Legal proceedings and contingencies (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "111",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:OtherProvisions",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfSocialSecurityProceedingsAssessedByManagementTableTextBlock",
       "afya:DisclosureOfLegalProceedingsAndContingenciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31",
      "name": "ifrs-full:OtherProvisions",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "b",
       "td",
       "tr",
       "table",
       "afya:ScheduleOfSocialSecurityProceedingsAssessedByManagementTableTextBlock",
       "afya:DisclosureOfLegalProceedingsAndContingenciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R112": {
     "role": "http://afya.com.br/role/LegalProceedingsAndContingenciesDetailsNarrative",
     "longName": "999117 - Disclosure - Legal proceedings and contingencies (Details Narrative)",
     "shortName": "Legal proceedings and contingencies (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "112",
     "firstAnchor": {
      "contextRef": "AsOf2025-12-31_custom_OtherAssetsNonCurrentMember",
      "name": "afya:ContingenciesCorrespondentAmount",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "afya:DisclosureOfLegalProceedingsAndContingenciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2025-12-31_custom_OtherAssetsNonCurrentMember",
      "name": "afya:ContingenciesCorrespondentAmount",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "afya:DisclosureOfLegalProceedingsAndContingenciesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R113": {
     "role": "http://afya.com.br/role/Non-cashTransactionsDetails",
     "longName": "999118 - Disclosure - Non-cash transactions (Details)",
     "shortName": "Non-cash transactions (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "113",
     "firstAnchor": {
      "contextRef": "From2023-01-012023-12-31",
      "name": "afya:RemeasurementOfEarnOut",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfNonCashTransactionsTableTextBlock",
       "afya:DisclosureNoncashTransactionsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2023-01-012023-12-31",
      "name": "afya:RemeasurementOfEarnOut",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "td",
       "tr",
       "table",
       "afya:ScheduleOfNonCashTransactionsTableTextBlock",
       "afya:DisclosureNoncashTransactionsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true,
      "unique": true
     }
    },
    "R114": {
     "role": "http://afya.com.br/role/SubsequentEventsDetailsNarrative",
     "longName": "999119 - Disclosure - Subsequent events (Details Narrative)",
     "shortName": "Subsequent events (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "114",
     "firstAnchor": {
      "contextRef": "From2025-03-112025-03-12",
      "name": "afya:FirstDividendDistributionInAmount",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "afya:DisclosureOfEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2026-03-112026-03-12_custom_NonadjustingEventMember",
      "name": "afya:FirstDividendDistributionInAmount",
      "unitRef": "BRL",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "afyaform20f_2025.htm",
      "unique": true
     }
    }
   },
   "tag": {
    "afya_AccountsPayableAamortizedCostInterestRateBasis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AccountsPayableAamortizedCostInterestRateBasis",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Interest rate",
        "label": "AccountsPayableAamortizedCostInterestRateBasis"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AccountsPayableToSellingShareholders1Explanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AccountsPayableToSellingShareholders1Explanatory",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of accounts payable"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AccountsPayableToSellingShareholdersBusinessCombinations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AccountsPayableToSellingShareholdersBusinessCombinations",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions consideration to be transferred on business combinations"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AccountsPayableToSellingShareholdersCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AccountsPayableToSellingShareholdersCurrent",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Current",
        "label": "AccountsPayableToSellingShareholdersCurrent"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AccountsPayableToSellingShareholdersEarnOutsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AccountsPayableToSellingShareholdersEarnOutsMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Payable To Selling Shareholders Earn Outs [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AccountsPayableToSellingShareholdersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AccountsPayableToSellingShareholdersMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Payable To Selling Shareholders [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AccountsPayableToSellingShareholdersNonCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AccountsPayableToSellingShareholdersNonCurrent",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Non-current",
        "label": "AccountsPayableToSellingShareholdersNonCurrent"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AccountsPayableToSellingShareholdersOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AccountsPayableToSellingShareholdersOneMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Payable To Selling Shareholders One [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AccountsPayableToSellingShareholdersPolicyExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AccountsPayableToSellingShareholdersPolicyExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Accounts payable to selling shareholders",
        "label": "AccountsPayableToSellingShareholdersPolicyExplanatory"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AccountsPayableToSellingShareholdersTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AccountsPayableToSellingShareholdersTwoMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Payable To Selling Shareholders Two [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AccountsPayableToSellingShareholdersUnidomMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AccountsPayableToSellingShareholdersUnidomMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Payable To Selling Shareholders Unidom [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AccruedInterestOfOpeartingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AccruedInterestOfOpeartingActivities",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued interest"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AccumulatedDepreciationAndAmortisationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AccumulatedDepreciationAndAmortisationMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails",
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated depreciation and amortisation [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for accumulated depreciation and amortisation. [Refer: Depreciation and amortisation expense]"
       }
      }
     },
     "auth_ref": [
      "r54",
      "r441",
      "r447",
      "r452",
      "r453"
     ]
    },
    "afya_AcquisitionOfNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AcquisitionOfNoncontrollingInterests",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquisition of non-controlling interests"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AcquisitionOfUnidomMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AcquisitionOfUnidomMember",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails1",
      "http://afya.com.br/role/BusinessCombinationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquisition Of Unidom [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AcquisitiondateFairValueOfTotalConsiderationTransferred",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase consideration transferred"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value, at acquisition date, of the consideration transferred in a business combination. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r204"
     ]
    },
    "ifrs-full_AcquisitionrelatedCostsForTransactionRecognisedSeparatelyFromAcquisitionOfAssetsAndAssumptionOfLiabilitiesInBusinessCombination": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AcquisitionrelatedCostsForTransactionRecognisedSeparatelyFromAcquisitionOfAssetsAndAssumptionOfLiabilitiesInBusinessCombination",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails",
      "http://afya.com.br/role/BusinessCombinationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction costs of the acquisition (included in cash flows from operating activities)",
        "verboseLabel": "Transaction costs"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of acquisition-related costs for transactions recognised separately from the acquisition of assets and the assumption of liabilities in business combinations. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r207"
     ]
    },
    "afya_AcquisitionrelatedCostsForTransactionRecognisedSeparatelyFromAcquisitionOfAssetsAndAssumptionsOfLiabilitiesInBusinessCombination": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AcquisitionrelatedCostsForTransactionRecognisedSeparatelyFromAcquisitionOfAssetsAndAssumptionsOfLiabilitiesInBusinessCombination",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total transaction costs"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Business combinations",
        "label": "Acquisitions through business combinations, intangible assets and goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in intangible assets and goodwill resulting from acquisitions through business combinations. [Refer: Total for all business combinations [member]; Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r448"
     ]
    },
    "ifrs-full_AcquisitionsThroughBusinessCombinationsOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AcquisitionsThroughBusinessCombinationsOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Business combinations",
        "label": "Acquisitions through business combinations, other provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in other provisions resulting from acquisitions through business combinations. [Refer: Total for all business combinations [member]; Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r446"
     ]
    },
    "ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business combination"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in property, plant and equipment resulting from acquisitions through business combinations. [Refer: Total for all business combinations [member]; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r49"
     ]
    },
    "ecd_Additional402vDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "Additional402vDisclosureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional 402(v) Disclosure"
       }
      }
     },
     "auth_ref": [
      "r375"
     ]
    },
    "afya_AdditionalAllowanceRecognisedInProfitOrLossAllowanceAccountForCreditLossesOfFinancialAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionalAllowanceRecognisedInProfitOrLossAllowanceAccountForCreditLossesOfFinancialAsset",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdditionalPaidinCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdditionalPaidinCapital",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional paid-in capital"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount received or receivable from the issuance of the entity's shares in excess of nominal value and amounts received from other transactions involving the entity's stock or stockholders."
       }
      }
     },
     "auth_ref": [
      "r435"
     ]
    },
    "ifrs-full_AdditionalPaidinCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdditionalPaidinCapitalMember",
     "presentation": [
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional paid-in capital [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for amounts received from issuance of the entity's shares in excess of nominal value and amounts received from other transactions involving the entity's stock or stockholders."
       }
      }
     },
     "auth_ref": [
      "r432"
     ]
    },
    "afya_AdditionalPaymentToShareholder": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionalPaymentToShareholder",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/CorporateInformationDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional payment to shareholders"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdditionalProvisionsOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdditionalProvisionsOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1",
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions other",
        "verboseLabel": "Additions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additional other provisions made. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r95"
     ]
    },
    "afya_AdditionsAllowanceForExpectedCreditLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsAllowanceForExpectedCreditLosses",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions allowance for expected credit losses"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdditionsAmortizationOfIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsAmortizationOfIntangibleAssets",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions amortization of intangible assets"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdditionsAndRemeasurementsOfRightofuseAssetsAndLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsAndRemeasurementsOfRightofuseAssetsAndLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/Non-cashTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions and remeasurements of right-of-use assets and lease liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdditionsDeferredTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsDeferredTaxAssets",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions deferred tax assets"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdditionsDeferredTaxAssetsLiabilitiesNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsDeferredTaxAssetsLiabilitiesNet",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions deferred tax assets (liabilities), net"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdditionsDeferredTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsDeferredTaxLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions deferred tax liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdditionsFairValueRemeasurementsOnBusinessCombinations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsFairValueRemeasurementsOnBusinessCombinations",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions fair value remeasurements on business combinations"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdditionsLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsLeaseLiability",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions lease liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Additions",
        "label": "Additions other than through business combinations, intangible assets other than goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additions to intangible assets other than goodwill, other than those acquired through business combinations. [Refer: Total for all business combinations [member]; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r103"
     ]
    },
    "ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Additions",
        "label": "Additions other than through business combinations, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additions to property, plant and equipment other than those acquired through business combinations. [Refer: Total for all business combinations [member]; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r48"
     ]
    },
    "afya_AdditionsProvisionForLegalProceedingsAndContingencies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsProvisionForLegalProceedingsAndContingencies",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions provision for legal proceedings and contingencies"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdditionsProvisionForProfitSharing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsProvisionForProfitSharing",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions provision for profit sharing"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdditionsReversalsOfProvisionForLegalProceedingsWithCorrespondingIndemnificationAssetNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsReversalsOfProvisionForLegalProceedingsWithCorrespondingIndemnificationAssetNet",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/Non-cashTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions (reversals) of provision for legal proceedings with corresponding indemnification asset, net"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdditionsTaxBenefitFromTaxDeductibleGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsTaxBenefitFromTaxDeductibleGoodwill",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions tax benefit from tax deductible goodwill"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdditionsTaxLossesCarryForward": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsTaxLossesCarryForward",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions tax losses carry forward"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdditionsToIntangiblesAndGoodwillThroughAccountsPayableToSellingShareholders": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsToIntangiblesAndGoodwillThroughAccountsPayableToSellingShareholders",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/Non-cashTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions to intangibles and goodwill through accounts payable to selling shareholders"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdditionsToLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsToLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liabilities, additions"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdditionsToRightofuseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdditionsToRightofuseAsset",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Allowance for expected credit losses",
        "label": "AdditionsToRightofuseAsset"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdditionsToRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdditionsToRightofuseAssets",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets, additions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additions to right-of-use assets. [Refer: Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r176"
     ]
    },
    "dei_AddressTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AddressTypeDomain",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "An entity may have several addresses for different purposes and this domain represents all such types."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AdjToCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AdjToCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Compensation, Amount"
       }
      }
     },
     "auth_ref": [
      "r381"
     ]
    },
    "ecd_AdjToCompAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AdjToCompAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Compensation [Axis]"
       }
      }
     },
     "auth_ref": [
      "r381"
     ]
    },
    "ecd_AdjToNonPeoNeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AdjToNonPeoNeoCompFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Non-PEO NEO Compensation Footnote"
       }
      }
     },
     "auth_ref": [
      "r381"
     ]
    },
    "ecd_AdjToPeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AdjToPeoCompFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment To PEO Compensation, Footnote"
       }
      }
     },
     "auth_ref": [
      "r381"
     ]
    },
    "ifrs-full_AdjustedWeightedAverageShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdjustedWeightedAverageShares",
     "presentation": [
      "http://afya.com.br/role/EarningsPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average number of outstanding shares adjusted for the effect of dilution"
       }
      },
      "en": {
       "role": {
        "documentation": "The weighted average number of ordinary shares outstanding plus the weighted average number of ordinary shares that would be issued on the conversion of all the dilutive potential ordinary shares into ordinary shares. [Refer: Ordinary shares [member]; Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r79"
     ]
    },
    "ifrs-full_AdjustmentToProfitLossForPreferenceShareDividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdjustmentToProfitLossForPreferenceShareDividends",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/EarningsPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net income attributable to the owners of the Company"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustment to profit (loss) for non-participating preference share dividends to calculate profit (loss) attributable to ordinary equity holders of the parent entity. [Refer: Preference shares [member]; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r265",
      "r266"
     ]
    },
    "afya_AdjustmentsAndEliminationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdjustmentsAndEliminationsMember",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments And Eliminations [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInLoansAndAdvancesToCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInLoansAndAdvancesToCustomers",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Advances from customers",
        "label": "Adjustments for decrease (increase) in loans and advances to customers"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for decrease (increase) in loans and advances to customers to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Loans and advances to customers; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r457"
     ]
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInOtherAssets",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other assets",
        "label": "Adjustments for decrease (increase) in other assets"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for decrease (increase) in other assets to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Other assets; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r457"
     ]
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInTradeAccountReceivable",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trade receivables",
        "label": "Adjustments for decrease (increase) in trade accounts receivable"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for decrease (increase) in trade accounts receivable to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r455"
     ]
    },
    "ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdjustmentsForDepreciationAndAmortisationExpense",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation and amortization expenses"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for depreciation and amortisation expense to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Depreciation and amortisation expense; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r456"
     ]
    },
    "ifrs-full_AdjustmentsForGainLossOnDisposalOfInvestmentsInSubsidiariesJointVenturesAndAssociates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdjustmentsForGainLossOnDisposalOfInvestmentsInSubsidiariesJointVenturesAndAssociates",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share of income of associate"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for gain (loss) on disposals investments in subsidiaries, joint ventures and associates to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Total for all associates [member]; Total for all joint ventures [member]; Total for all subsidiaries [member]; Investments in subsidiaries, joint ventures and associates reported in separate financial statements; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r457"
     ]
    },
    "ifrs-full_AdjustmentsForIncomeTaxExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdjustmentsForIncomeTaxExpense",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Taxes payable",
        "label": "Adjustments for income tax expense"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for income tax expense to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r119"
     ]
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInOtherLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 20.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other liabilities",
        "label": "Adjustments for increase (decrease) in other liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for increase (decrease) in other liabilities to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Other liabilities; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r457"
     ]
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInTradeAccountPayable",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails6",
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trade payables",
        "label": "Other"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for increase (decrease) in trade accounts payable to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r455"
     ]
    },
    "ifrs-full_AdjustmentsForProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdjustmentsForProvisions",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision (reversal) for legal proceedings"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for provisions to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Provisions; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r456"
     ]
    },
    "ifrs-full_AdjustmentsForReconcileProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdjustmentsForReconcileProfitLoss",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash flows from operating activities before income taxes",
        "label": "Adjustments to reconcile profit (loss)"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r115"
     ]
    },
    "ifrs-full_AdjustmentsForReconcileProfitLossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdjustmentsForReconcileProfitLossAbstract",
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments to reconcile income before income taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForSharebasedPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdjustmentsForSharebasedPayments",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based compensation expense"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for share-based payments to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r456"
     ]
    },
    "ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AdjustmentsForUnrealisedForeignExchangeLossesGains",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net foreign exchange differences"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for unrealised foreign exchange losses (gains) to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r283",
      "r456"
     ]
    },
    "afya_Advances1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "Advances1",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/OtherAssetsDetails": {
       "parentTag": "afya_Assets1",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/OtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Advances",
        "label": "Advances1"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdvancesFromCustomersAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdvancesFromCustomersAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Advances from customers",
        "label": "AdvancesFromCustomersAsOfAcquisitionDate"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AdvancesRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AdvancesRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Advances"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AfyaParticipacoesS.A.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AfyaParticipacoesS.A.Member",
     "presentation": [
      "http://afya.com.br/role/CorporateInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Afya Participacoes S. A. [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AfyaParticipacoesSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AfyaParticipacoesSAMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Afya Participacoes S.A. (\u0093Afya Brazil\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AggtErrCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Erroneous Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r342",
      "r353",
      "r367",
      "r393"
     ]
    },
    "ecd_AggtErrCompNotYetDeterminedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AggtErrCompNotYetDeterminedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Erroneous Compensation Not Yet Determined"
       }
      }
     },
     "auth_ref": [
      "r345",
      "r356",
      "r370",
      "r396"
     ]
    },
    "afya_AlemDaMedicinaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AlemDaMedicinaMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Alem Da Medicina [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AllAdjToCompMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AllAdjToCompMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "auth_ref": [
      "r381"
     ]
    },
    "ecd_AllExecutiveCategoriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AllExecutiveCategoriesMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "auth_ref": [
      "r388"
     ]
    },
    "ecd_AllIndividualsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AllIndividualsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure",
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure",
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "auth_ref": [
      "r346",
      "r357",
      "r371",
      "r388",
      "r397",
      "r401",
      "r409"
     ]
    },
    "ecd_AllTradingArrangementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AllTradingArrangementsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "auth_ref": [
      "r407"
     ]
    },
    "afya_AllowanceAccountForCreditLossesOfFinancialAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AllowanceAccountForCreditLossesOfFinancialAsset",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedPeriodStartLabel": "Opening balance",
        "negatedPeriodEndLabel": "Closing balance",
        "label": "AllowanceAccountForCreditLossesOfFinancialAsset"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AllowanceForDoubtfulAccountsFoReceivable1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AllowanceForDoubtfulAccountsFoReceivable1",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "(-) Allowance for doubtful accounts"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AllowanceForDoubtfulAccountsOfOpeartingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AllowanceForDoubtfulAccountsOfOpeartingActivities",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Allowance for expected credit losses"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AllowanceForExpectedCreditLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AllowanceForExpectedCreditLoss",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Allowance for expected credit losses",
        "label": "AllowanceForExpectedCreditLoss"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AllowanceForExpectedCreditLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AllowanceForExpectedCreditLosses",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails",
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/SegmentInformationDetails1",
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Allowance for expected credit losses",
        "verboseLabel": "Allowance for expected credit losses",
        "label": "AllowanceForExpectedCreditLosses"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AmendmentDescription",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Description",
        "documentation": "Description of changes contained within amended document."
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "afya_AmendmentsToIAS21Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AmendmentsToIAS21Member",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendments To I A S 21 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AmortisationIntangibleAssetsOtherThanGoodwill",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortization"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of amortisation of intangible assets other than goodwill. [Refer: Depreciation and amortisation expense; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r104"
     ]
    },
    "afya_AmortizationOfIntangibleAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AmortizationOfIntangibleAsset",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortization of intangible assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AmountIncurredByEntityForProvisionOfKeyManagementPersonnelServicesProvidedBySeparateManagementEntity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AmountIncurredByEntityForProvisionOfKeyManagementPersonnelServicesProvidedBySeparateManagementEntity",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "Amount incurred by entity for provision of key management personnel services provided by separate management entity"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount incurred by the entity for provision of key management personnel services that are provided by a separate management entity. [Refer: Key management personnel of entity or parent [member]; Separate management entities [domain]]"
       }
      }
     },
     "auth_ref": [
      "r62"
     ]
    },
    "ifrs-full_AmountsPayableRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AmountsPayableRelatedPartyTransactions",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amounts payable resulting from related party transactions. [Refer: Total for all related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r61",
      "r65"
     ]
    },
    "ifrs-full_AmountsReceivableRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AmountsReceivableRelatedPartyTransactions",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total assets",
        "label": "Amounts receivable, related party transactions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amounts receivable resulting from related party transactions. [Refer: Total for all related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r61",
      "r65"
     ]
    },
    "afya_AnnualImprovementsToIFRSAccountingStandardsVolume11Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AnnualImprovementsToIFRSAccountingStandardsVolume11Member",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Improvements To IFRS Accounting Standards Volume 11 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AnnualInformationForm": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AnnualInformationForm",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Information Form",
        "documentation": "Boolean flag with value true on a form if it is an annual report containing an annual information form."
       }
      }
     },
     "auth_ref": [
      "r349"
     ]
    },
    "ifrs-full_ApplicableTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ApplicableTaxRate",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax rate",
        "verboseLabel": "Statutory income taxes rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The applicable income tax rate."
       }
      }
     },
     "auth_ref": [
      "r42"
     ]
    },
    "afya_April2023Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "April2023Member",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "April 2023 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_April2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "April2025Member",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "April 2025 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AprilTwentyThirtyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AprilTwentyThirtyMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "April Twenty Thirty [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AprilTwentyTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AprilTwentyTwentySixMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "April Twenty Twenty Six [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "Assets",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total assets",
        "label": "Total assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of a present economic resource controlled by the entity as a result of past events. Economic resource is a right that has the potential to produce economic benefits."
       }
      }
     },
     "auth_ref": [
      "r16",
      "r158",
      "r159",
      "r161",
      "r236",
      "r239"
     ]
    },
    "afya_Assets1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "Assets1",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/OtherAssetsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://afya.com.br/role/OtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total",
        "label": "Assets1"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AssetsAbstract",
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AssociatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AssociatesMember",
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total for all associates [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the entities over which the investor has significant influence."
       }
      }
     },
     "auth_ref": [
      "r63",
      "r72",
      "r75",
      "r157"
     ]
    },
    "dei_AuditedAnnualFinancialStatements": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AuditedAnnualFinancialStatements",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Audited Annual Financial Statements",
        "documentation": "Boolean flag with value true on a form if it is an annual report containing audited financial statements."
       }
      }
     },
     "auth_ref": [
      "r349"
     ]
    },
    "dei_AuditorFirmId": {
     "xbrltype": "nonemptySequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AuditorFirmId",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Firm ID",
        "documentation": "PCAOB issued Audit Firm Identifier"
       }
      }
     },
     "auth_ref": [
      "r324",
      "r326",
      "r349"
     ]
    },
    "dei_AuditorLocation": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AuditorLocation",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Location"
       }
      }
     },
     "auth_ref": [
      "r324",
      "r326",
      "r349"
     ]
    },
    "dei_AuditorName": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AuditorName",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Name"
       }
      }
     },
     "auth_ref": [
      "r324",
      "r326",
      "r349"
     ]
    },
    "afya_August2023Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "August2023Member",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "August 2023 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AverageEffectiveTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "AverageEffectiveTaxRate",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The tax expense (income) divided by the accounting profit. [Refer: Accounting profit]"
       }
      }
     },
     "auth_ref": [
      "r42"
     ]
    },
    "afya_AveragePriceDeliveredUnderSharebasedCompensationPlan": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AveragePriceDeliveredUnderSharebasedCompensationPlan",
     "presentation": [
      "http://afya.com.br/role/EquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average price, delivered under the share-based compensation plan"
       }
      }
     },
     "auth_ref": []
    },
    "afya_AveragePriceRepurchased": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "AveragePriceRepurchased",
     "presentation": [
      "http://afya.com.br/role/EquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average price repurchased"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AwardExrcPrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardExrcPrice",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exercise Price"
       }
      }
     },
     "auth_ref": [
      "r404"
     ]
    },
    "ecd_AwardGrantDateFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardGrantDateFairValue",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value as of Grant Date"
       }
      }
     },
     "auth_ref": [
      "r405"
     ]
    },
    "ecd_AwardTmgDiscLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgDiscLineItems",
     "auth_ref": [
      "r400"
     ]
    },
    "ecd_AwardTmgHowMnpiCnsdrdTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgHowMnpiCnsdrdTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing, How MNPI Considered"
       }
      }
     },
     "auth_ref": [
      "r400"
     ]
    },
    "ecd_AwardTmgMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgMethodTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Method"
       }
      }
     },
     "auth_ref": [
      "r400"
     ]
    },
    "ecd_AwardTmgMnpiCnsdrdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgMnpiCnsdrdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing MNPI Considered"
       }
      }
     },
     "auth_ref": [
      "r400"
     ]
    },
    "ecd_AwardTmgMnpiDiscTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgMnpiDiscTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing MNPI Disclosure"
       }
      }
     },
     "auth_ref": [
      "r400"
     ]
    },
    "ecd_AwardTmgPredtrmndFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardTmgPredtrmndFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Predetermined"
       }
      }
     },
     "auth_ref": [
      "r400"
     ]
    },
    "us-gaap_AwardTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AwardTypeAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Type [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AwardUndrlygSecuritiesAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardUndrlygSecuritiesAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Underlying Securities"
       }
      }
     },
     "auth_ref": [
      "r403"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardsCloseToMnpiDiscIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Name",
        "label": "Awards Close in Time to MNPI Disclosures, Individual Name"
       }
      }
     },
     "auth_ref": [
      "r402"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardsCloseToMnpiDiscTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures [Table]"
       }
      }
     },
     "auth_ref": [
      "r401"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "AwardsCloseToMnpiDiscTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures, Table"
       }
      }
     },
     "auth_ref": [
      "r401"
     ]
    },
    "ifrs-full_BankAndSimilarCharges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "BankAndSimilarCharges",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinanceResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Bank fees",
        "label": "Bank and similar charges"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of bank and similar charges recognised by the entity as an expense."
       }
      }
     },
     "auth_ref": [
      "r433"
     ]
    },
    "afya_BankCertificatesOfDepositMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "BankCertificatesOfDepositMember",
     "presentation": [
      "http://afya.com.br/role/CashAndCashEquivalentsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bank Certificates Of Deposit [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_BaseRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "BaseRate",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Base rate"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BasicEarningsLossPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "BasicEarningsLossPerShare",
     "presentation": [
      "http://afya.com.br/role/EarningsPerShareDetails",
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basic earnings per common share",
        "verboseLabel": "Basic earnings per share (R$)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of profit (loss) attributable to ordinary equity holders of the parent entity (the numerator) divided by the weighted average number of ordinary shares outstanding during the period (the denominator)."
       }
      }
     },
     "auth_ref": [
      "r77",
      "r78"
     ]
    },
    "ifrs-full_BorrowingsInterestRateBasis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "BorrowingsInterestRateBasis",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The basis (reference rate) used for calculation of the interest rate on borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r462"
     ]
    },
    "ifrs-full_BorrowingsMaturity": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "BorrowingsMaturity",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity"
       }
      },
      "en": {
       "role": {
        "documentation": "The maturity of borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r462"
     ]
    },
    "ifrs-full_BottomOfRangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "BottomOfRangeMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/IntangibleAssetsDetails2",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails1",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bottom of range [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the bottom of a range."
       }
      }
     },
     "auth_ref": [
      "r124",
      "r164",
      "r183",
      "r198",
      "r287",
      "r288",
      "r462"
     ]
    },
    "ifrs-full_BrandNamesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "BrandNamesMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Brand names [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets representing rights to a group of complementary assets such as a trademark (or service mark) and its related trade name, formulas, recipes and technological expertise. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r271"
     ]
    },
    "ifrs-full_BuildingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "BuildingsMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3",
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Buildings [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of plant, property and equipment representing depreciable buildings and similar structures for use in operations. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r440"
     ]
    },
    "afya_BusinessCombinationsAndGoodwillPolicyExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "BusinessCombinationsAndGoodwillPolicyExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business combinations and goodwill"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BusinessCombinationsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "BusinessCombinationsAxis",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetailsNarrative",
      "http://afya.com.br/role/CorporateInformationDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business combinations [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r210"
     ]
    },
    "ifrs-full_BusinessCombinationsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "BusinessCombinationsDomain",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetailsNarrative",
      "http://afya.com.br/role/CorporateInformationDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Business combinations' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r210",
      "r213"
     ]
    },
    "afya_BusinessCombinationsLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "BusinessCombinationsLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liabilities, business combinations"
       }
      }
     },
     "auth_ref": []
    },
    "dei_BusinessContactMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "BusinessContactMember",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Contact [Member]",
        "documentation": "Business contact for the entity"
       }
      }
     },
     "auth_ref": [
      "r326",
      "r349"
     ]
    },
    "afya_CapitalExpenditures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CapitalExpenditures",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital expenditures"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CapitalManagementExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CapitalManagementExplanatory",
     "presentation": [
      "http://afya.com.br/role/CapitalManagement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital management"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CapitalUnitsAuthorizedShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CapitalUnitsAuthorizedShares",
     "presentation": [
      "http://afya.com.br/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Authorized capital units"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CardiPapersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CardiPapersMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cardi Papers [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CardioPapersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CardioPapersMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cardio Papers [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails",
      "http://afya.com.br/role/IntangibleAssetsDetails1",
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Carrying amount, accumulated depreciation, amortisation and impairment and gross carrying amount [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r47",
      "r51",
      "r102",
      "r105",
      "r108",
      "r109",
      "r110",
      "r111",
      "r112",
      "r212",
      "r221",
      "r222"
     ]
    },
    "ifrs-full_CarryingAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CarryingAmountMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails",
      "http://afya.com.br/role/IntangibleAssetsDetails1",
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the amount at which an asset is recognised in the statement of financial position (after deducting any accumulated depreciation or amortisation and accumulated impairment losses). It also represents the standard value for the 'Carrying amount, accumulated depreciation, amortisation and impairment and gross carrying amount' axis if no other member is used. [Refer: Depreciation and amortisation expense; Impairment loss]"
       }
      }
     },
     "auth_ref": [
      "r51",
      "r105",
      "r108",
      "r110",
      "r111",
      "r212",
      "r221",
      "r222"
     ]
    },
    "afya_CarryingAmountsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CarryingAmountsMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Carrying Amounts [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Cash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "Cash",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/CashAndCashEquivalentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and bank deposits"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash on hand and demand deposits. [Refer: Cash on hand]"
       }
      }
     },
     "auth_ref": [
      "r458"
     ]
    },
    "ifrs-full_CashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/CashAndCashEquivalentsDetails",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails",
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash on hand and demand deposits, along with short-term, highly liquid investments that are readily convertible to known amounts of cash and that are subject to an insignificant risk of changes in value. [Refer: Cash; Cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r9",
      "r125",
      "r152"
     ]
    },
    "ifrs-full_CashAndCashEquivalentsInSubsidiaryOrBusinessesAcquiredOrDisposed2013": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CashAndCashEquivalentsInSubsidiaryOrBusinessesAcquiredOrDisposed2013",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash paid net of cash acquired with the subsidiary (included in cash flows from investing activities)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash and cash equivalents in subsidiaries or other businesses over which control is obtained or lost. [Refer: Total for all subsidiaries [member]; Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r120"
     ]
    },
    "ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CashAndCashEquivalentsRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails",
      "http://afya.com.br/role/CorporateInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and cash and equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for cash and cash equivalents acquired in a business combination. [Refer: Cash and cash equivalents; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r460"
     ]
    },
    "ifrs-full_CashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/CashAndCashEquivalentsDetails",
      "http://afya.com.br/role/CashAndCashEquivalentsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of short-term, highly liquid investments that are readily convertible to known amounts of cash and that are subject to an insignificant risk of changes in value."
       }
      }
     },
     "auth_ref": [
      "r458"
     ]
    },
    "afya_CashEquivalents1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CashEquivalents1Member",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Equivalents 1 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash flows from (used in) financing activities",
        "label": "Cash flows from (used in) financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from (used in) financing activities, which are activities that result in changes in the size and composition of the contributed equity and borrowings of the entity, from continuing and discontinued operations."
       }
      }
     },
     "auth_ref": [
      "r113",
      "r127"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInFinancingActivitiesAbstract",
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing activities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash flows used in investing activities",
        "label": "Cash flows from (used in) investing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from (used in) investing activities, which are the acquisition and disposal of long-term assets and other investments not included in cash equivalents, from continuing and discontinued operations."
       }
      }
     },
     "auth_ref": [
      "r113",
      "r127"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInInvestingActivitiesAbstract",
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investing activities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInOperatingActivities",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash flows from operating activities",
        "label": "Cash flows from (used in) operating activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from (used in) operating activities, which are the principal revenue-producing activities of the entity and other activities that are not investing or financing activities, from continuing and discontinued operations. [Refer: Revenue]"
       }
      }
     },
     "auth_ref": [
      "r113",
      "r127"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating activities"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CashGeneratingUnits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CashGeneratingUnits",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash generating units"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CashOutflow": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CashOutflow",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash outflow"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashOutflowForLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CashOutflowForLeases",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease expenses"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for leases."
       }
      }
     },
     "auth_ref": [
      "r175"
     ]
    },
    "ifrs-full_CashTransferred": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CashTransferred",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash paid"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value, at acquisition date, of cash transferred as consideration in a business combination. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r203"
     ]
    },
    "ifrs-full_CategoriesOfRelatedPartiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CategoriesOfRelatedPartiesAxis",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/RelatedPartiesDetails",
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Categories of related parties [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r64"
     ]
    },
    "ifrs-full_CategoriesOfRelatedPartiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CategoriesOfRelatedPartiesDomain",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/RelatedPartiesDetails",
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Categories of related parties' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r64"
     ]
    },
    "afya_CentroDeCienciasEmSaudeDeItajubaS.A.CCSIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CentroDeCienciasEmSaudeDeItajubaS.A.CCSIMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Centro de Ciencias em Saude de Itajuba S.A. (\u0093CCSI\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CentroDeCienciasEmSaudeDeItajubaSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CentroDeCienciasEmSaudeDeItajubaSAMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Centro De Ciencias Em Saude De Itajuba SA [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CentroDeEnsinoSaoLucasLtda.UniSLMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CentroDeEnsinoSaoLucasLtda.UniSLMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Centro de Ensino Sao Lucas Ltda. (\u0093UniSL\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CentroSuperiorDeCienciasDaSaudeSSLtda.FCMPBMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CentroSuperiorDeCienciasDaSaudeSSLtda.FCMPBMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Centro Superior de Ciencias da Saude Ltda. (\u0093FCMPB\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ChangedPeerGroupFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ChangedPeerGroupFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Changed Peer Group, Footnote"
       }
      }
     },
     "auth_ref": [
      "r379"
     ]
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "CityAreaCode",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CivilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CivilMember",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails",
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Civil [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ClassACommonSharesHeldInTreasuryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ClassACommonSharesHeldInTreasuryMember",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class A Common Shares Held In Treasury [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ClassAOrdinarySharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ClassAOrdinarySharesMember",
     "presentation": [
      "http://afya.com.br/role/Cover",
      "http://afya.com.br/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class A Ordinary Shares [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ClassBOrdinarySharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ClassBOrdinarySharesMember",
     "presentation": [
      "http://afya.com.br/role/Cover",
      "http://afya.com.br/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class B Ordinary Shares [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ClassesOfAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfAssetsAxis",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of assets [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r82",
      "r83",
      "r163",
      "r178"
     ]
    },
    "ifrs-full_ClassesOfAssetsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfAssetsDomain",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for a present economic resource controlled by the entity as a result of past events. Economic resource is a right that has the potential to produce economic benefits. It also represents the standard value for the 'Classes of assets' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r82",
      "r163",
      "r178"
     ]
    },
    "ifrs-full_ClassesOfContingentLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfContingentLiabilitiesAxis",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails",
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of contingent liabilities [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r211"
     ]
    },
    "ifrs-full_ClassesOfContingentLiabilitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfContingentLiabilitiesDomain",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails",
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails1"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for possible obligations that arise from past events and whose existence will be confirmed only by the occurrence or non-occurrence of one or more uncertain future events not wholly within the control of the entity; or, present obligations that arise from past events but are not recognised because (a) it is probable that an outflow of resources embodying economic benefits will be required to settle the obligations; or (b) the amount of the obligations cannot be measured with sufficient reliability. It also represents the standard value for the 'Classes of contingent liabilities' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r100",
      "r211"
     ]
    },
    "ifrs-full_ClassesOfFinancialAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfFinancialAssetsAxis",
     "presentation": [
      "http://afya.com.br/role/CashAndCashEquivalentsDetailsNarrative",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8",
      "http://afya.com.br/role/TradeReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of financial assets [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r190",
      "r225",
      "r226",
      "r247",
      "r248"
     ]
    },
    "ifrs-full_ClassesOfFinancialAssetsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfFinancialAssetsDomain",
     "presentation": [
      "http://afya.com.br/role/CashAndCashEquivalentsDetailsNarrative",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8",
      "http://afya.com.br/role/TradeReceivablesDetails"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for aggregated classes of financial assets. It also represents the standard value for the 'Classes of financial assets' axis if no other member is used. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r190",
      "r225",
      "r226",
      "r247",
      "r248"
     ]
    },
    "ifrs-full_ClassesOfFinancialLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfFinancialLiabilitiesAxis",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails1",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails2",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails6",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails7",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of financial liabilities [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r225",
      "r226",
      "r247",
      "r248"
     ]
    },
    "ifrs-full_ClassesOfFinancialLiabilitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfFinancialLiabilitiesDomain",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails1",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails2",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails6",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails7",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for aggregated classes financial liabilities. It also represents the standard value for the 'Classes of financial liabilities' axis if no other member is used. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r225",
      "r226",
      "r247",
      "r248"
     ]
    },
    "ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfIntangibleAssetsAndGoodwillAxis",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails",
      "http://afya.com.br/role/IntangibleAssetsDetails2",
      "http://afya.com.br/role/IntangibleAssetsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of intangible assets and goodwill [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r450"
     ]
    },
    "ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfIntangibleAssetsAndGoodwillDomain",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails",
      "http://afya.com.br/role/IntangibleAssetsDetails2",
      "http://afya.com.br/role/IntangibleAssetsDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for intangible assets and goodwill. It also represents the standard value for the 'Classes of intangible assets and goodwill' axis if no other member is used. [Refer: Goodwill; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r450"
     ]
    },
    "ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfIntangibleAssetsOtherThanGoodwillAxis",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of intangible assets other than goodwill [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r106"
     ]
    },
    "ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfIntangibleAssetsOtherThanGoodwillDomain",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails1"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Classes of intangible assets other than goodwill' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r106"
     ]
    },
    "ifrs-full_ClassesOfOtherProvisionsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfOtherProvisionsDomain",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails",
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails1"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for provisions other than provisions for employee benefits. It also represents the standard value for the 'Classes of other provisions' axis if no other member is used. [Refer: Provisions]"
       }
      }
     },
     "auth_ref": [
      "r98"
     ]
    },
    "ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfPropertyPlantAndEquipmentAxis",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3",
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of property, plant and equipment [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfPropertyPlantAndEquipmentDomain",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3",
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Classes of property, plant and equipment' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "ifrs-full_ClassesOfProvisionsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfProvisionsAxis",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails",
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of other provisions [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r98"
     ]
    },
    "ifrs-full_ClassesOfShareCapitalAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfShareCapitalAxis",
     "presentation": [
      "http://afya.com.br/role/Cover",
      "http://afya.com.br/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of share capital [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r26"
     ]
    },
    "ifrs-full_ClassesOfShareCapitalDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClassesOfShareCapitalDomain",
     "presentation": [
      "http://afya.com.br/role/Cover",
      "http://afya.com.br/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for share capital of the entity. It also represents the standard value for the 'Classes of share capital' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r26"
     ]
    },
    "afya_ClassificationAndMeasurementOfFinancialInstrumentsAmendmentsToIFRS9AndIFRS7Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ClassificationAndMeasurementOfFinancialInstrumentsAmendmentsToIFRS9AndIFRS7Member",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments Amendments To IFRS 9 And IFRS 7 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CliquefarmaDrogariasOnlineLtda.CliquefarmaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CliquefarmaDrogariasOnlineLtda.CliquefarmaMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cliquefarma Drogarias Online Ltda. (\u0093Cliquefarma\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ClosingForeignExchangeRate": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ClosingForeignExchangeRate",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Closing foreign exchange rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The spot exchange rate at the end of the reporting period. Exchange rate is the ratio of exchange for two currencies. Spot exchange rate is the exchange rate for immediate delivery."
       }
      }
     },
     "auth_ref": [
      "r433"
     ]
    },
    "ecd_CoSelectedMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CoSelectedMeasureAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Company Selected Measure Amount"
       }
      }
     },
     "auth_ref": [
      "r380"
     ]
    },
    "ecd_CoSelectedMeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CoSelectedMeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Company Selected Measure Name"
       }
      }
     },
     "auth_ref": [
      "r380"
     ]
    },
    "ecd_CompActuallyPaidVsCoSelectedMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CompActuallyPaidVsCoSelectedMeasureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Company Selected Measure"
       }
      }
     },
     "auth_ref": [
      "r385"
     ]
    },
    "ecd_CompActuallyPaidVsNetIncomeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CompActuallyPaidVsNetIncomeTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Net Income"
       }
      }
     },
     "auth_ref": [
      "r384"
     ]
    },
    "ecd_CompActuallyPaidVsOtherMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CompActuallyPaidVsOtherMeasureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Other Measure"
       }
      }
     },
     "auth_ref": [
      "r386"
     ]
    },
    "ecd_CompActuallyPaidVsTotalShareholderRtnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "CompActuallyPaidVsTotalShareholderRtnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Total Shareholder Return"
       }
      }
     },
     "auth_ref": [
      "r383"
     ]
    },
    "afya_CompanhiaNilzaCordeiroHerdyDeEducacaoECulturaUnigranrioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CompanhiaNilzaCordeiroHerdyDeEducacaoECulturaUnigranrioMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Companhia Nilza Cordeiro Herdy de Educacao e Cultura (\u0093Unigranrio\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CompanyShareInEquity1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CompanyShareInEquity1",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Company\u2019s share in equity - 30%"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CompanyShareOfProfitss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CompanyShareOfProfitss",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Company\u2019s share of profit, net of tax"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComponentsOfEquityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ComponentsOfEquityAxis",
     "presentation": [
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of equity [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "ifrs-full_ComponentsOfEquityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ComponentsOfEquityDomain",
     "presentation": [
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the residual interest in the assets of the entity after deducting all its liabilities. It also represents the standard value for the 'Components of equity' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "ifrs-full_ComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfChangesInEquity",
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total comprehensive income",
        "label": "Total comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of change in equity resulting from transactions and other events, other than those changes resulting from transactions with owners in their capacity as owners."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r29",
      "r133",
      "r135",
      "r149",
      "r285"
     ]
    },
    "afya_ComprehensiveIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ComprehensiveIncomeLoss",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total comprehensive income",
        "label": "ComprehensiveIncomeLoss"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComputerSoftwareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ComputerSoftwareMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Computer software [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets representing computer software. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r272"
     ]
    },
    "afya_ConsiderationToBeTransferred": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ConsiderationToBeTransferred",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consideration to be transferred"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ConsolidatedRevenues": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ConsolidatedRevenues",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated revenues"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ConstructionInProgressMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ConstructionInProgressMember",
     "presentation": [
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Construction in progress [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for expenditure capitalised during the construction of items of property, plant and equipment that are not yet available for use (ie not yet in the location and condition necessary for it to be capable of operating in the manner intended by the management). [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r440"
     ]
    },
    "afya_ConsultingFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ConsultingFees",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consulting fees"
       }
      }
     },
     "auth_ref": []
    },
    "dei_ContactPersonnelEmailAddress": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "ContactPersonnelEmailAddress",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contact Personnel Email Address",
        "documentation": "Email address of contact personnel."
       }
      }
     },
     "auth_ref": []
    },
    "dei_ContactPersonnelName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "ContactPersonnelName",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contact Personnel Name",
        "documentation": "Name of contact personnel"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ContingenciesCorrespondentAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ContingenciesCorrespondentAmount",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contingencies correspondent amount"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ContinuingEducationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ContinuingEducationMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1",
      "http://afya.com.br/role/RevenueDetails1",
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Continuing Education [member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ContractualLeaseTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ContractualLeaseTerm",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contractual lease term"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ContributionForTheFinancingOfSocialSecurityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ContributionForTheFinancingOfSocialSecurityMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contribution For The Financing Of Social Security [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ConvertibleLoansFromVentureCapitalInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ConvertibleLoansFromVentureCapitalInvestments",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/OtherAssetsDetails": {
       "parentTag": "afya_Assets1",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/OtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Convertible loans from venture capital investments"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CostExpensesOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CostExpensesOther",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other",
        "label": "CostExpensesOther"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CostOfSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CostOfSale",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cost of services"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CostOfSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CostOfSales",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_GrossProfit",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Cost of services",
        "label": "Cost of sales"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of all expenses directly or indirectly attributed to the goods or services sold. Attributed expenses include, but are not limited to, costs previously included in the measurement of inventory that has now been sold, such as depreciation and maintenance of factory buildings and equipment used in the production process, unallocated production overheads, and abnormal amounts of production costs of inventories."
       }
      }
     },
     "auth_ref": [
      "r0",
      "r37"
     ]
    },
    "afya_CostOfServices": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CostOfServices",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Cost of services",
        "label": "CostOfServices"
       }
      }
     },
     "auth_ref": []
    },
    "dei_CountryRegion": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "CountryRegion",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country Region",
        "documentation": "Region code of country"
       }
      }
     },
     "auth_ref": []
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "CoverAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "afya_CreditCardCharges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CreditCardCharges",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinanceResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit card charges"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CreditExposures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CreditExposures",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exposure risk"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrencyInWhichInformationIsDisplayedAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrencyInWhichInformationIsDisplayedAxis",
     "presentation": [
      "http://afya.com.br/role/CashAndCashEquivalentsDetailsNarrative",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Currency in which information is displayed [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "ifrs-full_CurrencyRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrencyRiskMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails9",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Currency risk [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a type of market risk representing the risk that the fair value or future cash flows of a financial instrument will fluctuate because of changes in foreign exchange rates. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r184",
      "r185",
      "r186",
      "r187",
      "r230"
     ]
    },
    "ifrs-full_CurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total current assets",
        "verboseLabel": "Current assets",
        "label": "Current assets [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that the entity (a) expects to realise or intends to sell or consume in its normal operating cycle; (b) holds primarily for the purpose of trading; (c) expects to realise within twelve months after the reporting period; or (d) classifies as cash or cash equivalents (as defined in IAS 7) unless the asset is restricted from being exchanged or used to settle a liability for at least twelve months after the reporting period. [Refer: Assets]"
       }
      }
     },
     "auth_ref": [
      "r20",
      "r145",
      "r285"
     ]
    },
    "afya_CurrentAssets1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CurrentAssets1",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/OtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrentAssetsAbstract",
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentDepositsFromCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrentDepositsFromCustomers",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Advances from customers"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current deposits from customers. [Refer: Deposits from customers]"
       }
      }
     },
     "auth_ref": [
      "r435"
     ]
    },
    "ifrs-full_CurrentFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrentFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Current",
        "label": "Current financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current financial assets. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r218"
     ]
    },
    "ifrs-full_CurrentFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrentFinancialLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Current",
        "label": "Current financial liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current financial liabilities. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r218"
     ]
    },
    "ifrs-full_CurrentFinancialLiabilitiesAtFairValueThroughProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrentFinancialLiabilitiesAtFairValueThroughProfitOrLoss",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Current",
        "label": "Current financial liabilities at fair value through profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current financial liabilities measured at fair value through profit or loss. [Refer: Financial liabilities at fair value through profit or loss]"
       }
      }
     },
     "auth_ref": [
      "r228"
     ]
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Fiscal Year End Date",
        "documentation": "End date of current fiscal year in the format --MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrentLeaseLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4",
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liabilities",
        "verboseLabel": "Lease liabilities, current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r171"
     ]
    },
    "ifrs-full_CurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_Liabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total current liabilities",
        "verboseLabel": "Current liabilities",
        "negatedLabel": "Current liabilities",
        "label": "Current liabilities [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities that: (a) the entity expects to settle in its normal operating cycle; (b) the entity holds primarily for the purpose of trading; (c) are due to be settled within twelve months after the reporting period; or (d) the entity does not have the right at the end of the reporting period to defer settlement for at least twelve months after the reporting period."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r147",
      "r285"
     ]
    },
    "ifrs-full_CurrentLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrentLiabilitiesAbstract",
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentPrepaidExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrentPrepaidExpenses",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/OtherAssetsDetails": {
       "parentTag": "afya_Assets1",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/OtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prepaid expenses"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as a current asset for expenditures made prior to the period when the economic benefit will be realised."
       }
      }
     },
     "auth_ref": [
      "r433"
     ]
    },
    "ifrs-full_CurrentRecognisedLiabilitiesDefinedBenefitPlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrentRecognisedLiabilitiesDefinedBenefitPlan",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Labor and social obligations"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current net defined benefit liability. [Refer: Net defined benefit liability]"
       }
      }
     },
     "auth_ref": [
      "r435"
     ]
    },
    "ifrs-full_CurrentTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrentTaxAssets",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recoverable taxes"
       }
      },
      "en": {
       "role": {
        "documentation": "The excess of amount paid for current tax in respect of current and prior periods over the amount due for those periods. Current tax is the amount of income taxes payable (recoverable) in respect of the taxable profit (tax loss) for a period."
       }
      }
     },
     "auth_ref": [
      "r12"
     ]
    },
    "ifrs-full_CurrentTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrentTaxExpenseIncome",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Current",
        "label": "Current tax expense (income)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income taxes payable (recoverable) in respect of the taxable profit (tax loss) for a period."
       }
      }
     },
     "auth_ref": [
      "r259"
     ]
    },
    "ifrs-full_CurrentTaxLiabilitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrentTaxLiabilitiesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative",
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income taxes payable"
       }
      },
      "en": {
       "role": {
        "documentation": "The current amount of current tax liabilities. [Refer: Current tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r12"
     ]
    },
    "afya_CurrentTaxesPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CurrentTaxesPayable",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Taxes payable"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentTradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CurrentTradeReceivables",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition",
      "http://afya.com.br/role/TradeReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade receivables",
        "verboseLabel": "Current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current trade receivables. [Refer: Trade receivables]"
       }
      }
     },
     "auth_ref": [
      "r255",
      "r256"
     ]
    },
    "afya_CurrentVersusNoncurrentClassificationPoliciesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CurrentVersusNoncurrentClassificationPoliciesExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair value measurement"
       }
      }
     },
     "auth_ref": []
    },
    "afya_CustomerRelationshipsOtherCoursesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "CustomerRelationshipsOtherCoursesMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Customer Relationships Other Courses [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CustomerrelatedIntangibleAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "CustomerrelatedIntangibleAssetsMember",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails1",
      "http://afya.com.br/role/IntangibleAssetsDetails",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Customer-related intangible assets [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets representing assets related to customers. Such assets may include customer lists, order or production backlog, customer contracts and related customer relationships as well as non-contractual customer relationships."
       }
      }
     },
     "auth_ref": [
      "r451"
     ]
    },
    "cyd_CybersecurityRiskBoardCommitteeOrSubcommitteeResponsibleForOversightTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskBoardCommitteeOrSubcommitteeResponsibleForOversightTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Board Committee or Subcommittee Responsible for Oversight [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r334",
      "r419"
     ]
    },
    "cyd_CybersecurityRiskBoardOfDirectorsOversightTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskBoardOfDirectorsOversightTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Board of Directors Oversight [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r334",
      "r419"
     ]
    },
    "cyd_CybersecurityRiskManagementExpertiseOfManagementResponsibleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskManagementExpertiseOfManagementResponsibleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Expertise of Management Responsible [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r336",
      "r421"
     ]
    },
    "cyd_CybersecurityRiskManagementPositionsOrCommitteesResponsibleFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskManagementPositionsOrCommitteesResponsibleFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Positions or Committees Responsible [Flag]"
       }
      }
     },
     "auth_ref": [
      "r336",
      "r421"
     ]
    },
    "cyd_CybersecurityRiskManagementPositionsOrCommitteesResponsibleReportToBoardFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskManagementPositionsOrCommitteesResponsibleReportToBoardFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Positions or Committees Responsible Report to Board [Flag]"
       }
      }
     },
     "auth_ref": [
      "r338",
      "r423"
     ]
    },
    "cyd_CybersecurityRiskManagementPositionsOrCommitteesResponsibleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskManagementPositionsOrCommitteesResponsibleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Positions or Committees Responsible [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r336",
      "r421"
     ]
    },
    "cyd_CybersecurityRiskManagementProcessesForAssessingIdentifyingAndManagingThreatsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskManagementProcessesForAssessingIdentifyingAndManagingThreatsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Processes for Assessing, Identifying, and Managing Threats [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r329",
      "r414"
     ]
    },
    "cyd_CybersecurityRiskManagementProcessesIntegratedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskManagementProcessesIntegratedFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Processes Integrated [Flag]"
       }
      }
     },
     "auth_ref": [
      "r330",
      "r415"
     ]
    },
    "cyd_CybersecurityRiskManagementProcessesIntegratedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskManagementProcessesIntegratedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Processes Integrated [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r330",
      "r415"
     ]
    },
    "cyd_CybersecurityRiskManagementStrategyAndGovernanceAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskManagementStrategyAndGovernanceAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management, Strategy, and Governance [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r328",
      "r413"
     ]
    },
    "cyd_CybersecurityRiskManagementThirdPartyEngagedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskManagementThirdPartyEngagedFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Third Party Engaged [Flag]"
       }
      }
     },
     "auth_ref": [
      "r331",
      "r416"
     ]
    },
    "cyd_CybersecurityRiskMateriallyAffectedOrReasonablyLikelyToMateriallyAffectRegistrantFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskMateriallyAffectedOrReasonablyLikelyToMateriallyAffectRegistrantFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Materially Affected or Reasonably Likely to Materially Affect Registrant [Flag]"
       }
      }
     },
     "auth_ref": [
      "r333",
      "r418"
     ]
    },
    "cyd_CybersecurityRiskMateriallyAffectedOrReasonablyLikelyToMateriallyAffectRegistrantTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskMateriallyAffectedOrReasonablyLikelyToMateriallyAffectRegistrantTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Materially Affected or Reasonably Likely to Materially Affect Registrant [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r333",
      "r418"
     ]
    },
    "cyd_CybersecurityRiskProcessForInformingBoardCommitteeOrSubcommitteeResponsibleForOversightTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskProcessForInformingBoardCommitteeOrSubcommitteeResponsibleForOversightTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Process for Informing Board Committee or Subcommittee Responsible for Oversight [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r334",
      "r419"
     ]
    },
    "cyd_CybersecurityRiskProcessForInformingManagementOrCommitteesResponsibleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskProcessForInformingManagementOrCommitteesResponsibleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Process for Informing Management or Committees Responsible [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r337",
      "r422"
     ]
    },
    "cyd_CybersecurityRiskRoleOfManagementTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskRoleOfManagementTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Role of Management [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r335",
      "r420"
     ]
    },
    "cyd_CybersecurityRiskThirdPartyOversightAndIdentificationProcessesFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "CybersecurityRiskThirdPartyOversightAndIdentificationProcessesFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Third Party Oversight and Identification Processes [Flag]"
       }
      }
     },
     "auth_ref": [
      "r332",
      "r417"
     ]
    },
    "afya_December2023Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "December2023Member",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "December 2023 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DecreaseForeignCurrencyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DecreaseForeignCurrencyMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails9"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decrease Foreign Currency [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DeductionAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DeductionAbstract",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deductions"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DeductionOfGrantedDiscounts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DeductionOfGrantedDiscounts",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Discount and scholarships"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DeductionOfProuni": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DeductionOfProuni",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PROUNI"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DeductionOfReturnsOfNetRevenue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DeductionOfReturnsOfNetRevenue",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Returns"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DeductionOfTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DeductionOfTaxes",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Taxes",
        "label": "DeductionOfTaxes"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DeferredTaxAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DeferredTaxAsset",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "DeferredTaxAsset"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DeferredTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DeferredTaxAssets",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amounts of income taxes recoverable in future periods in respect of: (a) deductible temporary differences; (b) the carryforward of unused tax losses; and (c) the carryforward of unused tax credits. [Refer: Temporary differences [member]; Unused tax credits [member]; Unused tax losses [member]]"
       }
      }
     },
     "auth_ref": [
      "r13",
      "r17",
      "r43"
     ]
    },
    "afya_DeferredTaxAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DeferredTaxAssetsAbstract",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Deferred tax assets"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DeferredTaxAssetsLossCarryforwards": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DeferredTaxAssetsLossCarryforwards",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax losses carry forward"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DeferredTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DeferredTaxExpenseIncome",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Deferred",
        "label": "Deferred tax expense (income)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of tax expense (income) relating to changes in deferred tax liabilities and deferred tax assets. [Refer: Deferred tax assets; Deferred tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "afya_DeferredTaxExpenseIncomes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DeferredTaxExpenseIncomes",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrecognized deferred income tax assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DeferredTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DeferredTaxLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amounts of income taxes payable in future periods in respect of taxable temporary differences. [Refer: Temporary differences [member]]"
       }
      }
     },
     "auth_ref": [
      "r13",
      "r17",
      "r43"
     ]
    },
    "us-gaap_DeferredTaxLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "DeferredTaxLiabilitiesAbstract",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Deferred tax liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DeferredTaxLiabilitiesTaxBenefitFromTaxDeductibleGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DeferredTaxLiabilitiesTaxBenefitFromTaxDeductibleGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "DeferredTaxLiabilitiesTaxBenefitFromTaxDeductibleGoodwill"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DeferredTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DeferredTaxes",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DeferredsTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DeferredsTaxLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "DeferredsTaxLiabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DefinedBenefitObligationAtPresentValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DefinedBenefitObligationAtPresentValue",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined benefit obligation"
       }
      },
      "en": {
       "role": {
        "documentation": "The present value, without deducting any plan assets, of expected future payments required to settle the obligation resulting from employee service in the current and prior periods. [Refer: Plan assets, at fair value]"
       }
      }
     },
     "auth_ref": [
      "r443"
     ]
    },
    "ifrs-full_DefinedBenefitPlansAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DefinedBenefitPlansAxis",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails3",
      "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined benefit plans [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r56"
     ]
    },
    "ifrs-full_DefinedBenefitPlansDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DefinedBenefitPlansDomain",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails3",
      "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for post-employment benefit plans other than defined contribution plans. Defined contribution plans are post-employment benefit plans under which an entity pays fixed contributions into a separate entity (a fund) and will have no legal or constructive obligation to pay further contributions if the fund does not hold sufficient assets to pay all employee benefits relating to employee service in the current and prior periods. It also represents the standard value for the 'Defined benefit plans' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r56"
     ]
    },
    "afya_DelReyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DelReyMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Del Rey [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DenominatorAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DenominatorAbstract",
     "presentation": [
      "http://afya.com.br/role/EarningsPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Denominator"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DepositsFromExternalCustomer": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DepositsFromExternalCustomer",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "External customer"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DepreciationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DepreciationExpense",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Depreciation and amortization",
        "label": "Depreciation expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of depreciation expense. Depreciation is the systematic allocation of depreciable amounts of tangible assets over their useful lives."
       }
      }
     },
     "auth_ref": [
      "r433"
     ]
    },
    "afya_DepreciationExpenseLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DepreciationExpenseLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liabilities, depreciation expense"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DepreciationPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DepreciationPropertyPlantAndEquipment",
     "presentation": [
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Depreciation",
        "label": "Depreciation, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of depreciation of property, plant and equipment. [Refer: Depreciation and amortisation expense; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r50",
      "r53"
     ]
    },
    "ifrs-full_DepreciationRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DepreciationRightofuseAssets",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Right-of-use assets, depreciation expense",
        "label": "Depreciation, right-of-use assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of depreciation of right-of-use assets. [Refer: Depreciation and amortisation expense; Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r172"
     ]
    },
    "afya_DepreciationRightofuseAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DepreciationRightofuseAssetsMember",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation Rightofuse Assets [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfAccountingPolicyForEarningsPerShareExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForEarningsPerShareExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings per share (\u201cEPS\u201d)"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for earnings per share."
       }
      }
     },
     "auth_ref": [
      "r434"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForIncomeTaxExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForIncomeTaxExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Taxes"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for income tax."
       }
      }
     },
     "auth_ref": [
      "r434"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Intangible assets",
        "label": "Description of accounting policy for intangible assets other than goodwill [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for intangible assets other than goodwill. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r434"
     ]
    },
    "afya_DescriptionOfAccountingPolicyForInvestmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DescriptionOfAccountingPolicyForInvestmentsExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in associates"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfAccountingPolicyForLeasesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForLeasesExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leases"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for leases. A lease is an agreement whereby the lessor conveys to the lessee in return for a payment or series of payments the right to use an asset for an agreed period of time."
       }
      }
     },
     "auth_ref": [
      "r434"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Property and equipment",
        "label": "Description of accounting policy for property, plant and equipment [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r434"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForProvisionsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForProvisionsExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for provisions. [Refer: Provisions]"
       }
      }
     },
     "auth_ref": [
      "r434"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForRecognitionOfRevenue": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForRecognitionOfRevenue",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from contracts with customers"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for recognising revenue. [Refer: Revenue]"
       }
      }
     },
     "auth_ref": [
      "r434"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForTreasurySharesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForTreasurySharesExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury shares"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for treasury shares. [Refer: Treasury shares]"
       }
      }
     },
     "auth_ref": [
      "r434"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyToDetermineComponentsOfCashAndCashEquivalents": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyToDetermineComponentsOfCashAndCashEquivalents",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Cash and cash equivalents",
        "label": "Description of accounting policy for determining components of cash and cash equivalents [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's accounting policy used to determine the components of cash and cash equivalents. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r126"
     ]
    },
    "ifrs-full_DescriptionOfAcquiree": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfAcquiree",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetailsNarrative",
      "http://afya.com.br/role/CorporateInformationDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired purchase price"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the business or businesses that the acquirer obtains control of in a business combination. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r201"
     ]
    },
    "ifrs-full_DescriptionOfChangeInValuationTechniqueUsedInFairValueMeasurementAssets": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfChangeInValuationTechniqueUsedInFairValueMeasurementAssets",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation technique"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of a change in valuation technique (for example, changing from a market approach to an income approach or the use of an additional valuation technique) for the fair value measurement of assets. [Refer: Income approach [member]; Market approach [member]]"
       }
      }
     },
     "auth_ref": [
      "r160"
     ]
    },
    "ifrs-full_DescriptionOfDiscountRatesAppliedToCashFlowProjections": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfDiscountRatesAppliedToCashFlowProjections",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Discount rate applied to cash flow projections"
       }
      },
      "en": {
       "role": {
        "documentation": "The discount rate applied to cash flow projections for a cash-generating unit (group of units). [Refer: Total for all cash-generating units [member]]"
       }
      }
     },
     "auth_ref": [
      "r88",
      "r90"
     ]
    },
    "ifrs-full_DescriptionOfExpectedVolatilityShareOptionsGranted": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfExpectedVolatilityShareOptionsGranted",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expected volatility"
       }
      },
      "en": {
       "role": {
        "documentation": "The expected volatility of the share price used to calculate the fair value of the share options granted. Expected volatility is a measure of the amount by which a price is expected to fluctuate during a period. The measure of volatility used in option pricing models is the annualised standard deviation of the continuously compounded rates of return on the share over a period of time."
       }
      }
     },
     "auth_ref": [
      "r200"
     ]
    },
    "ifrs-full_DescriptionOfInterrelationshipsBetweenUnobservableInputsAndOfHowTheyMightMagnifyOrMitigateEffectOfChangesInUnobservableInputsOnFairValueMeasurementAssets": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfInterrelationshipsBetweenUnobservableInputsAndOfHowTheyMightMagnifyOrMitigateEffectOfChangesInUnobservableInputsOnFairValueMeasurementAssets",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inter-relationship between significant unobservable inputs and fair value measurement"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the interrelationships between unobservable inputs and of how they might magnify or mitigate the effect of changes in the unobservable inputs on the fair value measurement of assets. [Refer: Disclosure of significant unobservable inputs used in fair value measurement of assets [text block]]"
       }
      }
     },
     "auth_ref": [
      "r162"
     ]
    },
    "ifrs-full_DescriptionOfKeyAssumptionsOnWhichManagementHasBasedCashFlowProjections": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfKeyAssumptionsOnWhichManagementHasBasedCashFlowProjections",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails2",
      "http://afya.com.br/role/IntangibleAssetsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Description",
        "label": "Description of significant estimate"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of key assumptions on which management has based its cash flow projections for the period covered by the most recent budgets/forecasts for a cash-generating unit (group of units). Key assumptions are those to which the unit's (group of units') recoverable amount is most sensitive. [Refer: Total for all cash-generating units [member]]"
       }
      }
     },
     "auth_ref": [
      "r87",
      "r93"
     ]
    },
    "afya_DescriptionOfLeaseTerm": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DescriptionOfLeaseTerm",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of lease term"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DescriptionOfLeaseTerms": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DescriptionOfLeaseTerms",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Description of lease term",
        "label": "DescriptionOfLeaseTerms"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfNatureOfChangeInAccountingPolicy": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfNatureOfChangeInAccountingPolicy",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the nature of a change in accounting policy related to an initial application of an IFRS. [Refer: IFRSs [member]]"
       }
      }
     },
     "auth_ref": [
      "r129"
     ]
    },
    "ifrs-full_DescriptionOfOptionPricingModelShareOptionsGranted": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfOptionPricingModelShareOptionsGranted",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation model"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the option pricing model used for share options granted. [Refer: Option pricing model [member]]"
       }
      }
     },
     "auth_ref": [
      "r200"
     ]
    },
    "ifrs-full_DescriptionOfRiskFreeInterestRateShareOptionsGranted": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfRiskFreeInterestRateShareOptionsGranted",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk-free interest rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The implied yield currently available on zero-coupon government issues of the country in whose currency the exercise price for share options granted is expressed, with a remaining term equal to the expected term of the option being valued (based on the option's remaining contractual life and taking into account the effects of expected early exercise). [Refer: Government [member]]"
       }
      }
     },
     "auth_ref": [
      "r200"
     ]
    },
    "ifrs-full_DescriptionOfValuationTechniquesAndKeyModelInputsUsedForDeterminingNoncontrollingInterestInAnAcquireeMeasuredAtFairValue": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DescriptionOfValuationTechniquesAndKeyModelInputsUsedForDeterminingNoncontrollingInterestInAnAcquireeMeasuredAtFairValue",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Valuation technique",
        "label": "Description of valuation techniques and significant inputs used to measure non-controlling interest in acquiree measured at fair value"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the valuation techniques and significant inputs used to measure non-controlling interest in an acquiree measured at fair value for business combinations in which the acquirer holds less than 100 per cent of the equity interests in the acquiree at the acquisition date. [Refer: At fair value [member]; Total for all business combinations [member]; Valuation techniques used in fair value measurement [domain]]"
       }
      }
     },
     "auth_ref": [
      "r208"
     ]
    },
    "ifrs-full_DilutedEarningsLossPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DilutedEarningsLossPerShare",
     "presentation": [
      "http://afya.com.br/role/EarningsPerShareDetails",
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Diluted earnings per common share",
        "verboseLabel": "Diluted earnings per share (R$)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of profit (loss) attributable to ordinary equity holders of the parent entity (the numerator), divided by the weighted average number of ordinary shares outstanding during the period (the denominator), both adjusted for the effects of all dilutive potential ordinary shares. [Refer: Ordinary shares [member]; Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r77",
      "r78"
     ]
    },
    "ifrs-full_DilutiveEffectOfShareOptionsOnNumberOfOrdinaryShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DilutiveEffectOfShareOptionsOnNumberOfOrdinaryShares",
     "presentation": [
      "http://afya.com.br/role/EarningsPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effects of dilution from stock options and restricted stock units"
       }
      },
      "en": {
       "role": {
        "documentation": "The potential dilutive effect on the weighted average number of ordinary shares that relate to the assumed exercise of the entity's share options."
       }
      }
     },
     "auth_ref": [
      "r444"
     ]
    },
    "afya_DisclosureCapitalManagementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureCapitalManagementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital Management"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureCashAndCashEquivalentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureCashAndCashEquivalentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash And Cash Equivalents"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureCorporateInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureCorporateInformationAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Corporate Information"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureEquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Equity"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureIncomeTaxesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureIncomeTaxesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureIntangibleAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureIntangibleAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangible Assets"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureLaborAndSocialObligationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureLaborAndSocialObligationsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Labor And Social Obligations"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureLegalProceedingsAndContingenciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureLegalProceedingsAndContingenciesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal Proceedings And Contingencies"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureMaterialAccountingPoliciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureMaterialAccountingPoliciesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Accounting Policies"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureNoncashTransactionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureNoncashTransactionsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-cash Transactions"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureNoncashTransactionsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureNoncashTransactionsExplanatory",
     "presentation": [
      "http://afya.com.br/role/Non-cashTransactions"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-cash transactions"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureOfAllowanceForDoubtfulAccountsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureOfAllowanceForDoubtfulAccountsExplanatory",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of allowance for doubtful accounts"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfAmountsToBeRecoveredOrSettledAfterTwelveMonthsForClassesOfAssetsAndLiabilitiesThatContainAmountsToBeRecoveredOrSettledBothNoMoreAndMoreThanTwelveMonthsAfterReportingDateTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfAmountsToBeRecoveredOrSettledAfterTwelveMonthsForClassesOfAssetsAndLiabilitiesThatContainAmountsToBeRecoveredOrSettledBothNoMoreAndMoreThanTwelveMonthsAfterReportingDateTable",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of amounts to be recovered or settled after twelve months for classes of assets and liabilities that contain amounts to be recovered or settled both no more and more than twelve months after reporting date [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to amounts to be recovered or settled after twelve months for classes of assets and liabilities that contain amounts to be recovered or settled both no more, and more than, twelve months after reporting date."
       }
      }
     },
     "auth_ref": [
      "r19"
     ]
    },
    "ifrs-full_DisclosureOfBusinessCombinationsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfBusinessCombinationsExplanatory",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business combinations"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for business combinations."
       }
      }
     },
     "auth_ref": [
      "r214"
     ]
    },
    "ifrs-full_DisclosureOfBusinessCombinationsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfBusinessCombinationsTable",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetailsNarrative",
      "http://afya.com.br/role/CorporateInformationDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about business combination [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of business combinations."
       }
      }
     },
     "auth_ref": [
      "r210"
     ]
    },
    "ifrs-full_DisclosureOfContingentLiabilitiesInBusinessCombinationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfContingentLiabilitiesInBusinessCombinationTable",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails",
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of contingent liabilities in business combination [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to contingent liabilities in business combinations."
       }
      }
     },
     "auth_ref": [
      "r206",
      "r211"
     ]
    },
    "ifrs-full_DisclosureOfDefinedBenefitPlansTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfDefinedBenefitPlansTable",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails3",
      "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of defined benefit plans [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to defined benefit plans."
       }
      }
     },
     "auth_ref": [
      "r56"
     ]
    },
    "afya_DisclosureOfDetailedInformationAboutCashAndCashEquivalentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureOfDetailedInformationAboutCashAndCashEquivalentsExplanatory",
     "presentation": [
      "http://afya.com.br/role/CashAndCashEquivalentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of cash and cash equivalents"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://afya.com.br/role/PropertyAndEquipmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of detailed information about property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "ifrs-full_DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersTable",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of disaggregation of revenue from contracts with customers [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the disaggregation of revenue from contracts with customers."
       }
      }
     },
     "auth_ref": [
      "r166"
     ]
    },
    "ifrs-full_DisclosureOfEarningsPerShareExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfEarningsPerShareExplanatory",
     "presentation": [
      "http://afya.com.br/role/EarningsPerShare"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings per share"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for earnings per share."
       }
      }
     },
     "auth_ref": [
      "r80"
     ]
    },
    "ifrs-full_DisclosureOfEntitysReportableSegmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfEntitysReportableSegmentsExplanatory",
     "presentation": [
      "http://afya.com.br/role/SegmentInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment information"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for operating segments."
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "afya_DisclosureOfEquityExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureOfEquityExplanatory",
     "presentation": [
      "http://afya.com.br/role/Equity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Equity",
        "label": "DisclosureOfEquityExplanatory"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfEventsAfterReportingPeriodExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfEventsAfterReportingPeriodExplanatory",
     "presentation": [
      "http://afya.com.br/role/SubsequentEvents"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent events"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for events after the reporting period."
       }
      }
     },
     "auth_ref": [
      "r39"
     ]
    },
    "ifrs-full_DisclosureOfExpensesByNatureExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfExpensesByNatureExplanatory",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNature"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Costs and expenses by nature"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of expenses by nature. [Refer: Expenses, by nature]"
       }
      }
     },
     "auth_ref": [
      "r428"
     ]
    },
    "ifrs-full_DisclosureOfFairValueMeasurementOfAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfFairValueMeasurementOfAssetsTable",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetailsNarrative",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of fair value measurement of assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the fair value measurement of assets."
       }
      }
     },
     "auth_ref": [
      "r163"
     ]
    },
    "ifrs-full_DisclosureOfFinanceIncomeExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfFinanceIncomeExpenseExplanatory",
     "presentation": [
      "http://afya.com.br/role/FinanceResult"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance result"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of finance income (cost). [Refer: Finance income (cost)]"
       }
      }
     },
     "auth_ref": [
      "r428"
     ]
    },
    "ifrs-full_DisclosureOfFinancialAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsTable",
     "presentation": [
      "http://afya.com.br/role/CashAndCashEquivalentsDetailsNarrative",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8",
      "http://afya.com.br/role/TradeReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to financial assets."
       }
      }
     },
     "auth_ref": [
      "r227"
     ]
    },
    "ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial assets that are either past due or impaired [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to financial assets that are either past due or impaired."
       }
      }
     },
     "auth_ref": [
      "r251"
     ]
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsExplanatory",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets and liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for financial instruments."
       }
      }
     },
     "auth_ref": [
      "r231"
     ]
    },
    "ifrs-full_DisclosureOfFinancialLiabilitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialLiabilitiesTable",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails1",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails2",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails6",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial liabilities [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to financial liabilities."
       }
      }
     },
     "auth_ref": [
      "r227"
     ]
    },
    "afya_DisclosureOfGeneralInformationAboutFinancialStatementExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureOfGeneralInformationAboutFinancialStatementExplanatory",
     "presentation": [
      "http://afya.com.br/role/CorporateInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Corporate information"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureOfIncomeTaxesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureOfIncomeTaxesExplanatory",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxes"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income taxes"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureOfIntangibleAssetExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureOfIntangibleAssetExplanatory",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Intangible assets",
        "label": "DisclosureOfIntangibleAssetExplanatory"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfIntangibleAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfIntangibleAssetsTable",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about intangible assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of intangible assets."
       }
      }
     },
     "auth_ref": [
      "r106"
     ]
    },
    "ifrs-full_DisclosureOfIntangibleAssetsWithIndefiniteUsefulLifeTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfIntangibleAssetsWithIndefiniteUsefulLifeTable",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of intangible assets with indefinite useful life [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to intangible assets with an indefinite useful life."
       }
      }
     },
     "auth_ref": [
      "r107"
     ]
    },
    "afya_DisclosureOfInvestmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureOfInvestmentsExplanatory",
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of investment"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfJointVenturesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfJointVenturesExplanatory",
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociate"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Investment in associate",
        "label": "Disclosure of joint ventures [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of joint ventures. [Refer: Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r72",
      "r75",
      "r156"
     ]
    },
    "afya_DisclosureOfLegalProceedingsAndContingenciesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureOfLegalProceedingsAndContingenciesExplanatory",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingencies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal proceedings and contingencies"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureOfMaterialAccountingPoliciesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureOfMaterialAccountingPoliciesExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material accounting policies"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfNonadjustingEventsAfterReportingPeriodTable",
     "presentation": [
      "http://afya.com.br/role/SubsequentEventsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of non-adjusting events after reporting period [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to non-adjusting events after the reporting period."
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "ifrs-full_DisclosureOfOperatingSegmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfOperatingSegmentsExplanatory",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of statements of income for the company\u2019s operating segments"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of operating segments. [Refer: Operating segments [member]]"
       }
      }
     },
     "auth_ref": [
      "r236"
     ]
    },
    "ifrs-full_DisclosureOfOperatingSegmentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfOperatingSegmentsTable",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of operating segments [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to operating segments."
       }
      }
     },
     "auth_ref": [
      "r236"
     ]
    },
    "afya_DisclosureOfOtherAssetExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureOfOtherAssetExplanatory",
     "presentation": [
      "http://afya.com.br/role/OtherAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other assets",
        "label": "DisclosureOfOtherAssetExplanatory"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureOfOtherAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureOfOtherAssetsTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/OtherAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of other assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://afya.com.br/role/PropertyAndEquipment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Property and equipment",
        "label": "Disclosure of property, plant and equipment [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for property, plant and equipment."
       }
      }
     },
     "auth_ref": [
      "r55"
     ]
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentTable",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about property, plant and equipment [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of property, plant and equipment."
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfReconciliationOfChangesInGoodwillTable",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1",
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of changes in goodwill [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the reconciliation of changes in goodwill."
       }
      }
     },
     "auth_ref": [
      "r212"
     ]
    },
    "ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails",
      "http://afya.com.br/role/IntangibleAssetsDetails2",
      "http://afya.com.br/role/IntangibleAssetsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of changes in intangible assets and goodwill [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the reconciliation of changes in intangible assets and goodwill."
       }
      }
     },
     "auth_ref": [
      "r450"
     ]
    },
    "ifrs-full_DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesTable",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of liabilities arising from financing activities [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the reconciliation of liabilities arising from financing activities."
       }
      }
     },
     "auth_ref": [
      "r282"
     ]
    },
    "afya_DisclosureOfRelatedPartiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureOfRelatedPartiesExplanatory",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of balances and transactions with related parties"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfRelatedPartyExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfRelatedPartyExplanatory",
     "presentation": [
      "http://afya.com.br/role/RelatedParties"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related parties"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for related parties."
       }
      }
     },
     "auth_ref": [
      "r66"
     ]
    },
    "ifrs-full_DisclosureOfRevenueExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfRevenueExplanatory",
     "presentation": [
      "http://afya.com.br/role/Revenue"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Revenue",
        "label": "Disclosure of revenue [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for revenue."
       }
      }
     },
     "auth_ref": [
      "r428"
     ]
    },
    "ifrs-full_DisclosureOfSensitivityAnalysisToChangesInRiskExposuresThatAriseFromContractsWithinScopeOfIFRS17Table": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfSensitivityAnalysisToChangesInRiskExposuresThatAriseFromContractsWithinScopeOfIFRS17Table",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails9"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of sensitivity analysis to changes in risk variables that arise from contracts within scope of IFRS 17 [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the sensitivity analysis to changes in risk variables that arise from contracts within the scope of IFRS 17."
       }
      }
     },
     "auth_ref": [
      "r188"
     ]
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInSubsidiariesTable",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails",
      "http://afya.com.br/role/CorporateInformationDetails",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of subsidiaries [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to subsidiaries."
       }
      }
     },
     "auth_ref": [
      "r72",
      "r75",
      "r155"
     ]
    },
    "ifrs-full_DisclosureOfSignificantUnobservableInputsUsedInFairValueMeasurementOfAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfSignificantUnobservableInputsUsedInFairValueMeasurementOfAssetsTable",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of significant unobservable inputs used in fair value measurement of assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to significant unobservable inputs used in the fair value measurement of assets."
       }
      }
     },
     "auth_ref": [
      "r160"
     ]
    },
    "ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAbstract",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Temporary differences:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of temporary difference, unused tax losses and unused tax credits [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to temporary differences, unused tax losses and unused tax credits."
       }
      }
     },
     "auth_ref": [
      "r45"
     ]
    },
    "ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of terms and conditions of share-based payment arrangement [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to terms and conditions of share-based payment arrangements."
       }
      }
     },
     "auth_ref": [
      "r199"
     ]
    },
    "afya_DisclosureOfTradeAccountsReceivableByAgingExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureOfTradeAccountsReceivableByAgingExplanatory",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of aging of trade accounts receivable"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosureOfTradeAndOtherReceivables1Explanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureOfTradeAndOtherReceivables1Explanatory",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of trade accounts receivable"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTradeAndOtherReceivablesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfTradeAndOtherReceivablesExplanatory",
     "presentation": [
      "http://afya.com.br/role/TradeReceivables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trade receivables",
        "label": "Disclosure of trade and other receivables [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of trade and other receivables. [Refer: Trade and other receivables]"
       }
      }
     },
     "auth_ref": [
      "r428"
     ]
    },
    "ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DisclosureOfTransactionsBetweenRelatedPartiesTable",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/RelatedPartiesDetails",
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of transactions between related parties [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to transactions between related parties."
       }
      }
     },
     "auth_ref": [
      "r64"
     ]
    },
    "afya_DisclosureOtherAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosureOtherAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Assets"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DisclosuresOfCashAndCashEquivalentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DisclosuresOfCashAndCashEquivalentsExplanatory",
     "presentation": [
      "http://afya.com.br/role/CashAndCashEquivalents"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Cash and cash equivalents",
        "label": "DisclosuresOfCashAndCashEquivalentsExplanatory"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DiscountRatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DiscountRatesMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Discount Rates [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_Dividend": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "Dividend",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/OtherAssetsDetails": {
       "parentTag": "afya_Assets1",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/OtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Dividends",
        "label": "Dividend"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DividendDistributed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DividendDistributed",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend distributed"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DividendReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DividendReceivable",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends receivable"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DividendsPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DividendsPaid",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Dividends declared",
        "label": "Dividends recognised as distributions to owners"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends recognised as distributions to owners."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "ifrs-full_DividendsPaidClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DividendsPaidClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Dividends paid",
        "label": "Dividends paid, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for dividends paid by the entity, classified as financing activities."
       }
      }
     },
     "auth_ref": [
      "r118"
     ]
    },
    "ifrs-full_DividendsPaidOtherSharesPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DividendsPaidOtherSharesPerShare",
     "presentation": [
      "http://afya.com.br/role/EquityDetailsNarrative",
      "http://afya.com.br/role/SubsequentEventsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends per share"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends paid per other share."
       }
      }
     },
     "auth_ref": [
      "r81"
     ]
    },
    "ifrs-full_DividendsPaidToNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DividendsPaidToNoncontrollingInterests",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends paid to non-controlling interests"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends paid to non-controlling interests. [Refer: Non-controlling interests]"
       }
      }
     },
     "auth_ref": [
      "r143"
     ]
    },
    "ifrs-full_DividendsPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DividendsPayable",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails1",
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends payable"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends payable by means of the distribution of non-cash assets to owners."
       }
      }
     },
     "auth_ref": [
      "r131"
     ]
    },
    "afya_DividendsPayableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DividendsPayableMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends Payable [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DividendsPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DividendsPayables",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/Non-cashTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Dividends payable",
        "label": "DividendsPayables"
       }
      }
     },
     "auth_ref": []
    },
    "afya_DividendsPolicyExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DividendsPolicyExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DividendsReceived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "DividendsReceived",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends received",
        "negatedLabel": "Dividends receivable - Other assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends received."
       }
      }
     },
     "auth_ref": [
      "r144"
     ]
    },
    "afya_DividendsReceived1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "DividendsReceived1",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Dividends received",
        "label": "DividendsReceived1"
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentAccountingStandard": {
     "xbrltype": "accountingStandardItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentAccountingStandard",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Accounting Standard",
        "documentation": "The basis of accounting the registrant has used to prepare the financial statements included in this filing This can either be 'U.S. GAAP', 'International Financial Reporting Standards', or 'Other'."
       }
      }
     },
     "auth_ref": [
      "r326"
     ]
    },
    "dei_DocumentAnnualReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentAnnualReport",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Annual Report",
        "documentation": "Boolean flag that is true only for a form used as an annual report."
       }
      }
     },
     "auth_ref": [
      "r324",
      "r326",
      "r349"
     ]
    },
    "dei_DocumentFinStmtErrorCorrectionFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentFinStmtErrorCorrectionFlag",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Financial Statement Error Correction [Flag]",
        "documentation": "Indicates whether any of the financial statement period in the filing include a restatement due to error correction."
       }
      }
     },
     "auth_ref": [
      "r324",
      "r326",
      "r349",
      "r389"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Period Focus",
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3. 1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentFiscalYearFocus": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Year Focus",
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period End Date",
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period. The format of the date is YYYY-MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentPeriodStartDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentPeriodStartDate",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period Start Date",
        "documentation": "The start date of the period covered in the document, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentQuarterlyReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentQuarterlyReport",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Quarterly Report",
        "documentation": "Boolean flag that is true only for a form used as an quarterly report."
       }
      }
     },
     "auth_ref": [
      "r325"
     ]
    },
    "dei_DocumentRegistrationStatement": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentRegistrationStatement",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Registration Statement",
        "documentation": "Boolean flag that is true only for a form used as a registration statement."
       }
      }
     },
     "auth_ref": [
      "r313"
     ]
    },
    "dei_DocumentShellCompanyEventDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentShellCompanyEventDate",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Shell Company Event Date",
        "documentation": "Date of event requiring a shell company report."
       }
      }
     },
     "auth_ref": [
      "r326"
     ]
    },
    "dei_DocumentShellCompanyReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentShellCompanyReport",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Shell Company Report",
        "documentation": "Boolean flag that is true for a Shell Company Report pursuant to section 13 or 15(d) of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r326"
     ]
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Transition Report",
        "documentation": "Boolean flag that is true only for a form used as a transition report."
       }
      }
     },
     "auth_ref": [
      "r374"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentType",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Type",
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentsIncorporatedByReferenceTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentsIncorporatedByReferenceTextBlock",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Documents Incorporated by Reference [Text Block]",
        "documentation": "Documents incorporated by reference."
       }
      }
     },
     "auth_ref": [
      "r316"
     ]
    },
    "afya_EBITDAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "EBITDAMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "E B I T D A [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_EMIVEPatrulha24HorasLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "EMIVEPatrulha24HorasLtdaMember",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "E M I V E Patrulha 24 Horas Ltda [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "currency_EUR": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2024",
     "localname": "EUR",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Euro Member Countries, Euro"
       }
      }
     },
     "auth_ref": []
    },
    "afya_EbitdaGrowthRates": {
     "xbrltype": "percentItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "EbitdaGrowthRates",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "EBITDA growth rates"
       }
      }
     },
     "auth_ref": []
    },
    "afya_EducationContentDevelopedTechnologyAndEducationalPlatformMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "EducationContentDevelopedTechnologyAndEducationalPlatformMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Education Content Developed Technology And Educational Platform [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_EducationContentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "EducationContentMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Education Content [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_EducationalContentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "EducationalContentMember",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Educational Content [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_EducationalCreditsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "EducationalCreditsMember",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Educational Credits [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_EducationalPlatformMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "EducationalPlatformMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Educational Platform [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "EffectOfExchangeRateChangesOnCashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Net foreign exchange differences",
        "label": "Effect of exchange rate changes on cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The effect of exchange rate changes on cash and cash equivalents held or due in a foreign currency. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r116",
      "r117"
     ]
    },
    "afya_EliminationInterSegmentBalancesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "EliminationInterSegmentBalancesMember",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Elimination Inter Segment Balances [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_EliminationInterSegmentTransactionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "EliminationInterSegmentTransactionsMember",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Elimination Inter Segment Transactions [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line One",
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine2": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressAddressLine2",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line Two",
        "documentation": "Address Line 2 such as Street or Suite number"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine3": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressAddressLine3",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line Three",
        "documentation": "Address Line 3 such as an Office Park"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCityOrTown": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, City or Town",
        "documentation": "Name of the City or Town"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCountry": {
     "xbrltype": "countryCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressCountry",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Country",
        "documentation": "ISO 3166-1 alpha-2 country code."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressPostalZipCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Postal Zip Code",
        "documentation": "Code for the postal or zip code"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressStateOrProvince": {
     "xbrltype": "stateOrProvinceItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressStateOrProvince",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, State or Province",
        "documentation": "Name of the state or province."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressesAddressTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressesAddressTypeAxis",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Addresses, Address Type [Axis]",
        "documentation": "The axis of a table defines the relationship between the domain members or categories in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressesLineItems",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Addresses [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityAddressesTable",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Addresses [Table]",
        "documentation": "Container of address information for the entity"
       }
      }
     },
     "auth_ref": [
      "r315"
     ]
    },
    "dei_EntityBankruptcyProceedingsReportingCurrent": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityBankruptcyProceedingsReportingCurrent",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Bankruptcy Proceedings, Reporting Current",
        "documentation": "For registrants involved in bankruptcy proceedings during the preceding five years, the value Yes indicates that the registrant has filed all documents and reports required to be filed by Section 12, 13 or 15(d) of the Securities Exchange Act of 1934 subsequent to the distribution of securities under a plan confirmed by a court; the value No indicates the registrant has not. Registrants not involved in bankruptcy proceedings during the preceding five years should not report this element."
       }
      }
     },
     "auth_ref": [
      "r319"
     ]
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Central Index Key",
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK."
       }
      }
     },
     "auth_ref": [
      "r315"
     ]
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Common Stock, Shares Outstanding",
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCurrentReportingStatus": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Current Reporting Status",
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityDomain",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "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."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityEmergingGrowthCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r315"
     ]
    },
    "dei_EntityExTransitionPeriod": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityExTransitionPeriod",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Elected Not To Use the Extended Transition Period",
        "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."
       }
      }
     },
     "auth_ref": [
      "r427"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity File Number",
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityFilerCategory": {
     "xbrltype": "filerCategoryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityFilerCategory",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Filer Category",
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": [
      "r315"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Incorporation, State or Country Code",
        "documentation": "Two-character EDGAR code representing the state or country of incorporation."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityInteractiveDataCurrent": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Interactive Data Current",
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files)."
       }
      }
     },
     "auth_ref": [
      "r424"
     ]
    },
    "dei_EntityPrimarySicNumber": {
     "xbrltype": "sicNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityPrimarySicNumber",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Primary SIC Number",
        "documentation": "Primary Standard Industrial Classification (SIC) Number for the Entity."
       }
      }
     },
     "auth_ref": [
      "r349"
     ]
    },
    "dei_EntityPublicFloat": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityPublicFloat",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Public Float",
        "documentation": "The aggregate market value of the voting and non-voting common equity held by non-affiliates computed by reference to the price at which the common equity was last sold, or the average bid and asked price of such common equity, as of the last business day of the registrant's most recently completed second fiscal quarter."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Registrant Name",
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC."
       }
      }
     },
     "auth_ref": [
      "r315"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Shell Company",
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r315"
     ]
    },
    "dei_EntitySmallBusiness": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntitySmallBusiness",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Small Business",
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC)."
       }
      }
     },
     "auth_ref": [
      "r315"
     ]
    },
    "dei_EntityTaxIdentificationNumber": {
     "xbrltype": "employerIdItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityTaxIdentificationNumber",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Tax Identification Number",
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS."
       }
      }
     },
     "auth_ref": [
      "r315"
     ]
    },
    "dei_EntityVoluntaryFilers": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityVoluntaryFilers",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Voluntary Filers",
        "documentation": "Indicate 'Yes' or 'No' if the registrant is not required to file reports pursuant to Section 13 or Section 15(d) of the Act."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityWellKnownSeasonedIssuer",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Well-known Seasoned Issuer",
        "documentation": "Indicate 'Yes' or 'No' if the registrant is a well-known seasoned issuer, as defined in Rule 405 of the Securities Act. Is used on Form Type: 10-K, 10-Q, 8-K, 20-F, 6-K, 10-K/A, 10-Q/A, 20-F/A, 6-K/A, N-CSR, N-Q, N-1A."
       }
      }
     },
     "auth_ref": [
      "r425"
     ]
    },
    "ifrs-full_Equity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "Equity",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAndLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/StatementOfChangesInEquity",
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total equity",
        "periodStartLabel": "Beginning balance, value",
        "periodEndLabel": "Ending balance, value",
        "verboseLabel": "Equity",
        "label": "Equity [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of residual interest in the assets of the entity after deducting all its liabilities."
       }
      }
     },
     "auth_ref": [
      "r16",
      "r23",
      "r132",
      "r134",
      "r158",
      "r159",
      "r161"
     ]
    },
    "ifrs-full_EquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "EquityAbstract",
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EquityAndLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "EquityAndLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total liabilities and equity",
        "label": "Total liabilities and equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of the entity's equity and liabilities. [Refer: Equity; Liabilities]"
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "ifrs-full_EquityAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "EquityAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_Equity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Equity attributable to the owners of the Company",
        "label": "Equity attributable to owners of parent"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of equity attributable to the owners of the parent. This specifically excludes non-controlling interest."
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "ifrs-full_EquityAttributableToOwnersOfParentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "EquityAttributableToOwnersOfParentMember",
     "presentation": [
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity attributable to owners of parent [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity attributable to the owners of the parent."
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "afya_EquityInAssociate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "EquityInAssociate",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Equity",
        "label": "EquityInAssociate"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_EquityValuationAssumptionDifferenceFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "EquityValuationAssumptionDifferenceFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Valuation Assumption Difference, Footnote"
       }
      }
     },
     "auth_ref": [
      "r382"
     ]
    },
    "ecd_ErrCompAnalysisTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ErrCompAnalysisTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Erroneous Compensation Analysis"
       }
      }
     },
     "auth_ref": [
      "r342",
      "r353",
      "r367",
      "r393"
     ]
    },
    "ecd_ErrCompRecoveryTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ErrCompRecoveryTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Erroneously Awarded Compensation Recovery [Table]"
       }
      }
     },
     "auth_ref": [
      "r339",
      "r350",
      "r364",
      "r390"
     ]
    },
    "afya_ExchangeVariance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ExchangeVariance",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinanceResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exchange variance"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ExecutiveCategoryAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ExecutiveCategoryAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Executive Category [Axis]"
       }
      }
     },
     "auth_ref": [
      "r388"
     ]
    },
    "afya_ExpectedCashFlows": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ExpectedCashFlows",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expected cash flows"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ExpectedDividendAsPercentageShareOptionsGranted": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ExpectedDividendAsPercentageShareOptionsGranted",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend yield (%)"
       }
      },
      "en": {
       "role": {
        "documentation": "The percentage of an expected dividend used to calculate the fair value of share options granted."
       }
      }
     },
     "auth_ref": [
      "r200"
     ]
    },
    "afya_ExpectedLifeOfStockOptions": {
     "xbrltype": "durationItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ExpectedLifeOfStockOptions",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expected life of stock options"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ExpenseByNature": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ExpenseByNature",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "Expenses, by nature"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expenses aggregated according to their nature (for example, depreciation, purchases of materials, transport costs, employee benefits and advertising costs), and not reallocated among functions within the entity."
       }
      }
     },
     "auth_ref": [
      "r37"
     ]
    },
    "ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ExpenseFromSharebasedPaymentTransactionsWithEmployees",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Share-based compensation expense",
        "label": "Expense from share-based payment transactions with employees"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense from share-based payment transactions with employees. [Refer: Expense from share-based payment transactions]"
       }
      }
     },
     "auth_ref": [
      "r433"
     ]
    },
    "ifrs-full_ExpenseRelatingToLeasesOfLowvalueAssetsForWhichRecognitionExemptionHasBeenUsed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ExpenseRelatingToLeasesOfLowvalueAssetsForWhichRecognitionExemptionHasBeenUsed",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease expense from short-term leases and low-value assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of the expense relating to leases of low-value assets accounted for applying paragraph 6 of IFRS 16. This expense shall not include the expense relating to short-term leases of low-value assets."
       }
      }
     },
     "auth_ref": [
      "r174"
     ]
    },
    "ifrs-full_ExplanationOfFactsAndCircumstancesIndicatingRareSituationForReclassificationOutOfFinancialAssetsAtFairValueThroughProfitOrLoss": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ExplanationOfFactsAndCircumstancesIndicatingRareSituationForReclassificationOutOfFinancialAssetsAtFairValueThroughProfitOrLoss",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity investments"
       }
      },
      "en": {
       "role": {
        "documentation": "The explanation of facts and circumstances indicating a rare situation for the reclassification of financial assets that are no longer held for the purpose of selling or repurchasing in the near term out of the fair value through profit or loss category. [Refer: Financial assets at fair value through profit or loss; Reclassification out of financial assets at fair value through profit or loss]"
       }
      }
     },
     "auth_ref": [
      "r250"
     ]
    },
    "dei_Extension": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "Extension",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Extension",
        "documentation": "Extension number for local phone number."
       }
      }
     },
     "auth_ref": []
    },
    "afya_FADEPFaculdadeEducacionalDePatoBrancoLtdaFADEPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FADEPFaculdadeEducacionalDePatoBrancoLtdaFADEPMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "FADEP - Faculdade Educacional de Pato Branco Ltda. (\u0093FADEP\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FADEPFaculdadeEducacionalDePatoBrancoLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FADEPFaculdadeEducacionalDePatoBrancoLtdaMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "FADEP Faculdade Educaciona lDe Pato Branco Ltda [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FCMPBMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FCMPBMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "FCMPB [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FESARMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FESARMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "FESAR [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FIESMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FIESMember",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "F I E S [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FUNICMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FUNICMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "F U N I C [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FVOCI1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FVOCI1Member",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "F V O C I 1 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FVOCIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FVOCIMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "F V O C I [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FVTPLMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FVTPLMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "F V T P L [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FaculdadeMasterclassLtdaFUNICMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FaculdadeMasterclassLtdaFUNICMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Faculdade Masterclass Ltda F U N I C [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FaculdadeMasterclassLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FaculdadeMasterclassLtdaMember",
     "presentation": [
      "http://afya.com.br/role/CorporateInformationDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Faculdade Masterclass Ltda [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FairValueRemeasurementsOnBusinessCombinations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FairValueRemeasurementsOnBusinessCombinations",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair value remeasurements on business combinations"
       }
      }
     },
     "auth_ref": []
    },
    "afya_February2023Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "February2023Member",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "February 2023 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FeeAndCommissionIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "FeeAndCommissionIncome",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Transferred over time",
        "label": "Fee and commission income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income relating to fees and commissions."
       }
      }
     },
     "auth_ref": [
      "r438"
     ]
    },
    "ifrs-full_FinanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "FinanceCosts",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/FinanceResultDetails",
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Finance expenses",
        "label": "Finance costs"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of costs associated with financing activities of the entity."
       }
      }
     },
     "auth_ref": [
      "r33"
     ]
    },
    "afya_FinanceExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FinanceExpense",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinanceIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "FinanceIncome",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/FinanceResultDetails",
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/SegmentInformationDetails1",
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance income",
        "negatedLabel": "Net finance result"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income associated with interest and other financing activities of the entity."
       }
      }
     },
     "auth_ref": [
      "r438"
     ]
    },
    "ifrs-full_FinanceIncomeCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "FinanceIncomeCost",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net finance result",
        "label": "Finance income (cost)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income or cost associated with interest and other financing activities of the entity."
       }
      }
     },
     "auth_ref": [
      "r438"
     ]
    },
    "afya_FinanceResult": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FinanceResult",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinanceResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net finance result"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "FinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "Balance as of ending"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that are: (a) cash; (b) an equity instrument of another entity; (c) a contractual right: (i) to receive cash or another financial asset from another entity; or (ii) to exchange financial assets or financial liabilities with another entity under conditions that are potentially favourable to the entity; or (d) a contract that will, or may be, settled in the entity\u2019s own equity instruments and is: (i) a non-derivative for which the entity is, or may be, obliged to receive a variable number of the entity\u2019s own equity instruments; or (ii) a derivative that will, or may be, settled other than by the exchange of a fixed amount of cash or another financial asset for a fixed number of the entity\u2019s own equity instruments. For this purpose the entity\u2019s own equity instruments do not include puttable financial instruments classified as equity instruments in accordance with paragraphs 16A-16B of IAS 32, instruments that impose on the entity an obligation to deliver to another party a pro rata share of the net assets of the entity only on liquidation and are classified as equity instruments in accordance with paragraphs 16C-16D of IAS 32, or instruments that are contracts for the future receipt or delivery of the entity\u2019s own equity instruments. [Refer: Classes of financial instruments [domain]; Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r218",
      "r221",
      "r222",
      "r223",
      "r299"
     ]
    },
    "ifrs-full_FinancialAssetsAtAmortisedCostMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "FinancialAssetsAtAmortisedCostMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets at amortised cost, class [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the financial assets measured at amortised cost class. [Refer: Financial assets at amortised cost]"
       }
      }
     },
     "auth_ref": [
      "r229"
     ]
    },
    "afya_FinancialAssetsAtAmortizedCostMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FinancialAssetsAtAmortizedCostMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Assets At Amortized Cost [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssetsNeitherPastDueNorImpairedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "FinancialAssetsNeitherPastDueNorImpairedMember",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets neither past due nor impaired [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for financial assets that are neither past due nor impaired. A financial asset is past due when a counterparty has failed to make a payment when contractually due. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r251"
     ]
    },
    "ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "FinancialAssetsRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails",
      "http://afya.com.br/role/CorporateInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for financial assets acquired in a business combination. [Refer: Financial assets; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r292",
      "r294"
     ]
    },
    "afya_FinancialDiscountsGrantedExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FinancialDiscountsGrantedExpenses",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinanceResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial discounts"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FinancialIncomeFromCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FinancialIncomeFromCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinanceResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial income from cash equivalents"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FinancialInstitution": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FinancialInstitution",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial institution"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FinancialInstrumentsInitialRecognitionAndMeasurementPolicyExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FinancialInstrumentsInitialRecognitionAndMeasurementPolicyExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial instruments - initial recognition and measurement"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "FinancialLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails1",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "Financial liabilities, at carrying amount"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities that are: (a) a contractual obligation: (i) to deliver cash or another financial asset to another entity; or (ii) to exchange financial assets or financial liabilities with another entity under conditions that are potentially unfavourable to the entity; or (b) a contract that will, or may be, settled in the entity\u2019s own equity instruments and is: (i) a non-derivative for which the entity is, or may be, obliged to deliver a variable number of the entity\u2019s own equity instruments; or (ii) a derivative that will, or may be, settled other than by the exchange of a fixed amount of cash or another financial asset for a fixed number of the entity\u2019s own equity instruments. For this purpose, rights, options or warrants to acquire a fixed number of the entity\u2019s own equity instruments for a fixed amount of any currency are equity instruments if the entity offers the rights, options or warrants pro rata to all of its existing owners of the same class of its own non-derivative equity instruments. Also, for those purposes the entity\u2019s own equity instruments do not include puttable financial instruments that are classified as equity instruments in accordance with paragraphs 16A-16B of IAS 32, instruments that impose on the entity an obligation to deliver to another party a pro rata share of the net assets of the entity only on liquidation and are classified as equity instruments in accordance with paragraphs 16C-16D of IAS 32, or instruments that are contracts for the future receipt or delivery of the entity\u2019s own equity instruments. As an exception, an instrument that meets the definition of a financial liability is classified as an equity instrument if it has all the features and meets the conditions in paragraphs 16A-16B or paragraphs 16C-16D of IAS 32. [Refer: Classes of financial instruments [domain]; Financial assets; Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r218"
     ]
    },
    "ifrs-full_FinancialLiabilitiesAtAmortisedCostMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "FinancialLiabilitiesAtAmortisedCostMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial liabilities at amortised cost, class [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the financial liabilities measured at amortised cost class. [Refer: Financial liabilities at amortised cost]"
       }
      }
     },
     "auth_ref": [
      "r229"
     ]
    },
    "ifrs-full_FinancialLiabilitiesAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "FinancialLiabilitiesAtFairValue",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Financial liabilities, at fair value",
        "label": "Financial liabilities, at fair value [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value of financial liabilities. [Refer: At fair value [member]; Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r218"
     ]
    },
    "afya_FinancialLiabilitiesAtFairValues": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FinancialLiabilitiesAtFairValues",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial liabilities, at fair value"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FinancialLiabilitiesContractualUndiscounted": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FinancialLiabilitiesContractualUndiscounted",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial liabilities contractual undiscounted"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialLiabilitiesRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "FinancialLiabilitiesRecognisedAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails",
      "http://afya.com.br/role/CorporateInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial liabilities recognised as of acquisition date"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for financial liabilities assumed in a business combination. [Refer: Financial liabilities; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r292",
      "r294"
     ]
    },
    "afya_FirstAnnualInstallmentsPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FirstAnnualInstallmentsPayable",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "First annual installment"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FirstDividendDistributionInAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FirstDividendDistributionInAmount",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/EquityDetailsNarrative",
      "http://afya.com.br/role/SubsequentEventsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "First dividend distribution in amount"
       }
      }
     },
     "auth_ref": []
    },
    "afya_FirstSeriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "FirstSeriesMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "First Series [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FixturesAndFittingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "FixturesAndFittingsMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3",
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fixtures and fittings [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing fixtures and fittings that are not permanently attached to real property. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r261"
     ]
    },
    "ifrs-full_FloatingInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "FloatingInterestRateMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Floating interest rate [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a non-fixed interest rate. [Refer: Interest rate risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r461"
     ]
    },
    "afya_ForeignCurrencyExposuresMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ForeignCurrencyExposuresMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails9"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Currency Exposures [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Disqualification of Tax Benefits, Amount"
       }
      }
     },
     "auth_ref": [
      "r346",
      "r357",
      "r371",
      "r397"
     ]
    },
    "ecd_ForgoneRecoveryDueToExpenseOfEnforcementAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ForgoneRecoveryDueToExpenseOfEnforcementAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Expense of Enforcement, Amount"
       }
      }
     },
     "auth_ref": [
      "r346",
      "r357",
      "r371",
      "r397"
     ]
    },
    "ecd_ForgoneRecoveryDueToViolationOfHomeCountryLawAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ForgoneRecoveryDueToViolationOfHomeCountryLawAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Violation of Home Country Law, Amount"
       }
      }
     },
     "auth_ref": [
      "r346",
      "r357",
      "r371",
      "r397"
     ]
    },
    "ecd_ForgoneRecoveryExplanationOfImpracticabilityTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ForgoneRecoveryExplanationOfImpracticabilityTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery, Explanation of Impracticability"
       }
      }
     },
     "auth_ref": [
      "r346",
      "r357",
      "r371",
      "r397"
     ]
    },
    "ecd_ForgoneRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "ForgoneRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Name",
        "label": "Forgone Recovery, Individual Name"
       }
      }
     },
     "auth_ref": [
      "r346",
      "r357",
      "r371",
      "r397"
     ]
    },
    "ifrs-full_FunctionalOrPresentationCurrencyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "FunctionalOrPresentationCurrencyMember",
     "presentation": [
      "http://afya.com.br/role/CashAndCashEquivalentsDetailsNarrative",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member indicates information displayed in the functional or presentation currency. It also represents the standard value for the \u2018Currency in which information is displayed\u2019 axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "ifrs-full_GeneralAndAdministrativeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "GeneralAndAdministrativeExpense",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Selling, general and administrative expenses",
        "label": "General and administrative expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense relating to general and administrative activities of the entity."
       }
      }
     },
     "auth_ref": [
      "r433"
     ]
    },
    "ifrs-full_Goodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "Goodwill",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1",
      "http://afya.com.br/role/InvestmentInAssociateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets representing the future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognised. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r8",
      "r85",
      "r91",
      "r212"
     ]
    },
    "ifrs-full_GoodwillMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "GoodwillMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails",
      "http://afya.com.br/role/IntangibleAssetsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for goodwill. [Refer: Goodwill]"
       }
      }
     },
     "auth_ref": [
      "r267"
     ]
    },
    "ifrs-full_GoodwillRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "GoodwillRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill arising on acquisition"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the business combination's acquisition date for goodwill. [Refer: Goodwill; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r293",
      "r294"
     ]
    },
    "afya_GrantedVestingPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "GrantedVestingPeriod",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Vesting period"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GrossCarryingAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "GrossCarryingAmountMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails",
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gross carrying amount [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the amount at which an asset is recognised before deducting any accumulated depreciation (amortisation) and accumulated impairment losses thereon. [Refer: Depreciation and amortisation expense; Impairment loss]"
       }
      }
     },
     "auth_ref": [
      "r47",
      "r102",
      "r109",
      "r112",
      "r212",
      "r222",
      "r223",
      "r299"
     ]
    },
    "ifrs-full_GrossProfit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "GrossProfit",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails1",
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Gross profit",
        "label": "Gross profit"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of revenue less cost of sales. [Refer: Cost of sales; Revenue]"
       }
      }
     },
     "auth_ref": [
      "r253"
     ]
    },
    "afya_HospitalAndMedicalAgreements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "HospitalAndMedicalAgreements",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hospital and medical agreements"
       }
      }
     },
     "auth_ref": []
    },
    "afya_IClinicDesenvolvimentoDeSoftwareLtda.iClinicMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IClinicDesenvolvimentoDeSoftwareLtda.iClinicMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "iClinic Desenvolvimento de Software Ltda. (\u0093iClinic\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_IESVAPPatrimonialLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IESVAPPatrimonialLtdaMember",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "I E S V A P Patrimonial Ltda [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_IFRS18PresentationAndDisclosureInFinancialStatementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IFRS18PresentationAndDisclosureInFinancialStatementsMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IFRS 18 Presentation And Disclosure In Financial Statements [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_IPTANInstitutoDeEnsinoSuperiorPresidenteTancredoDeAlmeidaNevesS.A.IPTANMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IPTANInstitutoDeEnsinoSuperiorPresidenteTancredoDeAlmeidaNevesS.A.IPTANMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IPTAN - Instituto de Ensino Superior Presidente Tancredo de Almeida Neves S.A. (\u0093IPTAN\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_IPTANInstitutoDeEnsinoSuperiorPresidenteTrancredoDeAlmeidaNevesSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IPTANInstitutoDeEnsinoSuperiorPresidenteTrancredoDeAlmeidaNevesSAMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IPTAN Instituto De Ensino Superior Presidente Trancredo DeAlmeida Neves SA [Membe]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ITPACGaranhunsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ITPACGaranhunsMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ITPAC Garanhuns [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_IcfrAuditorAttestationFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "IcfrAuditorAttestationFlag",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ICFR Auditor Attestation Flag"
       }
      }
     },
     "auth_ref": [
      "r324",
      "r326",
      "r349"
     ]
    },
    "ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails",
      "http://afya.com.br/role/CorporateInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Intangible assets",
        "label": "Identifiable intangible assets recognised as of acquisition date"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for identifiable intangible assets acquired in a business combination. [Refer: Intangible assets other than goodwill; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r292",
      "r294"
     ]
    },
    "afya_IfrsStatementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IfrsStatementLineItems",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails",
      "http://afya.com.br/role/BusinessCombinationsDetails1",
      "http://afya.com.br/role/BusinessCombinationsDetailsNarrative",
      "http://afya.com.br/role/CashAndCashEquivalentsDetailsNarrative",
      "http://afya.com.br/role/CorporateInformationDetails",
      "http://afya.com.br/role/CorporateInformationDetailsNarrative",
      "http://afya.com.br/role/EquityDetailsNarrative",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails1",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails11",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails2",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails6",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails7",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails9",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/IntangibleAssetsDetails",
      "http://afya.com.br/role/IntangibleAssetsDetails1",
      "http://afya.com.br/role/IntangibleAssetsDetails2",
      "http://afya.com.br/role/IntangibleAssetsDetailsNarrative",
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails3",
      "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative",
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails",
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails1",
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetailsNarrative",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails1",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails2",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails4",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails5",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative",
      "http://afya.com.br/role/PropertyAndEquipmentDetails",
      "http://afya.com.br/role/RelatedPartiesDetails",
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative",
      "http://afya.com.br/role/RevenueDetails1",
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/SegmentInformationDetails1",
      "http://afya.com.br/role/StatementOfChangesInEquity",
      "http://afya.com.br/role/SubsequentEventsDetailsNarrative",
      "http://afya.com.br/role/TradeReceivablesDetails",
      "http://afya.com.br/role/TradeReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IfrsStatementLineItems [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ImpairmentLossRecognisedInProfitOrLossIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ImpairmentLossRecognisedInProfitOrLossIntangibleAssetsAndGoodwill",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment intangible assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of impairment loss recognised in profit or loss for intangible assets and goodwill. [Refer: Impairment loss recognised in profit or loss; Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r449"
     ]
    },
    "ifrs-full_ImpairmentOfFinancialAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ImpairmentOfFinancialAssetsAxis",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment of financial assets [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r251"
     ]
    },
    "ifrs-full_ImpairmentOfFinancialAssetsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ImpairmentOfFinancialAssetsDomain",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails1"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Impairment of financial assets' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r251"
     ]
    },
    "afya_ImpairmentOfNonfinancialAssetsPolicyExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ImpairmentOfNonfinancialAssetsPolicyExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment of non-financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "afya_IncomeLossBeforeIncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IncomeLossBeforeIncomeTaxes",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Income before income taxes",
        "label": "IncomeLossBeforeIncomeTaxes"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IncomeStatementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit or loss [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeTaxExpenseContinuingOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IncomeTaxExpenseContinuingOperations",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Income taxes expenses",
        "label": "Tax expense (income)"
       }
      },
      "en": {
       "role": {
        "documentation": "The aggregate amount included in the determination of profit (loss) for the period in respect of current tax and deferred tax. [Refer: Current tax expense (income); Deferred tax expense (income)]"
       }
      }
     },
     "auth_ref": [
      "r35",
      "r40",
      "r41",
      "r42",
      "r68",
      "r154",
      "r235"
     ]
    },
    "afya_IncomeTaxesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IncomeTaxesExpense",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income taxes expense"
       }
      }
     },
     "auth_ref": []
    },
    "afya_IncomeTaxesExpensesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IncomeTaxesExpensesAbstract",
     "presentation": [
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income taxes expenses"
       }
      }
     },
     "auth_ref": []
    },
    "afya_IncomeTaxesExpensesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IncomeTaxesExpensesCurrent",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Current",
        "label": "IncomeTaxesExpensesCurrent"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IncomeTaxesPaidRefundClassifiedAsOperatingActivities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Income taxes paid",
        "label": "Income taxes paid (refund), classified as operating activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from income taxes paid or refunded, classified as operating activities. [Refer: Income taxes paid (refund)]"
       }
      }
     },
     "auth_ref": [
      "r119",
      "r275"
     ]
    },
    "afya_IncomeTaxesRecoverable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IncomeTaxesRecoverable",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income taxes recoverable"
       }
      }
     },
     "auth_ref": []
    },
    "afya_IncreaseBasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IncreaseBasisPointsMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Basis Points [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_IncreaseBasisPointsOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IncreaseBasisPointsOneMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Basis Points One [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IncreaseDecreaseInCashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails9",
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net increase (decrease) in cash and cash equivalents",
        "verboseLabel": "Cash and cash equivalents",
        "label": "Increase (decrease) in cash and cash equivalents after effect of exchange rate changes"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in cash and cash equivalents after the effect of exchange rate changes on cash and cash equivalents held in foreign currencies. [Refer: Cash and cash equivalents; Effect of exchange rate changes on cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r125"
     ]
    },
    "ifrs-full_IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleDecreaseInUnobservableInputRecognisedInProfitOrLossBeforeTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleDecreaseInUnobservableInputRecognisedInProfitOrLossBeforeTaxAssets",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effect on profit before tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of increase (decrease) in the fair value measurement of assets, recognised in profit or loss before tax, due to a reasonably possible decrease in an unobservable input. [Refer: Tax income (expense)]"
       }
      }
     },
     "auth_ref": [
      "r459"
     ]
    },
    "ifrs-full_IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleIncreaseInUnobservableInputRecognisedInProfitOrLossBeforeTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleIncreaseInUnobservableInputRecognisedInProfitOrLossBeforeTaxAssets",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Effect on profit before tax",
        "label": "Increase (decrease) in fair value measurement due to reasonably possible increase in unobservable input, recognised in profit or loss, before tax, assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of increase (decrease) in the fair value measurement of assets, recognised in profit or loss before tax, due to a reasonably possible increase in an unobservable input. [Refer: Tax income (expense)]"
       }
      }
     },
     "auth_ref": [
      "r459"
     ]
    },
    "afya_IncreaseDecreaseInOperatingLiabilities1Abstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IncreaseDecreaseInOperatingLiabilities1Abstract",
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Changes in assets and liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "afya_IncreaseDecreaseInPaymentsOfLegalProceedings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IncreaseDecreaseInPaymentsOfLegalProceedings",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": -1.0,
       "order": 19.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Payments of legal proceedings",
        "label": "IncreaseDecreaseInPaymentsOfLegalProceedings"
       }
      }
     },
     "auth_ref": []
    },
    "afya_IncreaseDecreaseInRecoverableTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IncreaseDecreaseInRecoverableTaxes",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": -1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Recoverable taxes",
        "label": "IncreaseDecreaseInRecoverableTaxes"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughFinancingCashFlowsLiabilitiesArisingFromFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughFinancingCashFlowsLiabilitiesArisingFromFinancingActivities",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments of principal"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in liabilities arising from financing activities resulting from financing cash flows. [Refer: Cash flows from (used in) financing activities; Liabilities arising from financing activities]"
       }
      }
     },
     "auth_ref": [
      "r121"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughObtainingOrLosingControlOfSubsidiariesOrOtherBusinessesLiabilitiesArisingFromFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughObtainingOrLosingControlOfSubsidiariesOrOtherBusinessesLiabilitiesArisingFromFinancingActivities",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Business combination",
        "label": "Increase (decrease) through obtaining or losing control of subsidiaries or other businesses, liabilities arising from financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in liabilities arising from financing activities resulting from obtaining or losing control of subsidiaries or other businesses. [Refer: Liabilities arising from financing activities; Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r122"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughOtherChangesLiabilitiesArisingFromFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughOtherChangesLiabilitiesArisingFromFinancingActivities",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other",
        "label": "Increase (decrease) through other changes, liabilities arising from financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in liabilities arising from financing activities resulting from changes that the entity does not separately disclose in the same statement or note. [Refer: Liabilities arising from financing activities]"
       }
      }
     },
     "auth_ref": [
      "r123"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughSharebasedPaymentTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughSharebasedPaymentTransactions",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based compensation"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in equity resulting from share-based payment transactions. [Refer: Equity]"
       }
      }
     },
     "auth_ref": [
      "r4"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfer"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from transfers and changes that the entity does not separately disclose in the same statement or note. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r442"
     ]
    },
    "afya_IncreaseForeignCurrencyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IncreaseForeignCurrencyMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails9"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Foreign Currency [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_IncreaseInIncomeBeforeIncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IncreaseInIncomeBeforeIncomeTaxes",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase in income before income taxes"
       }
      }
     },
     "auth_ref": []
    },
    "afya_IncreaseInRevenue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IncreaseInRevenue",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase in revenue"
       }
      }
     },
     "auth_ref": []
    },
    "afya_IncreaseThroughInterestOnLiabilitiesArisingFromFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IncreaseThroughInterestOnLiabilitiesArisingFromFinancingActivities",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Interest",
        "label": "IncreaseThroughInterestOnLiabilitiesArisingFromFinancingActivities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseThroughNewLeasesLiabilitiesArisingFromFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IncreaseThroughNewLeasesLiabilitiesArisingFromFinancingActivities",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions and remeasurements"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in liabilities arising from financing activities resulting from new leases. [Refer: Liabilities arising from financing activities]"
       }
      }
     },
     "auth_ref": [
      "r280",
      "r283"
     ]
    },
    "afya_IndemnificationAssetsAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IndemnificationAssetsAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Indemnification assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IndemnificationAssetsRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IndemnificationAssetsRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/OtherAssetsDetails": {
       "parentTag": "afya_Assets1",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails",
      "http://afya.com.br/role/CorporateInformationDetails",
      "http://afya.com.br/role/OtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total net assets",
        "verboseLabel": "Total identifiable net assets at fair value",
        "terseLabel": "Indemnification assets - Note 21"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for indemnification assets acquired in a business combination. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r205"
     ]
    },
    "afya_IndexRatePerYear": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IndexRatePerYear",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Index - % per year"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_IndividualAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "IndividualAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure",
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure",
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Individual [Axis]"
       }
      }
     },
     "auth_ref": [
      "r346",
      "r357",
      "r371",
      "r388",
      "r397",
      "r401",
      "r409"
     ]
    },
    "ifrs-full_InitiallyAppliedIFRSsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "InitiallyAppliedIFRSsAxis",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails5",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Initially applied IFRSs [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r130"
     ]
    },
    "ifrs-full_InitiallyAppliedIFRSsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "InitiallyAppliedIFRSsDomain",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails5",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for IFRSs that have been initially applied by the entity. It also represents the standard value for the 'Initially applied IFRSs' axis if no other member is used. [Refer: IFRSs [member]]"
       }
      }
     },
     "auth_ref": [
      "r130"
     ]
    },
    "ecd_InsiderTradingArrLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "InsiderTradingArrLineItems",
     "auth_ref": [
      "r407"
     ]
    },
    "ecd_InsiderTradingPoliciesProcLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "InsiderTradingPoliciesProcLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r327",
      "r412"
     ]
    },
    "ecd_InsiderTrdPoliciesProcAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "InsiderTrdPoliciesProcAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures Adopted"
       }
      }
     },
     "auth_ref": [
      "r327",
      "r412"
     ]
    },
    "ecd_InsiderTrdPoliciesProcNotAdoptedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "InsiderTrdPoliciesProcNotAdoptedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures Not Adopted"
       }
      }
     },
     "auth_ref": [
      "r327",
      "r412"
     ]
    },
    "afya_InstituicaoBaianadeEnsinoSuperiorLtdaIBESMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InstituicaoBaianadeEnsinoSuperiorLtdaIBESMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Instituicao Baianade Ensino Superior Ltda I B E S [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InstitutoDeEducacaoSuperiorDoValeDoParnaibaS.A.IESVAPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InstitutoDeEducacaoSuperiorDoValeDoParnaibaS.A.IESVAPMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Instituto de Educacao Superior do Vale do Parnaiba S.A. (\u0093IESVAP\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InstitutoDeEducacaoSuperiorDoValeDoParnaibaSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InstitutoDeEducacaoSuperiorDoValeDoParnaibaSAMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Instituto De Educacao Superior Do Vale Do Parnaiba SA [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InstitutoDeEnsinoSuperiorDoPiauiS.A.IESPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InstitutoDeEnsinoSuperiorDoPiauiS.A.IESPMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Instituto de Ensino Superior do Piaui S.A. (\u0093IESP\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InstitutoDeEnsinoSuperiorDoPiauiSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InstitutoDeEnsinoSuperiorDoPiauiSAMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Instituto De Ensino Superior Do Piaui SA [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InstitutoEducacionalSantoAgostinhoS.A.FASAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InstitutoEducacionalSantoAgostinhoS.A.FASAMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Instituto Educacional Santo Agostinho S.A. (\u0093FASA\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InstitutoEducacionalSantoAgostinhoSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InstitutoEducacionalSantoAgostinhoSAMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Instituto Educacional Santo Agostinho SA [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InstitutoParaenseDeEducacaoECulturaLtda.IPECMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InstitutoParaenseDeEducacaoECulturaLtda.IPECMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Instituto Paraense de Educacao e Cultura Ltda. (\u0093IPEC\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InstitutoParaensedeEducacaoeCulturaLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InstitutoParaensedeEducacaoeCulturaLtdaMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Instituto Paraensede Educacaoe Cultura Ltda [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InstitutoTocantinensePresidenteAntonioCarlosPortoS.A.ITPACPortoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InstitutoTocantinensePresidenteAntonioCarlosPortoS.A.ITPACPortoMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Instituto Tocantinense Presidente Antonio Carlos Porto S.A. - (\u0093ITPAC Porto\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InstitutoTocantinensePresidenteAntonioCarlosS.A.ITPACAraguainaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InstitutoTocantinensePresidenteAntonioCarlosS.A.ITPACAraguainaMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Instituto Tocantinense Presidente Antonio Carlos S.A. - (\u0093ITPAC Araguaina\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InstitutoTocantinensePresidenteAntonioCarlosSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InstitutoTocantinensePresidenteAntonioCarlosSAMember",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Instituto Tocantinense Presidente Antonio Carlos S A [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InstitutodeEnsinoSuperiorPresidenteTrancredodeAlmeidaNevesSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InstitutodeEnsinoSuperiorPresidenteTrancredodeAlmeidaNevesSAMember",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Institutode Ensino Superior Presidente Trancredode Almeida Neves S A [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Intangible assets and goodwill, balance at beginnning",
        "periodEndLabel": "Intangible assets and goodwill, balance at end",
        "label": "Intangible assets and goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of intangible assets and goodwill held by the entity. [Refer: Goodwill; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r435"
     ]
    },
    "afya_IntangibleAssetsAndGoodwillNetBookValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IntangibleAssetsAndGoodwillNetBookValue",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Net book value",
        "label": "IntangibleAssetsAndGoodwillNetBookValue"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangible assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of identifiable non-monetary assets without physical substance. This amount does not include goodwill. [Refer: Goodwill]"
       }
      }
     },
     "auth_ref": [
      "r8",
      "r105"
     ]
    },
    "ifrs-full_IntangibleAssetsWithIndefiniteUsefulLife": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IntangibleAssetsWithIndefiniteUsefulLife",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Licenses with indefinite useful life"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of intangible assets assessed as having an indefinite useful life. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r86",
      "r92",
      "r107"
     ]
    },
    "ifrs-full_IntangibleAssetsWithIndefiniteUsefulLifeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IntangibleAssetsWithIndefiniteUsefulLifeAxis",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangible assets with indefinite useful life [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r107"
     ]
    },
    "ifrs-full_IntangibleAssetsWithIndefiniteUsefulLifeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IntangibleAssetsWithIndefiniteUsefulLifeDomain",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails4"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for intangible assets with an indefinite useful life. It also represents the standard value for the 'Intangible assets with indefinite useful life' axis if no other member is used. [Refer: Intangible assets with indefinite useful life]"
       }
      }
     },
     "auth_ref": [
      "r107"
     ]
    },
    "afya_IntangibleInProgressMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IntangibleInProgressMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangible In Progress [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InterSegment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InterSegment",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inter-segment"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InterestEarned": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InterestEarned",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinanceResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest earned"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "InterestExpense",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense arising from interest."
       }
      }
     },
     "auth_ref": [
      "r153",
      "r233",
      "r241"
     ]
    },
    "afya_InterestExpense1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InterestExpense1",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinanceResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest expense"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestExpenseOnLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "InterestExpenseOnLeaseLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4",
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued interest on lease liabilities",
        "verboseLabel": "Lease liabilities, interest expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of interest expense on lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r173"
     ]
    },
    "afya_InterestExpenseOnLeaseLiabilities1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InterestExpenseOnLeaseLiabilities1",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinanceResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest expense on lease liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestPaidClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "InterestPaidClassifiedAsFinancingActivities",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails11",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Payment of interest",
        "negatedTerseLabel": "Payments of interest",
        "label": "Interest paid, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for interest paid, classified as financing activities."
       }
      }
     },
     "auth_ref": [
      "r118"
     ]
    },
    "ifrs-full_InterestRateRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "InterestRateRiskMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest rate risk [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the type of risk that the fair value or future cash flows of a financial instrument will fluctuate because of changes in market interest rates. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r184",
      "r185",
      "r186",
      "r187",
      "r230"
     ]
    },
    "afya_InternationalFinanceCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InternationalFinanceCorporationMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "International Finance Corporation [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InvestmentGrossAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InvestmentGrossAmount",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Carrying amount of the investment"
       }
      }
     },
     "auth_ref": []
    },
    "afya_InvestmentType": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "InvestmentType",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment type"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InvestmentsInAssociates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "InvestmentsInAssociates",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/SegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in associate",
        "periodStartLabel": "Opening balance",
        "periodEndLabel": "Closing balance"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of investments in associates in an entity's separate financial statements. [Refer: Total for all associates [member]]"
       }
      }
     },
     "auth_ref": [
      "r69"
     ]
    },
    "ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "InvestmentsInSubsidiariesJointVenturesAndAssociates",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment in associate"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of investments in subsidiaries, joint ventures and associates in an entity's separate financial statements. [Refer: Total for all associates [member]; Total for all joint ventures [member]; Total for all subsidiaries [member]; Investments in subsidiaries reported in separate financial statements]"
       }
      }
     },
     "auth_ref": [
      "r69"
     ]
    },
    "ifrs-full_IssuedCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IssuedCapital",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/EquityDetailsNarrative",
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share capital"
       }
      },
      "en": {
       "role": {
        "documentation": "The nominal value of capital issued."
       }
      }
     },
     "auth_ref": [
      "r257"
     ]
    },
    "ifrs-full_IssuedCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "IssuedCapitalMember",
     "presentation": [
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Issued capital [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing issued capital."
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "afya_IssuedCapitals": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "IssuedCapitals",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Authorized capital"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ItEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ItEquipmentMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3",
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "It Equipment [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_JanuaryTwentyTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "JanuaryTwentyTwentyEightMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "January Twenty Twenty Eight [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_JudicialDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "JudicialDeposits",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/OtherAssetsDetails": {
       "parentTag": "afya_Assets1",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/OtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Judicial deposits"
       }
      }
     },
     "auth_ref": []
    },
    "afya_JulyTwentyTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "JulyTwentyTwentySevenMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "July Twenty Twenty Seven [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_KeyManagementPersonnelCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "KeyManagementPersonnelCompensation",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based compensation plans"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of compensation to key management personnel. [Refer: Key management personnel of entity or parent [member]]"
       }
      }
     },
     "auth_ref": [
      "r60"
     ]
    },
    "ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "KeyManagementPersonnelCompensationShorttermEmployeeBenefits",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-term employee benefits"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of compensation to key management personnel in the form of short-term employee benefits. [Refer: Key management personnel of entity or parent [member]]"
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "afya_LaborAndSocialObligationsAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LaborAndSocialObligationsAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Labor and social obligations",
        "label": "LaborAndSocialObligationsAsOfAcquisitionDate"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LaborAndSocialObligationsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LaborAndSocialObligationsExplanatory",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Labor and social obligations",
        "label": "LaborAndSocialObligationsExplanatory"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LaborAndSocialObligationsPolicyExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LaborAndSocialObligationsPolicyExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "m) Labor and social obligations"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LabourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LabourMember",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails",
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Labour [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LackOfExchangeabilityAmendmentsToIAS21Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LackOfExchangeabilityAmendmentsToIAS21Member",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendments To IAS 21 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LandMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LandMember",
     "presentation": [
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Land [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing land held by the entity for use in operations. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r260"
     ]
    },
    "ifrs-full_LaterThanFiveYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LaterThanFiveYearsMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than five years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than five years."
       }
      }
     },
     "auth_ref": [
      "r179",
      "r180",
      "r189",
      "r301",
      "r306",
      "r310"
     ]
    },
    "afya_LaterThanOneMonthsAndNotLaterThanThreeMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LaterThanOneMonthsAndNotLaterThanThreeMonthsMember",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later Than One Months And Not Later Than Three Months [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LaterThanOneYearAndNotLaterThanThreeYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LaterThanOneYearAndNotLaterThanThreeYearsMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than one year and not later than three years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than one year and not later than three years."
       }
      }
     },
     "auth_ref": [
      "r301",
      "r304",
      "r310"
     ]
    },
    "ifrs-full_LaterThanOneYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LaterThanOneYearMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than one year [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than one year."
       }
      }
     },
     "auth_ref": [
      "r18"
     ]
    },
    "ifrs-full_LaterThanSixMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LaterThanSixMonthsMember",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than six months [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than six months."
       }
      }
     },
     "auth_ref": [
      "r433"
     ]
    },
    "ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LaterThanThreeMonthsAndNotLaterThanSixMonthsMember",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than three months and not later than six months [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than three months and not later than six months."
       }
      }
     },
     "auth_ref": [
      "r301",
      "r303",
      "r310"
     ]
    },
    "ifrs-full_LaterThanThreeYearsAndNotLaterThanFiveYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LaterThanThreeYearsAndNotLaterThanFiveYearsMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than three years and not later than five years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than three years and not later than five years."
       }
      }
     },
     "auth_ref": [
      "r301",
      "r305",
      "r310"
     ]
    },
    "afya_LeaseAgreements1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LeaseAgreements1Member",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease Agreements 1 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LeaseAgreements2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LeaseAgreements2Member",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease Agreements 2 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LeaseAgreements3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LeaseAgreements3Member",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease Agreements 3 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LeaseAgreements4Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LeaseAgreements4Member",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease Agreements 4 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LeaseAgreements5Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LeaseAgreements5Member",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease Agreements 5 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LeaseExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LeaseExpenses",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Lease expenses",
        "label": "LeaseExpenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LeaseLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails1",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4",
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Lease liabilities",
        "periodStartLabel": "Lease liabilities, balance at beginning",
        "periodEndLabel": "Lease liabilities, balance at ending",
        "label": "Lease liabilities [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities related to the entity's leases. Lease is a contract, or part of a contract, that conveys the right to use an underlying asset for a period of time in exchange for consideration."
       }
      }
     },
     "auth_ref": [
      "r171"
     ]
    },
    "ifrs-full_LeaseLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LeaseLiabilitiesAbstract",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IFRS 16 - Leases:"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LeaseLiabilitiesAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LeaseLiabilitiesAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Lease liabilities",
        "label": "LeaseLiabilitiesAsOfAcquisitionDate"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LeaseLiabilitiesInterestMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LeaseLiabilitiesInterestMember",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease Liabilities Interest [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LeaseLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LeaseLiabilitiesMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liabilities [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r281",
      "r284"
     ]
    },
    "afya_LeaseLiabilitiesPaymentsOfPrincipal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LeaseLiabilitiesPaymentsOfPrincipal",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liabilities, payments of principal"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LeaseLiabilitiesRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LeaseLiabilitiesRelatedPartyTransactions",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Lease liabilities",
        "label": "LeaseLiabilitiesRelatedPartyTransactions"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LeaseLiabilitiesRemeasurement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LeaseLiabilitiesRemeasurement",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liabilities, remeasurement"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LeaseLiabilitiesWriteoff": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LeaseLiabilitiesWriteoff",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liabilities, Write-off"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LeaseLiability",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Lease liabilities",
        "label": "LeaseLiability"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LeaseholdImprovementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LeaseholdImprovementsMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3",
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leasehold improvements [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing improvements to assets held under a lease agreement."
       }
      }
     },
     "auth_ref": [
      "r440"
     ]
    },
    "dei_LegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "LegalEntityAxis",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal Entity [Axis]",
        "documentation": "The set of legal entities associated with a report."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LegalProceedingsContingentLiabilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LegalProceedingsContingentLiabilityMember",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails",
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal proceedings contingent liability [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a contingent liability for legal proceedings. [Refer: Classes of contingent liabilities [domain]]"
       }
      }
     },
     "auth_ref": [
      "r269"
     ]
    },
    "ifrs-full_LegalProceedingsProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LegalProceedingsProvision",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision for legal proceedings and contingencies"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of provision for legal proceedings. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r268",
      "r270"
     ]
    },
    "afya_LesseeFinancesLeaseRenewalTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LesseeFinancesLeaseRenewalTerm",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Renewal term"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Level2OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "Level2OfFairValueHierarchyMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Level 2 of fair value hierarchy [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a category of the fair value hierarchy where inputs to the valuation techniques are inputs other than quoted prices included within Level 1 that are observable for the asset or liability, either directly or indirectly."
       }
      }
     },
     "auth_ref": [
      "r84",
      "r89",
      "r159"
     ]
    },
    "ifrs-full_Level3OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "Level3OfFairValueHierarchyMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Level 3 of fair value hierarchy [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a category of the fair value hierarchy where inputs to the valuation techniques are unobservable inputs for the asset or liability. Unobservable inputs are inputs for which market data are not available and that are developed using the best information available about the assumptions that the market participants would use when pricing the asset or liability."
       }
      }
     },
     "auth_ref": [
      "r84",
      "r89",
      "r159"
     ]
    },
    "ifrs-full_LevelsOfFairValueHierarchyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LevelsOfFairValueHierarchyAxis",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Levels of fair value hierarchy [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r57",
      "r159"
     ]
    },
    "ifrs-full_LevelsOfFairValueHierarchyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LevelsOfFairValueHierarchyDomain",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails1"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for all levels of the fair value hierarchy. It also represents the standard value for the 'Levels of fair value hierarchy' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r57",
      "r159"
     ]
    },
    "ifrs-full_Liabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "Liabilities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAndLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total liabilities",
        "label": "Liabilities [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of a present obligation of the entity to transfer an economic resource as a result of past events. Economic resource is a right that has the potential to produce economic benefits."
       }
      }
     },
     "auth_ref": [
      "r16",
      "r158",
      "r159",
      "r161",
      "r236",
      "r240"
     ]
    },
    "ifrs-full_LiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LiabilitiesAbstract",
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LiabilitiesArisingFromFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LiabilitiesArisingFromFinancingActivities",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Liabilities arising from financing activities, beginning",
        "periodEndLabel": "Liabilities arising from financing activities, ending",
        "label": "Liabilities arising from financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities for which cash flows were, or future cash flows will be, classified in the statement of cash flows as cash flows from financing activities. [Refer: Cash flows from (used in) financing activities; Liabilities]"
       }
      }
     },
     "auth_ref": [
      "r282"
     ]
    },
    "ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LiabilitiesArisingFromFinancingActivitiesAxis",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities arising from financing activities [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r282"
     ]
    },
    "ifrs-full_LiabilitiesArisingFromFinancingActivitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LiabilitiesArisingFromFinancingActivitiesDomain",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails11"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for liabilities arising from financing activities. It also represents the standard value for the 'Liabilities arising from financing activities' axis if no other member is used. [Refer: Liabilities arising from financing activities]"
       }
      }
     },
     "auth_ref": [
      "r282"
     ]
    },
    "afya_LibraryBooksMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LibraryBooksMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3",
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Library Books [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LicencesAndFranchisesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LicencesAndFranchisesMember",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Licences and franchises [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets representing the right to use certain intangible assets owned by another entity and the right to operate a business using the name, merchandise, services, methodologies, promotional support, marketing and supplies granted by another entity. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r273"
     ]
    },
    "ifrs-full_LicencesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LicencesMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Licences [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets representing the right to use certain intangible assets owned by another entity. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r451"
     ]
    },
    "ifrs-full_LiquidityRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LiquidityRiskMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liquidity risk [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the risk that an entity will encounter difficulty in meeting obligations associated with financial liabilities that are settled by delivering cash or another financial asset. [Refer: Financial assets; Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r184",
      "r185",
      "r186",
      "r295"
     ]
    },
    "afya_LoanAndFinancing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LoanAndFinancing",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Loans and financing",
        "label": "LoanAndFinancing"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LoansAndFinancing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LoansAndFinancing",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails1",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Loans and financing",
        "label": "LoansAndFinancing"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LoansAndFinancingAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LoansAndFinancingAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails",
      "http://afya.com.br/role/CorporateInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Loans and financing",
        "label": "LoansAndFinancingAsOfAcquisitionDate"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LoansAndFinancingCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LoansAndFinancingCurrent",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Current",
        "label": "LoansAndFinancingCurrent"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LoansAndFinancingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LoansAndFinancingMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails11",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails7",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans And Financing [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LoansAndFinancingNonCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LoansAndFinancingNonCurrent",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Non-current",
        "label": "LoansAndFinancingNonCurrent"
       }
      }
     },
     "auth_ref": []
    },
    "afya_LoansAndFinancingOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "LoansAndFinancingOneMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans And Financing One [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LongtermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LongtermBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Loans and financing",
        "label": "Non-current portion of non-current borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The non-current portion of non-current borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r435"
     ]
    },
    "ifrs-full_LongtermLegalProceedingsProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "LongtermLegalProceedingsProvision",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision for legal proceedings"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current provision for legal proceedings. [Refer: Legal proceedings provision]"
       }
      }
     },
     "auth_ref": [
      "r268",
      "r270"
     ]
    },
    "afya_MachineryAndEquipmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "MachineryAndEquipmentsMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3",
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Machinery And Equipments [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "cyd_MaterialCybersecurityIncidentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "MaterialCybersecurityIncidentAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Cybersecurity Incident [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r360",
      "r361"
     ]
    },
    "cyd_MaterialCybersecurityIncidentInformationNotAvailableOrUndeterminedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "MaterialCybersecurityIncidentInformationNotAvailableOrUndeterminedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/MaterialCybersecurityIncidentDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Cybersecurity Incident Information Not Available or Undetermined [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r360",
      "r362"
     ]
    },
    "cyd_MaterialCybersecurityIncidentMaterialImpactOrReasonablyLikelyMaterialImpactTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "MaterialCybersecurityIncidentMaterialImpactOrReasonablyLikelyMaterialImpactTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/MaterialCybersecurityIncidentDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Cybersecurity Incident Material Impact or Reasonably Likely Material Impact [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r360",
      "r363"
     ]
    },
    "cyd_MaterialCybersecurityIncidentNatureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "MaterialCybersecurityIncidentNatureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/MaterialCybersecurityIncidentDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Cybersecurity Incident Nature [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r360",
      "r363"
     ]
    },
    "cyd_MaterialCybersecurityIncidentScopeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "MaterialCybersecurityIncidentScopeTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/MaterialCybersecurityIncidentDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Cybersecurity Incident Scope [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r360",
      "r363"
     ]
    },
    "cyd_MaterialCybersecurityIncidentTimingTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2024",
     "localname": "MaterialCybersecurityIncidentTimingTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/MaterialCybersecurityIncidentDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Cybersecurity Incident Timing [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r360",
      "r363"
     ]
    },
    "ifrs-full_MaturityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "MaturityAxis",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r169",
      "r179",
      "r180",
      "r181",
      "r182",
      "r183",
      "r189",
      "r217",
      "r224",
      "r263",
      "r301"
     ]
    },
    "ifrs-full_MaturityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "MaturityDomain",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for aggregated time bands. It also represents the standard value for the 'Maturity' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r169",
      "r179",
      "r180",
      "r181",
      "r182",
      "r183",
      "r189",
      "r217",
      "r263",
      "r301",
      "r307"
     ]
    },
    "ecd_MeasureAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "MeasureAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measure [Axis]"
       }
      }
     },
     "auth_ref": [
      "r380"
     ]
    },
    "ecd_MeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "MeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Name"
       }
      }
     },
     "auth_ref": [
      "r380"
     ]
    },
    "afya_MedicalHarbourAparelhosMedicoHospitalaresEServicosEmTecnologiaLtda.MedicalHarbourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "MedicalHarbourAparelhosMedicoHospitalaresEServicosEmTecnologiaLtda.MedicalHarbourMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Medical Harbour Aparelhos Medico Hospitalares e Servicos em Tecnologia Ltda. (\u0093Medical Harbour\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_MedicalPracticeSolutionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "MedicalPracticeSolutionsMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1",
      "http://afya.com.br/role/RevenueDetails1",
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Medical Practice Solutions [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_MedicinaeSolutionsS.A.MedicinaeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "MedicinaeSolutionsS.A.MedicinaeMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Medicinae Solutions S.A. (\u0093Medicinae\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MethodOfAssessmentOfExpectedCreditLossesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "MethodOfAssessmentOfExpectedCreditLossesAxis",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Method of assessment of expected credit losses [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r296",
      "r297",
      "r308"
     ]
    },
    "ifrs-full_MethodOfAssessmentOfExpectedCreditLossesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "MethodOfAssessmentOfExpectedCreditLossesDomain",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails1"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for all methods of assessment of expected credit losses. Expected credit losses are the weighted average of credit losses with the respective risks of a default occurring as the weights. This member also represents the standard value for the 'Method of assessment of expected credit losses' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r296",
      "r297",
      "r308"
     ]
    },
    "afya_MinimumTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "MinimumTaxRate",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum tax rate"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MnpiDiscTimedForCompValFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "MnpiDiscTimedForCompValFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MNPI Disclosure Timed for Compensation Value"
       }
      }
     },
     "auth_ref": [
      "r400"
     ]
    },
    "afya_MobileAppSubscriptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "MobileAppSubscriptionMember",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mobile App Subscription [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MtrlTermsOfTrdArrTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "MtrlTermsOfTrdArrTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Terms of Trading Arrangement"
       }
      }
     },
     "auth_ref": [
      "r408"
     ]
    },
    "ifrs-full_MultiperiodExcessEarningsMethodMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "MultiperiodExcessEarningsMethodMember",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Multi-period excess earnings method [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a specific valuation technique consistent with the income approach that involves analysing the excess earnings over periods of time, and is used to measure the fair value of some intangible assets. [Refer: Income approach [member]]"
       }
      }
     },
     "auth_ref": [
      "r286"
     ]
    },
    "ecd_NamedExecutiveOfficersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NamedExecutiveOfficersFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Named Executive Officers, Footnote"
       }
      }
     },
     "auth_ref": [
      "r381"
     ]
    },
    "ifrs-full_NetDeferredTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NetDeferredTaxLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax assets (liabilities), net"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of deferred tax liabilities net of deferred tax assets, when the absolute amount of deferred tax liabilities is greater than the absolute amount of deferred tax assets. [Refer: Deferred tax assets; Deferred tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r439"
     ]
    },
    "us-gaap_NetIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "NetIncomeLoss",
     "crdr": "credit",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income (Loss)"
       }
      }
     },
     "auth_ref": []
    },
    "afya_NetOfCashFlowOnAcquisition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NetOfCashFlowOnAcquisition",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net of cash flow on acquisition"
       }
      }
     },
     "auth_ref": []
    },
    "afya_NetRevenueOtherTransferredPoint": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NetRevenueOtherTransferredPoint",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Transferred at a point in time",
        "label": "NetRevenueOtherTransferredPoint"
       }
      }
     },
     "auth_ref": []
    },
    "dei_NoTradingSymbolFlag": {
     "xbrltype": "trueItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "NoTradingSymbolFlag",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Trading Symbol Flag",
        "documentation": "Boolean flag that is true only for a security having no trading symbol."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_NonGaapMeasureDescriptionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonGaapMeasureDescriptionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-GAAP Measure Description"
       }
      }
     },
     "auth_ref": [
      "r380"
     ]
    },
    "ecd_NonPeoNeoAvgCompActuallyPaidAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonPeoNeoAvgCompActuallyPaidAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO Average Compensation Actually Paid Amount"
       }
      }
     },
     "auth_ref": [
      "r378"
     ]
    },
    "ecd_NonPeoNeoAvgTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonPeoNeoAvgTotalCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO Average Total Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r377"
     ]
    },
    "ecd_NonRule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonRule10b51ArrAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Rule 10b5-1 Arrangement Adopted"
       }
      }
     },
     "auth_ref": [
      "r408"
     ]
    },
    "ecd_NonRule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "NonRule10b51ArrTrmntdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Rule 10b5-1 Arrangement Terminated"
       }
      }
     },
     "auth_ref": [
      "r408"
     ]
    },
    "afya_NonTeachingActivitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NonTeachingActivitiesMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non Teaching Activities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_NonadjustingEventMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NonadjustingEventMember",
     "presentation": [
      "http://afya.com.br/role/SubsequentEventsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nonadjusting Event [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NonadjustingEventsAfterReportingPeriodAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NonadjustingEventsAfterReportingPeriodAxis",
     "presentation": [
      "http://afya.com.br/role/SubsequentEventsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-adjusting events after reporting period [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "ifrs-full_NonadjustingEventsAfterReportingPeriodDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NonadjustingEventsAfterReportingPeriodDomain",
     "presentation": [
      "http://afya.com.br/role/SubsequentEventsDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for events that occur between the end of the reporting period and the date when the financial statements are authorised for issue and are indicative of conditions that arose after the reporting period. It also represents the standard value for the 'Non-adjusting events after reporting period' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "ifrs-full_NoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_Equity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-controlling interests"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of equity in a subsidiary not attributable, directly or indirectly, to a parent. [Refer: Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r14",
      "r136",
      "r140"
     ]
    },
    "ifrs-full_NoncontrollingInterestsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NoncontrollingInterestsMember",
     "presentation": [
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-controlling interests [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity in a subsidiary not attributable, directly or indirectly, to the parent."
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "afya_NoncurrenLliabilitiesOfRelatedParty1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NoncurrenLliabilitiesOfRelatedParty1",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Non-current liabilities",
        "label": "NoncurrenLliabilitiesOfRelatedParty1"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NoncurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NoncurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total non-current assets",
        "verboseLabel": "Non-current assets",
        "label": "Non-current assets [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that do not meet the definition of current assets. [Refer: Current assets]"
       }
      }
     },
     "auth_ref": [
      "r20",
      "r146",
      "r285"
     ]
    },
    "afya_NoncurrentAssets1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NoncurrentAssets1",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/OtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Non-current",
        "label": "NoncurrentAssets1"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NoncurrentAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NoncurrentAssetsAbstract",
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current assets"
       }
      }
     },
     "auth_ref": []
    },
    "afya_NoncurrentAssetsOfRelatedParty1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NoncurrentAssetsOfRelatedParty1",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Non-current assets",
        "label": "NoncurrentAssetsOfRelatedParty1"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NoncurrentFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NoncurrentFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Non-current",
        "label": "Non-current financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current financial assets. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r218"
     ]
    },
    "ifrs-full_NoncurrentFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NoncurrentFinancialLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Non-current",
        "label": "Non-current financial liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current financial liabilities. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r218"
     ]
    },
    "ifrs-full_NoncurrentFinancialLiabilitiesAtFairValueThroughProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NoncurrentFinancialLiabilitiesAtFairValueThroughProfitOrLoss",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Non-current",
        "label": "Non-current financial liabilities at fair value through profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current financial liabilities measured at fair value through profit or loss. [Refer: Financial liabilities at fair value through profit or loss]"
       }
      }
     },
     "auth_ref": [
      "r228"
     ]
    },
    "ifrs-full_NoncurrentLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NoncurrentLeaseLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4",
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Lease liabilities",
        "label": "Lease liabilities, non-current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r171"
     ]
    },
    "ifrs-full_NoncurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NoncurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_Liabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total non-current liabilities",
        "verboseLabel": "Non-current liabilities",
        "negatedLabel": "Non-current liabilities",
        "label": "Non-current liabilities [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities that do not meet the definition of current liabilities. [Refer: Current liabilities]"
       }
      }
     },
     "auth_ref": [
      "r21",
      "r148",
      "r285"
     ]
    },
    "ifrs-full_NoncurrentLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NoncurrentLiabilitiesAbstract",
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NoncurrentPayablesForPurchaseOfEnergy": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NoncurrentPayablesForPurchaseOfEnergy",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current payables for purchase of energy"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current payables for the purchase of energy. [Refer: Payables for purchase of energy]"
       }
      }
     },
     "auth_ref": [
      "r437"
     ]
    },
    "ifrs-full_NoncurrentPayablesToRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NoncurrentPayablesToRelatedParties",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Accounts payable to selling shareholders",
        "label": "Non-current payables to related parties"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current payables due to related parties. [Refer: Total for all related parties [member]; Payables to related parties]"
       }
      }
     },
     "auth_ref": [
      "r437"
     ]
    },
    "afya_NoncurrentTaxesPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NoncurrentTaxesPayable",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Taxes payable",
        "label": "NoncurrentTaxesPayable"
       }
      }
     },
     "auth_ref": []
    },
    "afya_NoncurrentTradeReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NoncurrentTradeReceivable",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trade receivables",
        "label": "NoncurrentTradeReceivable"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NoncurrentTradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NoncurrentTradeReceivables",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current trade receivables. [Refer: Trade receivables]"
       }
      }
     },
     "auth_ref": [
      "r256"
     ]
    },
    "ifrs-full_NotLaterThanOneMonthMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NotLaterThanOneMonthMember",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Not later than one month [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of not later than one month."
       }
      }
     },
     "auth_ref": [
      "r300",
      "r302",
      "r310"
     ]
    },
    "ifrs-full_NotesAndOtherExplanatoryInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NotesAndOtherExplanatoryInformationAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Notes and other explanatory information [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_November2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "November2025Member",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "November 2025 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NumberOfOutstandingShareOptions": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NumberOfOutstandingShareOptions",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Number of stock options, Outstanding at the beginning",
        "periodEndLabel": "Number of stock options, Outstanding at the ending",
        "label": "Number of share options outstanding in share-based payment arrangement"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of share options outstanding in a share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r191",
      "r196",
      "r198"
     ]
    },
    "afya_NumberOfRestrictedStockUnitsGrantedInSharebasedPaymentArrangement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NumberOfRestrictedStockUnitsGrantedInSharebasedPaymentArrangement",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Granted"
       }
      }
     },
     "auth_ref": []
    },
    "afya_NumberOfShareOptionsExchangedInSharebasedPaymentArrangement": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NumberOfShareOptionsExchangedInSharebasedPaymentArrangement",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Number of stock options, stock option exchanged",
        "label": "Number of stock options, Stock options exchanged"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NumberOfShareOptionsExercisedInSharebasedPaymentArrangement",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Number of stock options, Exercised",
        "label": "Number of share options exercised in share-based payment arrangement"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of share options exercised in a share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r194"
     ]
    },
    "ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NumberOfShareOptionsExpiredInSharebasedPaymentArrangement",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Number of stock options, Expired",
        "label": "Number of share options expired in share-based payment arrangement"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of share options expired in a share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r195"
     ]
    },
    "ifrs-full_NumberOfShareOptionsForfeitedInSharebasedPaymentArrangement": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NumberOfShareOptionsForfeitedInSharebasedPaymentArrangement",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Number of stock options, Forfeited",
        "label": "Number of share options forfeited in share-based payment arrangement"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of share options forfeited in a share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r193"
     ]
    },
    "ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NumberOfShareOptionsGrantedInSharebasedPaymentArrangement",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of stock options, Granted"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of share options granted in a share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r192"
     ]
    },
    "afya_NumberOfShareOptionsGrantedInValueSharebasedPaymentArrangement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NumberOfShareOptionsGrantedInValueSharebasedPaymentArrangement",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amount"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NumberOfSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NumberOfSharesIssued",
     "presentation": [
      "http://afya.com.br/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total number of shares",
        "label": "Number of shares issued"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of shares issued by the entity."
       }
      }
     },
     "auth_ref": [
      "r431"
     ]
    },
    "afya_NumberOfSharesIssued1": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NumberOfSharesIssued1",
     "presentation": [
      "http://afya.com.br/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total number of shares"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NumberOfSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "NumberOfSharesOutstanding",
     "presentation": [
      "http://afya.com.br/role/EquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Number of shares, Outstanding, at beginning balance",
        "periodEndLabel": "Number of shares, Outstanding, at ending balance",
        "label": "Number of shares outstanding"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of shares that have been authorised and issued, reduced by treasury shares held. [Refer: Treasury shares]"
       }
      }
     },
     "auth_ref": [
      "r25"
     ]
    },
    "afya_NumberOfSharesRepurchased": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NumberOfSharesRepurchased",
     "presentation": [
      "http://afya.com.br/role/EquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of shares, Repurchased"
       }
      }
     },
     "auth_ref": []
    },
    "afya_NumberOfStockOptionsExercisable": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NumberOfStockOptionsExercisable",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Number of stock options, Exercisable",
        "label": "NumberOfStockOptionsExercisable"
       }
      }
     },
     "auth_ref": []
    },
    "afya_NumberOfTreasurySharesDeliveredUnderSharebasedCompensationPlan": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NumberOfTreasurySharesDeliveredUnderSharebasedCompensationPlan",
     "presentation": [
      "http://afya.com.br/role/EquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of treasury shares, delivered under the share-based compensation plan"
       }
      }
     },
     "auth_ref": []
    },
    "afya_NumeratorAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "NumeratorAbstract",
     "presentation": [
      "http://afya.com.br/role/EarningsPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Numerator"
       }
      }
     },
     "auth_ref": []
    },
    "afya_October2023Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "October2023Member",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "October 2023 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_October2024Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "October2024Member",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "October 2024 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_OctoberTwentyThirtyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OctoberTwentyThirtyMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "October Twenty Thirty [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_OctoberTwentyTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OctoberTwentyTwentyEightMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "October Twenty Twenty Eight [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_OctoberTwentyTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OctoberTwentyTwentyFiveMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "October Twenty Twenty Five [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_OperatingLeaseTermOfContract": {
     "xbrltype": "durationItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OperatingLeaseTermOfContract",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease term"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OperatingSegmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OperatingSegmentsMember",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating segments [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for operating segments. An operating segment is a component of an entity: (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 entity); (b) whose operating results are regularly reviewed by the entity\u2019s 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. [Refer: Revenue]"
       }
      }
     },
     "auth_ref": [
      "r242"
     ]
    },
    "afya_OrganizationForEconomicCooperationAndDevelopmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OrganizationForEconomicCooperationAndDevelopmentMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization For Economic Cooperation And Development [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_Other": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "Other",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other",
        "label": "Other [Default Label]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherAdjustmentsForNoncashItems": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherAdjustmentsForNoncashItems",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 18.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Labor and social obligations",
        "label": "Other adjustments for non-cash items"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for non-cash items to reconcile profit (loss) to net cash flow from (used in) operating activities that the entity does not separately disclose in the same statement or note. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r456"
     ]
    },
    "ifrs-full_OtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherAssets",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other FIES credits - Other assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r435"
     ]
    },
    "afya_OtherAssets1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OtherAssets1",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/OtherAssetsDetails": {
       "parentTag": "afya_Assets1",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/OtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other assets",
        "label": "OtherAssets1"
       }
      }
     },
     "auth_ref": []
    },
    "afya_OtherAssetsAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OtherAssetsAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other assets",
        "label": "OtherAssetsAsOfAcquisitionDate"
       }
      }
     },
     "auth_ref": []
    },
    "afya_OtherAssetsNonCurrentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OtherAssetsNonCurrentMember",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Assets Non Current [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_OtherAssetsRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OtherAssetsRelatedPartyTransactions",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other assets",
        "label": "OtherAssetsRelatedPartyTransactions"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income and expense (including reclassification adjustments) that is not recognised in profit or loss as required or permitted by IFRSs. [Refer: IFRSs [member]]"
       }
      }
     },
     "auth_ref": [
      "r3",
      "r28",
      "r36",
      "r151"
     ]
    },
    "ifrs-full_OtherCurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherCurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current assets that the entity does not separately disclose in the same statement or note. [Refer: Current assets]"
       }
      }
     },
     "auth_ref": [
      "r435"
     ]
    },
    "ifrs-full_OtherCurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherCurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current liabilities that the entity does not separately disclose in the same statement or note. [Refer: Current liabilities]"
       }
      }
     },
     "auth_ref": [
      "r435"
     ]
    },
    "afya_OtherExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OtherExpense",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherExpenseByNature": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherExpenseByNature",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Other expenses",
        "label": "Other expenses, by nature"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expenses that the entity does not separately disclose in the same statement or note when the entity uses the 'nature of expense' form for its analysis of expenses. [Refer: Expenses, by nature]"
       }
      }
     },
     "auth_ref": [
      "r37",
      "r252"
     ]
    },
    "ifrs-full_OtherFinanceCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherFinanceCost",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinanceResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Other",
        "label": "Other finance cost"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of finance costs that the entity does not separately disclose in the same statement or note. [Refer: Finance costs]"
       }
      }
     },
     "auth_ref": [
      "r433"
     ]
    },
    "ifrs-full_OtherFinanceIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherFinanceIncome",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinanceResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other",
        "label": "Other finance income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of finance income that the entity does not separately disclose in the same statement or note. [Refer: Finance income]"
       }
      }
     },
     "auth_ref": [
      "r433"
     ]
    },
    "ifrs-full_OtherGainsLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherGainsLosses",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other expenses, net"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r429",
      "r430"
     ]
    },
    "ifrs-full_OtherIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherIncome",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other income",
        "label": "Other income [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of operating income that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r67",
      "r252",
      "r253"
     ]
    },
    "afya_OtherIncomeRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OtherIncomeRelatedPartyTransactions",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other income",
        "label": "OtherIncomeRelatedPartyTransactions"
       }
      }
     },
     "auth_ref": []
    },
    "afya_OtherLiabilitiesAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OtherLiabilitiesAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other liabilities",
        "label": "OtherLiabilitiesAsOfAcquisitionDate"
       }
      }
     },
     "auth_ref": []
    },
    "afya_OtherMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OtherMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherNoncurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherNoncurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other assets",
        "label": "Other non-current assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current assets that the entity does not separately disclose in the same statement or note. [Refer: Non-current assets]"
       }
      }
     },
     "auth_ref": [
      "r435"
     ]
    },
    "ifrs-full_OtherNoncurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherNoncurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other liabilities",
        "label": "Other non-current liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current liabilities that the entity does not separately disclose in the same statement or note. [Refer: Non-current liabilities]"
       }
      }
     },
     "auth_ref": [
      "r435"
     ]
    },
    "ifrs-full_OtherOperatingIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherOperatingIncomeExpense",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of operating income (expense) that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r438"
     ]
    },
    "ecd_OtherPerfMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "OtherPerfMeasureAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Performance Measure, Amount"
       }
      }
     },
     "auth_ref": [
      "r380"
     ]
    },
    "ifrs-full_OtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "Other provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of provisions other than provisions for employee benefits. [Refer: Provisions]"
       }
      }
     },
     "auth_ref": [
      "r22",
      "r94"
     ]
    },
    "ifrs-full_OtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherReceivables",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/OtherAssetsDetails": {
       "parentTag": "afya_Assets1",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/OtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other FIES credits"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount receivable by the entity that it does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r256"
     ]
    },
    "dei_OtherReportingStandardItemNumber": {
     "xbrltype": "otherReportingStandardItemNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "OtherReportingStandardItemNumber",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Reporting Standard Item Number",
        "documentation": "\"Item 17\" or \"Item 18\" specified when the basis of accounting is neither US GAAP nor IFRS."
       }
      }
     },
     "auth_ref": [
      "r326"
     ]
    },
    "ifrs-full_OtherRevenue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "OtherRevenue",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other",
        "label": "Other revenue"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of revenue arising from sources that the entity does not separately disclose in the same statement or note. [Refer: Revenue]"
       }
      }
     },
     "auth_ref": [
      "r433"
     ]
    },
    "afya_OtherRevenue1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OtherRevenue1",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other",
        "label": "OtherRevenue1"
       }
      }
     },
     "auth_ref": []
    },
    "afya_OtherTaxExpenseBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OtherTaxExpenseBenefits",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other",
        "label": "OtherTaxExpenseBenefits"
       }
      }
     },
     "auth_ref": []
    },
    "afya_OtherTaxesPayableAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OtherTaxesPayableAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other taxes payable"
       }
      }
     },
     "auth_ref": []
    },
    "afya_OthersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "OthersMember",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Others [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_OutstandingAggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "OutstandingAggtErrCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Aggregate Erroneous Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r344",
      "r355",
      "r369",
      "r395"
     ]
    },
    "ecd_OutstandingRecoveryCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "OutstandingRecoveryCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r347",
      "r358",
      "r372",
      "r398"
     ]
    },
    "ecd_OutstandingRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "OutstandingRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Name",
        "label": "Outstanding Recovery, Individual Name"
       }
      }
     },
     "auth_ref": [
      "r347",
      "r358",
      "r372",
      "r398"
     ]
    },
    "ifrs-full_ParValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ParValuePerShare",
     "presentation": [
      "http://afya.com.br/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nominal value per share"
       }
      },
      "en": {
       "role": {
        "documentation": "The nominal value per share."
       }
      }
     },
     "auth_ref": [
      "r24"
     ]
    },
    "ifrs-full_PastDueStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "PastDueStatusAxis",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Past due status [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r299"
     ]
    },
    "ifrs-full_PastDueStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "PastDueStatusDomain",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails1"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for all past-due statuses. It also represents the standard value for the 'Past due status' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r299"
     ]
    },
    "ecd_PayVsPerformanceDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PayVsPerformanceDisclosureLineItems",
     "auth_ref": [
      "r376"
     ]
    },
    "afya_PaymentOfDividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PaymentOfDividends",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payment of dividends"
       }
      }
     },
     "auth_ref": []
    },
    "afya_PaymentsOfInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PaymentsOfInterest",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Payments of interest",
        "label": "PaymentsOfInterest"
       }
      }
     },
     "auth_ref": []
    },
    "afya_PaymentsOfInterestLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PaymentsOfInterestLeaseLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liabilities, payments of interest"
       }
      }
     },
     "auth_ref": []
    },
    "afya_PaymentsOfInterestOnLeaseLiabilitiesClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PaymentsOfInterestOnLeaseLiabilitiesClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Payments of interest of lease liabilities",
        "label": "PaymentsOfInterestOnLeaseLiabilitiesClassifiedAsFinancingActivities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Payments of principal of lease liabilities",
        "label": "Payments of lease liabilities, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for payment of lease liabilities, classified as financing activities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r279"
     ]
    },
    "afya_PaymentsOfPrincipal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PaymentsOfPrincipal",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Payments of principal",
        "label": "PaymentsOfPrincipal"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PaymentsToSuppliersForGoodsAndServices": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "PaymentsToSuppliersForGoodsAndServices",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of services or goods"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow to suppliers for goods and services."
       }
      }
     },
     "auth_ref": [
      "r274"
     ]
    },
    "afya_Payroll": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "Payroll",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payroll (i)"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PeerGroupIssuersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeerGroupIssuersFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Peer Group Issuers, Footnote"
       }
      }
     },
     "auth_ref": [
      "r379"
     ]
    },
    "ecd_PeerGroupTotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeerGroupTotalShareholderRtnAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Peer Group Total Shareholder Return Amount"
       }
      }
     },
     "auth_ref": [
      "r379"
     ]
    },
    "ecd_PeoActuallyPaidCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeoActuallyPaidCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Actually Paid Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r378"
     ]
    },
    "ecd_PeoName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeoName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Name"
       }
      }
     },
     "auth_ref": [
      "r381"
     ]
    },
    "ecd_PeoTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PeoTotalCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Total Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r377"
     ]
    },
    "afya_PercenatgeOfAverageInterestOnFinancialInstrument": {
     "xbrltype": "percentItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PercenatgeOfAverageInterestOnFinancialInstrument",
     "presentation": [
      "http://afya.com.br/role/CashAndCashEquivalentsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of average interest"
       }
      }
     },
     "auth_ref": []
    },
    "afya_PercentageOfDividendDistribution": {
     "xbrltype": "percentItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PercentageOfDividendDistribution",
     "presentation": [
      "http://afya.com.br/role/EquityDetailsNarrative",
      "http://afya.com.br/role/SubsequentEventsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of dividend distribution"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PercentageOfEntitysRevenue": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "PercentageOfEntitysRevenue",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of revenue"
       }
      },
      "en": {
       "role": {
        "documentation": "The percentage of the entity's revenue. [Refer: Revenue]"
       }
      }
     },
     "auth_ref": [
      "r463"
     ]
    },
    "ifrs-full_PercentageOfVotingEquityInterestsAcquired": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "PercentageOfVotingEquityInterestsAcquired",
     "presentation": [
      "http://afya.com.br/role/CorporateInformationDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired percenatge"
       }
      },
      "en": {
       "role": {
        "documentation": "The percentage of voting equity interests acquired in a business combination. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r202"
     ]
    },
    "afya_PermanentAdjustmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PermanentAdjustmentsAbstract",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Permanent adjustments:"
       }
      }
     },
     "auth_ref": []
    },
    "afya_PermanentAdjustmentsGifts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PermanentAdjustmentsGifts",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gifts"
       }
      }
     },
     "auth_ref": []
    },
    "afya_PermanentAdjustmentsManagementBonuses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PermanentAdjustmentsManagementBonuses",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Management bonuses"
       }
      }
     },
     "auth_ref": []
    },
    "afya_PermanentAdjustmentsPillarTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PermanentAdjustmentsPillarTwo",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pillar Two - See Note 2.3(q)"
       }
      }
     },
     "auth_ref": []
    },
    "afya_PermanentAdjustmentsSponsorship": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PermanentAdjustmentsSponsorship",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sponsorship"
       }
      }
     },
     "auth_ref": []
    },
    "afya_PerpetuityGrowthRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PerpetuityGrowthRate",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Growth rates"
       }
      }
     },
     "auth_ref": []
    },
    "afya_PerpetuityGrowthRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PerpetuityGrowthRateMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Perpetuity Growth Rate [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PnsnBnftsAdjFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PnsnBnftsAdjFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Benefits Adjustments, Footnote"
       }
      }
     },
     "auth_ref": [
      "r378"
     ]
    },
    "afya_PowerPurchaseAgreementsAmendmentsToIFRS9AndIFRS7Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PowerPurchaseAgreementsAmendmentsToIFRS9AndIFRS7Member",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Power Purchase Agreements Amendments To IFRS 9 And IFRS 7 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_PreCommencementIssuerTenderOffer": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "PreCommencementIssuerTenderOffer",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pre-commencement Issuer Tender Offer",
        "documentation": "Boolean flag that is true when the Form 8-K filing is intended to satisfy the filing obligation of the registrant as pre-commencement communications pursuant to Rule 13e-4(c) under the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r320"
     ]
    },
    "dei_PreCommencementTenderOffer": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "PreCommencementTenderOffer",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pre-commencement Tender Offer",
        "documentation": "Boolean flag that is true when the Form 8-K filing is intended to satisfy the filing obligation of the registrant as pre-commencement communications pursuant to Rule 14d-2(b) under the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r322"
     ]
    },
    "afya_PrincipalActivities": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PrincipalActivities",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Principal activities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PrincipalPlaceOfBusinessOfSubsidiary": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "PrincipalPlaceOfBusinessOfSubsidiary",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Location"
       }
      },
      "en": {
       "role": {
        "documentation": "The principal place of business of a subsidiary. [Refer: Principal place of business; Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r70",
      "r73",
      "r137",
      "r141"
     ]
    },
    "ifrs-full_ProbabilityOfDefaultAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProbabilityOfDefaultAxis",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Probability of default [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r298",
      "r309"
     ]
    },
    "ifrs-full_ProbabilityOfDefaultDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProbabilityOfDefaultDomain",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Probability of default' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r298",
      "r309"
     ]
    },
    "afya_ProbabilityOfDisbursement": {
     "xbrltype": "percentItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ProbabilityOfDisbursement",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Probability of disbursement"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProceedsFromBorrowingsClassifiedAsFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from loans and financing"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from borrowings obtained. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r277"
     ]
    },
    "ifrs-full_ProceedsFromExerciseOfOptions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProceedsFromExerciseOfOptions",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from exercise of stock options"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from the exercise of options."
       }
      }
     },
     "auth_ref": [
      "r454"
     ]
    },
    "ifrs-full_ProductsAndServicesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProductsAndServicesAxis",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Products and services [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r243",
      "r289"
     ]
    },
    "ifrs-full_ProductsAndServicesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProductsAndServicesDomain",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the entity's products and services. It also represents the standard value for the 'Products and services' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r243",
      "r289"
     ]
    },
    "ifrs-full_ProfessionalFeesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProfessionalFeesExpense",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Tuition fees",
        "label": "Professional fees expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of fees paid or payable for professional services."
       }
      }
     },
     "auth_ref": [
      "r433"
     ]
    },
    "afya_ProfessionalFeesExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ProfessionalFeesExpenses",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tuition fees"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProfitLoss",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/SegmentInformationDetails1",
      "http://afya.com.br/role/StatementOfChangesInEquity",
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net income",
        "label": "Net income"
       }
      },
      "en": {
       "role": {
        "documentation": "The total of income less expenses from continuing and discontinued operations, excluding the components of other comprehensive income. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r2",
      "r27",
      "r114",
      "r133",
      "r135",
      "r236",
      "r238",
      "r285",
      "r290"
     ]
    },
    "ifrs-full_ProfitLossAttributableToAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProfitLossAttributableToAbstract",
     "presentation": [
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net income / total comprehensive income attributable to:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProfitLossAttributableToNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProfitLossAttributableToNoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "afya_ComprehensiveIncomeLoss",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Non-controlling interests",
        "label": "Profit (loss), attributable to non-controlling interests"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) from continuing and discontinued operations attributable to non-controlling interests. [Refer: Profit (loss); Non-controlling interests]"
       }
      }
     },
     "auth_ref": [
      "r30",
      "r139"
     ]
    },
    "ifrs-full_ProfitLossAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProfitLossAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "afya_ComprehensiveIncomeLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Owners of the Company"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) from continuing and discontinued operations attributable to owners of the parent. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r31"
     ]
    },
    "ifrs-full_ProfitLossBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProfitLossBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetailsNarrative",
      "http://afya.com.br/role/IncomeTaxesDetails",
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/SegmentInformationDetails1",
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Income before income taxes",
        "label": "Income before income taxes",
        "verboseLabel": "Income loss before income taxes"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) before tax expense or income. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r215",
      "r252",
      "r253",
      "r311",
      "r312"
     ]
    },
    "ifrs-full_ProfitLossFromOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProfitLossFromOperatingActivities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails1",
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Operating income",
        "label": "Operating income"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) from operating activities of the entity. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r264",
      "r438"
     ]
    },
    "ifrs-full_ProfitLossOfAcquiree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProfitLossOfAcquiree",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share of profit, net of tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) of the acquiree, since the acquisition date, included in the consolidated statement of comprehensive income. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r209"
     ]
    },
    "afya_ProgramOfSocialIntegrationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ProgramOfSocialIntegrationMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Program Of Social Integration [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ProgramaUniversidadeParaTodosFiscalIncentive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ProgramaUniversidadeParaTodosFiscalIncentive",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PROUNI - Fiscal incentive (i)"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "PropertyPlantAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of tangible assets that: (a) are held for use in the production or supply of goods or services, for rental to others, or for administrative purposes; and (b) are expected to be used during more than one period. Note that right-of-use assets are not included. [Contrast: Property, plant and equipment including right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r7",
      "r51"
     ]
    },
    "afya_PropertyPlantAndEquipmentNetBookValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PropertyPlantAndEquipmentNetBookValue",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net book value"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails",
      "http://afya.com.br/role/CorporateInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Property and equipment",
        "label": "Property, plant and equipment recognised as of acquisition date"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for plant, property and equipment acquired in a business combination. [Refer: Property, plant and equipment; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r292",
      "r294"
     ]
    },
    "afya_PropertyPlantAndEquipments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PropertyPlantAndEquipments",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "As of December 31, 2024",
        "periodEndLabel": "As of December 31, 2025",
        "label": "PropertyPlantAndEquipments"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProportionOfOwnershipInterestInJointVenture": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProportionOfOwnershipInterestInJointVenture",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion percentage"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of ownership interest in a joint venture attributable to the entity. [Refer: Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r71",
      "r74",
      "r142"
     ]
    },
    "ifrs-full_ProportionOfOwnershipInterestsHeldByNoncontrollingInterests": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProportionOfOwnershipInterestsHeldByNoncontrollingInterests",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Direct and indirect interest of subsidiary",
        "verboseLabel": "Ownership interest"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of ownership interests in a subsidiary held by non-controlling interests. [Refer: Total for all subsidiaries [member]; Non-controlling interests]"
       }
      }
     },
     "auth_ref": [
      "r138"
     ]
    },
    "afya_ProvisionForLegalProceedingsAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ProvisionForLegalProceedingsAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Provision for legal proceedings",
        "label": "ProvisionForLegalProceedingsAsOfAcquisitionDate"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ProvisionForProfitSharing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ProvisionForProfitSharing",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision for profit sharing"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProvisionUsedOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ProvisionUsedOtherProvisions",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Payments",
        "label": "Provision used, other provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount used (ie incurred and charged against the provision) for other provisions. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r96"
     ]
    },
    "ifrs-full_Provisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "Provisions",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Balance as of beginning of the year",
        "periodEndLabel": "Balance as of ending of the year",
        "label": "Provisions [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities of uncertain timing or amount, including provisions for employee benefits."
       }
      }
     },
     "auth_ref": [
      "r11"
     ]
    },
    "afya_PurchaseOfAcquisitionOfNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PurchaseOfAcquisitionOfNoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Acquisition of non-controlling interest",
        "label": "PurchaseOfAcquisitionOfNoncontrollingInterests"
       }
      }
     },
     "auth_ref": []
    },
    "afya_PurchaseOfIntangibleAssetClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "PurchaseOfIntangibleAssetClassifiedAsInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Acquisition of intangibles assets",
        "label": "PurchaseOfIntangibleAssetClassifiedAsInvestingActivities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PurchaseOfOtherLongtermAssetsClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "PurchaseOfOtherLongtermAssetsClassifiedAsInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Acquisition of assets and subsidiaries, net of cash acquired",
        "label": "Purchase of other long-term assets, classified as investing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for the purchases of long-term assets that the entity does not separately disclose in the same statement or note, classified as investing activities. [Refer: Assets]"
       }
      }
     },
     "auth_ref": [
      "r276"
     ]
    },
    "ifrs-full_PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Acquisition of property and equipment",
        "label": "Purchase of property, plant and equipment, classified as investing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for the purchases of property, plant and equipment, classified as investing activities. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r276"
     ]
    },
    "ecd_PvpTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PvpTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance Disclosure [Table]"
       }
      }
     },
     "auth_ref": [
      "r376"
     ]
    },
    "ecd_PvpTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "PvpTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance Disclosure, Table"
       }
      }
     },
     "auth_ref": [
      "r376"
     ]
    },
    "afya_QuasarTelemedicinaDesenvolvimentodeSistemasComputacionaisLtdaGlicMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "QuasarTelemedicinaDesenvolvimentodeSistemasComputacionaisLtdaGlicMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Quasar Telemedicina Desenvolvimentode Sistemas Computacionais Ltda Glic [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RVLEstevesGestaoImobiliariaSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RVLEstevesGestaoImobiliariaSAMember",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "R V L Esteves Gestao Imobiliaria S A [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RXPROSolucoesDeTecnologiaLtda.RXPROMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RXPROSolucoesDeTecnologiaLtda.RXPROMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "RX PRO Solucoes de Tecnologia Ltda. (\u0093RX PRO\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "RangeAxis",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/IntangibleAssetsDetails2",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails1",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Range [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r124",
      "r164",
      "r183",
      "r198",
      "r287",
      "r288",
      "r462"
     ]
    },
    "ifrs-full_RangeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "RangeDomain",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/IntangibleAssetsDetails2",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails1",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails4"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for aggregate ranges. It also represents the standard value for the 'Range' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r124",
      "r164",
      "r183",
      "r198",
      "r287",
      "r288",
      "r462"
     ]
    },
    "afya_ReceivablesGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ReceivablesGross",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails",
      "http://afya.com.br/role/TradeReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade receivables, gross",
        "verboseLabel": "Trade receivable"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RecognisedDeferredTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RecognisedDeferredTaxAssets",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recognized deferred taxes"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RecognizedDeferredTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RecognizedDeferredTaxAssets",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recognized deferred tax assets"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ReconciliationAdjustmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ReconciliationAdjustmentsAbstract",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reconciliation adjustments:"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RecoverableTaxesAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RecoverableTaxesAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Recoverable taxes",
        "label": "RecoverableTaxesAsOfAcquisitionDate"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_RecoveryOfErrCompDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "RecoveryOfErrCompDisclosureLineItems",
     "auth_ref": [
      "r339",
      "r350",
      "r364",
      "r390"
     ]
    },
    "afya_RelatedPartiesAmountPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RelatedPartiesAmountPaid",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related parties amount paid"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RemainingTradeAndOtherPayablesToRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RemainingTradeAndOtherPayablesToRelatedParties",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Remaining accounts payable"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RemeasurementOfEarnOut": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RemeasurementOfEarnOut",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/Non-cashTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Remeasurement of earn-out of Alem da Medicina, CardioPapers and Glic"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RemeasurementOfEarnouts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RemeasurementOfEarnouts",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Remeasurement of contingent consideration"
       }
      }
     },
     "auth_ref": []
    },
    "afya_Remesurement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "Remesurement",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Remesurement"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RepairsAndMaintenanceExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "RepairsAndMaintenanceExpense",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Maintenance",
        "label": "Repairs and maintenance expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expenses incurred for the day-to-day servicing of assets, which may include the cost of labour, consumables or small parts."
       }
      }
     },
     "auth_ref": [
      "r438"
     ]
    },
    "ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "RepaymentsOfBorrowingsClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Payments of principal of loans and financing",
        "label": "Repayments of borrowings, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow to settle borrowings, classified as financing activities. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r278"
     ]
    },
    "afya_RepaymentsOfInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RepaymentsOfInterest",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Payments of interest",
        "label": "RepaymentsOfInterest"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RepurchaseOfOrdinaryShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RepurchaseOfOrdinaryShares",
     "presentation": [
      "http://afya.com.br/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repurchase of ordinary shares"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ReserveOfSharebasedPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ReserveOfSharebasedPayments",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based compensation reserve"
       }
      },
      "en": {
       "role": {
        "documentation": "A component of equity resulting from share-based payments."
       }
      }
     },
     "auth_ref": [
      "r436"
     ]
    },
    "ifrs-full_ReserveOfSharebasedPaymentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ReserveOfSharebasedPaymentsMember",
     "presentation": [
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reserve of share-based payments [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity resulting from share-based payments."
       }
      }
     },
     "auth_ref": [
      "r254"
     ]
    },
    "ecd_RestatementDateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "RestatementDateAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Determination Date [Axis]"
       }
      }
     },
     "auth_ref": [
      "r340",
      "r351",
      "r365",
      "r391"
     ]
    },
    "ecd_RestatementDeterminationDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "RestatementDeterminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Determination Date"
       }
      }
     },
     "auth_ref": [
      "r341",
      "r352",
      "r366",
      "r392"
     ]
    },
    "ecd_RestatementDoesNotRequireRecoveryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "RestatementDoesNotRequireRecoveryTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement does not require Recovery"
       }
      }
     },
     "auth_ref": [
      "r348",
      "r359",
      "r373",
      "r399"
     ]
    },
    "ifrs-full_RestrictedCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "RestrictedCashAndCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Cash and cash equivalents at the beginning of the year",
        "periodEndLabel": "Cash and cash equivalents at the end of the year",
        "label": "Restricted cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash and cash equivalents whose use or withdrawal is restricted. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r435"
     ]
    },
    "afya_RestrictedSharesTransferredToExecutives": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RestrictedSharesTransferredToExecutives",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted stock units transferred under the share-based compensation plan"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RestrictedStockUnits1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RestrictedStockUnits1Member",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted Stock Units 1 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RestrictedStockUnits2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RestrictedStockUnits2Member",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted Stock Units 2 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RestrictedStockUnits3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RestrictedStockUnits3Member",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted Stock Units 3 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RestrictedStockUnitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RestrictedStockUnitsMember",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails3",
      "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted Stock Units [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RetainedEarnings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "RetainedEarnings",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retained earnings"
       }
      },
      "en": {
       "role": {
        "documentation": "A component of equity representing the entity's cumulative undistributed earnings or deficit."
       }
      }
     },
     "auth_ref": [
      "r257",
      "r258"
     ]
    },
    "ifrs-full_RetainedEarningsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "RetainedEarningsMember",
     "presentation": [
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retained earnings [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing an entity's cumulative undistributed earnings or deficit."
       }
      }
     },
     "auth_ref": [
      "r5",
      "r254"
     ]
    },
    "ifrs-full_Revenue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "Revenue",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_GrossProfit",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetailsNarrative",
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/SegmentInformationDetails1",
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue",
        "verboseLabel": "Net revenue"
       }
      },
      "en": {
       "role": {
        "documentation": "The income arising in the course of an entity's ordinary activities. Income is increases in assets, or decreases in liabilities, that result in increases in equity, other than those relating to contributions from holders of equity claims."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r150",
      "r215",
      "r232",
      "r237",
      "r243",
      "r244",
      "r245",
      "r252",
      "r253",
      "r285"
     ]
    },
    "ifrs-full_RevenueFromContractsWithCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "RevenueFromContractsWithCustomers",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Revenue from contracts with customers",
        "label": "Revenue from contracts with customers [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of revenue from contracts with customers. A customer is a party that has contracted with an entity to obtain goods or services that are an output of the entity\u2019s ordinary activities in exchange for consideration."
       }
      }
     },
     "auth_ref": [
      "r165",
      "r166"
     ]
    },
    "afya_RightOfUseAssetsAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RightOfUseAssetsAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rights-of-use assets"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RightofuseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RightofuseAsset",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Allowance for expected credit losses",
        "label": "RightofuseAsset"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "RightofuseAssets",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4",
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets",
        "periodStartLabel": "Right-of-use assets, balance at beginning",
        "periodEndLabel": "Right-of-use assets, balance at ending"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that represent a lessee's right to use an underlying asset for the lease term that do not meet the definition of investment property. Underlying asset is an asset that is the subject of a lease, for which the right to use that asset has been provided by a lessor to a lessee."
       }
      }
     },
     "auth_ref": [
      "r170",
      "r177"
     ]
    },
    "afya_RightofuseAssetsBusinessCombinations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RightofuseAssetsBusinessCombinations",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets, business combinations"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RightofuseAssetsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RightofuseAssetsCurrent",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets, current"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RightofuseAssetsInterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RightofuseAssetsInterestExpense",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets, interest expense"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RightofuseAssetsNonCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RightofuseAssetsNonCurrent",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets, non-current"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RightofuseAssetsPaymentsOfInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RightofuseAssetsPaymentsOfInterest",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets, payments of interest"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RightofuseAssetsPaymentsOfPrincipal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RightofuseAssetsPaymentsOfPrincipal",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right of use assets, payments of principal"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RightofuseAssetsRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RightofuseAssetsRelatedPartyTransactions",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Right-of-use assets",
        "label": "RightofuseAssetsRelatedPartyTransactions"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RightofuseAssetsRemeasurement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RightofuseAssetsRemeasurement",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets, remeasurement"
       }
      }
     },
     "auth_ref": []
    },
    "afya_RightofuseAssetsWriteoff": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "RightofuseAssetsWriteoff",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets, Write-off"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RiskExposuresAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "RiskExposuresAxis",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails9"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk variables [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r188"
     ]
    },
    "ifrs-full_RiskExposuresDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "RiskExposuresDomain",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails9"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the risk variables. It also represents the standard value for the 'Risk variables' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r188"
     ]
    },
    "ecd_Rule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "Rule10b51ArrAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rule 10b5-1 Arrangement Adopted"
       }
      }
     },
     "auth_ref": [
      "r408"
     ]
    },
    "ecd_Rule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "Rule10b51ArrTrmntdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rule 10b5-1 Arrangement Terminated"
       }
      }
     },
     "auth_ref": [
      "r408"
     ]
    },
    "afya_SESSASociedadedeEducacaoSuperiordoSemiAridoLtdaSESSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SESSASociedadedeEducacaoSuperiordoSemiAridoLtdaSESSAMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "S E S S A Sociedadede Educacao Superiordo Semi Arido Ltda S E S S A [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SalesAndMarketingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "SalesAndMarketingExpense",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Sales and marketing",
        "label": "Sales and marketing expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense relating to the marketing and selling of goods or services."
       }
      }
     },
     "auth_ref": [
      "r438"
     ]
    },
    "afya_ScheduleOfAccountsPayableToSellingShareholdersTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfAccountsPayableToSellingShareholdersTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of accounts payable to selling shareholders"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfAcquisitionOfUnidomExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfAcquisitionOfUnidomExplanatory",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of intangible assets acquired unidom"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfAssetsAndLiabilitiesInformationForCompanysOperatingSegmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfAssetsAndLiabilitiesInformationForCompanysOperatingSegmentsExplanatory",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of present assets and liabilities information for the company operating segments"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfBalanceDeferredTaxAssetsAndLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfBalanceDeferredTaxAssetsAndLiabilitiesTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of deferred tax assets and liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfChangesInAccountingPoliciesAndDisclosuresExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfChangesInAccountingPoliciesAndDisclosuresExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of changes in accounting policies and disclosures"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfChangesInLiabilitiesArisingFromFinancingActivitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfChangesInLiabilitiesArisingFromFinancingActivitiesTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of changes in liabilities arising from financing activities"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfEarningsPerShareTableExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfEarningsPerShareTableExplanatory",
     "presentation": [
      "http://afya.com.br/role/EarningsPerShareTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of earnings per share"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfEstimatedUsefulLivesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfEstimatedUsefulLivesTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of estimated useful lives of the assets"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfEtimatedUsefulLivesOfIntangibleAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfEtimatedUsefulLivesOfIntangibleAssetsTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of estimated useful lives of intangible assets"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfExpensesByNatureTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfExpensesByNatureTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of expenses by nature"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfFairValueOfStockOptionsGrantsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfFairValueOfStockOptionsGrantsExplanatory",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of grants of stock options"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfFairValuesFinancialInstrumentstTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfFairValuesFinancialInstrumentstTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of fair values of the company's financial instruments"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfFairValuesOfIdentifiableAssetsAcquiredAndLiabilitiesAssumedAcquisitionTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfFairValuesOfIdentifiableAssetsAcquiredAndLiabilitiesAssumedAcquisitionTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of fair values of the identifiable assets acquired and liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfFairValuesOfIdentifiableAssetsAcquiredAndLiabilitiesAssumedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfFairValuesOfIdentifiableAssetsAcquiredAndLiabilitiesAssumedTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/CorporateInformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of identifiable assets and liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfFairValuesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfFairValuesTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of fair value"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfFinanceResultTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfFinanceResultTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/FinanceResultTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of finance result"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfFinancialAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfFinancialAssetsTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfFinancialLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfFinancialLiabilitiesTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of financial liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfGrantsRestrictedStockUnitsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfGrantsRestrictedStockUnitsTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of grants of RSUs"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfLeasesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfLeasesTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of right-of-use assets and lease liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfLegalProceedingsAndContingenciesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfLegalProceedingsAndContingenciesTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of legal proceedings and contingencies"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfLoansAndFinancingTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfLoansAndFinancingTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of loans and financing"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfMeasurementAndGainsAndLossesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfMeasurementAndGainsAndLossesTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of measurement and gains and losses"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfMeasuringFairValuesForFinancialInstrumentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfMeasuringFairValuesForFinancialInstrumentsTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of fair values for financial instruments"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfNetSalesRevenueExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfNetSalesRevenueExplanatory",
     "presentation": [
      "http://afya.com.br/role/RevenueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of net sales revenue"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfNonCashTransactionsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfNonCashTransactionsTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/Non-cashTransactionsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of non-cash transactions"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfReconciliationOfIncomeTaxExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfReconciliationOfIncomeTaxExpenseExplanatory",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of reconciliation of income tax expense"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfRevenueBySegmentTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfRevenueBySegmentTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/RevenueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of revenue by segment"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfSharebasedCompensationPlanExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfSharebasedCompensationPlanExplanatory",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of movements in stock options"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfSocialSecurityProceedingsAssessedByManagementTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfSocialSecurityProceedingsAssessedByManagementTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of social security proceedings assessed by management"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfStockOptionTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfStockOptionTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of stock option"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ScheduleOfTreasurySharesMovementExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ScheduleOfTreasurySharesMovementExplanatory",
     "presentation": [
      "http://afya.com.br/role/EquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of number and movements in treasury shares"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SchuduleOfAssumptionsUsedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SchuduleOfAssumptionsUsedTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of assumptions"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SecondAnnualInstallmentsPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SecondAnnualInstallmentsPayable",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Second annual installment"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SecondSeriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SecondSeriesMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Second Series [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "Security12bTitle",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of 12(b) Security",
        "documentation": "Title of a 12(b) registered security."
       }
      }
     },
     "auth_ref": [
      "r314"
     ]
    },
    "dei_Security12gTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "Security12gTitle",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of 12(g) Security",
        "documentation": "Title of a 12(g) registered security."
       }
      }
     },
     "auth_ref": [
      "r318"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Exchange Name",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r317"
     ]
    },
    "dei_SecurityReportingObligation": {
     "xbrltype": "securityReportingObligationItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "SecurityReportingObligation",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Reporting Obligation",
        "documentation": "15(d), indicating whether the security has a reporting obligation under that section of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r323"
     ]
    },
    "ifrs-full_SegmentConsolidationItemsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "SegmentConsolidationItemsAxis",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment consolidation items [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r236"
     ]
    },
    "ifrs-full_SegmentConsolidationItemsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "SegmentConsolidationItemsDomain",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Segment consolidation items' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r242"
     ]
    },
    "ifrs-full_SegmentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "SegmentsAxis",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails1",
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segments [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r83",
      "r167",
      "r236",
      "r262",
      "r291"
     ]
    },
    "ifrs-full_SegmentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "SegmentsDomain",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails1",
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for all segments of an entity. It also represents the standard value for the 'Segments' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r83",
      "r167",
      "r242",
      "r262",
      "r291"
     ]
    },
    "ifrs-full_SellingGeneralAndAdministrativeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "SellingGeneralAndAdministrativeExpense",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/InvestmentInAssociateDetails",
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Selling, general and administrative expenses",
        "label": "Selling, general and administrative expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense relating to selling, general and administrative activities of the entity."
       }
      }
     },
     "auth_ref": [
      "r438"
     ]
    },
    "afya_SellingGeneralAndAdministrativeExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SellingGeneralAndAdministrativeExpenses",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Selling, general and administrative expenses"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SensitivityChangeInTheEuroExchangeRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SensitivityChangeInTheEuroExchangeRate",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of sensitivity change in the Euro exchange rate"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "auth_ref": []
    },
    "afya_ShareBasedCompensationOfEmployees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ShareBasedCompensationOfEmployees",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation of employees"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ShareBasedCompensationPlansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ShareBasedCompensationPlansMember",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Based Compensation Plans [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfIncomeAndOtherComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share of profit of equity-accounted investee, net of tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The entity's share of the profit (loss) of associates and joint ventures accounted for using the equity method. [Refer: Total for all associates [member]; Investments accounted for using equity method; Total for all joint ventures [member]; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r34",
      "r234",
      "r241"
     ]
    },
    "afya_ShareOfProfitOfEquityaccountedInvesteeNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ShareOfProfitOfEquityaccountedInvesteeNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": -1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Share of profit of equity-accounted investee, net of tax",
        "label": "ShareOfProfitOfEquityaccountedInvesteeNetOfTax"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShareOptionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ShareOptionsMember",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share options [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for share options."
       }
      }
     },
     "auth_ref": [
      "r445"
     ]
    },
    "afya_SharePriceFairValueAtMeasurementDate": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SharePriceFairValueAtMeasurementDate",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exercise price at the measurement date"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SharePriceFairValueAtMeasurementDateShareOptionsGranted": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SharePriceFairValueAtMeasurementDateShareOptionsGranted",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share price at the measurement date"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SharebasedPaymentsPolicyExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SharebasedPaymentsPolicyExplanatory",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based payments"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SharesBasedCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SharesBasedCompensation",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Share-based compensation",
        "label": "SharesBasedCompensation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShorttermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ShorttermBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans and financing"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r435"
     ]
    },
    "afya_ShospMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ShospMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shosp [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_ShospTecnologiaDaInformacaoLtda.ShospMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ShospTecnologiaDaInformacaoLtda.ShospMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shosp Tecnologia da Informacao Ltda. (\u0093Shosp\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SignificantInvestmentsInSubsidiariesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "SignificantInvestmentsInSubsidiariesAxis",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails",
      "http://afya.com.br/role/BusinessCombinationsDetails1",
      "http://afya.com.br/role/CorporateInformationDetails",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/IntangibleAssetsDetails1",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails",
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsidiaries [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r72",
      "r75",
      "r155"
     ]
    },
    "ifrs-full_SignificantInvestmentsInSubsidiariesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "SignificantInvestmentsInSubsidiariesDomain",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails",
      "http://afya.com.br/role/BusinessCombinationsDetails1",
      "http://afya.com.br/role/CorporateInformationDetails",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/IntangibleAssetsDetails1",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails",
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Subsidiaries' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r72",
      "r75",
      "r155"
     ]
    },
    "afya_SocialObligationsLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SocialObligationsLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Social obligations liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SociedadeDeEducacaoCulturaETecnologiaDaAmazoniaS.A.FESARMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SociedadeDeEducacaoCulturaETecnologiaDaAmazoniaS.A.FESARMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sociedade de Educacao, Cultura e Tecnologia da Amazonia S.A. - (\u0093FESAR\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SociedadeEducacionalECulturalSergipeDelReyLtda.DelReyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SociedadeEducacionalECulturalSergipeDelReyLtda.DelReyMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sociedade Educacional e Cultural Sergipe DelRey Ltda. (\u0093DelRey\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SociedadePadraoDeEducacaoSuperiorLtda.UnifipMocMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SociedadePadraoDeEducacaoSuperiorLtda.UnifipMocMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sociedade Padrao de Educacao Superior Ltda. (\u0093UnifipMoc\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SociedadeUniversitariaRedentorS.A.UniRedentorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SociedadeUniversitariaRedentorS.A.UniRedentorMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sociedade Universitaria Redentor S.A. (\u0093UniRedentor\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SoftwareInProgressMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SoftwareInProgressMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Software In Progress [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_SolicitingMaterial": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "SolicitingMaterial",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Soliciting Material",
        "documentation": "Boolean flag that is true when the Form 8-K filing is intended to satisfy the filing obligation of the registrant as soliciting material pursuant to Rule 14a-12 under the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r321"
     ]
    },
    "ifrs-full_StatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "StatementOfCashFlowsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of cash flows [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfChangesInEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "StatementOfChangesInEquityAbstract",
     "auth_ref": []
    },
    "ifrs-full_StatementOfChangesInEquityTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "StatementOfChangesInEquityTable",
     "presentation": [
      "http://afya.com.br/role/EquityDetailsNarrative",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails5",
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of changes in equity [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to changes in equity."
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "ifrs-full_StatementOfFinancialPositionAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "StatementOfFinancialPositionAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of financial position [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_StkPrcOrTsrEstimationMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "StkPrcOrTsrEstimationMethodTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Price or TSR Estimation Method"
       }
      }
     },
     "auth_ref": [
      "r343",
      "r354",
      "r368",
      "r394"
     ]
    },
    "afya_SummaryOfAssumptionsForIntangibleAssetImpairmentTestTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SummaryOfAssumptionsForIntangibleAssetImpairmentTestTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of assumptions for impairment test"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SummaryOfContractualMaturitiesOfFinancialLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SummaryOfContractualMaturitiesOfFinancialLiabilitiesTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of maturity profile of financial liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SummaryOfCurrenciesUsedInSensitivityAnalysisTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SummaryOfCurrenciesUsedInSensitivityAnalysisTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of sensitivity foreign currency"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SummaryOfIntangibleAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SummaryOfIntangibleAssetsTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of intangible assets"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SummaryOfKeyManagementPersonnelCompensationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SummaryOfKeyManagementPersonnelCompensationTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of key management personnel compensation"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SummaryOfSensitivityAnalysisEffectsOnIncomeStatementTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SummaryOfSensitivityAnalysisEffectsOnIncomeStatementTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of income before income taxes"
       }
      }
     },
     "auth_ref": []
    },
    "afya_SummaryOfSubsidiariesJointVenturesAndJointOperationsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "SummaryOfSubsidiariesJointVenturesAndJointOperationsTableTextBlock",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of company\u2019s subsidiaries and associate"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TabularListTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TabularListTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tabular List, Table"
       }
      }
     },
     "auth_ref": [
      "r387"
     ]
    },
    "afya_TaxEffectOfExpensesNotDeductibleInDeterminingTaxableProfitTaxLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TaxEffectOfExpensesNotDeductibleInDeterminingTaxableProfitTaxLoss",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Presumed profit income tax regime effect (ii)",
        "label": "TaxEffectOfExpensesNotDeductibleInDeterminingTaxableProfitTaxLoss"
       }
      }
     },
     "auth_ref": []
    },
    "afya_TaxEffectOnIncomeFromEntitiesNotSubjectToTaxation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TaxEffectOnIncomeFromEntitiesNotSubjectToTaxation",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax effect on loss from entities not subject to taxation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TaxExpenseOtherThanIncomeTaxExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TaxExpenseOtherThanIncomeTaxExpense",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Other",
        "label": "Tax expense other than income tax expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of tax expense exclusive of income tax expense."
       }
      }
     },
     "auth_ref": [
      "r438"
     ]
    },
    "afya_TaxExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TaxExpenses",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax expenses"
       }
      }
     },
     "auth_ref": []
    },
    "afya_TaxExpensesIncomeAtApplicableTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TaxExpensesIncomeAtApplicableTaxRate",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income taxes at statutory rate"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TaxRateEffectFromChangeInTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TaxRateEffectFromChangeInTaxRate",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The tax rate effect on the reconciliation between the average effective tax rate and the applicable tax rate resulting from a change in tax rate. [Refer: Average effective tax rate; Applicable tax rate]"
       }
      }
     },
     "auth_ref": [
      "r42"
     ]
    },
    "afya_TaxesAndSocialSecurityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TaxesAndSocialSecurityMember",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Taxes And Social Security [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_TaxesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TaxesMember",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Taxes [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_TaxesPayableAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TaxesPayableAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Taxes payable",
        "label": "TaxesPayableAsOfAcquisitionDate"
       }
      }
     },
     "auth_ref": []
    },
    "afya_TeachingActivitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TeachingActivitiesMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Teaching Activities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TechnologybasedIntangibleAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TechnologybasedIntangibleAssetsMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Technology-based intangible assets [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets representing assets based on technology. Such assets may include patented and unpatented technology, databases as well as trade secrets. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r451"
     ]
    },
    "ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Temporary difference, unused tax losses and unused tax credits [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r45"
     ]
    },
    "ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for temporary differences, unused tax losses and unused tax credits. It also represents the standard value for the 'Temporary difference, unused tax losses and unused tax credits' axis if no other member is used. [Refer: Temporary differences [member]; Unused tax credits [member]; Unused tax losses [member]]"
       }
      }
     },
     "auth_ref": [
      "r45"
     ]
    },
    "afya_ThirdAnnualInstallmentsPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "ThirdAnnualInstallmentsPayable",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Third annual installment"
       }
      }
     },
     "auth_ref": []
    },
    "afya_TimingOfRevenueRecognition": {
     "xbrltype": "stringItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TimingOfRevenueRecognition",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Timing of revenue recognition"
       }
      }
     },
     "auth_ref": []
    },
    "afya_TimingRevenueRecognition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TimingRevenueRecognition",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Timing of revenue recognition",
        "label": "TimingRevenueRecognition"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TitleOfInitiallyAppliedIFRS": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TitleOfInitiallyAppliedIFRS",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Standard"
       }
      },
      "en": {
       "role": {
        "documentation": "The title of an initially applied IFRS. [Refer: IFRSs [member]]"
       }
      }
     },
     "auth_ref": [
      "r128"
     ]
    },
    "ifrs-full_TopOfRangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TopOfRangeMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/IntangibleAssetsDetails2",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails1",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3",
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Top of range [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for top of a range."
       }
      }
     },
     "auth_ref": [
      "r124",
      "r164",
      "r183",
      "r198",
      "r287",
      "r288",
      "r462"
     ]
    },
    "afya_TotalReportableSegmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TotalReportableSegmentsMember",
     "presentation": [
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Reportable Segments [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TotalShareholderRtnAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Shareholder Return Amount"
       }
      }
     },
     "auth_ref": [
      "r379"
     ]
    },
    "ecd_TotalShareholderRtnVsPeerGroupTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TotalShareholderRtnVsPeerGroupTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Shareholder Return Vs Peer Group"
       }
      }
     },
     "auth_ref": [
      "r386"
     ]
    },
    "afya_TradeAndOtherCurrentPayableToRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TradeAndOtherCurrentPayableToRelatedParties",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Current liabilities",
        "label": "TradeAndOtherCurrentPayableToRelatedParties"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TradeAndOtherCurrentPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TradeAndOtherCurrentPayables",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade payables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current trade payables and current other payables. [Refer: Current trade payables; Other current payables]"
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "ifrs-full_TradeAndOtherCurrentPayablesToRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TradeAndOtherCurrentPayablesToRelatedParties",
     "crdr": "credit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts payable to selling shareholders"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current payables due to related parties. [Refer: Total for all related parties [member]; Payables to related parties]"
       }
      }
     },
     "auth_ref": [
      "r437"
     ]
    },
    "afya_TradeAndOtherCurrentPayablesToRelatedParties1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TradeAndOtherCurrentPayablesToRelatedParties1",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Current assets",
        "label": "TradeAndOtherCurrentPayablesToRelatedParties1"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TradeAndOtherPayablesRecognisedAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails",
      "http://afya.com.br/role/CorporateInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trade payables",
        "label": "Trade and other payables recognised as of acquisition date"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for trade and other payables assumed in a business combination. [Refer: Trade and other payables; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r460"
     ]
    },
    "ifrs-full_TradeAndOtherPayablesToRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TradeAndOtherPayablesToRelatedParties",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails1",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Accounts payable to selling shareholders",
        "label": "Accounts payable",
        "periodStartLabel": "Opening balance",
        "periodEndLabel": "Closing balance"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of payables due to related parties. [Refer: Total for all related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r437"
     ]
    },
    "ifrs-full_TradeAndOtherPayablesToTradeSuppliers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TradeAndOtherPayablesToTradeSuppliers",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails1",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trade payables",
        "label": "Trade payables [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of payment due to suppliers for goods and services used in the entity's business."
       }
      }
     },
     "auth_ref": [
      "r437"
     ]
    },
    "ifrs-full_TradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TradeReceivables",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails",
      "http://afya.com.br/role/TradeReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade receivables, net",
        "verboseLabel": "Trade receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount due from customers for goods and services sold."
       }
      }
     },
     "auth_ref": [
      "r256"
     ]
    },
    "afya_TradeReceivablesAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TradeReceivablesAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trade receivables",
        "label": "TradeReceivablesAsOfAcquisitionDate"
       }
      }
     },
     "auth_ref": []
    },
    "afya_TradeReceivablesRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TradeReceivablesRelatedPartyTransactions",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trade receivables",
        "label": "TradeReceivablesRelatedPartyTransactions"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TradingArrAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TradingArrAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement [Axis]"
       }
      }
     },
     "auth_ref": [
      "r407"
     ]
    },
    "ecd_TradingArrByIndTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TradingArrByIndTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangements, by Individual [Table]"
       }
      }
     },
     "auth_ref": [
      "r409"
     ]
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "TradingSymbol",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Symbol",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "afya_TransactionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TransactionCosts",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction costs"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TransactionPriceAllocatedToRemainingPerformanceObligations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TransactionPriceAllocatedToRemainingPerformanceObligations",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction price allocated to remaining performance obligations"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of the transaction price allocated to the performance obligations that are unsatisfied (or partially unsatisfied) as of the end of the reporting period. The transaction price is the amount of consideration to which an entity expects to be entitled in exchange for transferring promised goods or services to a customer, excluding amounts collected on behalf of third parties (for example, some sales taxes). [Refer: Performance obligations [domain]]"
       }
      }
     },
     "auth_ref": [
      "r168"
     ]
    },
    "afya_Transfer": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "Transfer",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Transfer",
        "label": "Transfer [Default Label]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_TransferredAtPointInTime": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TransferredAtPointInTime",
     "crdr": "credit",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transferred at a point in time"
       }
      }
     },
     "auth_ref": []
    },
    "afya_TransferredOverTime": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TransferredOverTime",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transferred over time"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TravelExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TravelExpense",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Travel expenses",
        "label": "Travel expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense arising from travel."
       }
      }
     },
     "auth_ref": [
      "r433"
     ]
    },
    "ecd_TrdArrAdoptionDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrAdoptionDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adoption Date"
       }
      }
     },
     "auth_ref": [
      "r410"
     ]
    },
    "ecd_TrdArrDuration": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrDuration",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Arrangement Duration"
       }
      }
     },
     "auth_ref": [
      "r411"
     ]
    },
    "ecd_TrdArrExpirationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrExpirationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expiration Date"
       }
      }
     },
     "auth_ref": [
      "r411"
     ]
    },
    "ecd_TrdArrIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Name",
        "label": "Trading Arrangement, Individual Name"
       }
      }
     },
     "auth_ref": [
      "r409"
     ]
    },
    "ecd_TrdArrIndTitle": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrIndTitle",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title"
       }
      }
     },
     "auth_ref": [
      "r409"
     ]
    },
    "ecd_TrdArrTerminationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "TrdArrTerminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Termination Date"
       }
      }
     },
     "auth_ref": [
      "r410"
     ]
    },
    "ifrs-full_TreasuryShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TreasuryShares",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Treasury shares",
        "label": "Treasury shares [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "An entity\u2019s own equity instruments, held by the entity or other members of the consolidated group."
       }
      }
     },
     "auth_ref": [
      "r76",
      "r257"
     ]
    },
    "ifrs-full_TreasurySharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TreasurySharesMember",
     "presentation": [
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury shares [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the entity\u2019s own equity instruments, held by the entity or other members of the consolidated group."
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "afya_TreasurySharesRepurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TreasurySharesRepurchase",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows",
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury shares repurchase"
       }
      }
     },
     "auth_ref": []
    },
    "afya_TreasurySharesTransferredToExecutivesFromExerciseOfStockOptions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TreasurySharesTransferredToExecutivesFromExerciseOfStockOptions",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/StatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury shares transferred to executives from exercise of stock options"
       }
      }
     },
     "auth_ref": []
    },
    "afya_TuitionFeesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TuitionFeesMember",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tuition Fees [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_TwoSeriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TwoSeriesMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Series [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TypesOfInterestRatesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TypesOfInterestRatesAxis",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of interest rates [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r461"
     ]
    },
    "ifrs-full_TypesOfInterestRatesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TypesOfInterestRatesDomain",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for all types of interest rates. It also represents the standard value for the 'Types of interest rates' axis if no other member is used. [Refer: Interest rate risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r461"
     ]
    },
    "afya_TypesOfRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "TypesOfRiskMember",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types Of Risk [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TypesOfRisksAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TypesOfRisksAxis",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails9",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of risks [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r184",
      "r185",
      "r186",
      "r188",
      "r216",
      "r219",
      "r220",
      "r249"
     ]
    },
    "ifrs-full_TypesOfRisksDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TypesOfRisksDomain",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails10",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails8",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails9",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails1"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for all types of risks. It also represents the standard value for the 'Types of risks' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r184",
      "r185",
      "r186",
      "r188",
      "r216",
      "r219",
      "r220",
      "r249"
     ]
    },
    "ifrs-full_TypesOfSharebasedPaymentArrangementsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TypesOfSharebasedPaymentArrangementsAxis",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1",
      "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of share-based payment arrangements [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r199"
     ]
    },
    "ifrs-full_TypesOfSharebasedPaymentArrangementsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "TypesOfSharebasedPaymentArrangementsDomain",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails",
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1",
      "http://afya.com.br/role/LaborAndSocialObligationsDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for an agreement between the entity or another group entity or any shareholder of the group entity and another party (including an employee) that entitles the other party to receive (a) cash or other assets of the entity for amounts that are based on the price (or value) of equity instruments (including shares or share options) of the entity or another group entity; or (b) equity instruments (including shares or share options) of the entity or another group entity, provided that the specified vesting conditions, if any, are met. It also represents the standard value for the 'Types of share-based payment arrangements' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r199"
     ]
    },
    "afya_UEPCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "UEPCMember",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "U E P C [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_UNIVACOPatrimonialLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "UNIVACOPatrimonialLtdaMember",
     "presentation": [
      "http://afya.com.br/role/RelatedPartiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "U N I V A C O Patrimonial Ltda [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_USDMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "USDMember",
     "presentation": [
      "http://afya.com.br/role/CashAndCashEquivalentsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "U S D [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_UndergradMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "UndergradMember",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Undergrad [member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_UndergraduateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "UndergraduateMember",
     "presentation": [
      "http://afya.com.br/role/RevenueDetails1",
      "http://afya.com.br/role/SegmentInformationDetails",
      "http://afya.com.br/role/SegmentInformationDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Undergraduate [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_UndrlygSecurityMktPriceChngPct": {
     "xbrltype": "pureItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2024",
     "localname": "UndrlygSecurityMktPriceChngPct",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Underlying Security Market Price Change"
       }
      }
     },
     "auth_ref": [
      "r406"
     ]
    },
    "afya_UniRedentorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "UniRedentorMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Uni Redentor [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_UniSLMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "UniSLMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Uni SL [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_UniaoEducacionalDoPlanaltoCentralS.A.UEPCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "UniaoEducacionalDoPlanaltoCentralS.A.UEPCMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Uniao Educacional do Planalto Central S.A. (\u0093UEPC\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_UniaoEducacionalDoValeFoAcoS.A.UNIVACOMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "UniaoEducacionalDoValeFoAcoS.A.UNIVACOMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Uniao Educacional do Vale do Aco S.A. - (\u0093UNIVACO\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_UnidomMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "UnidomMember",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unidom [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_UnidomParticipacoesS.A.UnidomMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "UnidomParticipacoesS.A.UnidomMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unidom Participacoes S.A. (\u0093Unidom\u0094) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_UnifipMocMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "UnifipMocMember",
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unifip Moc [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_UnigranrioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "UnigranrioMember",
     "presentation": [
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetails5",
      "http://afya.com.br/role/FinancialAssetsAndLiabilitiesDetailsNarrative",
      "http://afya.com.br/role/IntangibleAssetsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unigranrio [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_UnrecognizedDeferredTaxesAssetsOnTaxLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "UnrecognizedDeferredTaxesAssetsOnTaxLosses",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/IncomeTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrecognized deferred taxes assets on tax losses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_UnusedProvisionReversedOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "UnusedProvisionReversedOtherProvisions",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/LegalProceedingsAndContingenciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Reversals",
        "label": "Unused provision reversed, other provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount reversed for unused other provisions. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r97"
     ]
    },
    "ifrs-full_UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "durationItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated useful lives of intangible assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The useful life, measured as period of time, used for intangible assets other than goodwill. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r101"
     ]
    },
    "ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment": {
     "xbrltype": "durationItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Useful lives of assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The useful life, measured as period of time, used for property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "ifrs-full_UtilitiesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "UtilitiesExpense",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Utilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense arising from purchased utilities."
       }
      }
     },
     "auth_ref": [
      "r433"
     ]
    },
    "ifrs-full_ValuationTechniquesUsedInFairValueMeasurementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ValuationTechniquesUsedInFairValueMeasurementAxis",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation techniques used in fair value measurement [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r160"
     ]
    },
    "ifrs-full_ValuationTechniquesUsedInFairValueMeasurementDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "ValuationTechniquesUsedInFairValueMeasurementDomain",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails2"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for valuation techniques used by the entity to measure fair value. It also represents the standard value for the 'Valuation techniques used in fair value measurement' axis if no other member is used. [Refer: At fair value [member]]"
       }
      }
     },
     "auth_ref": [
      "r160"
     ]
    },
    "ifrs-full_VehiclesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "VehiclesMember",
     "presentation": [
      "http://afya.com.br/role/MaterialAccountingPoliciesDetails3",
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Vehicles [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing vehicles used in the entity's operations, specifically to include aircraft, motor vehicles and ships. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r440"
     ]
    },
    "afya_WeightedAverageExercisePriceOfShareOptionsExchangedInSharebasedPaymentArrangement2019": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "WeightedAverageExercisePriceOfShareOptionsExchangedInSharebasedPaymentArrangement2019",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Weighted average exercise price, Exercised",
        "label": "WeightedAverageExercisePriceOfShareOptionsExchangedInSharebasedPaymentArrangement2019"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_WeightedAverageExercisePriceOfShareOptionsExercisableInSharebasedPaymentArrangement2019": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "WeightedAverageExercisePriceOfShareOptionsExercisableInSharebasedPaymentArrangement2019",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average exercise price, Exercisable"
       }
      },
      "en": {
       "role": {
        "documentation": "The weighted average exercise price of share options exercisable in a share-based payment arrangement. [Refer: Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r197"
     ]
    },
    "ifrs-full_WeightedAverageExercisePriceOfShareOptionsExercisedInSharebasedPaymentArrangement2019": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "WeightedAverageExercisePriceOfShareOptionsExercisedInSharebasedPaymentArrangement2019",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average exercise price, Exercised"
       }
      },
      "en": {
       "role": {
        "documentation": "The weighted average exercise price of share options exercised in a share-based payment arrangement. [Refer: Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r194"
     ]
    },
    "ifrs-full_WeightedAverageExercisePriceOfShareOptionsExpiredInSharebasedPaymentArrangement2019": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "WeightedAverageExercisePriceOfShareOptionsExpiredInSharebasedPaymentArrangement2019",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average exercise price, Expired"
       }
      },
      "en": {
       "role": {
        "documentation": "The weighted average exercise price of share options expired in a share-based payment arrangement. [Refer: Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r195"
     ]
    },
    "ifrs-full_WeightedAverageExercisePriceOfShareOptionsForfeitedInSharebasedPaymentArrangement2019": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "WeightedAverageExercisePriceOfShareOptionsForfeitedInSharebasedPaymentArrangement2019",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average exercise price, Forfeited"
       }
      },
      "en": {
       "role": {
        "documentation": "The weighted average exercise price of share options forfeited in a share-based payment arrangement. [Refer: Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r193"
     ]
    },
    "ifrs-full_WeightedAverageExercisePriceOfShareOptionsGrantedInSharebasedPaymentArrangement2019": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "WeightedAverageExercisePriceOfShareOptionsGrantedInSharebasedPaymentArrangement2019",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average exercise price, Granted"
       }
      },
      "en": {
       "role": {
        "documentation": "The weighted average exercise price of share options granted in a share-based payment arrangement. [Refer: Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r192"
     ]
    },
    "ifrs-full_WeightedAverageExercisePriceOfShareOptionsOutstandingInSharebasedPaymentArrangement2019": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "WeightedAverageExercisePriceOfShareOptionsOutstandingInSharebasedPaymentArrangement2019",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Weighted average exercise price, Outstanding at the beginning",
        "periodEndLabel": "Weighted average exercise price, Outstanding at the ending",
        "label": "Weighted average exercise price of share options outstanding in share-based payment arrangement"
       }
      },
      "en": {
       "role": {
        "documentation": "The weighted average exercise price of share options outstanding in a share-based payment arrangement. [Refer: Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r191",
      "r196"
     ]
    },
    "afya_WeightedAverageExercisePriceOfSharesOptionsOutstandingInSharebasedPaymentArrangement2019": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "WeightedAverageExercisePriceOfSharesOptionsOutstandingInSharebasedPaymentArrangement2019",
     "presentation": [
      "http://afya.com.br/role/EquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Average price, at beginning balance",
        "periodEndLabel": "Average price, at ending balance",
        "label": "WeightedAverageExercisePriceOfSharesOptionsOutstandingInSharebasedPaymentArrangement2019"
       }
      }
     },
     "auth_ref": []
    },
    "afya_WeightedAverageFairValueAtMeasurementDateShareOptionsGrantedOne": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "WeightedAverageFairValueAtMeasurementDateShareOptionsGrantedOne",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average fair value at the measurement date"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_WeightedAverageSharePriceShareOptionsGranted2019": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "WeightedAverageSharePriceShareOptionsGranted2019",
     "presentation": [
      "http://afya.com.br/role/LaborAndSocialObligationsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair values at grant date"
       }
      },
      "en": {
       "role": {
        "documentation": "The weighted average share price used as input to the option pricing model to calculate the fair value of share options granted. [Refer: Option pricing model [member]; Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r200"
     ]
    },
    "ifrs-full_WeightedAverageShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2024-03-27/ifrs-full",
     "localname": "WeightedAverageShares",
     "presentation": [
      "http://afya.com.br/role/EarningsPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average number of outstanding shares"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of ordinary shares outstanding at the beginning of the period, adjusted by the number of ordinary shares bought back or issued during the period multiplied by a time-weighting factor."
       }
      }
     },
     "auth_ref": [
      "r79"
     ]
    },
    "afya_WithAndWithoutMethodMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "WithAndWithoutMethodMember",
     "presentation": [
      "http://afya.com.br/role/BusinessCombinationsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "With And Without Method [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "afya_WritOffOfPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "WritOffOfPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/PropertyAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Write-off (i)"
       }
      }
     },
     "auth_ref": []
    },
    "afya_WriteOffFromAllowancesForDoubfulAccountsOnTradeReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "WriteOffFromAllowancesForDoubfulAccountsOnTradeReceivable",
     "crdr": "debit",
     "presentation": [
      "http://afya.com.br/role/TradeReceivablesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Write-offs"
       }
      }
     },
     "auth_ref": []
    },
    "afya_WriteoffOfIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "WriteoffOfIntangibleAssets",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/IntangibleAssetsDetails",
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Write-off of intangible assets",
        "verboseLabel": "Write-off"
       }
      }
     },
     "auth_ref": []
    },
    "afya_WriteoffOfPropertyAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://afya.com.br/20251231",
     "localname": "WriteoffOfPropertyAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://afya.com.br/role/StatementOfCashFlows": {
       "parentTag": "ifrs-full_AdjustmentsForReconcileProfitLoss",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://afya.com.br/role/StatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Write-off of property and equipment"
       }
      }
     },
     "auth_ref": []
    },
    "dei_WrittenCommunications": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "WrittenCommunications",
     "presentation": [
      "http://afya.com.br/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Written Communications",
        "documentation": "Boolean flag that is true when the Form 8-K filing is intended to satisfy the filing obligation of the registrant as written communications pursuant to Rule 425 under the Securities Act."
       }
      }
     },
     "auth_ref": [
      "r426"
     ]
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "103",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_103&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r1": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "106",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_106_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r2": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_106_d_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r3": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_106_d_ii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r4": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_106_d_iii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r5": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "106",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_106&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r6": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "107",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_107&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r7": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "54",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_54_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r8": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "54",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_54_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r9": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "54",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_54_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r10": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "54",
   "Subparagraph": "k",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_54_k&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r11": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "54",
   "Subparagraph": "l",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_54_l&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r12": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "54",
   "Subparagraph": "n",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_54_n&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r13": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "54",
   "Subparagraph": "o",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_54_o&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r14": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "54",
   "Subparagraph": "q",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_54_q&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r15": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "54",
   "Subparagraph": "r",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_54_r&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r16": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "55",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_55&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r17": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "56",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_56&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r18": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "61",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_61_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r19": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "61",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_61&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r20": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "66",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_66&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r21": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "69",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_69&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r22": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "78",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_78_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r23": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "78",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_78_e&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r24": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_79_a_iii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r25": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_79_a_iv&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r26": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_79_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r27": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "81A",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_81A_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r28": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "81A",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_81A_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r29": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "81A",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_81A_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r30": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "81B",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_81B_a_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r31": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "81B",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_81B_a_ii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r32": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "82",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_82_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r33": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "82",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_82_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r34": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "82",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_82_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r35": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "82",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_82_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r36": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "91",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_91_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r37": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "99",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_99&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r38": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "10",
   "IssueDate": "2024-01-01",
   "Paragraph": "21",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=10&code=ifrs-tx-2024-en-r&anchor=para_21&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r39": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "10",
   "IssueDate": "2024-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=10&code=ifrs-tx-2024-en-r&doctype=Standard&dita_xref=IAS10_g17-22_TI",
   "URIDate": "2024-03-27"
  },
  "r40": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "79",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_79&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r41": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "81",
   "Subparagraph": "c",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_81_c_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r42": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "81",
   "Subparagraph": "c",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_81_c_ii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r43": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_81_g_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r44": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_81_g_ii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r45": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_81_g&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r46": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "73",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2024-en-r&anchor=para_73_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r47": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "73",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2024-en-r&anchor=para_73_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r48": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2024-en-r&anchor=para_73_e_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r49": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2024-en-r&anchor=para_73_e_iii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r50": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "vii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2024-en-r&anchor=para_73_e_vii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r51": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2024-en-r&anchor=para_73_e&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r52": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "73",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2024-en-r&anchor=para_73&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r53": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "75",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2024-en-r&anchor=para_75_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r54": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "75",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2024-en-r&anchor=para_75_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r55": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2024-en-r&doctype=Standard&dita_xref=IAS16_g73-79_TI",
   "URIDate": "2024-03-27"
  },
  "r56": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2024-01-01",
   "Paragraph": "138",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2024-en-r&anchor=para_138&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r57": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2024-01-01",
   "Paragraph": "142",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2024-en-r&anchor=para_142&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r58": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "21",
   "IssueDate": "2024-01-01",
   "Paragraph": "57",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2024-en-r&anchor=para_57_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r59": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2024-01-01",
   "Paragraph": "17",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2024-en-r&anchor=para_17_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r60": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2024-01-01",
   "Paragraph": "17",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2024-en-r&anchor=para_17&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r61": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2024-01-01",
   "Paragraph": "18",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2024-en-r&anchor=para_18_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r62": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2024-01-01",
   "Paragraph": "18A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2024-en-r&anchor=para_18A&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r63": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2024-01-01",
   "Paragraph": "19",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2024-en-r&anchor=para_19_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r64": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2024-01-01",
   "Paragraph": "19",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2024-en-r&anchor=para_19&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r65": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2024-01-01",
   "Paragraph": "20",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2024-en-r&anchor=para_20&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r66": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2024-01-01",
   "Section": "Disclosures",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2024-en-r&doctype=Standard&dita_xref=IAS24_g13-24_TI",
   "URIDate": "2024-03-27"
  },
  "r67": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "26",
   "IssueDate": "2024-01-01",
   "Paragraph": "35",
   "Subparagraph": "b",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2024-en-r&anchor=para_35_b_iv&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r68": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "26",
   "IssueDate": "2024-01-01",
   "Paragraph": "35",
   "Subparagraph": "b",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2024-en-r&anchor=para_35_b_viii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r69": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2024-01-01",
   "Paragraph": "10",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_10&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r70": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2024-01-01",
   "Paragraph": "16",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_16_b_ii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r71": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2024-01-01",
   "Paragraph": "16",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_16_b_iii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r72": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2024-01-01",
   "Paragraph": "16",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_16_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r73": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2024-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_17_b_ii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r74": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2024-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_17_b_iii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r75": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2024-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_17_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r76": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "32",
   "IssueDate": "2024-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=32&code=ifrs-tx-2024-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r77": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2024-01-01",
   "Paragraph": "66",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2024-en-r&anchor=para_66&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r78": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2024-01-01",
   "Paragraph": "67",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2024-en-r&anchor=para_67&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r79": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2024-01-01",
   "Paragraph": "70",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2024-en-r&anchor=para_70_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r80": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2024-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2024-en-r&doctype=Standard&dita_xref=IAS33_g70-73A_TI",
   "URIDate": "2024-03-27"
  },
  "r81": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "34",
   "IssueDate": "2024-01-01",
   "Paragraph": "16A",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=34&code=ifrs-tx-2024-en-r&anchor=para_16A_f&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r82": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2024-01-01",
   "Paragraph": "126",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2024-en-r&anchor=para_126&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r83": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2024-01-01",
   "Paragraph": "130",
   "Subparagraph": "d",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2024-en-r&anchor=para_130_d_ii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r84": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2024-01-01",
   "Paragraph": "130",
   "Subparagraph": "f",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2024-en-r&anchor=para_130_f_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r85": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2024-01-01",
   "Paragraph": "134",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2024-en-r&anchor=para_134_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r86": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2024-01-01",
   "Paragraph": "134",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2024-en-r&anchor=para_134_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r87": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2024-01-01",
   "Paragraph": "134",
   "Subparagraph": "d",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2024-en-r&anchor=para_134_d_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r88": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2024-01-01",
   "Paragraph": "134",
   "Subparagraph": "d",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2024-en-r&anchor=para_134_d_v&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r89": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2024-01-01",
   "Paragraph": "134",
   "Subparagraph": "e",
   "Clause": "iiA",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2024-en-r&anchor=para_134_e_iiA&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r90": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2024-01-01",
   "Paragraph": "134",
   "Subparagraph": "e",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2024-en-r&anchor=para_134_e_v&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r91": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2024-01-01",
   "Paragraph": "135",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2024-en-r&anchor=para_135_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r92": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2024-01-01",
   "Paragraph": "135",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2024-en-r&anchor=para_135_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r93": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2024-01-01",
   "Paragraph": "135",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2024-en-r&anchor=para_135_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r94": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2024-01-01",
   "Paragraph": "84",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2024-en-r&anchor=para_84_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r95": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2024-01-01",
   "Paragraph": "84",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2024-en-r&anchor=para_84_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r96": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2024-01-01",
   "Paragraph": "84",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2024-en-r&anchor=para_84_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r97": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2024-01-01",
   "Paragraph": "84",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2024-en-r&anchor=para_84_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r98": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2024-01-01",
   "Paragraph": "84",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2024-en-r&anchor=para_84&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r99": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2024-01-01",
   "Paragraph": "86",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2024-en-r&anchor=para_86&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r100": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2024-01-01",
   "Paragraph": "88",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2024-en-r&anchor=para_88&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r101": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2024-01-01",
   "Paragraph": "118",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2024-en-r&anchor=para_118_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r102": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2024-01-01",
   "Paragraph": "118",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2024-en-r&anchor=para_118_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r103": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2024-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2024-en-r&anchor=para_118_e_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r104": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2024-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2024-en-r&anchor=para_118_e_vi&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r105": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2024-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2024-en-r&anchor=para_118_e&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r106": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2024-01-01",
   "Paragraph": "118",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2024-en-r&anchor=para_118&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r107": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2024-01-01",
   "Paragraph": "122",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2024-en-r&anchor=para_122_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r108": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2024-01-01",
   "Paragraph": "76",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2024-en-r&anchor=para_76&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r109": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2024-01-01",
   "Paragraph": "79",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2024-en-r&anchor=para_79_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r110": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2024-01-01",
   "Paragraph": "79",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2024-en-r&anchor=para_79_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r111": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2024-01-01",
   "Paragraph": "50",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2024-en-r&anchor=para_50&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r112": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2024-01-01",
   "Paragraph": "54",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2024-en-r&anchor=para_54_f&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r113": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "10",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_10&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r114": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "18",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_18_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r115": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "20",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_20&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r116": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "25",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_25&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r117": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "28",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_28&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r118": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "31",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_31&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r119": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_35&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r120": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "40",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_40_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r121": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "44B",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_44B_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r122": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "44B",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_44B_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r123": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "44B",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_44B_e&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r124": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "44H",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_44H_b_iii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r125": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "45",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_45&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r126": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "46",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_46&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r127": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "50",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_50_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r128": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "28",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=8&code=ifrs-tx-2024-en-r&anchor=para_28_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r129": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "28",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=8&code=ifrs-tx-2024-en-r&anchor=para_28_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r130": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "28",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=8&code=ifrs-tx-2024-en-r&anchor=para_28&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r131": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRIC",
   "Number": "17",
   "IssueDate": "2024-01-01",
   "Paragraph": "16",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRIC&num=17&code=ifrs-tx-2024-en-r&anchor=para_16_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r132": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "24",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2024-en-r&anchor=para_24_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r133": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "24",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2024-en-r&anchor=para_24_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r134": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "32",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2024-en-r&anchor=para_32_a_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r135": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "32",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2024-en-r&anchor=para_32_a_ii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r136": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "10",
   "IssueDate": "2024-01-01",
   "Paragraph": "22",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=10&code=ifrs-tx-2024-en-r&anchor=para_22&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r137": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "12",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_12_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r138": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "12",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_12_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r139": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "12",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_12_e&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r140": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "12",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_12_f&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r141": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "19B",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_19B_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r142": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "21",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_21_a_iv&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r143": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B10",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B10_a&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r144": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B12",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B12_a&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r145": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B12_b_i&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r146": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B12_b_ii&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r147": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B12_b_iii&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r148": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B12_b_iv&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r149": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "ix",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B12_b_ix&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r150": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B12_b_v&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r151": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B12_b_viii&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r152": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B13",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B13_a&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r153": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B13",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B13_f&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r154": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B13",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B13_g&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r155": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B4",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B4_a&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r156": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B4",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B4_b&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r157": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B4",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B4_d&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r158": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2024-01-01",
   "Paragraph": "93",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2024-en-r&anchor=para_93_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r159": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2024-01-01",
   "Paragraph": "93",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2024-en-r&anchor=para_93_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r160": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2024-01-01",
   "Paragraph": "93",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2024-en-r&anchor=para_93_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r161": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2024-01-01",
   "Paragraph": "93",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2024-en-r&anchor=para_93_e&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r162": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2024-01-01",
   "Paragraph": "93",
   "Subparagraph": "h",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2024-en-r&anchor=para_93_h_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r163": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2024-01-01",
   "Paragraph": "93",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2024-en-r&anchor=para_93&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r164": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "14",
   "IssueDate": "2024-01-01",
   "Paragraph": "33",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=14&code=ifrs-tx-2024-en-r&anchor=para_33_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r165": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2024-01-01",
   "Paragraph": "113",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2024-en-r&anchor=para_113_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r166": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2024-01-01",
   "Paragraph": "114",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2024-en-r&anchor=para_114&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r167": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2024-01-01",
   "Paragraph": "115",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2024-en-r&anchor=para_115&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r168": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2024-01-01",
   "Paragraph": "120",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2024-en-r&anchor=para_120_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r169": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2024-01-01",
   "Paragraph": "120",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2024-en-r&anchor=para_120_b_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r170": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "47",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2024-en-r&anchor=para_47_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r171": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "47",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2024-en-r&anchor=para_47_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r172": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "53",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2024-en-r&anchor=para_53_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r173": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "53",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2024-en-r&anchor=para_53_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r174": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "53",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2024-en-r&anchor=para_53_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r175": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "53",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2024-en-r&anchor=para_53_g&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r176": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "53",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2024-en-r&anchor=para_53_h&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r177": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "53",
   "Subparagraph": "j",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2024-en-r&anchor=para_53_j&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r178": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "53",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2024-en-r&anchor=para_53&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r179": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "94",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2024-en-r&anchor=para_94&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r180": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "97",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2024-en-r&anchor=para_97&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r181": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2024-01-01",
   "Paragraph": "109",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2024-en-r&anchor=para_109&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r182": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2024-01-01",
   "Paragraph": "109A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2024-en-r&anchor=para_109A&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r183": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2024-01-01",
   "Paragraph": "120",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2024-en-r&anchor=para_120&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r184": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2024-01-01",
   "Paragraph": "124",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2024-en-r&anchor=para_124&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r185": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2024-01-01",
   "Paragraph": "125",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2024-en-r&anchor=para_125&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r186": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2024-01-01",
   "Paragraph": "127",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2024-en-r&anchor=para_127&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r187": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2024-01-01",
   "Paragraph": "128",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2024-en-r&anchor=para_128_a_ii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r188": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2024-01-01",
   "Paragraph": "128",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2024-en-r&anchor=para_128_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r189": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2024-01-01",
   "Paragraph": "132",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2024-en-r&anchor=para_132_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r190": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2024-01-01",
   "Paragraph": "C32",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2024-en-r&anchor=para_C32&doctype=Appendix&subtype=C",
   "URIDate": "2024-03-27"
  },
  "r191": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2024-01-01",
   "Paragraph": "45",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2024-en-r&anchor=para_45_b_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r192": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2024-01-01",
   "Paragraph": "45",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2024-en-r&anchor=para_45_b_ii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r193": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2024-01-01",
   "Paragraph": "45",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2024-en-r&anchor=para_45_b_iii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r194": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2024-01-01",
   "Paragraph": "45",
   "Subparagraph": "b",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2024-en-r&anchor=para_45_b_iv&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r195": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2024-01-01",
   "Paragraph": "45",
   "Subparagraph": "b",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2024-en-r&anchor=para_45_b_v&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r196": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2024-01-01",
   "Paragraph": "45",
   "Subparagraph": "b",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2024-en-r&anchor=para_45_b_vi&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r197": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2024-01-01",
   "Paragraph": "45",
   "Subparagraph": "b",
   "Clause": "vii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2024-en-r&anchor=para_45_b_vii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r198": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2024-01-01",
   "Paragraph": "45",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2024-en-r&anchor=para_45_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r199": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2024-01-01",
   "Paragraph": "45",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2024-en-r&anchor=para_45&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r200": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2024-01-01",
   "Paragraph": "47",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2024-en-r&anchor=para_47_a_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r201": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B64",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B64_a&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r202": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B64",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B64_c&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r203": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B64",
   "Subparagraph": "f",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B64_f_i&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r204": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B64",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B64_f&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r205": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B64",
   "Subparagraph": "g",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B64_g_i&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r206": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B64",
   "Subparagraph": "j",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B64_j&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r207": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B64",
   "Subparagraph": "m",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B64_m&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r208": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B64",
   "Subparagraph": "o",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B64_o_ii&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r209": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B64",
   "Subparagraph": "q",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B64_q_i&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r210": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B64",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B64&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r211": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B67",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B67_c&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r212": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B67",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B67_d&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r213": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B67",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B67&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r214": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Section": "Disclosures",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&doctype=Standard&dita_xref=IFRS03_g59-63_TI",
   "URIDate": "2024-03-27"
  },
  "r215": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "5",
   "IssueDate": "2024-01-01",
   "Paragraph": "33",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2024-en-r&anchor=para_33_b_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r216": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "21C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_21C&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r217": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "23B",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_23B_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r218": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "25",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_25&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r219": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_33&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r220": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r221": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "35H",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_35H&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r222": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "35I",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_35I&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r223": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "35M",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_35M&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r224": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "42E",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_42E_e&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r225": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "42I",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_42I&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r226": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_6&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r227": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "7",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_7&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r228": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "8",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_8_e&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r229": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "B2",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_B2_a&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r230": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Section": "Defined terms",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&doctype=Appendix&subtype=A&dita_xref=IFRS07_APPA_TI",
   "URIDate": "2024-03-27"
  },
  "r231": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Section": "Scope",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&doctype=Standard&dita_xref=IFRS07_g3-5A_TI",
   "URIDate": "2024-03-27"
  },
  "r232": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "23",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_23_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r233": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "23",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_23_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r234": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "23",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_23_g&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r235": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "23",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_23_h&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r236": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "23",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_23&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r237": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "28",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_28_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r238": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "28",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_28_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r239": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "28",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_28_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r240": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "28",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_28_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r241": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "28",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_28_e&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r242": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "28",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_28&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r243": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "32",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_32&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r244": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "33",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_33_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r245": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r246": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&doctype=Standard&dita_xref=IFRS08_g20-24_TI",
   "URIDate": "2024-03-27"
  },
  "r247": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "9",
   "IssueDate": "2024-01-01",
   "Paragraph": "7.2.34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=9&code=ifrs-tx-2024-en-r&anchor=para_7.2.34&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r248": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "9",
   "IssueDate": "2024-01-01",
   "Paragraph": "7.2.42",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=9&code=ifrs-tx-2024-en-r&anchor=para_7.2.42&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r249": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2025-01-01",
   "Name": "IAS",
   "Number": "21",
   "IssueDate": "2024-01-01",
   "Paragraph": "A19",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2024-en-r&anchor=para_A19_f&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r250": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expired 2023-01-01",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "12A",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_12A_c&doctype=Standard&book=b",
   "URIDate": "2024-03-27"
  },
  "r251": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expired 2023-01-01",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "37",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_37&doctype=Standard&book=b",
   "URIDate": "2024-03-27"
  },
  "r252": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "102",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_102&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r253": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "103",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_103&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r254": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "108",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_108&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r255": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "68",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_68&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r256": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "78",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_78_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r257": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "78",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_78_e&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r258": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "IG6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_IG6&doctype=Implementation%20Guidance",
   "URIDate": "2024-03-27"
  },
  "r259": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "80",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_80_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r260": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "37",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2024-en-r&anchor=para_37_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r261": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "37",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2024-en-r&anchor=para_37_g&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r262": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2024-01-01",
   "Paragraph": "138",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2024-en-r&anchor=para_138_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r263": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2024-01-01",
   "Paragraph": "147",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2024-en-r&anchor=para_147_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r264": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "32",
   "IssueDate": "2024-01-01",
   "Paragraph": "IE33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=32&code=ifrs-tx-2024-en-r&anchor=para_IE33&doctype=Illustrative%20Examples",
   "URIDate": "2024-03-27"
  },
  "r265": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2024-01-01",
   "Paragraph": "70",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2024-en-r&anchor=para_70_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r266": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2024-01-01",
   "Section": "Example 12 Calculation and presentation of basic and diluted earnings per share (comprehensive example)",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2024-en-r&doctype=Illustrative%20Examples&dita_xref=IAS33_ex12_TI",
   "URIDate": "2024-03-27"
  },
  "r267": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2024-01-01",
   "Paragraph": "127",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2024-en-r&anchor=para_127&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r268": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2024-01-01",
   "Paragraph": "87",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2024-en-r&anchor=para_87&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r269": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2024-01-01",
   "Paragraph": "88",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2024-en-r&anchor=para_88&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r270": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2024-01-01",
   "Section": "Example 10 A court case",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2024-en-r&doctype=Illustrative%20Examples&dita_xref=IAS37_IE_C_ex10_TI",
   "URIDate": "2024-03-27"
  },
  "r271": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2024-01-01",
   "Paragraph": "119",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2024-en-r&anchor=para_119_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r272": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2024-01-01",
   "Paragraph": "119",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2024-en-r&anchor=para_119_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r273": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2024-01-01",
   "Paragraph": "119",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2024-en-r&anchor=para_119_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r274": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "14",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_14_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r275": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "14",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_14_f&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r276": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "16",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_16_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r277": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "17",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_17_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r278": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "17",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_17_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r279": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "17",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_17_e&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r280": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "44B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_44B&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r281": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "44C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_44C&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r282": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "44D",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_44D&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r283": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Section": "A Statement of cash flows for an entity other than a financial institution",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&doctype=Illustrative%20Examples&dita_xref=IAS07_IE_A_TI",
   "URIDate": "2024-03-27"
  },
  "r284": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Section": "C Reconciliation of liabilities arising from financing activities",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&doctype=Illustrative%20Examples&dita_xref=IAS07_IE_C_TI",
   "URIDate": "2024-03-27"
  },
  "r285": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "B10",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B10_b&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r286": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2024-01-01",
   "Paragraph": "B11",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2024-en-r&anchor=para_B11_c&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r287": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2024-01-01",
   "Paragraph": "B6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2024-en-r&anchor=para_B6&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r288": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2024-01-01",
   "Paragraph": "IE63",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2024-en-r&anchor=para_IE63&doctype=Illustrative%20Examples",
   "URIDate": "2024-03-27"
  },
  "r289": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2024-01-01",
   "Paragraph": "B89",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2024-en-r&anchor=para_B89_a&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r290": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2024-01-01",
   "Paragraph": "113",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2024-en-r&anchor=para_113_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r291": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2024-01-01",
   "Paragraph": "96",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2024-en-r&anchor=para_96_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r292": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B64",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B64_i&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r293": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B64",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B64&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r294": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "IE72",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_IE72&doctype=Illustrative%20Examples",
   "URIDate": "2024-03-27"
  },
  "r295": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "32",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_32&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r296": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "35H",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_35H&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r297": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "35I",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_35I&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r298": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "35M",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_35M&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r299": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "35N",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_35N&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r300": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "B11",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_B11_a&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r301": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "B11",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_B11&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r302": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "B35",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_B35_a&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r303": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "B35",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_B35_c&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r304": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "B35",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_B35_e&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r305": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "B35",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_B35_f&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r306": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "B35",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_B35_g&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r307": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "B35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_B35&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r308": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "IG20B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_IG20B&doctype=Implementation%20Guidance",
   "URIDate": "2024-03-27"
  },
  "r309": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "IG20C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_IG20C&doctype=Implementation%20Guidance",
   "URIDate": "2024-03-27"
  },
  "r310": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "IG31A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_IG31A&doctype=Implementation%20Guidance",
   "URIDate": "2024-03-27"
  },
  "r311": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "23",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_23&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r312": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "28",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_28_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r313": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12"
  },
  "r314": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r315": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r316": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-23"
  },
  "r317": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r318": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "g"
  },
  "r319": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12, 13, 15d"
  },
  "r320": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "13e",
   "Subsection": "4c"
  },
  "r321": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "14a",
   "Subsection": "12"
  },
  "r322": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "14d",
   "Subsection": "2b"
  },
  "r323": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "15",
   "Subsection": "d"
  },
  "r324": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-K",
   "Number": "249",
   "Section": "310"
  },
  "r325": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-Q",
   "Number": "240",
   "Section": "308",
   "Subsection": "a"
  },
  "r326": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Number": "249",
   "Section": "220",
   "Subsection": "f"
  },
  "r327": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16",
   "Subsection": "J",
   "Paragraph": "a"
  },
  "r328": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K"
  },
  "r329": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r330": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r331": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r332": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r333": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "2"
  },
  "r334": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "1"
  },
  "r335": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2"
  },
  "r336": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "i"
  },
  "r337": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r338": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r339": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1"
  },
  "r340": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r341": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r342": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r343": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r344": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r345": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r346": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r347": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r348": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "2"
  },
  "r349": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Number": "249",
   "Section": "240",
   "Subsection": "f"
  },
  "r350": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a"
  },
  "r351": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r352": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r353": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r354": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r355": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r356": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r357": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r358": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r359": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "b"
  },
  "r360": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 6-K",
   "Section": "General Instruction",
   "Subsection": "B"
  },
  "r361": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 8-K",
   "Section": "1.05"
  },
  "r362": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 8-K",
   "Section": "1.05",
   "Subsection": "Instruction",
   "Paragraph": "2"
  },
  "r363": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 8-K",
   "Section": "1.05",
   "Subsection": "a"
  },
  "r364": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a"
  },
  "r365": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r366": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r367": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r368": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r369": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r370": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r371": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r372": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r373": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "b"
  },
  "r374": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Section": "13",
   "Subsection": "a-1"
  },
  "r375": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v"
  },
  "r376": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "1"
  },
  "r377": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r378": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r379": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iv"
  },
  "r380": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "vi"
  },
  "r381": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "3"
  },
  "r382": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "4"
  },
  "r383": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "i"
  },
  "r384": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "ii"
  },
  "r385": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iii"
  },
  "r386": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iv"
  },
  "r387": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6"
  },
  "r388": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6",
   "Subparagraph": "i"
  },
  "r389": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w"
  },
  "r390": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1"
  },
  "r391": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r392": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r393": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r394": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r395": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r396": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r397": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r398": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r399": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "2"
  },
  "r400": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "1"
  },
  "r401": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2"
  },
  "r402": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "A"
  },
  "r403": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "C"
  },
  "r404": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "D"
  },
  "r405": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "E"
  },
  "r406": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "F"
  },
  "r407": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a"
  },
  "r408": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "1"
  },
  "r409": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "A"
  },
  "r410": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "B"
  },
  "r411": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "C"
  },
  "r412": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r413": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106"
  },
  "r414": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r415": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r416": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r417": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r418": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "2"
  },
  "r419": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "1"
  },
  "r420": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2"
  },
  "r421": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "i"
  },
  "r422": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r423": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r424": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r425": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "405"
  },
  "r426": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "425"
  },
  "r427": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "7A",
   "Section": "B",
   "Subsection": "2"
  },
  "r428": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "10",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_10_e&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r429": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "102",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_102&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r430": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "103",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_103&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r431": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_106_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r432": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "108",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_108&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r433": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "112",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_112_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r434": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "117",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_117&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r435": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "55",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_55&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r436": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "78",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_78_e&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r437": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "78",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_78&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r438": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2024-01-01",
   "Paragraph": "85",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_85&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r439": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2024-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_81_g_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r440": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "37",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2024-en-r&anchor=para_37&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r441": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "73",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2024-en-r&anchor=para_73_d&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r442": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2024-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2024-en-r&anchor=para_73_e&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r443": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2024-01-01",
   "Paragraph": "57",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2024-en-r&anchor=para_57_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r444": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2024-01-01",
   "Paragraph": "70",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2024-en-r&anchor=para_70_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r445": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2024-01-01",
   "Paragraph": "70",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2024-en-r&anchor=para_70_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r446": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2024-01-01",
   "Paragraph": "84",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2024-en-r&anchor=para_84&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r447": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2024-01-01",
   "Paragraph": "118",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2024-en-r&anchor=para_118_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r448": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2024-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2024-en-r&anchor=para_118_e_i&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r449": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2024-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2024-en-r&anchor=para_118_e_iv&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r450": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2024-01-01",
   "Paragraph": "118",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2024-en-r&anchor=para_118&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r451": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2024-01-01",
   "Paragraph": "119",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2024-en-r&anchor=para_119&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r452": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2024-01-01",
   "Paragraph": "79",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2024-en-r&anchor=para_79_c&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r453": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2024-01-01",
   "Paragraph": "54",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2024-en-r&anchor=para_54_f&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r454": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "17",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_17&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r455": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "20",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_20_a&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r456": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "20",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_20_b&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r457": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "20",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_20&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r458": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "45",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_45&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r459": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2024-01-01",
   "Paragraph": "93",
   "Subparagraph": "h",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2024-en-r&anchor=para_93_h_ii&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r460": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2024-01-01",
   "Paragraph": "B64",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B64_i&doctype=Appendix&subtype=B",
   "URIDate": "2024-03-27"
  },
  "r461": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "39",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_39&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r462": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2024-01-01",
   "Paragraph": "7",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_7&doctype=Standard",
   "URIDate": "2024-03-27"
  },
  "r463": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2024-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2024-03-27"
  }
 }
}
