<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.2.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>7</ContextCount>
  <ElementCount>80</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>6</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>2</UnitCount>
  <MyReports>
    <Report instance="abmif-20221005.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>000000 - Document - Document and Entity Information {Elements}</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.abfunds.com/role/DocumentDocumentandEntityInformationElements000000</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory></MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="abmif-20221005.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>000181 - Disclosure - Risk/Return Detail Data {Elements} - AB Ohio Portfolio</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.abfunds.com/role/DisclosureRiskReturnDetailDataElementsABOhioPortfolio000181</Role>
      <ShortName>Risk/Return Detail Data- AB Ohio Portfolio</ShortName>
      <MenuCategory></MenuCategory>
      <Position>2</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000010348Member declared as a domainItemType element. abmif-20221005.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000010351Member declared as a domainItemType element. abmif-20221005.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000010352Member declared as a domainItemType element. abmif-20221005.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000010353Member declared as a domainItemType element. abmif-20221005.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000010355Member declared as a domainItemType element. abmif-20221005.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000010357Member declared as a domainItemType element. abmif-20221005.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000010358Member declared as a domainItemType element. abmif-20221005.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000010360Member declared as a domainItemType element. abmif-20221005.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000010361Member declared as a domainItemType element. abmif-20221005.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000027380Member declared as a domainItemType element. abmif-20221005.xsd </Log>
  </Logs>
  <InputFiles>
    <File doctype="497" original="abmif-20221005.htm">abmif-20221005.htm</File>
    <File>abmif-20221005.xsd</File>
    <File>abmif-20221005_cal.xml</File>
    <File>abmif-20221005_def.xml</File>
    <File>abmif-20221005_lab.xml</File>
    <File>abmif-20221005_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>g1g12c59.jpg</File>
    <File>g1g16c63.jpg</File>
    <File>g1g19d95.jpg</File>
    <File>g1g19t59.jpg</File>
    <File>g1g20r22.jpg</File>
    <File>g1g22c48.jpg</File>
    <File>g1g31a51.jpg</File>
    <File>g1g49d54.jpg</File>
    <File>g1g67z55.jpg</File>
    <File>g1g70a28.jpg</File>
    <File>g1g71b29.jpg</File>
    <File>g1g71m70.jpg</File>
    <File>g1g78d41.jpg</File>
    <File>g1g78f52.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="8">http://xbrl.sec.gov/dei/2021</BaseTaxonomy>
    <BaseTaxonomy items="99">http://xbrl.sec.gov/rr/2021</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
