<?xml version='1.0' encoding='UTF-8'?>
<FilingSummary>
  <Version>3.5.0.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>368</ContextCount>
  <ElementCount>375</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>69</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001000 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1001501 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1002000 - Statement - Consolidated Statements of Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/ConsolidatedStatementsOfIncomeUnaudited</Role>
      <ShortName>Consolidated Statements of Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1003000 - Statement - Consolidated Statements of Comprehensive Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/ConsolidatedStatementsOfComprehensiveIncomeUnaudited</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1004000 - Statement - Consolidated Statements of Changes in Shareholders' Equity (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityUnaudited</Role>
      <ShortName>Consolidated Statements of Changes in Shareholders' Equity (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1004501 - Statement - Consolidated Statements of Changes in Shareholders' Equity (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityUnauditedParenthetical</Role>
      <ShortName>Consolidated Statements of Changes in Shareholders' Equity (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1005000 - Statement - Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/ConsolidatedStatementsOfCashFlowsUnaudited</Role>
      <ShortName>Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/AccountingPolicies</Role>
      <ShortName>Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2102100 - Disclosure - Acquisition of MainStreet Bankshares, Inc.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/AcquisitionOfMainstreetBanksharesInc</Role>
      <ShortName>Acquisition of MainStreet Bankshares, Inc.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2103100 - Disclosure - Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/Securities</Role>
      <ShortName>Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2104100 - Disclosure - Loans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/Loans</Role>
      <ShortName>Loans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2105100 - Disclosure - Allowance for Loan Losses and Reserve for Unfunded Lending Commitments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/AllowanceForLoanLossesAndReserveForUnfundedLendingCommitments</Role>
      <ShortName>Allowance for Loan Losses and Reserve for Unfunded Lending Commitments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2106100 - Disclosure - Goodwill and Other Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/GoodwillAndOtherIntangibleAssets</Role>
      <ShortName>Goodwill and Other Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2107100 - Disclosure - Short-term Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/ShortTermBorrowings</Role>
      <ShortName>Short-term Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2108100 - Disclosure - Long-term Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/LongTermBorrowings</Role>
      <ShortName>Long-term Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2109100 - Disclosure - Junior Subordinated Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/JuniorSubordinatedDebt</Role>
      <ShortName>Junior Subordinated Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2110100 - Disclosure - Stock Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/StockBasedCompensation</Role>
      <ShortName>Stock Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2111100 - Disclosure - Earnings Per Common Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/EarningsPerCommonShare</Role>
      <ShortName>Earnings Per Common Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2112100 - Disclosure - Employee Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/EmployeeBenefitPlans</Role>
      <ShortName>Employee Benefit Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2113100 - Disclosure - Fair Value of Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/FairValueOfFinancialInstruments</Role>
      <ShortName>Fair Value of Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2114100 - Disclosure - Segment and Related Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/SegmentAndRelatedInformation</Role>
      <ShortName>Segment and Related Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2115100 - Disclosure - Supplemental Cash Flow Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/SupplementalCashFlowInformation</Role>
      <ShortName>Supplemental Cash Flow Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2116100 - Disclosure - Accumulated Other Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/AccumulatedOtherComprehensiveIncome</Role>
      <ShortName>Accumulated Other Comprehensive Income</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2201201 - Disclosure - Accounting Policies - (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/AccountingPoliciesPolicies</Role>
      <ShortName>Accounting Policies - (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.amnb.com/role/AccountingPolicies</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2302301 - Disclosure - Acquisition of MainStreet Bankshares, Inc. (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/AcquisitionOfMainstreetBanksharesIncTables</Role>
      <ShortName>Acquisition of MainStreet Bankshares, Inc. (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amnb.com/role/AcquisitionOfMainstreetBanksharesInc</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2303301 - Disclosure - Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/SecuritiesTables</Role>
      <ShortName>Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amnb.com/role/Securities</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2304301 - Disclosure - Loans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/LoansTables</Role>
      <ShortName>Loans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amnb.com/role/Loans</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2305301 - Disclosure - Allowance for Loan Losses and Reserve for Unfunded Lending Commitments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/AllowanceForLoanLossesAndReserveForUnfundedLendingCommitmentsTables</Role>
      <ShortName>Allowance for Loan Losses and Reserve for Unfunded Lending Commitments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amnb.com/role/AllowanceForLoanLossesAndReserveForUnfundedLendingCommitments</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2306301 - Disclosure - Goodwill and Other Intangible Assets  (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/GoodwillAndOtherIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Other Intangible Assets  (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amnb.com/role/GoodwillAndOtherIntangibleAssets</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2307301 - Disclosure - Short-term Borrowings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/ShortTermBorrowingsTables</Role>
      <ShortName>Short-term Borrowings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amnb.com/role/ShortTermBorrowings</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2308301 - Disclosure - Long-term Borrowings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/LongTermBorrowingsTables</Role>
      <ShortName>Long-term Borrowings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amnb.com/role/LongTermBorrowings</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2309301 - Disclosure - Junior Subordinated Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/JuniorSubordinatedDebtTables</Role>
      <ShortName>Junior Subordinated Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amnb.com/role/JuniorSubordinatedDebt</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2310301 - Disclosure - Stock Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/StockBasedCompensationTables</Role>
      <ShortName>Stock Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amnb.com/role/StockBasedCompensation</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2311301 - Disclosure - Earnings Per Common Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/EarningsPerCommonShareTables</Role>
      <ShortName>Earnings Per Common Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amnb.com/role/EarningsPerCommonShare</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2312301 - Disclosure - Employee Benefit Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/EmployeeBenefitPlansTables</Role>
      <ShortName>Employee Benefit Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amnb.com/role/EmployeeBenefitPlans</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2313301 - Disclosure - Fair Value of Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/FairValueOfFinancialInstrumentsTables</Role>
      <ShortName>Fair Value of Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amnb.com/role/FairValueOfFinancialInstruments</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2314301 - Disclosure - Segment and Related Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/SegmentAndRelatedInformationTables</Role>
      <ShortName>Segment and Related Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amnb.com/role/SegmentAndRelatedInformation</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2315301 - Disclosure - Supplemental Cash Flow Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/SupplementalCashFlowInformationTables</Role>
      <ShortName>Supplemental Cash Flow Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amnb.com/role/SupplementalCashFlowInformation</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2316301 - Disclosure - Accumulated Other Comprehensive Income (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/AccumulatedOtherComprehensiveIncomeTables</Role>
      <ShortName>Accumulated Other Comprehensive Income (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amnb.com/role/AccumulatedOtherComprehensiveIncome</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2402402 - Disclosure - Acquisition of MainStreet Bankshares, Inc.  - (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/AcquisitionOfMainstreetBanksharesIncDetails</Role>
      <ShortName>Acquisition of MainStreet Bankshares, Inc.  - (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amnb.com/role/AcquisitionOfMainstreetBanksharesIncTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2403402 - Disclosure - Securities  - Schedule of Amortized Cost and Fair Value of Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/SecuritiesScheduleOfAmortizedCostAndFairValueOfInvestmentsDetails</Role>
      <ShortName>Securities  - Schedule of Amortized Cost and Fair Value of Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2403403 - Disclosure - Securities  - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/SecuritiesNarrativeDetails</Role>
      <ShortName>Securities  - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2403404 - Disclosure - Securities  - Cost of Restricted Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/SecuritiesCostOfRestrictedStockDetails</Role>
      <ShortName>Securities  - Cost of Restricted Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2403405 - Disclosure - Securities  - Fair Value and Gross Unrealized Losses by Investment Category and Length of Time (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/SecuritiesFairValueAndGrossUnrealizedLossesByInvestmentCategoryAndLengthOfTimeDetails</Role>
      <ShortName>Securities  - Fair Value and Gross Unrealized Losses by Investment Category and Length of Time (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2404402 - Disclosure - Loans  - Schedule of Loans Excluding Loans Held for Sale (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/LoansScheduleOfLoansExcludingLoansHeldForSaleDetails</Role>
      <ShortName>Loans  - Schedule of Loans Excluding Loans Held for Sale (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2404403 - Disclosure - Loans  - Outstanding Principal and Carrying Amount of Acquired Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/LoansOutstandingPrincipalAndCarryingAmountOfAcquiredLoansDetails</Role>
      <ShortName>Loans  - Outstanding Principal and Carrying Amount of Acquired Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2404404 - Disclosure - Loans  - Accretable Yield on Acquired Impaired Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/LoansAccretableYieldOnAcquiredImpairedLoansDetails</Role>
      <ShortName>Loans  - Accretable Yield on Acquired Impaired Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2404405 - Disclosure - Loans  - Past Due (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/LoansPastDueDetails</Role>
      <ShortName>Loans  - Past Due (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2404406 - Disclosure - Loans  - Impaired Loan Balances By Portfolio Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/LoansImpairedLoanBalancesByPortfolioSegmentDetails</Role>
      <ShortName>Loans  - Impaired Loan Balances By Portfolio Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2404407 - Disclosure - Loans  - Loans Modified for Troubled Debt Restructuring (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/LoansLoansModifiedForTroubledDebtRestructuringDetails</Role>
      <ShortName>Loans  - Loans Modified for Troubled Debt Restructuring (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2404408 - Disclosure - Loans  - Residential Real Estate in Process of Foreclosures (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/LoansResidentialRealEstateInProcessOfForeclosuresDetails</Role>
      <ShortName>Loans  - Residential Real Estate in Process of Foreclosures (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2404409 - Disclosure - Loans  - Loans Portfolio by Internal Risk Grading (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/LoansLoansPortfolioByInternalRiskGradingDetails</Role>
      <ShortName>Loans  - Loans Portfolio by Internal Risk Grading (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2405402 - Disclosure - Allowance for Loan Losses and Reserve for Unfunded Lending Commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/AllowanceForLoanLossesAndReserveForUnfundedLendingCommitmentsDetails</Role>
      <ShortName>Allowance for Loan Losses and Reserve for Unfunded Lending Commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amnb.com/role/AllowanceForLoanLossesAndReserveForUnfundedLendingCommitmentsTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2406402 - Disclosure - Goodwill and Other Intangible Assets  (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/GoodwillAndOtherIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Other Intangible Assets  (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amnb.com/role/GoodwillAndOtherIntangibleAssetsTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2407402 - Disclosure - Short-term Borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/ShortTermBorrowingsDetails</Role>
      <ShortName>Short-term Borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amnb.com/role/ShortTermBorrowingsTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2408402 - Disclosure - Long-term Borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/LongTermBorrowingsDetails</Role>
      <ShortName>Long-term Borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amnb.com/role/LongTermBorrowingsTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2409402 - Disclosure - Junior Subordinated Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/JuniorSubordinatedDebtDetails</Role>
      <ShortName>Junior Subordinated Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amnb.com/role/JuniorSubordinatedDebtTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2409403 - Disclosure - Junior Subordinated Debt  - Outstanding Payables (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/JuniorSubordinatedDebtOutstandingPayablesDetails</Role>
      <ShortName>Junior Subordinated Debt  - Outstanding Payables (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2410402 - Disclosure - Stock Based Compensation - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/StockBasedCompensationNarrativeDetails</Role>
      <ShortName>Stock Based Compensation - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2410403 - Disclosure - Stock Based Compensation - Stock Options Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/StockBasedCompensationStockOptionsTransactionsDetails</Role>
      <ShortName>Stock Based Compensation - Stock Options Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2410404 - Disclosure - Stock Based Compensation - Restricted Stock Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/StockBasedCompensationRestrictedStockActivityDetails</Role>
      <ShortName>Stock Based Compensation - Restricted Stock Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2411402 - Disclosure - Earnings Per Common Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/EarningsPerCommonShareDetails</Role>
      <ShortName>Earnings Per Common Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amnb.com/role/EarningsPerCommonShareTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2412402 - Disclosure - Employee Benefit Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/EmployeeBenefitPlansDetails</Role>
      <ShortName>Employee Benefit Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amnb.com/role/EmployeeBenefitPlansTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2413402 - Disclosure - Fair Value of Financial Instruments  - Assets and Liabilities Measured on Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/FairValueOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredOnRecurringBasisDetails</Role>
      <ShortName>Fair Value of Financial Instruments  - Assets and Liabilities Measured on Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2413403 - Disclosure - Fair Value of Financial Instruments  - Level 3 Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/FairValueOfFinancialInstrumentsLevel3FairValueMeasurementsDetails</Role>
      <ShortName>Fair Value of Financial Instruments  - Level 3 Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2413404 - Disclosure - Fair Value of Financial Instruments - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/FairValueOfFinancialInstrumentsNarrativeDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2413405 - Disclosure - Fair Value of Financial Instruments  - Assets Measured on Nonrecurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/FairValueOfFinancialInstrumentsAssetsMeasuredOnNonrecurringBasisDetails</Role>
      <ShortName>Fair Value of Financial Instruments  - Assets Measured on Nonrecurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2413406 - Disclosure - Fair Value of Financial Instruments  - Level 3 Quantitative Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/FairValueOfFinancialInstrumentsLevel3QuantitativeInformationDetails</Role>
      <ShortName>Fair Value of Financial Instruments  - Level 3 Quantitative Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2413407 - Disclosure - Fair Value of Financial Instruments  - Carrying and Estimated Fair Values of Financial Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/FairValueOfFinancialInstrumentsCarryingAndEstimatedFairValuesOfFinancialInstrumentsDetails</Role>
      <ShortName>Fair Value of Financial Instruments  - Carrying and Estimated Fair Values of Financial Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2414402 - Disclosure - Segment and Related Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/SegmentAndRelatedInformationDetails</Role>
      <ShortName>Segment and Related Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amnb.com/role/SegmentAndRelatedInformationTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2415402 - Disclosure - Supplemental Cash Flow Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/SupplementalCashFlowInformationDetails</Role>
      <ShortName>Supplemental Cash Flow Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amnb.com/role/SupplementalCashFlowInformationTables</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>2416402 - Disclosure - Accumulated Other Comprehensive Income  - Components of AOCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/AccumulatedOtherComprehensiveIncomeComponentsOfAociDetails</Role>
      <ShortName>Accumulated Other Comprehensive Income  - Components of AOCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="amnb-20160630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>2416403 - Disclosure - Accumulated Other Comprehensive Income - Reclassifications Out of AOCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amnb.com/role/AccumulatedOtherComprehensiveIncomeReclassificationsOutOfAociDetails</Role>
      <ShortName>Accumulated Other Comprehensive Income - Reclassifications Out of AOCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>amnb-20160630.xml</File>
    <File>amnb-20160630.xsd</File>
    <File>amnb-20160630_cal.xml</File>
    <File>amnb-20160630_def.xml</File>
    <File>amnb-20160630_lab.xml</File>
    <File>amnb-20160630_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies/>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
