<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.20.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>561</ContextCount>
  <ElementCount>469</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>113</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - Consolidated Statement of Financial Condition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/StatementConsolidatedStatementOfFinancialCondition</Role>
      <ShortName>Consolidated Statement of Financial Condition</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00105 - Statement - Consolidated Statement of Financial Condition (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/StatementConsolidatedStatementOfFinancialConditionParenthetical</Role>
      <ShortName>Consolidated Statement of Financial Condition (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00200 - Statement - Consolidated Statement of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/StatementConsolidatedStatementOfOperations</Role>
      <ShortName>Consolidated Statement of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - Consolidated Statement of Comprehensive (Loss)/Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/StatementConsolidatedStatementOfComprehensiveLossIncome</Role>
      <ShortName>Consolidated Statement of Comprehensive (Loss)/Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00400 - Statement - Consolidated Statement of Changes in Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/StatementConsolidatedStatementOfChangesInShareholdersEquity</Role>
      <ShortName>Consolidated Statement of Changes in Shareholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00405 - Statement - Consolidated Statement of Changes in Shareholders' Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/StatementConsolidatedStatementOfChangesInShareholdersEquityParenthetical</Role>
      <ShortName>Consolidated Statement of Changes in Shareholders' Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>00500 - Statement - Consolidated Statement of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/StatementConsolidatedStatementOfCashFlows</Role>
      <ShortName>Consolidated Statement of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10101 - Disclosure - Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureBasisOfPresentation</Role>
      <ShortName>Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10201 - Disclosure - Significant Event</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureSignificantEvent</Role>
      <ShortName>Significant Event</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10301 - Disclosure - Earnings Per Common Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonShare</Role>
      <ShortName>Earnings Per Common Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10401 - Disclosure - Net Gains</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureNetGains</Role>
      <ShortName>Net Gains</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10501 - Disclosure - Investment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestment</Role>
      <ShortName>Investment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10601 - Disclosure - Loans and Related Allowance for Loan Losses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowanceForLoanLosses</Role>
      <ShortName>Loans and Related Allowance for Loan Losses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>10701 - Disclosure - Other Real Estate Owned, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureOtherRealEstateOwnedNet</Role>
      <ShortName>Other Real Estate Owned, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>10801 - Disclosure - Fair Value of Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstruments</Role>
      <ShortName>Fair Value of Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>10901 - Disclosure - Accumulated Other Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLoss</Role>
      <ShortName>Accumulated Other Comprehensive Loss</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>11001 - Disclosure - Borrowed Funds</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureBorrowedFunds</Role>
      <ShortName>Borrowed Funds</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>11101 - Disclosure - Employee Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEmployeeBenefitPlans</Role>
      <ShortName>Employee Benefit Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>11201 - Disclosure - Equity Compensation Plan Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEquityCompensationPlanInformation</Role>
      <ShortName>Equity Compensation Plan Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>11301 - Disclosure - Derivative Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureDerivativeFinancialInstruments</Role>
      <ShortName>Derivative Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>11401 - Disclosure - Assets and Liabilities Subject to Enforceable Master Netting Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureAssetsAndLiabilitiesSubjectToEnforceableMasterNettingArrangements</Role>
      <ShortName>Assets and Liabilities Subject to Enforceable Master Netting Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>11501 - Disclosure - Goodwill</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureGoodwill</Role>
      <ShortName>Goodwill</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>11601 - Disclosure - Adoption of New Accounting Standards and Effects of New Accounting Pronouncements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureAdoptionOfNewAccountingStandardsAndEffectsOfNewAccountingPronouncements</Role>
      <ShortName>Adoption of New Accounting Standards and Effects of New Accounting Pronouncements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>20302 - Disclosure - Earnings Per Common Share (Policy)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonSharePolicy</Role>
      <ShortName>Earnings Per Common Share (Policy)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureAdoptionOfNewAccountingStandardsAndEffectsOfNewAccountingPronouncements</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>20502 - Disclosure - Investments (Policy)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentsPolicy</Role>
      <ShortName>Investments (Policy)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureAdoptionOfNewAccountingStandardsAndEffectsOfNewAccountingPronouncements</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>20602 - Disclosure - Loans And Related Allowances For Loan Losses (Policy)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesPolicy</Role>
      <ShortName>Loans And Related Allowances For Loan Losses (Policy)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureAdoptionOfNewAccountingStandardsAndEffectsOfNewAccountingPronouncements</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>30203 - Disclosure - Significant Event (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureSignificantEventTables</Role>
      <ShortName>Significant Event (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureSignificantEvent</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>30303 - Disclosure - Earnings Per Common Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonShareTables</Role>
      <ShortName>Earnings Per Common Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonShare</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>30403 - Disclosure - Net Gains (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureNetGainsTables</Role>
      <ShortName>Net Gains (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureNetGains</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>30503 - Disclosure - Investment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentTables</Role>
      <ShortName>Investment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestment</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>30603 - Disclosure - Loans And Related Allowances For Loan Losses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesTables</Role>
      <ShortName>Loans And Related Allowances For Loan Losses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>30703 - Disclosure - Other Real Estate Owned, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureOtherRealEstateOwnedNetTables</Role>
      <ShortName>Other Real Estate Owned, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureOtherRealEstateOwnedNet</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>30803 - Disclosure - Fair Value of Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsTables</Role>
      <ShortName>Fair Value of Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstruments</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>30903 - Disclosure - Accumulated Other Comprehensive Loss (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLossTables</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLoss</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>31003 - Disclosure - Borrowed Funds (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureBorrowedFundsTables</Role>
      <ShortName>Borrowed Funds (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureBorrowedFunds</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>31103 - Disclosure - Employee Benefit Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEmployeeBenefitPlansTables</Role>
      <ShortName>Employee Benefit Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureEmployeeBenefitPlans</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>31303 - Disclosure - Derivative Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureDerivativeFinancialInstrumentsTables</Role>
      <ShortName>Derivative Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureDerivativeFinancialInstruments</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>31403 - Disclosure - Assets and Liabilities Subject to Enforceable Master Netting Arrangements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureAssetsAndLiabilitiesSubjectToEnforceableMasterNettingArrangementsTables</Role>
      <ShortName>Assets and Liabilities Subject to Enforceable Master Netting Arrangements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureAssetsAndLiabilitiesSubjectToEnforceableMasterNettingArrangements</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>40201 - Disclosure - Significant Event (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureSignificantEventNarrativeDetails</Role>
      <ShortName>Significant Event (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureSignificantEventTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>40202 - Disclosure - Significant Event (Data on Consumer and Commercial Loan Portfolios by industry and Percentage of Portfolio Modified) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureSignificantEventDataOnConsumerAndCommercialLoanPortfoliosByIndustryAndPercentageOfPortfolioModifiedDetails</Role>
      <ShortName>Significant Event (Data on Consumer and Commercial Loan Portfolios by industry and Percentage of Portfolio Modified) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureSignificantEventTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>40301 - Disclosure - Earnings Per Common Share (Basic and Diluted Earnings Per Share) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonShareBasicAndDilutedEarningsPerShareDetails</Role>
      <ShortName>Earnings Per Common Share (Basic and Diluted Earnings Per Share) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonShareTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>40401 - Disclosure - Net Gains (Summary of Gain/(Loss) Activity) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureNetGainsSummaryOfGainLossActivityDetails</Role>
      <ShortName>Net Gains (Summary of Gain/(Loss) Activity) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureNetGainsTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>40502 - Disclosure - Investment (Unrealized Gain (Loss) on Investments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentUnrealizedGainLossOnInvestmentsDetails</Role>
      <ShortName>Investment (Unrealized Gain (Loss) on Investments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>40503 - Disclosure - Investment (Proceeds from Sales and Realized Gains and Losses) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentProceedsFromSalesAndRealizedGainsAndLossesDetails</Role>
      <ShortName>Investment (Proceeds from Sales and Realized Gains and Losses) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>40504 - Disclosure - Investment (Gross Unrealized Losses and Fair Values of Securities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentGrossUnrealizedLossesAndFairValuesOfSecuritiesDetails</Role>
      <ShortName>Investment (Gross Unrealized Losses and Fair Values of Securities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>40505 - Disclosure - Investment (Non-Cash OTTI Credit Losses Recognized in Earnings) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentNonCashOttiCreditLossesRecognizedInEarningsDetails</Role>
      <ShortName>Investment (Non-Cash OTTI Credit Losses Recognized in Earnings) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>40506 - Disclosure - Investment (Amortized Cost and Fair Values Classified by Contractual Maturity Date) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentAmortizedCostAndFairValuesClassifiedByContractualMaturityDateDetails</Role>
      <ShortName>Investment (Amortized Cost and Fair Values Classified by Contractual Maturity Date) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>40601 - Disclosure - Loans And Related Allowances For Loan Losses (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesNarrativeDetails</Role>
      <ShortName>Loans And Related Allowances For Loan Losses (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>40602 - Disclosure - Loans And Related Allowances For Loan Losses (Loan Portfolio Segments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesLoanPortfolioSegmentsDetails</Role>
      <ShortName>Loans And Related Allowances For Loan Losses (Loan Portfolio Segments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>40604 - Disclosure - Loans And Related Allowances For Loan Losses (Classes of the Loan Portfolio Summarized by the Aggregate Risk Rating) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesClassesOfLoanPortfolioSummarizedByAggregateRiskRatingDetails</Role>
      <ShortName>Loans And Related Allowances For Loan Losses (Classes of the Loan Portfolio Summarized by the Aggregate Risk Rating) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>40605 - Disclosure - Loans And Related Allowances For Loan Losses (Loan Portfolio Summarized by the Past Due Status) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesLoanPortfolioSummarizedByPastDueStatusDetails</Role>
      <ShortName>Loans And Related Allowances For Loan Losses (Loan Portfolio Summarized by the Past Due Status) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>40606 - Disclosure - Loans And Related Allowances For Loan Losses (Primary Segments of the Allowance for Loan Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesPrimarySegmentsOfAllowanceForLoanLossDetails</Role>
      <ShortName>Loans And Related Allowances For Loan Losses (Primary Segments of the Allowance for Loan Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>40607 - Disclosure - Loans And Related Allowances For Loan Losses (Impaired Loans and Related Interest Income by Loan Portfolio Class) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesImpairedLoansAndRelatedInterestIncomeByLoanPortfolioClassDetails</Role>
      <ShortName>Loans And Related Allowances For Loan Losses (Impaired Loans and Related Interest Income by Loan Portfolio Class) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>40608 - Disclosure - Loans And Related Allowances For Loan Losses (Allowance for Loan Losses Summarized by Loan Portfolio Segments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesAllowanceForLoanLossesSummarizedByLoanPortfolioSegmentsDetails</Role>
      <ShortName>Loans And Related Allowances For Loan Losses (Allowance for Loan Losses Summarized by Loan Portfolio Segments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>40609 - Disclosure - Loans And Related Allowances For Loan Losses (Average of Impaired Loans and Related Interest Income by Loan Portfolio Class) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesAverageOfImpairedLoansAndRelatedInterestIncomeByLoanPortfolioClassDetails</Role>
      <ShortName>Loans And Related Allowances For Loan Losses (Average of Impaired Loans and Related Interest Income by Loan Portfolio Class) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>40610 - Disclosure - Loans And Related Allowances For Loan Losses (Modification of Troubled Debt Restructuring by Class) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesModificationOfTroubledDebtRestructuringByClassDetails</Role>
      <ShortName>Loans And Related Allowances For Loan Losses (Modification of Troubled Debt Restructuring by Class) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>40701 - Disclosure - Other Real Estate Owned, Net (Schedule of Real Estate Properties) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureOtherRealEstateOwnedNetScheduleOfRealEstatePropertiesDetails</Role>
      <ShortName>Other Real Estate Owned, Net (Schedule of Real Estate Properties) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureOtherRealEstateOwnedNetTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>40702 - Disclosure - Other Real Estate Owned, Net (Schedule of Activity in OREO Valuation Allowance) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureOtherRealEstateOwnedNetScheduleOfActivityInOreoValuationAllowanceDetails</Role>
      <ShortName>Other Real Estate Owned, Net (Schedule of Activity in OREO Valuation Allowance) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureOtherRealEstateOwnedNetTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>40703 - Disclosure - Other Real Estate Owned, Net (Schedule of Components of OREO Expenses, Net) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureOtherRealEstateOwnedNetScheduleOfComponentsOfOreoExpensesNetDetails</Role>
      <ShortName>Other Real Estate Owned, Net (Schedule of Components of OREO Expenses, Net) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureOtherRealEstateOwnedNetTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>40801 - Disclosure - Fair Value of Financial Instruments (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsNarrativeDetails</Role>
      <ShortName>Fair Value of Financial Instruments (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>40802 - Disclosure - Fair Value of Financial Instruments (Fair Value Measurements, Recurring and Nonrecurring, Valuation Techniques) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsFairValueMeasurementsRecurringAndNonrecurringValuationTechniquesDetails</Role>
      <ShortName>Fair Value of Financial Instruments (Fair Value Measurements, Recurring and Nonrecurring, Valuation Techniques) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>40803 - Disclosure - Fair Value of Financial Instruments (Assets And Liabilities Measured At Fair Value On A Recurring And Nonrecurring Basis) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringAndNonrecurringBasisDetails</Role>
      <ShortName>Fair Value of Financial Instruments (Assets And Liabilities Measured At Fair Value On A Recurring And Nonrecurring Basis) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>40804 - Disclosure - Fair Value of Financial Instruments (Reconciliation Of Fair Valued Assets Measured On A Recurring Basis) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsReconciliationOfFairValuedAssetsMeasuredOnRecurringBasisDetails</Role>
      <ShortName>Fair Value of Financial Instruments (Reconciliation Of Fair Valued Assets Measured On A Recurring Basis) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>40805 - Disclosure - Fair Value of Financial Instruments (Fair Value By Balance Sheet Grouping) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsFairValueByBalanceSheetGroupingDetails</Role>
      <ShortName>Fair Value of Financial Instruments (Fair Value By Balance Sheet Grouping) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureFairValueOfFinancialInstrumentsTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>40901 - Disclosure - Accumulated Other Comprehensive Loss (Schedule of Accumulated Other Comprehensive Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLossScheduleOfAccumulatedOtherComprehensiveLossDetails</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Schedule of Accumulated Other Comprehensive Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLossTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>40902 - Disclosure - Accumulated Other Comprehensive Loss (Components of Comprehensive Income) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLossComponentsOfComprehensiveIncomeDetails</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Components of Comprehensive Income) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLossTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>40903 - Disclosure - Accumulated Other Comprehensive Loss (Reclassification out of Accumulated Other Comprehensive Income) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLossReclassificationOutOfAccumulatedOtherComprehensiveIncomeDetails</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Reclassification out of Accumulated Other Comprehensive Income) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureAccumulatedOtherComprehensiveLossTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>41001 - Disclosure - Borrowed Funds (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureBorrowedFundsNarrativeDetails</Role>
      <ShortName>Borrowed Funds (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureBorrowedFundsTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>41002 - Disclosure - Borrowed Funds (Summary of Short Term Borrowings) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureBorrowedFundsSummaryOfShortTermBorrowingsDetails</Role>
      <ShortName>Borrowed Funds (Summary of Short Term Borrowings) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureBorrowedFundsTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>41101 - Disclosure - Employee Benefit Plans (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEmployeeBenefitPlansNarrativeDetails</Role>
      <ShortName>Employee Benefit Plans (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureEmployeeBenefitPlansTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>41103 - Disclosure - Employee Benefit Plans (Components of Net Periodic Pension Plan Cost) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEmployeeBenefitPlansComponentsOfNetPeriodicPensionPlanCostDetails</Role>
      <ShortName>Employee Benefit Plans (Components of Net Periodic Pension Plan Cost) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureEmployeeBenefitPlansTables</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>41201 - Disclosure - Equity Compensation Plan Information (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEquityCompensationPlanInformationNarrativeDetails</Role>
      <ShortName>Equity Compensation Plan Information (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureEquityCompensationPlanInformation</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>41301 - Disclosure - Derivative Financial Instruments (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureDerivativeFinancialInstrumentsNarrativeDetails</Role>
      <ShortName>Derivative Financial Instruments (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureDerivativeFinancialInstrumentsTables</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>41302 - Disclosure - Derivative Financial Instruments (Impact Of Derivative Financial Instruments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureDerivativeFinancialInstrumentsImpactOfDerivativeFinancialInstrumentsDetails</Role>
      <ShortName>Derivative Financial Instruments (Impact Of Derivative Financial Instruments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureDerivativeFinancialInstrumentsTables</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>41401 - Disclosure - Assets and Liabilities Subject to Enforceable Master Netting Arrangements (Schedule of Liabilities Subject to an Enforceable Master Netting Arrangement or Repurchase Agreements) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureAssetsAndLiabilitiesSubjectToEnforceableMasterNettingArrangementsScheduleOfLiabilitiesSubjectToEnforceableMasterNettingArrangementOrRepurchaseAgreementsDetails</Role>
      <ShortName>Assets and Liabilities Subject to Enforceable Master Netting Arrangements (Schedule of Liabilities Subject to an Enforceable Master Netting Arrangement or Repurchase Agreements) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureAssetsAndLiabilitiesSubjectToEnforceableMasterNettingArrangementsTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="func-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>41501 - Disclosure - Goodwill (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureGoodwillNarrativeDetails</Role>
      <ShortName>Goodwill (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureGoodwill</ParentRole>
      <Position>77</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>func-20200331.xml</File>
    <File>func-20200331.xsd</File>
    <File>func-20200331_cal.xml</File>
    <File>func-20200331_def.xml</File>
    <File>func-20200331_lab.xml</File>
    <File>func-20200331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/us-gaap/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2019-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
