<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:fmr="http://www.fidelity.com/20260829"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:oef="http://xbrl.sec.gov/oef/2025"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="fmr-20260829.xsd" xlink:type="simple"/>
    <context id="Trust">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
        </entity>
        <period>
            <startDate>2026-08-29</startDate>
            <endDate>2026-08-29</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_contentCd_NCX-PRO">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-29</startDate>
            <endDate>2026-08-29</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_Cid_C000020486">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-29</startDate>
            <endDate>2026-08-29</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_contentCd_NCX-PRO_RiskMember_InterestRateChangesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">fmr:InterestRateChangesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-29</startDate>
            <endDate>2026-08-29</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_contentCd_NCX-PRO_RiskMember_IncomeRiskMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">fmr:IncomeRiskMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-29</startDate>
            <endDate>2026-08-29</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_contentCd_NCX-PRO_RiskMember_IssuerSpecificChangesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">fmr:IssuerSpecificChangesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-29</startDate>
            <endDate>2026-08-29</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_contentCd_NCX-PRO_RiskMember_USGovernmentObligationsRiskMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">fmr:USGovernmentObligationsRiskMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-29</startDate>
            <endDate>2026-08-29</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_contentCd_NCX-PRO_RiskMember_RiskLoseMoneyMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskLoseMoneyMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-29</startDate>
            <endDate>2026-08-29</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_contentCd_NCX-PRO_RiskMember_RiskMoneyMarketFundMayNotPreserveDollarMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskMoneyMarketFundMayNotPreserveDollarMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-29</startDate>
            <endDate>2026-08-29</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_contentCd_NCX-PRO_RiskMember_RiskNotInsuredDepositoryInstitutionMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskNotInsuredDepositoryInstitutionMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-29</startDate>
            <endDate>2026-08-29</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_contentCd_NCX-PRO_RiskMember_RiskMoneyMarketFundSponsorMayNotProvideSupportMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:RiskAxis">oef:RiskMoneyMarketFundSponsorMayNotProvideSupportMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-29</startDate>
            <endDate>2026-08-29</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_Cid_C000020486_2016">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-01-01</startDate>
            <endDate>2016-12-31</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_Cid_C000020486_2017">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-01-01</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_Cid_C000020486_2018">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_Cid_C000020486_2019">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-12-31</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_Cid_C000020486_2020">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_Cid_C000020486_2021">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-01-01</startDate>
            <endDate>2021-12-31</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_Cid_C000020486_2022">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2022-01-01</startDate>
            <endDate>2022-12-31</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_Cid_C000020486_2023">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2023-01-01</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_Cid_C000020486_2024">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_Cid_C000020486_2025">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_Cid_C000020486_ReturnBeforeTaxes_01">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-08-29</startDate>
            <endDate>2026-08-29</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_Cid_C000020486_ReturnBeforeTaxes_05">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-08-29</startDate>
            <endDate>2026-08-29</endDate>
        </period>
    </context>
    <context id="Pid_S000007506_Cid_C000020486_ReturnBeforeTaxes_10">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000702149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:NCCMTGovernmentPortfolio-PROStandAloneMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007506Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="oef:ClassAxis">fmr:C000020486Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2016-08-29</startDate>
            <endDate>2026-08-29</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <dei:DocumentType contextRef="Trust" id="ixv-5251">485BPOS</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="Trust" id="ixv-5252">2026-08-29</dei:DocumentPeriodEndDate>
    <dei:AmendmentFlag contextRef="Trust" id="ixv-5253">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="Trust" id="ixv-5254">0000702149</dei:EntityCentralIndexKey>
    <dei:EntityInvCompanyType contextRef="Trust" id="ixv-5255">N-1A</dei:EntityInvCompanyType>
    <dei:EntityRegistrantName contextRef="Trust" id="ixv-5256">The North Carolina Capital Management Trust</dei:EntityRegistrantName>
    <oef:RiskReturnHeading contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-251">
     
       
     Fund Summary 
       
     Fund: 
     Government Portfolio 
    
   </oef:RiskReturnHeading>
    <oef:ObjectiveHeading contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-260">
     
       
     Investment Objective 
       
    
   </oef:ObjectiveHeading>
    <oef:ObjectivePrimaryTextBlock contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-265">
     
       
     Government Portfolio seeks to obtain as high a level of current income as is consistent with the preservation of capital and liquidity and to maintain a constant net asset value of $1.00 per share. 
       
    
   </oef:ObjectivePrimaryTextBlock>
    <oef:ExpenseHeading contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-270">
     
       
     Fee Table 
       
    
   </oef:ExpenseHeading>
    <oef:ExpenseNarrativeTextBlock contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-276">
     
       
     The following table describes the fees and expenses that may be incurred when you buy, hold, and sell shares of the fund. You may pay other fees, such as fees to financial intermediaries, which are not reflected in the tables and examples below. 
    
   </oef:ExpenseNarrativeTextBlock>
    <oef:ShareholderFeesCaption contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-287">
     
       
     Shareholder fees 
       
    
   </oef:ShareholderFeesCaption>
    <oef:ShareholderFeeOther
      contextRef="Pid_S000007506_contentCd_NCX-PRO"
      decimals="0"
      id="ixv-5502"
      unitRef="usd">0</oef:ShareholderFeeOther>
    <oef:OperatingExpensesCaption contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-302">
     
       
     Annual Operating Expenses 
       
    
   </oef:OperatingExpensesCaption>
    <oef:ManagementFeesOverAssets
      contextRef="Pid_S000007506_Cid_C000020486"
      decimals="6"
      id="ixv-5503"
      unitRef="pure">0.00138</oef:ManagementFeesOverAssets>
    <oef:DistributionAndService12b1FeesOverAssets
      contextRef="Pid_S000007506_Cid_C000020486"
      decimals="6"
      id="ixv-5504"
      unitRef="pure">0.00065</oef:DistributionAndService12b1FeesOverAssets>
    <oef:OtherExpensesOverAssets
      contextRef="Pid_S000007506_Cid_C000020486"
      decimals="6"
      id="ixv-5505"
      unitRef="pure">0.00002</oef:OtherExpensesOverAssets>
    <oef:ExpensesOverAssets
      contextRef="Pid_S000007506_Cid_C000020486"
      decimals="6"
      id="ixv-5506"
      unitRef="pure">0.00205</oef:ExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssets
      contextRef="Pid_S000007506_Cid_C000020486"
      decimals="6"
      id="footnoteS000007506NCX-PROAOE_AC000020486_FW"
      unitRef="pure">-0.00065</oef:FeeWaiverOrReimbursementOverAssets>
    <oef:NetExpensesOverAssets
      contextRef="Pid_S000007506_Cid_C000020486"
      decimals="6"
      id="ixv-5508"
      unitRef="pure">0.00140</oef:NetExpensesOverAssets>
    <oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-377">2029-10-31</oef:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <oef:ExpenseExampleNarrativeTextBlock contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-386">
     
       
     This  
     example 
       
     helps compare the cost of investing in the fund with the cost of investing in other funds. 
       
     Let's say, hypothetically, that the annual return for shares of the fund is 5% and that the fees and the annual operating expenses for shares of the fund are exactly as described in the fee table. This example illustrates the effect of fees and expenses, but is not meant to suggest actual or expected fees and expenses or returns, all of which may vary. For every $10,000 you invested, here's how much you would pay in total expenses if you sell all of your shares at the end of each time period indicated: 
    
   </oef:ExpenseExampleNarrativeTextBlock>
    <oef:ExpenseExampleYear01
      contextRef="Pid_S000007506_Cid_C000020486"
      decimals="0"
      id="ixv-5509"
      unitRef="usd">14</oef:ExpenseExampleYear01>
    <oef:ExpenseExampleYear03
      contextRef="Pid_S000007506_Cid_C000020486"
      decimals="0"
      id="ixv-5510"
      unitRef="usd">45</oef:ExpenseExampleYear03>
    <oef:ExpenseExampleYear05
      contextRef="Pid_S000007506_Cid_C000020486"
      decimals="0"
      id="ixv-5511"
      unitRef="usd">92</oef:ExpenseExampleYear05>
    <oef:ExpenseExampleYear10
      contextRef="Pid_S000007506_Cid_C000020486"
      decimals="0"
      id="ixv-5512"
      unitRef="usd">238</oef:ExpenseExampleYear10>
    <oef:StrategyHeading contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-443">
     
       
     Principal Investment Strategies 
       
    
   </oef:StrategyHeading>
    <oef:StrategyNarrativeTextBlock contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-448">
     
       
      
       
        Normally investing at least 99.5% of total assets in cash, U.S. Government securities and/or repurchase agreements that are collateralized fully (i.e., collateralized by cash or government securities), as permitted by North Carolina General Statute 159-30, as amended (the Statute) and 20 North Carolina Administrative Code 3.0712, as amended (the Code). 
      Investing in U.S. Government securities issued by entities that are chartered or sponsored by Congress but whose securities are neither issued nor guaranteed by the U.S. Treasury. 
      Investing in compliance with industry-standard regulatory requirements for money market funds for the quality, maturity, liquidity, and diversification of investments. 
      Investing only in securities that are authorized for investment by units of local governments pursuant to North Carolina General Statute 159-30(c)(8) and 20 North Carolina Administrative Code 3.0712, as amended. 
      
     In addition, the fund normally invests at least 80% of its assets in U.S. Government securities and repurchase agreements for those securities. 
     U.S. Government securities are high-quality securities issued or guaranteed by the U.S. Treasury or by an agency or instrumentality of the U.S. Government. U.S. Government securities may be backed by the full faith and credit of the U.S. Treasury, the right to borrow from the U.S. Treasury, or the agency or instrumentality issuing or guaranteeing the security. Certain issuers of U.S. Government securities, including Fannie Mae, Freddie Mac, and the Federal Home Loan Banks, are sponsored or chartered by Congress but their securities are neither issued nor guaranteed by the U.S. Treasury. The issuer usually pays a fixed, variable, or floating rate of interest, and must repay the amount borrowed, usually at the maturity of the security. 
     A repurchase agreement is an agreement to buy a security at one price and a simultaneous agreement to sell it back at an agreed-upon price. A repurchase agreement entered into by the fund may be collateralized by U.S. Government securities or cash. 
    
   </oef:StrategyNarrativeTextBlock>
    <oef:RiskTextBlock
      contextRef="Pid_S000007506_contentCd_NCX-PRO_RiskMember_InterestRateChangesMember"
      id="ixv-471">
     
       
      
      Interest Rate Changes. 
      
     Interest rate increases can cause the price of a money market security to decrease. 
    
   </oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Pid_S000007506_contentCd_NCX-PRO_RiskMember_IncomeRiskMember"
      id="ixv-480">
     
       
      
      Income Risk. 
      
     A low or negative interest rate environment can adversely affect the fund's yield. 
    
   </oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Pid_S000007506_contentCd_NCX-PRO_RiskMember_IssuerSpecificChangesMember"
      id="ixv-489">
     
       
      
      Issuer-Specific Changes. 
      
     A decline in the credit quality of an issuer or a provider of credit support (such as guarantees) or a maturity-shortening structure (such as demand and put features) for a security can cause the price of a money market security to decrease. 
    
   </oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Pid_S000007506_contentCd_NCX-PRO_RiskMember_USGovernmentObligationsRiskMember"
      id="ixv-498">
     
       
      
       
        U.S. Government Obligations Risk. 
      
     Certain securities in which the fund may invest, including securities issued by certain U.S. Government agencies and U.S. Government sponsored enterprises, are not guaranteed by the U.S. Government or supported by the full faith and credit of the United States. 
    
   </oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Pid_S000007506_contentCd_NCX-PRO_RiskMember_RiskLoseMoneyMember"
      id="ixv-509">
     
       
     You could lose money by investing in the fund 
       
     . 
       
    
   </oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Pid_S000007506_contentCd_NCX-PRO_RiskMember_RiskMoneyMarketFundMayNotPreserveDollarMember"
      id="ixv-519">
     
       
     Although the fund seeks to preserve the value of your investment at $1.00 per share, it cannot guarantee it will do so 
       
     . 
       
    
   </oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Pid_S000007506_contentCd_NCX-PRO_RiskMember_RiskNotInsuredDepositoryInstitutionMember"
      id="ixv-529">
     
       
     An investment in the fund is not a bank account and is not insured or guaranteed by the Federal Deposit Insurance Corporation or any other government agency 
       
     . 
       
    
   </oef:RiskTextBlock>
    <oef:RiskTextBlock
      contextRef="Pid_S000007506_contentCd_NCX-PRO_RiskMember_RiskMoneyMarketFundSponsorMayNotProvideSupportMember"
      id="ixv-537">
     
       
     &#160; 
       
     Fidelity 
       
     &#160; 
       
     Investments and its affiliates, the fund's sponsor, is not required to reimburse the fund for losses, and you should not expect that the sponsor will provide financial support to the fund at any time, including during periods of market stress. 
       
    
   </oef:RiskTextBlock>
    <oef:BarChartAndPerformanceTableHeading contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-550">
     
       
     Performance 
       
    
   </oef:BarChartAndPerformanceTableHeading>
    <oef:PerformanceNarrativeTextBlock contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-555">
     
       
      
       The following information is intended to help you understand the risks of investing in the fund. 
      
        
      The information illustrates the changes in the performance of the fund's shares from year to year. 
        
      
       
     &#160; 
       
      
        
      Past performance is not an indication of future performance. 
        
      
    
   </oef:PerformanceNarrativeTextBlock>
    <oef:PerformanceInformationIllustratesVariabilityOfReturns contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-561"> 
        
      The information illustrates the changes in the performance of the fund's shares from year to year. 
        
     </oef:PerformanceInformationIllustratesVariabilityOfReturns>
    <oef:PerformancePastDoesNotIndicateFuture contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-568"> 
        
      Past performance is not an indication of future performance. 
        
     </oef:PerformancePastDoesNotIndicateFuture>
    <oef:BarChartHeading contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-572">
     
       
     Year-by-Year Returns  
    
   </oef:BarChartHeading>
    <oef:AnnlRtrPct
      contextRef="Pid_S000007506_Cid_C000020486_2016"
      decimals="INF"
      id="ixv-5513"
      unitRef="pure">0.0032</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Pid_S000007506_Cid_C000020486_2017"
      decimals="INF"
      id="ixv-5514"
      unitRef="pure">0.0074</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Pid_S000007506_Cid_C000020486_2018"
      decimals="INF"
      id="ixv-5515"
      unitRef="pure">0.0172</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Pid_S000007506_Cid_C000020486_2019"
      decimals="INF"
      id="ixv-5516"
      unitRef="pure">0.0208</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Pid_S000007506_Cid_C000020486_2020"
      decimals="INF"
      id="ixv-5517"
      unitRef="pure">0.0039</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Pid_S000007506_Cid_C000020486_2021"
      decimals="INF"
      id="ixv-5518"
      unitRef="pure">0.0001</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Pid_S000007506_Cid_C000020486_2022"
      decimals="INF"
      id="ixv-5519"
      unitRef="pure">0.0155</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Pid_S000007506_Cid_C000020486_2023"
      decimals="INF"
      id="ixv-5520"
      unitRef="pure">0.0505</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Pid_S000007506_Cid_C000020486_2024"
      decimals="INF"
      id="ixv-5521"
      unitRef="pure">0.0519</oef:AnnlRtrPct>
    <oef:AnnlRtrPct
      contextRef="Pid_S000007506_Cid_C000020486_2025"
      decimals="INF"
      id="ixv-5522"
      unitRef="pure">0.0422</oef:AnnlRtrPct>
    <oef:HighestQuarterlyReturnLabel contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-681">
          &#160;&#160;&#160;Highest Quarter Return
        </oef:HighestQuarterlyReturnLabel>
    <oef:BarChartHighestQuarterlyReturn
      contextRef="Pid_S000007506_contentCd_NCX-PRO"
      decimals="4"
      id="ixv-5523"
      unitRef="pure">0.0133</oef:BarChartHighestQuarterlyReturn>
    <oef:BarChartHighestQuarterlyReturnDate contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-691">2023-12-31</oef:BarChartHighestQuarterlyReturnDate>
    <oef:LowestQuarterlyReturnLabel contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-696">
          &#160;&#160;&#160;Lowest Quarter Return
        </oef:LowestQuarterlyReturnLabel>
    <oef:BarChartLowestQuarterlyReturn
      contextRef="Pid_S000007506_contentCd_NCX-PRO"
      decimals="4"
      id="ixv-5524"
      unitRef="pure">0.0000</oef:BarChartLowestQuarterlyReturn>
    <oef:BarChartLowestQuarterlyReturnDate contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-706">2021-03-31</oef:BarChartLowestQuarterlyReturnDate>
    <oef:YearToDateReturnLabel contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-711">
          &#160;&#160;&#160;Year-to-Date Return
        </oef:YearToDateReturnLabel>
    <oef:BarChartYearToDateReturn
      contextRef="Pid_S000007506_contentCd_NCX-PRO"
      decimals="4"
      id="ixv-5525"
      unitRef="pure">0.0178</oef:BarChartYearToDateReturn>
    <oef:BarChartYearToDateReturnDate contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-721">2026-06-30</oef:BarChartYearToDateReturnDate>
    <oef:PerformanceTableHeading contextRef="Pid_S000007506_contentCd_NCX-PRO" id="ixv-726">
     
       
     Average Annual Returns 
       
    
   </oef:PerformanceTableHeading>
    <oef:AverageAnnualReturnLabel
      contextRef="Pid_S000007506_Cid_C000020486_ReturnBeforeTaxes_01"
      id="ixv-759">
         Government Portfolio
        </oef:AverageAnnualReturnLabel>
    <oef:AvgAnnlRtrPct
      contextRef="Pid_S000007506_Cid_C000020486_ReturnBeforeTaxes_01"
      decimals="4"
      id="ixv-5526"
      unitRef="pure">0.0422</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Pid_S000007506_Cid_C000020486_ReturnBeforeTaxes_05"
      decimals="4"
      id="ixv-5527"
      unitRef="pure">0.0318</oef:AvgAnnlRtrPct>
    <oef:AvgAnnlRtrPct
      contextRef="Pid_S000007506_Cid_C000020486_ReturnBeforeTaxes_10"
      decimals="4"
      id="ixv-5528"
      unitRef="pure">0.0211</oef:AvgAnnlRtrPct>
    <link:footnoteLink
      xlink:role="http://www.xbrl.org/2003/role/link"
      xlink:type="extended">
        <link:loc
          xlink:href="#footnoteS000007506NCX-PROAOE_AC000020486_FW"
          xlink:label="footnoteS000007506NCX-PROAOE_AC000020486_FW"
          xlink:type="locator"/>
        <link:footnote id="footnoteS000007506NCX-PROAOE_A" xlink:label="footnoteS000007506NCX-PROAOE_A" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:div style="padding:2px"><xhtml:span> </xhtml:span><xhtml:span style="font-family:Arial; font-size:4.67pt; vertical-align:super">A</xhtml:span><xhtml:span> </xhtml:span><xhtml:span style="font-family:Arial; font-size:8.5pt; font-style:italic">Fidelity Management &amp; Research Company LLC (FMR) has contractually agreed to reimburse the fund to the extent that total operating expenses (excluding interest, certain taxes, fees and expenses of the Independent Trustees, extraordinary expenses, and acquired fund fees and expenses (including fees and expenses associated with a wholly owned subsidiary), if any, as well as non-operating expenses such as brokerage commissions and fees and expenses associated with the fund's securities lending program, if applicable), as a percentage of its average net assets, exceed 0.14% (the Expense Cap). If at any time during the current fiscal year expenses for the fund fall below the Expense Cap, FMR reserves the right to recoup through the end of the fiscal year any expenses that were reimbursed during the current fiscal year up to, but not in excess of, the Expense Cap. This arrangement will remain in effect through </xhtml:span><xhtml:span> </xhtml:span><xhtml:span style="font-family:Arial; font-size:8.5pt; font-style:italic">October 31, </xhtml:span><xhtml:span class="delClass" style="color:#ff0000; display:none;"> 
       </xhtml:span><xhtml:span
      class="redlineClass"
      style="font-family:Arial; font-size:8.5pt; font-style:italic; ">2029</xhtml:span><xhtml:span> </xhtml:span><xhtml:span> </xhtml:span><xhtml:span style="font-family:Arial; font-size:8.5pt; font-style:italic">. FMR may not terminate this arrangement before the expiration date without the approval of the Board of Trustees and may extend it in its discretion after that date.</xhtml:span><xhtml:span> </xhtml:span></xhtml:div></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="footnoteS000007506NCX-PROAOE_AC000020486_FW"
          xlink:to="footnoteS000007506NCX-PROAOE_A"
          xlink:type="arc"/>
    </link:footnoteLink>
</xbrl>
