<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>578</ContextCount>
  <ElementCount>377</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>96</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="func-20220630x10q.htm">
      <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-20220630x10q.htm">
      <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-20220630x10q.htm">
      <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-20220630x10q.htm">
      <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-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - Consolidated Statements of Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/StatementConsolidatedStatementsOfComprehensiveLoss</Role>
      <ShortName>Consolidated Statements of Comprehensive Loss</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <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-20220630x10q.htm">
      <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-20220630x10q.htm">
      <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-20220630x10q.htm">
      <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-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10201 - 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>10</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10301 - Disclosure - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestments</Role>
      <ShortName>Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10401 - 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>12</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10501 - 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>13</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10601 - 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>14</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>10701 - 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>15</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>10801 - 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>16</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>10901 - 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>17</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>11001 - 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>18</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>11101 - Disclosure - Revenue Recognition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureRevenueRecognition</Role>
      <ShortName>Revenue Recognition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>11201 - Disclosure - Regulatory Capital Requirements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureRegulatoryCapitalRequirements</Role>
      <ShortName>Regulatory Capital Requirements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>11301 - Disclosure - Borrowed Funds</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureBorrowedFunds</Role>
      <ShortName>Borrowed Funds</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>11401 - 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>22</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.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>23</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>30203 - 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>24</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>30303 - Disclosure - Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentsTables</Role>
      <ShortName>Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestments</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>30403 - 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>26</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>30503 - 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>27</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>30603 - 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>28</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>30703 - 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>29</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>30803 - 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>30</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>31003 - 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>31</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>31103 - Disclosure - Revenue Recognition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureRevenueRecognitionTables</Role>
      <ShortName>Revenue Recognition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureRevenueRecognition</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>31203 - Disclosure - Regulatory Capital Requirements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureRegulatoryCapitalRequirementsTables</Role>
      <ShortName>Regulatory Capital Requirements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureRegulatoryCapitalRequirements</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>31403 - 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>34</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>40201 - Disclosure - Earnings Per Common Share (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonShareNarrativeDetails</Role>
      <ShortName>Earnings Per Common Share (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureEarningsPerCommonShareTables</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>40202 - 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>36</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>40301 - Disclosure - Investments (Unrealized Gain (Loss) on Investments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentsUnrealizedGainLossOnInvestmentsDetails</Role>
      <ShortName>Investments (Unrealized Gain (Loss) on Investments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentsTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>40302 - Disclosure - Investments (Gross Unrealized Losses and Fair Values of Securities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentsGrossUnrealizedLossesAndFairValuesOfSecuritiesDetails</Role>
      <ShortName>Investments (Gross Unrealized Losses and Fair Values of Securities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentsTables</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>40303 - Disclosure - Investments (Non-Cash OTTI Credit Losses Recognized in Earnings) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentsNonCashOttiCreditLossesRecognizedInEarningsDetails</Role>
      <ShortName>Investments (Non-Cash OTTI Credit Losses Recognized in Earnings) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentsTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>40304 - Disclosure - Investments (Amortized Cost and Fair Values Classified by Contractual Maturity Date) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentsAmortizedCostAndFairValuesClassifiedByContractualMaturityDateDetails</Role>
      <ShortName>Investments (Amortized Cost and Fair Values Classified by Contractual Maturity Date) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentsTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>40305 - Disclosure - Investments (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureInvestmentsNarrativeDetails</Role>
      <ShortName>Investments (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureInvestmentsTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>40401 - 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>42</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>40402 - 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>43</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>40403 - 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>44</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>40404 - 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>45</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>40405 - 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>46</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>40406 - 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>47</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>40407 - 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>48</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>40408 - 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>49</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>40409 - Disclosure - Loans And Related Allowances For Loan Losses (TDRs) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesTdrsDetails</Role>
      <ShortName>Loans And Related Allowances For Loan Losses (TDRs) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureLoansAndRelatedAllowancesForLoanLossesTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>40501 - Disclosure - Other Real Estate Owned, Net (Components of OREO, Net of Related Valuation Allowance) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureOtherRealEstateOwnedNetComponentsOfOreoNetOfRelatedValuationAllowanceDetails</Role>
      <ShortName>Other Real Estate Owned, Net (Components of OREO, Net of Related Valuation Allowance) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureOtherRealEstateOwnedNetTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>40502 - 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>52</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>40503 - 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>53</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>40601 - 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>54</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>40602 - 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>55</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>40603 - 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>56</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>40604 - 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>57</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>40605 - 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>58</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>40701 - 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>59</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>40702 - 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>60</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>40703 - 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>61</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>40801 - 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>62</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>40802 - 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>63</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>40901 - 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>64</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>41001 - 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>65</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>41002 - 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>66</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>41101 - Disclosure - Revenue Recognition (Schedule of Noninterest Income Segregated by Revenue Streams In-Scope and Out-of-Scope of Topic 606) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureRevenueRecognitionScheduleOfNoninterestIncomeSegregatedByRevenueStreamsInScopeAndOutOfScopeOfTopic606Details</Role>
      <ShortName>Revenue Recognition (Schedule of Noninterest Income Segregated by Revenue Streams In-Scope and Out-of-Scope of Topic 606) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureRevenueRecognitionTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>41201 - Disclosure - Regulatory Capital Requirements (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureRegulatoryCapitalRequirementsNarrativeDetails</Role>
      <ShortName>Regulatory Capital Requirements (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureRegulatoryCapitalRequirementsTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>41202 - Disclosure - Regulatory Capital Requirements (Schedule of Compliance with Regulatory Capital Requirements under Banking Regulations) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.mybankfirstunited.com/role/DisclosureRegulatoryCapitalRequirementsScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsDetails</Role>
      <ShortName>Regulatory Capital Requirements (Schedule of Compliance with Regulatory Capital Requirements under Banking Regulations) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.mybankfirstunited.com/role/DisclosureRegulatoryCapitalRequirementsTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>41401 - 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>70</Position>
    </Report>
    <Report instance="func-20220630x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>41402 - 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>71</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" original="func-20220630x10q.htm">func-20220630x10q.htm</File>
    <File>func-20220630.xsd</File>
    <File>func-20220630_cal.xml</File>
    <File>func-20220630_def.xml</File>
    <File>func-20220630_lab.xml</File>
    <File>func-20220630_pre.xml</File>
    <File>func-20220630xex31d1.htm</File>
    <File>func-20220630xex31d2.htm</File>
    <File>func-20220630xex32d1.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1899">http://fasb.org/us-gaap/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2021q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
