XML 34 R3.htm IDEA: XBRL DOCUMENT v3.21.2
Label Element Value
Buffalo Discovery Fund  
Prospectus [Line Items] rr_ProspectusLineItems  
Risk/Return [Heading] rr_RiskReturnHeading BUFFALO DISCOVERY FUND
Objective [Heading] rr_ObjectiveHeading INVESTMENT OBJECTIVE
Objective, Primary [Text Block] rr_ObjectivePrimaryTextBlock The investment objective of the Buffalo Discovery Fund (“Discovery Fund” or the “Fund”) is long-term growth of capital.
Expense [Heading] rr_ExpenseHeading FEES AND EXPENSES OF THE FUND
Expense Narrative [Text Block] rr_ExpenseNarrativeTextBlock This table describes the fees and expenses that you may pay if you buy, hold and sell shares of the Fund. You may pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not reflected in the tables and example below.
Shareholder Fees Caption [Text] rr_ShareholderFeesCaption Shareholder Fees(fees paid directly from your investment)
Operating Expenses Caption [Text] rr_OperatingExpensesCaption Annual Fund Operating Expenses(expenses that you pay each year as a percentage of the value of your investment)
Portfolio Turnover [Heading] rr_PortfolioTurnoverHeading Portfolio Turnover.
Portfolio Turnover [Text Block] rr_PortfolioTurnoverTextBlock The Fund pays transaction costs, such as commissions, when it buys and sells securities (or “turns over” its portfolio). A higher portfolio turnover rate may indicate higher transaction costs and may result in higher taxes when Fund shares are held in a taxable account. These costs, which are not reflected in annual fund operating expenses or in the example, affect the Fund’s performance. During the most recent fiscal year, the Fund’s portfolio turnover rate was 84% of the average value of its portfolio.
Portfolio Turnover, Rate rr_PortfolioTurnoverRate 84.00%
Expense Example [Heading] rr_ExpenseExampleHeading Example.
Expense Example Narrative [Text Block] rr_ExpenseExampleNarrativeTextBlock This example is intended to help you compare the cost of investing in the Fund with the cost of investing in other mutual funds. The example assumes that you invest $10,000 in the Fund for the time periods indicated and then redeem all of your shares at the end of those periods. The example also assumes that your investment has a 5% return each year, and that the Fund’s operating expenses remain the same.
Expense Example by, Year, Caption [Text] rr_ExpenseExampleByYearCaption Although your actual costs may be higher or lower, based on these assumptions your costs would be:
Strategy [Heading] rr_StrategyHeading PRINCIPAL INVESTMENT STRATEGIES
Strategy Narrative [Text Block] rr_StrategyNarrativeTextBlock The Discovery Fund principally invests in equity securities, consisting of common stock, preferred stock, convertible securities, warrants and rights of companies whose securities may increase in value due to the development, advancement or commercial application of innovative strategies. Companies engaged in innovative strategies are those who, in the opinion of Kornitzer Capital Management, Inc., the Fund’s investment advisor (the “Advisor” or “KCM”), are engaged in the pursuit and practical application of knowledge to discover, develop and commercialize products, services or intellectual property. The types of companies in which the Fund may invest range across all sectors and all market capitalizations. The Fund may have significant investments in the information technology sector. In addition to the Fund’s investments in domestic securities, the Fund may invest up to 20% of its net assets in sponsored or unsponsored American Depositary Receipts (“ADRs”) and securities of foreign companies that are traded on U.S. stock exchanges.The Advisor seeks to identify companies for the Discovery Fund’s portfolio that are expected to benefit from innovation and experience growth based on the identification of long-term, measurable secular trends, and which, as a result, the Advisor believes may have potential revenue growth in excess of the gross domestic product growth rate. Companies are screened using in-depth, in-house research to identify those which the Advisor believes have favorable attributes, including attractive valuation, strong management, conservative debt, free cash flow, scalable business models, and competitive advantages. The Advisor may sell the Discovery Fund’s investments to secure gains, limit losses or reinvest in more promising investment opportunities.
Risk [Heading] rr_RiskHeading PRINCIPAL RISKS
Risk Narrative [Text Block] rr_RiskNarrativeTextBlock
The Discovery Fund cannot guarantee that it will achieve its investment objective. As with any mutual fund, the value of the Discovery Fund’s investments may fluctuate. If the value of the Discovery Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money. The risks associated with the Discovery Fund’s principal investment strategies are:

Market Risk; Recent Market Events – The Discovery Fund’s investments are subject to market risk, which may cause the value of the Fund to decline. Equity securities are generally subject to greater risk than fixed income securities in adverse market conditions. U.S. and international markets have experienced significant periods of volatility in recent months and years due to economic, political and global macro factors including the impact of the coronavirus (COVID-19) global pandemic, which has resulted in a public health crisis, business interruptions, growth concerns in the U.S. and overseas, rising unemployment claims, changed travel and social behaviors and reduced consumer spending. The effects of COVID-19 have led to a substantial economic downturn or recession of the U.S. and global economies, the recovery from which is uncertain and may last for an extended period of time. Uncertainties regarding interest rates, political events, rising government debt in the U.S. and trade tensions also contribute to market volatility. During those periods, the Fund may experience high levels of shareholder redemptions and may have to sell securities at times when the Fund would otherwise not do so, potentially at unfavorable prices. Certain securities may be difficult to value during such periods.

Management Risk – Management risk means that your investment in the Discovery Fund varies with the success and failure of the Advisor’s investment strategies and the Advisor’s research, analysis and determination of portfolio securities.

Equity Market Risk – Equity securities held by the Discovery Fund may experience sudden, unpredictable drops in value or long periods of decline in value due to general stock market fluctuations, increases in production costs, decisions by management or related factors.

Common Stocks. Common Stocks are susceptible to general stock market fluctuations and to volatile increases and decreases in value as market confidence in and perceptions of their issuers change. Common stock is generally subject to greater risk than preferred stocks and debt obligations because holders of common stock generally have inferior rights to receive payments from issuers in comparison with the rights of the holders of other securities, bondholders and other creditors.

Preferred Stock. Preferred stock is subject to the risk that the dividend on the stock may be changed or omitted by the issuer, and that participation in the growth of an issuer may be limited.

Convertible Securities. A convertible security is a fixed-income security (a debt instrument or a preferred stock) which may be converted at a stated price within a specified period of time into a certain quantity of the common stock of the same or a different issuer. The market value of a convertible security performs like that of a regular debt security, that is, if market interest rates rise, the value of the convertible security falls.

Warrants. Investments in warrants involve certain risks, including the possible lack of a liquid market for resale of the warrants, potential price fluctuations as a result of speculation or other factors, and failure of the price of the underlying security to reach or have reasonable prospects of reaching a level at which the warrant can be prudently exercised (in which event the warrant may expire without being exercised, resulting in a loss of the Fund’s entire investment therein).
Rights. The purchase of rights involves the risk that the Fund could lose the purchase value of a right if the right is not exercised prior to its expiration. Also, the purchase of rights involves the risk that the effective price paid for the right added to the subscription price of the related security may exceed the value of the subscribed security’s market price.

Sector Risk – Companies with similar characteristics, such as those within the same industry, may be grouped together in broad categories called sectors. To the extent the Fund invests its assets in a particular sector, the Fund’s performance may be more susceptible to any economic, business, or other developments that generally affect that sector.

Information Technology Company Risk – Information technology companies often face unusually high price volatility, both in terms of gains and losses. To the extent that the Fund makes investments in such companies, its share price is likely to be more volatile. The potential for wide variations in performance is based on special risks common to information technology companies. Information technology companies may have limited product lines, markets or financial resources. Information technology companies are affected by worldwide technological developments and their products and services may quickly become outdated. Given these risks, an investment in the Fund may be more suitable for long-term investors, who are willing to withstand the Fund’s potential for volatility.

Large-Cap Company Risk – Larger, more established companies may be unable to respond quickly to new competitive challenges and are sometimes unable to attain the high growth rates of successful, smaller companies during periods of economic expansion.

Mid-Cap Company Risk – Investing in mid-cap companies may involve greater risk than investing in large-cap companies due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than large-cap companies. In addition, mid-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Small-Cap Company Risk – Investing in small-cap companies may involve greater risk than investing in large- or mid-cap companies due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than mid- and large-cap companies. In addition, small-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Money Market Funds Risk – An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency. Although money market funds seek to preserve the value of investments at $1.00 per share, it is possible for the Fund to lose money if shares of money market funds in which it invests fall below $1.00 per share.

Foreign Risk – Investing in securities of foreign corporations involves additional risks relating to: political, social, religious and economic developments abroad; market instability; fluctuations in foreign exchange rates; different regulatory requirements, market practices, accounting standards and practices; and less publicly available information about foreign issuers. Additionally, these investments may be subject to foreign withholding taxes, may be less liquid, carry higher brokerage commissions and other fees, and procedures and regulations governing transactions and custody in foreign markets also may involve delays in payment, delivery or recovery of money or investments. Investments in common stocks of U.S. companies with international operations, and the purchase of sponsored or unsponsored ADRs carry similar risks.

American Depositary Receipts – Unsponsored ADRs held by the Fund are frequently under no obligation to distribute shareholder communications received from the underlying issuer. For this and other reasons, there is less information available about unsponsored ADRs than sponsored ADRs. Unsponsored ADRs are also not obligated to pass through voting rights to the Fund. Investing in foreign companies, even indirectly through ADRs, may involve the same inherent risks as investing in securities of foreign issuers, as described above.

Cybersecurity Risk – With the increased use of technologies such as the Internet to conduct business, the Fund is susceptible to operational, information security, and related risks. Cyber incidents affecting the Fund or its service
providers may cause disruptions and impact business operations, potentially resulting in financial losses, interference with the Fund’s ability to calculate its NAV, impediments to trading, the inability of shareholders to transact business, violations of applicable privacy and other laws, regulatory fines, penalties, reputational damage, reimbursement or other compensation costs, or additional compliance costs.
Risk Lose Money [Text] rr_RiskLoseMoney If the value of the Discovery Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money.
Risk Not Insured Depository Institution [Text] rr_RiskNotInsuredDepositoryInstitution An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency.
Bar Chart and Performance Table [Heading] rr_BarChartAndPerformanceTableHeading PERFORMANCE
Performance Narrative [Text Block] rr_PerformanceNarrativeTextBlock The performance information provides some indication of the risks of investing in the Discovery Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund). The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future. Updated performance information is available on the Fund’s website at http://www.buffalofunds.com/performance.html, or by calling the Fund toll-free at 1-800-49-BUFFALO (1-800-492-8332).
Performance Information Illustrates Variability of Returns [Text] rr_PerformanceInformationIllustratesVariabilityOfReturns The performance information provides some indication of the risks of investing in the Discovery Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund).
Performance Availability Phone [Text] rr_PerformanceAvailabilityPhone 1-800-492-8332
Performance Availability Website Address [Text] rr_PerformanceAvailabilityWebSiteAddress http://www.buffalofunds.com/performance.html
Performance Past Does Not Indicate Future [Text] rr_PerformancePastDoesNotIndicateFuture The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future.
Bar Chart [Heading] rr_BarChartHeading Investor Class Annual Total Return as of December 31 of Each Year
Bar Chart Closing [Text Block] rr_BarChartClosingTextBlock
Calendar Year-to-Date Return – Investor Class (through June 30, 2021) = 8.33%
Best Quarter: June 30, 2020 = 23.84%
Worst Quarter: September 30, 2011 = -18.32%
Year to Date Return, Label rr_YearToDateReturnLabel Calendar Year-to-Date Return
Bar Chart, Year to Date Return, Date rr_BarChartYearToDateReturnDate Jun. 30, 2021
Bar Chart, Year to Date Return rr_BarChartYearToDateReturn 8.33%
Highest Quarterly Return, Label rr_HighestQuarterlyReturnLabel Best Quarter
Highest Quarterly Return, Date rr_BarChartHighestQuarterlyReturnDate Jun. 30, 2020
Highest Quarterly Return rr_BarChartHighestQuarterlyReturn 23.84%
Lowest Quarterly Return, Label rr_LowestQuarterlyReturnLabel Worst Quarter
Lowest Quarterly Return, Date rr_BarChartLowestQuarterlyReturnDate Sep. 30, 2011
Lowest Quarterly Return rr_BarChartLowestQuarterlyReturn (18.32%)
Performance Table Heading rr_PerformanceTableHeading Average Annual Total Returns for the periods ended December 31, 2020
Index No Deduction for Fees, Expenses, Taxes [Text] rr_IndexNoDeductionForFeesExpensesTaxes (reflects no deduction for fees, expenses or taxes)
Performance Table Uses Highest Federal Rate rr_PerformanceTableUsesHighestFederalRate After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes.
Performance Table Not Relevant to Tax Deferred rr_PerformanceTableNotRelevantToTaxDeferred Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the Discovery Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan.
Performance Table One Class of after Tax Shown [Text] rr_PerformanceTableOneClassOfAfterTaxShown After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares.
Performance Table Explanation after Tax Higher rr_PerformanceTableExplanationAfterTaxHigher In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Performance Table Closing [Text Block] rr_PerformanceTableClosingTextBlock
The Lipper Multi-Cap Growth Funds Index® is an unmanaged index that reflects the net asset value weighted return of 30 of the largest multi-cap growth funds tracked by Lipper.

After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares. After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of
state or local taxes. Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the Discovery Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan. In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Buffalo Discovery Fund | Morningstar US Mid Growth Index (reflects no deduction for fees, expenses or taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Morningstar US Mid Growth Index(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 46.17%
5 Years rr_AverageAnnualReturnYear05 20.83%
10 Years rr_AverageAnnualReturnYear10 15.59%
Buffalo Discovery Fund | Lipper Multi-Cap Growth Funds Index® (reflects no deduction for fees, expenses or taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Lipper Multi-Cap Growth Funds Index®(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 43.16%
5 Years rr_AverageAnnualReturnYear05 19.56%
10 Years rr_AverageAnnualReturnYear10 15.56%
Buffalo Discovery Fund | Investor Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUFTX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.85%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets 0.15%
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.01%
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 1.01%
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 103
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 322
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 558
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,236
Annual Return 2011 rr_AnnualReturn2011 (0.69%)
Annual Return 2012 rr_AnnualReturn2012 19.73%
Annual Return 2013 rr_AnnualReturn2013 36.61%
Annual Return 2014 rr_AnnualReturn2014 10.68%
Annual Return 2015 rr_AnnualReturn2015 5.64%
Annual Return 2016 rr_AnnualReturn2016 5.56%
Annual Return 2017 rr_AnnualReturn2017 25.44%
Annual Return 2018 rr_AnnualReturn2018 (6.54%)
Annual Return 2019 rr_AnnualReturn2019 31.63%
Annual Return 2020 rr_AnnualReturn2020 33.81%
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 33.81%
5 Years rr_AverageAnnualReturnYear05 16.87%
10 Years rr_AverageAnnualReturnYear10 15.27%
Buffalo Discovery Fund | Investor Class | After Taxes on Distributions  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions
1 Year rr_AverageAnnualReturnYear01 31.01%
5 Years rr_AverageAnnualReturnYear05 14.71%
10 Years rr_AverageAnnualReturnYear10 13.23%
Buffalo Discovery Fund | Investor Class | After Taxes on Distributions and Sales  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions and Sale of Fund Shares
1 Year rr_AverageAnnualReturnYear01 21.26%
5 Years rr_AverageAnnualReturnYear05 12.98%
10 Years rr_AverageAnnualReturnYear10 12.10%
Buffalo Discovery Fund | Institutional Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUITX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.85%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets none
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.01%
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 0.86%
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 88
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 274
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 477
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,061
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 34.03%
5 Years rr_AverageAnnualReturnYear05 17.04%
10 Years rr_AverageAnnualReturnYear10 15.44%
Buffalo Dividend Focus Fund  
Prospectus [Line Items] rr_ProspectusLineItems  
Risk/Return [Heading] rr_RiskReturnHeading BUFFALO DIVIDEND FOCUS FUND
Objective [Heading] rr_ObjectiveHeading INVESTMENT OBJECTIVE
Objective, Primary [Text Block] rr_ObjectivePrimaryTextBlock The investment objective of the Buffalo Dividend Focus Fund (the “Dividend Focus Fund” or the “Fund”) is current income,
Objective, Secondary [Text Block] rr_ObjectiveSecondaryTextBlock with long-term growth of capital as a secondary objective.
Expense [Heading] rr_ExpenseHeading FEES AND EXPENSES OF THE FUND
Expense Narrative [Text Block] rr_ExpenseNarrativeTextBlock This table describes the fees and expenses that you may pay if you buy, hold and sell shares of the Fund. You may pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not reflected in the tables and example below.
Shareholder Fees Caption [Text] rr_ShareholderFeesCaption Shareholder Fees(fees paid directly from your investment)
Operating Expenses Caption [Text] rr_OperatingExpensesCaption Annual Fund Operating Expenses(expenses that you pay each year as a percentage of the value of your investment)
Portfolio Turnover [Heading] rr_PortfolioTurnoverHeading Portfolio Turnover.
Portfolio Turnover [Text Block] rr_PortfolioTurnoverTextBlock The Fund pays transaction costs, such as commissions, when it buys and sells securities (or “turns over” its portfolio). A higher portfolio turnover rate may indicate higher transaction costs and may result in higher taxes when Fund shares are held in a taxable account. These costs, which are not reflected in annual fund operating expenses or in the example, affect the Fund’s performance. During the most recent fiscal year, the Fund’s portfolio turnover rate was 20% of the average value of its portfolio.
Portfolio Turnover, Rate rr_PortfolioTurnoverRate 20.00%
Expense Example [Heading] rr_ExpenseExampleHeading Example.
Expense Example Narrative [Text Block] rr_ExpenseExampleNarrativeTextBlock This example is intended to help you compare the cost of investing in the Fund with the cost of investing in other mutual funds. The example assumes that you invest $10,000 in the Fund for the time periods indicated and then redeem all of your shares at the end of those periods. The example also assumes that your investment has a 5% return each year and that the Fund’s operating expenses remain the same.
Expense Example by, Year, Caption [Text] rr_ExpenseExampleByYearCaption Although your actual costs may be higher or lower, based on these assumptions your costs would be:
Strategy [Heading] rr_StrategyHeading PRINCIPAL INVESTMENT STRATEGIES
Strategy Narrative [Text Block] rr_StrategyNarrativeTextBlock To pursue its investment objective, the Dividend Focus Fund invests in dividend-paying equity securities, consisting of common stocks, preferred stocks, rights, warrants and convertible securities. During normal market conditions, at least 80% of the Fund’s assets will be invested in dividend-paying equity securities. The Fund considers “dividend-paying equity securities” to be securities of companies that declare and pay cash dividends on at least an annual basis. The Fund may invest in companies in any sector and of any size of market capitalization; provided, however, that Kornitzer Capital Management, Inc., the Fund’s investment advisor (the “Advisor” or “KCM”), believes that an investment in the company’s securities is consistent with the Fund’s investment objectives. While the Fund may invest in securities of companies of any size, the Advisor expects that the majority of common stocks purchased for the Fund will be of large-cap companies. The Fund considers large-cap companies to be those with market capitalizations in excess of $10 billion at the time of initial purchase. In addition to investments in domestic securities, the Fund may invest up to 20% of its net assets in sponsored or unsponsored American Depositary Receipts (“ADRs”) and securities of foreign companies that are traded on U.S. stock exchanges.The Advisor emphasizes dividend-paying securities that have exhibited historical growth of dividends. The Advisor may sell the Fund’s investments to secure gains, limit losses or reinvest in more promising investment opportunities.
Risk [Heading] rr_RiskHeading PRINCIPAL RISKS
Risk Narrative [Text Block] rr_RiskNarrativeTextBlock
The Fund cannot guarantee that it will achieve its investment objectives. As with any mutual fund, the value of the Fund’s investments may fluctuate. If the value of the Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money. The risks associated with the Dividend Focus Fund’s principal investment strategies are:

Market Risk; Recent Market Events – The Dividend Focus Fund’s investments are subject to market risk, which may cause the value of the Fund to decline. Equity securities are generally subject to greater risk than fixed income securities in adverse market conditions. U.S. and international markets have experienced significant periods of volatility in recent months and years due to economic, political and global macro factors including the impact of the coronavirus (COVID-19) global pandemic, which has resulted in a public health crisis, business interruptions, growth concerns in the U.S. and overseas, rising unemployment claims, changed travel and social behaviors and reduced consumer spending. The effects of COVID-19 have led to a substantial economic downturn or recession of the U.S. and global economies, the recovery from which is uncertain and may last for an extended period of time. Uncertainties regarding interest rates, political events, rising government debt in the U.S. and trade tensions also contribute to market volatility. During those periods, the Fund may experience high levels of shareholder redemptions and may have to sell securities at times when the Fund would otherwise not do so, potentially at unfavorable prices. Certain securities may be difficult to value during such periods.

Management Risk – Management risk means that your investment in the Fund varies with the success and failure of the Advisor’s investment strategies and the Advisor’s research, analysis and determination of portfolio securities.

Equity Market Risk – Equity securities held by the Fund may experience sudden, unpredictable drops in value or long periods of decline in value due to general stock market fluctuations, decisions by management or other factors.

Common Stocks. Common stocks are susceptible to general stock market fluctuations and to volatile increases and decreases in value as market confidence in and perceptions of their issuers change. Common stock is generally subject to greater risk than preferred stocks and debt obligations because holders of common stock generally have inferior rights to receive payments from issuers in comparison with the rights of the holders of other securities, bondholders and other creditors.

Preferred Stock. Preferred stock is subject to the risk that the dividend on the stock may be changed or omitted by the issuer, and that participation in the growth of an issuer may be limited.

Convertible Securities. A convertible security is a fixed-income security (a debt instrument or a preferred stock) which may be converted at a stated price within a specified period of time into a certain quantity of the common stock of the same or a different issuer. The market value of a convertible security performs like that of a regular debt security, that is, if market interest rates rise, the value of the convertible security falls.

Warrants. Investments in warrants involve certain risks, including the possible lack of a liquid market for resale of the warrants, potential price fluctuations as a result of speculation or other factors, and failure of the price of the underlying security to reach or have reasonable prospects of reaching a level at which the warrant can be prudently exercised (in which event the warrant may expire without being exercised, resulting in a loss of the Fund’s entire investment therein).

Rights. The purchase of rights involves the risk that the Fund could lose the purchase value of a right if the right is not exercised prior to its expiration. Also, the purchase of rights involves the risk that the effective price paid for the right added to the subscription price of the related security may exceed the value of the subscribed security’s market price.

Large-Cap Company Risk – Larger, more established companies may be unable to respond quickly to new competitive challenges and are sometimes unable to attain the high growth rates of successful smaller companies during periods of economic expansion.
Mid-Cap Company Risk – Investing in mid-cap companies may involve greater risk than investing in large-cap companies due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than large-cap companies. In addition, mid-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Small-Cap Company Risk – Investing in small-cap companies may involve greater risk than investing in large- or mid-cap companies due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than mid- and large-cap companies. In addition, small-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Money Market Funds Risk – An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency. Although money market funds seek to preserve the value of investments at $1.00 per share, it is possible for the Fund to lose money if shares of money market funds in which it invests fall below $1.00 per share.

Foreign Risk – Investing in securities of foreign corporations involves additional risks relating to: political, social, religious and economic developments abroad; market instability; fluctuations in foreign exchange rates; different regulatory requirements, market practices, accounting standards and practices; and less publicly available information about foreign issuers. Additionally, these investments may be subject to foreign withholding taxes, may be less liquid, carry higher brokerage commissions and other fees, and procedures and regulations governing transactions and custody in foreign markets also may involve delays in payment, delivery or recovery of money or investments. Investments in common stocks of U.S. companies with international operations, and the purchase of sponsored or unsponsored ADRs carry similar risks.

American Depositary Receipts – Unsponsored ADRs held by the Fund are frequently under no obligation to distribute shareholder communications received from the underlying issuer. For this and other reasons, there is less information available about unsponsored ADRs than sponsored ADRs. Unsponsored ADRs are also not obligated to pass through voting rights to the Fund. Investing in foreign companies, even indirectly through ADRs, may involve the same inherent risks as investing in securities of foreign issuers, as described above.

Cybersecurity Risk – With the increased use of technologies such as the Internet to conduct business, the Fund is susceptible to operational, information security, and related risks. Cyber incidents affecting the Fund or its service providers may cause disruptions and impact business operations, potentially resulting in financial losses, interference with the Fund’s ability to calculate its NAV, impediments to trading, the inability of shareholders to transact business, violations of applicable privacy and other laws, regulatory fines, penalties, reputational damage, reimbursement or other compensation costs, or additional compliance costs.
Risk Lose Money [Text] rr_RiskLoseMoney If the value of the Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money.
Risk Not Insured Depository Institution [Text] rr_RiskNotInsuredDepositoryInstitution An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency.
Bar Chart and Performance Table [Heading] rr_BarChartAndPerformanceTableHeading PERFORMANCE
Performance Narrative [Text Block] rr_PerformanceNarrativeTextBlock The performance information provides some indication of the risks of investing in the Dividend Focus Fund. The bar chart shows the Fund’s performance from year to year and the table shows how the Fund’s average annual returns for one year, five years and since inception compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund). The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future. Updated performance information is available on the Fund’s website at http://www.buffalofunds.com/performance.html, or by calling the Fund toll-free at 1-800-49-BUFFALO (1-800-492-8332).
Performance Information Illustrates Variability of Returns [Text] rr_PerformanceInformationIllustratesVariabilityOfReturns The performance information provides some indication of the risks of investing in the Dividend Focus Fund. The bar chart shows the Fund’s performance from year to year and the table shows how the Fund’s average annual returns for one year, five years and since inception compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund).
Performance Availability Phone [Text] rr_PerformanceAvailabilityPhone 1-800-492-8332
Performance Availability Website Address [Text] rr_PerformanceAvailabilityWebSiteAddress http://www.buffalofunds.com/performance.html
Performance Past Does Not Indicate Future [Text] rr_PerformancePastDoesNotIndicateFuture The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future.
Bar Chart [Heading] rr_BarChartHeading Investor Class Annual Total Return as of December 31 of Each Year
Bar Chart Closing [Text Block] rr_BarChartClosingTextBlock
Calendar Year-to-Date Return – Investor Class (through June 30, 2021) = 12.91%
Best Quarter: June 30, 2020 = 19.93%
Worst Quarter: March 31, 2020 = -20.35%
Year to Date Return, Label rr_YearToDateReturnLabel Calendar Year-to-Date Return
Bar Chart, Year to Date Return, Date rr_BarChartYearToDateReturnDate Jun. 30, 2021
Bar Chart, Year to Date Return rr_BarChartYearToDateReturn 12.91%
Highest Quarterly Return, Label rr_HighestQuarterlyReturnLabel Best Quarter
Highest Quarterly Return, Date rr_BarChartHighestQuarterlyReturnDate Jun. 30, 2020
Highest Quarterly Return rr_BarChartHighestQuarterlyReturn 19.93%
Lowest Quarterly Return, Label rr_LowestQuarterlyReturnLabel Worst Quarter
Lowest Quarterly Return, Date rr_BarChartLowestQuarterlyReturnDate Mar. 31, 2020
Lowest Quarterly Return rr_BarChartLowestQuarterlyReturn (20.35%)
Performance Table Heading rr_PerformanceTableHeading Average Annual Total Returns for the periods ended December 31, 2020
Index No Deduction for Fees, Expenses, Taxes [Text] rr_IndexNoDeductionForFeesExpensesTaxes (reflects no deduction for fees, expenses or taxes)
Performance Table Uses Highest Federal Rate rr_PerformanceTableUsesHighestFederalRate After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes.
Performance Table Not Relevant to Tax Deferred rr_PerformanceTableNotRelevantToTaxDeferred Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the Dividend Focus Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan.
Performance Table One Class of after Tax Shown [Text] rr_PerformanceTableOneClassOfAfterTaxShown After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares.
Performance Table Explanation after Tax Higher rr_PerformanceTableExplanationAfterTaxHigher In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Performance Table Closing [Text Block] rr_PerformanceTableClosingTextBlock
The Lipper Equity Income Funds Index® tracks funds that seek relatively high current income and growth of income by investing at least 65% of their portfolio in dividend-paying equity securities.

After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares. After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes. Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the Dividend Focus Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan. In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Buffalo Dividend Focus Fund | Morningstar US Large-Mid Cap Index (reflects no deduction for fees, expenses or taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Morningstar US Large-Mid Cap Index(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 21.11%
5 Years rr_AverageAnnualReturnYear05 15.63%
Since Inception rr_AverageAnnualReturnSinceInception 15.47%
Inception Date rr_AverageAnnualReturnInceptionDate Dec. 03, 2012
Buffalo Dividend Focus Fund | Lipper Equity Income Funds Index® (reflects no deduction for taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Lipper Equity Income Funds Index®(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 4.72%
5 Years rr_AverageAnnualReturnYear05 10.47%
Since Inception rr_AverageAnnualReturnSinceInception 10.92%
Inception Date rr_AverageAnnualReturnInceptionDate Dec. 03, 2012
Buffalo Dividend Focus Fund | S&P 500® Index (reflects no deduction for fees, expenses or taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Inception Date rr_AverageAnnualReturnInceptionDate Dec. 03, 2012
Buffalo Dividend Focus Fund | Investor Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUFDX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.75%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets 0.15%
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.04%
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 0.94%
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 96
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 300
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 520
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,155
Annual Return 2013 rr_AnnualReturn2013 23.93%
Annual Return 2014 rr_AnnualReturn2014 20.81%
Annual Return 2015 rr_AnnualReturn2015 0.13%
Annual Return 2016 rr_AnnualReturn2016 12.06%
Annual Return 2017 rr_AnnualReturn2017 18.02%
Annual Return 2018 rr_AnnualReturn2018 (5.05%)
Annual Return 2019 rr_AnnualReturn2019 27.66%
Annual Return 2020 rr_AnnualReturn2020 16.64%
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 16.64%
5 Years rr_AverageAnnualReturnYear05 13.33%
Since Inception rr_AverageAnnualReturnSinceInception 13.63%
Inception Date rr_AverageAnnualReturnInceptionDate Dec. 03, 2012
Buffalo Dividend Focus Fund | Investor Class | After Taxes on Distributions  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions
1 Year rr_AverageAnnualReturnYear01 16.47%
5 Years rr_AverageAnnualReturnYear05 12.75%
Since Inception rr_AverageAnnualReturnSinceInception 12.65%
Buffalo Dividend Focus Fund | Investor Class | After Taxes on Distributions and Sales  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions and Sale of Fund Shares
1 Year rr_AverageAnnualReturnYear01 9.92%
5 Years rr_AverageAnnualReturnYear05 10.55%
Since Inception rr_AverageAnnualReturnSinceInception 10.83%
Buffalo Dividend Focus Fund | Institutional Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUIDX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.75%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets none
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.04%
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 0.79%
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 81
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 252
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 439
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 978
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 16.83%
5 Years rr_AverageAnnualReturnYear05 13.51%
Since Inception rr_AverageAnnualReturnSinceInception 13.80%
Inception Date rr_AverageAnnualReturnInceptionDate Dec. 03, 2012
Buffalo Early Stage Growth Fund  
Prospectus [Line Items] rr_ProspectusLineItems  
Risk/Return [Heading] rr_RiskReturnHeading BUFFALO EARLY STAGE GROWTH FUND
Objective [Heading] rr_ObjectiveHeading INVESTMENT OBJECTIVE
Objective, Primary [Text Block] rr_ObjectivePrimaryTextBlock The investment objective of the Buffalo Early Stage Growth Fund (“Early Stage Growth Fund” or the “Fund”) is long-term growth of capital.
Expense [Heading] rr_ExpenseHeading FEES AND EXPENSES OF THE FUND
Expense Narrative [Text Block] rr_ExpenseNarrativeTextBlock This table describes the fees and expenses that you may pay if you buy, hold and sell shares of the Fund. You may pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not reflected in the tables and example below.
Shareholder Fees Caption [Text] rr_ShareholderFeesCaption Shareholder Fees(fees paid directly from your investment)
Operating Expenses Caption [Text] rr_OperatingExpensesCaption Annual Fund Operating Expenses(expenses that you pay each year as a percentage of the value of your investment)
Portfolio Turnover [Heading] rr_PortfolioTurnoverHeading Portfolio Turnover.
Portfolio Turnover [Text Block] rr_PortfolioTurnoverTextBlock The Fund pays transaction costs, such as commissions, when it buys and sells securities (or “turns over” its portfolio). A higher portfolio turnover rate may indicate higher transaction costs and may result in higher taxes when Fund shares are held in a taxable account. These costs, which are not reflected in annual fund operating expenses or in the example, affect the Fund’s performance. During the most recent fiscal year, the Fund’s portfolio turnover rate was 54% of the average value of its portfolio.
Portfolio Turnover, Rate rr_PortfolioTurnoverRate 54.00%
Expenses Not Correlated to Ratio Due to Acquired Fund Fees [Text] rr_ExpensesNotCorrelatedToRatioDueToAcquiredFundFees The Total Annual Fund Operating Expenses for the Fund do not correlate to the ratio of expenses to average net assets listed in the Fund’s financial highlights, which reflects the operating expenses of the Fund and does not include the amount of the Fund’s proportionate share of the fees and expenses of other investment companies in which the Fund invests.
Expense Example [Heading] rr_ExpenseExampleHeading Example.
Expense Example Narrative [Text Block] rr_ExpenseExampleNarrativeTextBlock This example is intended to help you compare the cost of investing in the Fund with the cost of investing in other mutual funds. The example assumes that you invest $10,000 in the Fund for the time periods indicated and then redeem all of your shares at the end of those periods. The example also assumes that your investment has a 5% return each year and that the Fund’s operating expenses remain the same.
Expense Example by, Year, Caption [Text] rr_ExpenseExampleByYearCaption Although your actual costs may be higher or lower, based on these assumptions your costs would be:
Strategy [Heading] rr_StrategyHeading PRINCIPAL INVESTMENT STRATEGIES
Strategy Narrative [Text Block] rr_StrategyNarrativeTextBlock The Early Stage Growth Fund invests at least 80% of its net assets, plus any borrowings for investment purposes, in equity securities, consisting of common stocks, preferred stocks, convertible securities, warrants and rights, of companies that, at the time of purchase by the Fund, Kornitzer Capital Management, Inc., the Fund’s investment advisor (the “Advisor” or “KCM”), defines as early stage growth companies. Early stage growth companies are defined by the Advisor as companies that, at the time of purchase by the Fund, have market capitalizations below the median of the Morningstar US Small Growth Index and are companies that are starting to develop a new product or service or have recently developed a new product or service. As of June 30, 2021, the median market capitalization of the Morningstar US Small Growth Index was $4.2 billion. In addition to the Fund’s investments in domestic securities,
the Fund may also invest up to 20% of its net assets in sponsored or unsponsored American Depositary Receipts (“ADRs”) and equity securities of foreign companies that are traded on U.S. stock exchanges. The Fund may invest in companies in any sector. The Fund may have significant investments in the information technology sector.

KCM seeks to identify companies for the Fund’s portfolio that are expected to experience growth based on the identification of long-term, measurable secular trends, and which, as a result, the Advisor believes may have potential revenue growth in excess of the gross domestic product growth rate. Companies are screened using in-depth, in-house research to identify those which the Advisor believes have favorable attributes, including attractive valuation, strong management, conservative debt, free cash flow, scalable business models, and competitive advantages. The Advisor may sell the Fund’s investments to secure gains, limit losses or reinvest in more promising investment opportunities.
Risk [Heading] rr_RiskHeading PRINCIPAL RISKS
Risk Narrative [Text Block] rr_RiskNarrativeTextBlock
The Early Stage Growth Fund cannot guarantee that it will achieve its investment objective. As with any mutual fund, the value of the Fund’s investments may fluctuate. If the value of the Early Stage Growth Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money. The risks associated with the Early Stage Growth Fund’s principal investment strategies are:

Market Risk; Recent Market Events – The Early Stage Growth Fund’s investments are subject to market risk, which may cause the value of the Fund to decline. Equity securities are generally subject to greater risk than fixed income securities in adverse market conditions. U.S. and international markets have experienced significant periods of volatility in recent months and years due to economic, political and global macro factors including the impact of the coronavirus (COVID-19) global pandemic, which has resulted in a public health crisis, business interruptions, growth concerns in the U.S. and overseas, rising unemployment claims, changed travel and social behaviors and reduced consumer spending. The effects of COVID-19 have led to a substantial economic downturn or recession of the U.S. and global economies, the recovery from which is uncertain and may last for an extended period of time. Uncertainties regarding interest rates, political events, rising government debt in the U.S. and trade tensions also contribute to market volatility. During those periods, the Fund may experience high levels of shareholder redemptions and may have to sell securities at times when the Fund would otherwise not do so, potentially at unfavorable prices. Certain securities may be difficult to value during such periods.

Management Risk – Management risk means that your investment in the Early Stage Growth Fund varies with the success and failure of the Advisor’s investment strategies and the Advisor’s research, analysis and determination of portfolio securities.

Equity Market Risk – Equity securities held by the Early Stage Growth Fund may experience sudden, unpredictable drops in value or long periods of decline in value due to general stock market fluctuations, increases in production costs, decisions by management or related factors.

Common Stocks. Common stocks are susceptible to general stock market fluctuations and to volatile increases and decreases in value as market confidence in and perceptions of their issuers change. Common stock is generally subject to greater risk than preferred stocks and debt obligations because holders of common stock generally have inferior rights to receive payments from issuers in comparison with the rights of the holders of other securities, bondholders and other creditors.

Preferred Stock. Preferred stock is subject to the risk that the dividend on the stock may be changed or omitted by the issuer, and that participation in the growth of an issuer may be limited.

Convertible Securities. A convertible security is a fixed-income security (a debt instrument or a preferred stock) which may be converted at a stated price within a specified period of time into a certain quantity of the common stock of the same or a different issuer. The market value of a convertible security performs like that of a regular debt security, that is, if market interest rates rise, the value of the convertible security falls.

Warrants. Investments in warrants involve certain risks, including the possible lack of a liquid market for resale of the warrants, potential price fluctuations as a result of speculation or other factors, and failure of the price of the underlying security to reach or have reasonable prospects of reaching a level at which the warrant can be prudently
exercised (in which event the warrant may expire without being exercised, resulting in a loss of the Fund’s entire investment therein).

Rights. The purchase of rights involves the risk that the Fund could lose the purchase value of a right if the right is not exercised prior to its expiration. Also, the purchase of rights involves the risk that the effective price paid for the right added to the subscription price of the related security may exceed the value of the subscribed security’s market price.

Sector Risk – Companies with similar characteristics, such as those within the same industry, may be grouped together in broad categories called sectors. To the extent the Fund invests its assets in a particular sector, the Fund’s performance may be more susceptible to any economic, business, or other developments that generally affect that sector.

Information Technology Company Risk – Information technology companies often face unusually high price volatility, both in terms of gains and losses. To the extent that the Fund makes investments in such companies, its share price is likely to be more volatile. The potential for wide variations in performance is based on special risks common to information technology companies. Information technology companies may have limited product lines, markets or financial resources. Information technology companies are affected by worldwide technological developments and their products and services may quickly become outdated. Given these risks, an investment in the Fund may be more suitable for long-term investors, who are willing to withstand the Fund’s potential for volatility.

Small-Cap Company Risk – Investing in small-cap companies may involve greater risk than investing in large- or mid-cap companies due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than mid- and large-cap companies. In addition, small-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Micro-Cap Company Risk – Investing in micro-cap companies may involve greater risk than investing in companies with larger capitalization due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than companies with larger capitalization. In addition, micro-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans. The trading volume of securities of smaller capitalization companies is normally less than that of larger capitalization companies, and therefore may disproportionately affect their market price, tending to make them fall more in response to selling pressure than is the case with larger capitalization companies. These risks are enhanced for micro-cap securities. Many micro-cap companies tend to be new and have no proven track record. Some of these companies have no assets or operations, while others have products and services that are still in development or have yet to be tested in the market. As any size of trade can have a large percentage impact on the price of a micro-cap stock, the Fund will be more susceptible to sudden and significant losses. In addition, micro-cap company stocks will also be bought and sold less often than other stocks, making them less liquid than other securities.

Money Market Funds Risk – An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency. Although money market funds seek to preserve the value of investments at $1.00 per share, it is possible for the Fund to lose money if shares of money market funds in which it invests fall below $1.00 per share.

Foreign Risk – Investing in securities of foreign corporations involves additional risks relating to: political, social, religious and economic developments abroad; market instability; fluctuations in foreign exchange rates; different regulatory requirements, market practices, accounting standards and practices; and less publicly available information about foreign issuers. Additionally, these investments may be subject to foreign withholding taxes, may be less liquid, carry higher brokerage commissions and other fees, and procedures and regulations governing transactions and custody in foreign markets also may involve delays in payment, delivery or recovery of money or investments. Investments in common stocks of U.S. companies with international operations, and the purchase of sponsored or unsponsored ADRs carry similar risks.

American Depositary Receipts – Unsponsored ADRs held by the Fund are frequently under no obligation to distribute shareholder communications received from the underlying issuer. For this and other reasons, there is
less information available about unsponsored ADRs than sponsored ADRs. Unsponsored ADRs are also not obligated to pass through voting rights to the Fund. Investing in foreign companies, even indirectly through ADRs, may involve the same inherent risks as investing in securities of foreign issuers, as described above.

Cybersecurity Risk – With the increased use of technologies such as the Internet to conduct business, the Fund is susceptible to operational, information security, and related risks. Cyber incidents affecting the Fund or its service providers may cause disruptions and impact business operations, potentially resulting in financial losses, interference with the Fund’s ability to calculate its NAV, impediments to trading, the inability of shareholders to transact business, violations of applicable privacy and other laws, regulatory fines, penalties, reputational damage, reimbursement or other compensation costs, or additional compliance costs.
Risk Lose Money [Text] rr_RiskLoseMoney If the value of the Early Stage Growth Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money.
Risk Not Insured Depository Institution [Text] rr_RiskNotInsuredDepositoryInstitution An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency.
Bar Chart and Performance Table [Heading] rr_BarChartAndPerformanceTableHeading PERFORMANCE
Performance Narrative [Text Block] rr_PerformanceNarrativeTextBlock The performance information provides some indication of the risks of investing in the Early Stage Growth Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund). The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future. Updated performance information is available on the Fund’s website at http://www.buffalofunds.com/performance.html, or by calling the Fund toll-free at 1-800-49-BUFFALO (1-800-492-8332).
Performance Information Illustrates Variability of Returns [Text] rr_PerformanceInformationIllustratesVariabilityOfReturns The performance information provides some indication of the risks of investing in the Early Stage Growth Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund).
Performance Availability Phone [Text] rr_PerformanceAvailabilityPhone 1-800-492-8332
Performance Availability Website Address [Text] rr_PerformanceAvailabilityWebSiteAddress http://www.buffalofunds.com/performance.html
Performance Past Does Not Indicate Future [Text] rr_PerformancePastDoesNotIndicateFuture The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future.
Bar Chart [Heading] rr_BarChartHeading Investor Class Annual Total Return as of December 31 of Each Year
Bar Chart Closing [Text Block] rr_BarChartClosingTextBlock
Calendar Year-to-Date Return – Investor Class (through June 30, 2021) = 15.55%
Best Quarter: June 30, 2020 = 40.64%
Worst Quarter: March 31, 2020 = -25.33%
Year to Date Return, Label rr_YearToDateReturnLabel Calendar Year-to-Date Return
Bar Chart, Year to Date Return, Date rr_BarChartYearToDateReturnDate Jun. 30, 2021
Bar Chart, Year to Date Return rr_BarChartYearToDateReturn 15.55%
Highest Quarterly Return, Label rr_HighestQuarterlyReturnLabel Best Quarter
Highest Quarterly Return, Date rr_BarChartHighestQuarterlyReturnDate Jun. 30, 2020
Highest Quarterly Return rr_BarChartHighestQuarterlyReturn 40.64%
Lowest Quarterly Return, Label rr_LowestQuarterlyReturnLabel Worst Quarter
Lowest Quarterly Return, Date rr_BarChartLowestQuarterlyReturnDate Mar. 31, 2020
Lowest Quarterly Return rr_BarChartLowestQuarterlyReturn (25.33%)
Performance Table Heading rr_PerformanceTableHeading Average Annual Total Returns for the periods ended December 31, 2020
Index No Deduction for Fees, Expenses, Taxes [Text] rr_IndexNoDeductionForFeesExpensesTaxes (reflects no deduction for fees, expenses or taxes)
Performance Table Uses Highest Federal Rate rr_PerformanceTableUsesHighestFederalRate After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes.
Performance Table Not Relevant to Tax Deferred rr_PerformanceTableNotRelevantToTaxDeferred Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the Early Stage Growth Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan.
Performance Table One Class of after Tax Shown [Text] rr_PerformanceTableOneClassOfAfterTaxShown After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares.
Performance Table Explanation after Tax Higher rr_PerformanceTableExplanationAfterTaxHigher In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Performance Table Closing [Text Block] rr_PerformanceTableClosingTextBlock
The Lipper Small-Cap Growth Funds Index® is an unmanaged, equally weighted performance index of the 30 largest qualifying mutual funds (based on net assets) in the Lipper Small-Cap classification.

After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares. After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes. Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the Early Stage Growth Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan. In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Buffalo Early Stage Growth Fund | Morningstar US Small Growth Index (reflects no deduction for fees, expenses or taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Morningstar US Small Growth Index(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 43.52%
5 Years rr_AverageAnnualReturnYear05 18.57%
10 Years rr_AverageAnnualReturnYear10 14.44%
Buffalo Early Stage Growth Fund | Lipper Small-Cap Growth Funds Index® (reflects no deduction for taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Lipper Small-Cap Growth Funds Index®(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 37.36%
5 Years rr_AverageAnnualReturnYear05 18.41%
10 Years rr_AverageAnnualReturnYear10 13.89%
Buffalo Early Stage Growth Fund | Investor Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUFOX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 1.30%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets 0.15%
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.05%
Acquired Fund Fees and Expenses rr_AcquiredFundFeesAndExpensesOverAssets 0.01% [1]
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 1.51% [1],[2]
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 154
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 477
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 824
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,802
Annual Return 2011 rr_AnnualReturn2011 8.14%
Annual Return 2012 rr_AnnualReturn2012 24.30%
Annual Return 2013 rr_AnnualReturn2013 61.70%
Annual Return 2014 rr_AnnualReturn2014 (7.38%)
Annual Return 2015 rr_AnnualReturn2015 (9.41%)
Annual Return 2016 rr_AnnualReturn2016 11.05%
Annual Return 2017 rr_AnnualReturn2017 27.18%
Annual Return 2018 rr_AnnualReturn2018 (3.95%)
Annual Return 2019 rr_AnnualReturn2019 34.03%
Annual Return 2020 rr_AnnualReturn2020 47.69%
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 47.69%
5 Years rr_AverageAnnualReturnYear05 21.84%
10 Years rr_AverageAnnualReturnYear10 17.22%
Buffalo Early Stage Growth Fund | Investor Class | After Taxes on Distributions  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions
1 Year rr_AverageAnnualReturnYear01 43.29%
5 Years rr_AverageAnnualReturnYear05 18.20%
10 Years rr_AverageAnnualReturnYear10 14.95%
Buffalo Early Stage Growth Fund | Investor Class | After Taxes on Distributions and Sales  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions and Sale of Fund Shares
1 Year rr_AverageAnnualReturnYear01 29.93%
5 Years rr_AverageAnnualReturnYear05 16.32%
10 Years rr_AverageAnnualReturnYear10 13.63%
Buffalo Early Stage Growth Fund | Institutional Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUIOX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 1.30%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets none
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.05%
Acquired Fund Fees and Expenses rr_AcquiredFundFeesAndExpensesOverAssets 0.01% [1]
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 1.36% [1],[2]
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 138
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 431
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 745
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,635
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 47.96%
5 Years rr_AverageAnnualReturnYear05 22.03%
10 Years rr_AverageAnnualReturnYear10 17.39%
Buffalo Flexible Income Fund  
Prospectus [Line Items] rr_ProspectusLineItems  
Risk/Return [Heading] rr_RiskReturnHeading BUFFALO FLEXIBLE INCOME FUND
Objective [Heading] rr_ObjectiveHeading INVESTMENT OBJECTIVES
Objective, Primary [Text Block] rr_ObjectivePrimaryTextBlock The investment objective of the Buffalo Flexible Income Fund (“Flexible Income Fund” or the “Fund”) is the generation of high current income and,
Objective, Secondary [Text Block] rr_ObjectiveSecondaryTextBlock as a secondary objective, the long-term growth of capital.
Expense [Heading] rr_ExpenseHeading FEES AND EXPENSES OF THE FUND
Expense Narrative [Text Block] rr_ExpenseNarrativeTextBlock This table describes the fees and expenses that you may pay if you buy, hold and sell shares of the Fund. You may pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not reflected in the tables and example below.
Shareholder Fees Caption [Text] rr_ShareholderFeesCaption Shareholder Fees(fees paid directly from your investment)
Operating Expenses Caption [Text] rr_OperatingExpensesCaption Annual Fund Operating Expenses(expenses that you pay each year as a percentage of the value of your investment)
Portfolio Turnover [Heading] rr_PortfolioTurnoverHeading Portfolio Turnover.
Portfolio Turnover [Text Block] rr_PortfolioTurnoverTextBlock The Fund pays transaction costs, such as commissions, when it buys and sells securities (or “turns over” its portfolio). A higher portfolio turnover rate may indicate higher transaction costs and may result in higher taxes when Fund shares are held in a taxable account. These costs, which are not reflected in annual fund operating expenses or in the example, affect the Fund’s performance. During the most recent fiscal year, the Fund’s portfolio turnover rate was 1% of the average value of its portfolio.
Portfolio Turnover, Rate rr_PortfolioTurnoverRate 1.00%
Expense Example [Heading] rr_ExpenseExampleHeading Example.
Expense Example Narrative [Text Block] rr_ExpenseExampleNarrativeTextBlock This example is intended to help you compare the cost of investing in the Fund with the cost of investing in other mutual funds. The example assumes that you invest $10,000 in the Fund for the time periods indicated and then redeem all of your shares at the end of those periods. The example also assumes that your investment has a 5% return each year and that the Fund’s operating expenses remain the same.
Expense Example by, Year, Caption [Text] rr_ExpenseExampleByYearCaption Although your actual costs may be higher or lower, based on these assumptions your costs would be:
Strategy [Heading] rr_StrategyHeading PRINCIPAL INVESTMENT STRATEGIES
Strategy Narrative [Text Block] rr_StrategyNarrativeTextBlock To pursue its investment objectives, the Flexible Income Fund invests in both equity and debt securities. The allocation of assets invested in each type of security is designed to balance income and long-term capital appreciation with reduced volatility of returns. The Flexible Income Fund expects to change its allocation mix over time based on Kornitzer Capital Management, Inc.’s, the Fund’s investment advisor (the “Advisor” or “KCM”), view of economic conditions and underlying security values. The Fund retains the freedom to invest up to 100% of its net assets in equity securities or up to 100% of its net assets in debt securities. Equity securities can include common stocks, preferred stocks, rights, warrants and convertible preferred stocks. With respect to its investments in equity securities, the Flexible Income Fund may invest in companies in any sector and of any size of market capitalization; provided, however, that the Advisor believes that an investment in the company’s securities is consistent with the Fund’s investment objectives. The Fund may invest up to 20% of its net assets in sponsored or unsponsored American Depositary Receipts (“ADRs”) and securities of foreign companies that are traded on U.S. stock exchanges and U.S. over-the-counter markets.
Debt securities can include government notes and bonds, mortgage and asset backed securities, bank debt, convertible debt securities, fixed and floating rate corporate debt securities, both rated and unrated, and higher-yielding, higher-risk debt securities rated below investment grade by the major rating agencies (or in similar unrated securities), commonly known as “junk bonds.” The Fund maintains a flexible investment policy which allows it to invest in debt securities with varying maturities. However, it is anticipated that the dollar-weighted average maturity of debt securities that the Fund purchases will not exceed 15 years.

With respect to equity securities, the Advisor emphasizes dividend-paying stocks that over time have exhibited consistent growth of dividends. The Advisor may sell the Flexible Income Fund’s investments to secure gains, limit losses or reinvest in more promising investment opportunities.

With respect to debt securities, the Advisor performs extensive fundamental investment research to identify investment opportunities for the Flexible Income Fund. When evaluating investments and the credit quality of rated and unrated securities, the Advisor looks at a number of past, present and estimated future factors, including: (1) financial strength of the issuer; (2) cash flow; (3) management; (4) borrowing requirements; (5) sensitivity to changes in interest rates and business conditions; and (6) relative value. The Flexible Income Fund relies on the Advisor to undertake a careful analysis to determine the creditworthiness of the issuers of rated debt (on debt ratings by Moody’s Investors Service, Inc., (“Moody’s) or S&P Global Ratings, (“S&P”)), as well as the issuers of debt not rated by Moody’s or S&P. The Fund will not purchase a debt security that is rated less than Caa/CCC by Moody’s or S&P, respectively, and will only purchase an unrated debt security if the Advisor believes that the security is of at least B quality, subject to a limitation that the Fund may not hold more than 20% of its net assets in debt securities that are rated less than B or that are unrated debt securities of similar quality, based on the Advisor’s fundamental analysis of the issuer and of rated bonds issued by similar issuers. The Fund has no limitations on principal, interest or reset terms on debt securities held in the Fund.
Risk [Heading] rr_RiskHeading PRINCIPAL RISKS
Risk Narrative [Text Block] rr_RiskNarrativeTextBlock
The Flexible Income Fund cannot guarantee that it will achieve its investment objectives. As with any mutual fund, the value of the Flexible Income Fund’s investments may fluctuate. If the value of the Flexible Income Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money. The risks associated with the Flexible Income Fund’s principal investment strategies are:

Market Risk; Recent Market Events – The Flexible Income Fund’s investments are subject to market risk, which may cause the value of the Fund to decline. Equity securities are generally subject to greater risk than fixed income securities in adverse market conditions. U.S. and international markets have experienced significant periods of volatility in recent months and years due to economic, political and global macro factors including the impact of the coronavirus (COVID-19) global pandemic, which has resulted in a public health crisis, business interruptions, growth concerns in the U.S. and overseas, rising unemployment claims, changed travel and social behaviors and reduced consumer spending. The effects of COVID-19 have led to a substantial economic downturn or recession of the U.S. and global economies, the recovery from which is uncertain and may last for an extended period of time. Uncertainties regarding interest rates, political events, rising government debt in the U.S. and trade tensions also contribute to market volatility. During those periods, the Fund may experience high levels of shareholder redemptions and may have to sell securities at times when the Fund would otherwise not do so, potentially at unfavorable prices. Certain securities may be difficult to value during such periods.

Management Risk – Management risk means that your investment in the Flexible Income Fund varies with the success and failure of the Advisor’s investment strategies and the Advisor’s research, analysis and determination of portfolio securities.

Equity Market Risk – Equity securities held by the Flexible Income Fund may experience sudden, unpredictable drops in value or long periods of decline in value due to general stock market fluctuations, decisions by management or other factors.

Common Stocks. Common stocks are susceptible to general stock market fluctuations and to volatile increases and decreases in value as market confidence in and perceptions of their issuers change. Common stock is generally subject to greater risk than preferred stocks and debt obligations because holders of common stock generally have
inferior rights to receive payments from issuers in comparison with the rights of the holders of other securities, bondholders and other creditors.

Preferred Stock. Preferred stock is subject to the risk that the dividend on the stock may be changed or omitted by the issuer, and that participation in the growth of an issuer may be limited.

Convertible Preferred Stocks. Convertible securities are fixed-income securities which may be converted at a stated price within a specified period of time into a certain quantity of the common stock of the same or a different issuer. The market value of a convertible preferred stock performs like that of a regular debt security, that is, if market interest rates rise, the value of the convertible preferred stock falls.

Warrants. Investments in warrants involve certain risks, including the possible lack of a liquid market for resale of the warrants, potential price fluctuations as a result of speculation or other factors, and failure of the price of the underlying security to reach or have reasonable prospects of reaching a level at which the warrant can be prudently exercised (in which event the warrant may expire without being exercised, resulting in a loss of the Fund’s entire investment therein).

Rights. The purchase of rights involves the risk that the Fund could lose the purchase value of a right if the right is not exercised prior to its expiration. Also, the purchase of rights involves the risk that the effective price paid for the right added to the subscription price of the related security may exceed the value of the subscribed security’s market price.

Sector Risk – Companies with similar characteristics, such as those within the same industry, may be grouped together in broad categories called sectors. To the extent the Fund invests its assets in a particular sector, the Fund’s performance may be more susceptible to any economic, business, or other developments that generally affect that sector.

Large-Cap Company Risk – Larger, more established companies may be unable to respond quickly to new competitive challenges and are sometimes unable to attain the high growth rates of successful smaller companies during periods of economic expansion.

Mid-Cap Company Risk – Investing in mid-cap companies may involve greater risk than investing in large-cap companies due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than large-cap companies. In addition, mid-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Small-Cap Company Risk – Investing in small-cap companies may involve greater risk than investing in large- or mid-cap companies due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than mid- and large-cap companies. In addition, small-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Foreign Risk – Investing in securities of foreign corporations involves additional risks relating to: political, social, religious and economic developments abroad; market instability; fluctuations in foreign exchange rates; different regulatory requirements, market practices, accounting standards and practices; and less publicly available information about foreign issuers. Additionally, these investments may be subject to foreign withholding taxes, may be less liquid, carry higher brokerage commissions and other fees, and procedures and regulations governing transactions and custody in foreign markets also may involve delays in payment, delivery or recovery of money or investments. Investments in common stocks of U.S. companies with international operations, and the purchase of sponsored or unsponsored ADRs carry similar risks.

American Depositary Receipts – Unsponsored ADRs held by the Fund are frequently under no obligation to distribute shareholder communications received from the underlying issuer. For this and other reasons, there is less information available about unsponsored ADRs than sponsored ADRs. Unsponsored ADRs are also not obligated to pass through voting rights to the Fund. Investing in foreign companies, even indirectly through ADRs, may involve the same inherent risks as investing in securities of foreign issuers, as described above.
Convertible Debt Securities Risk – Convertible debt securities generally offer lower interest or dividend yields than non-convertible debt securities of similar quality. The value of a convertible debt security is influenced by changes in interest rates, with investment value declining as interest rates increase and increasing as interest rates decline. The credit standing of the company and other factors also may have an effect on a convertible debt security’s investment value.

Debt Securities Risk – Interest rates may go up resulting in a decrease in the value of the debt securities held by the Fund. As of the date of this prospectus, interest rates are near historic lows, but may rise significantly or rapidly in the future, potentially resulting in significant losses to the Fund. Investments in debt securities include credit risk, which is the risk that an issuer will not make timely payments of principal and interest. There is also the risk that a bond issuer may “call,” or repay, its high yielding bonds before their maturity dates. Debt securities subject to prepayment can offer less potential for gains during a declining interest rate environment and similar or greater potential for loss in a rising interest rate environment. Limited trading opportunities for certain debt securities may make it more difficult to sell or buy a security at a favorable price or time.

LIBOR Transition Risk – The Flexible Income Fund may invest in securities that use the London Inter-Bank Offered Rate (“LIBOR”) as a benchmark or reference rate for interest rate calculations. Plans are underway to phase out the use of LIBOR between December 31, 2021 and June 30, 2023. There remains uncertainty regarding the nature of any replacement rate and the impact of the transition from LIBOR on the Fund’s transactions and the financial markets generally. As such, the potential effect of a transition away from LIBOR on the Fund cannot yet be determined. The expected discontinuation of LIBOR could have a significant impact on the financial markets and may present risks for certain market participants.

High Yield Risk – The Flexible Income Fund invests in higher-yielding, high-risk bonds commonly known as junk bonds. These lower-rated bonds have a greater degree of default risk. Lower-rated securities may be issued by companies that are restructuring, are smaller and less credit worthy or are highly indebted, and tend to be less liquid and react more poorly to adverse economic and political changes, unfavorable investor perceptions and negative corporate developments.

Money Market Funds Risk – An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency. Although money market funds seek to preserve the value of investments at $1.00 per share, it is possible for the Fund to lose money if shares of money market funds in which it invests fall below $1.00 per share.

Cybersecurity Risk – With the increased use of technologies such as the Internet to conduct business, the Fund is susceptible to operational, information security, and related risks. Cyber incidents affecting the Fund or its service providers may cause disruptions and impact business operations, potentially resulting in financial losses, interference with the Fund’s ability to calculate its NAV, impediments to trading, the inability of shareholders to transact business, violations of applicable privacy and other laws, regulatory fines, penalties, reputational damage, reimbursement or other compensation costs, or additional compliance costs.
Risk Lose Money [Text] rr_RiskLoseMoney If the value of the Flexible Income Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money.
Risk Not Insured Depository Institution [Text] rr_RiskNotInsuredDepositoryInstitution An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency.
Bar Chart and Performance Table [Heading] rr_BarChartAndPerformanceTableHeading PERFORMANCE
Performance Narrative [Text Block] rr_PerformanceNarrativeTextBlock The performance information provides some indication of the risks of investing in the Flexible Income Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund). The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future. Updated performance information is available on the Fund’s website at http://www.buffalofunds.com/performance.html, or by calling the Fund toll-free at 1-800-49-BUFFALO (1-800-492-8332).
Performance Information Illustrates Variability of Returns [Text] rr_PerformanceInformationIllustratesVariabilityOfReturns The performance information provides some indication of the risks of investing in the Flexible Income Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund).
Performance Availability Phone [Text] rr_PerformanceAvailabilityPhone 1-800-492-8332
Performance Availability Website Address [Text] rr_PerformanceAvailabilityWebSiteAddress http://www.buffalofunds.com/performance.html
Performance Past Does Not Indicate Future [Text] rr_PerformancePastDoesNotIndicateFuture The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future.
Bar Chart [Heading] rr_BarChartHeading Investor Class Annual Total Return as of December 31 of Each Year
Bar Chart Closing [Text Block] rr_BarChartClosingTextBlock
Calendar Year-to-Date Return – Investor Class (through June 30, 2021) = 17.67%
Best Quarter: June 30, 2020 = 17.00%
Worst Quarter: March 31, 2020 = -24.32%
Year to Date Return, Label rr_YearToDateReturnLabel Calendar Year-to-Date Return
Bar Chart, Year to Date Return, Date rr_BarChartYearToDateReturnDate Jun. 30, 2021
Bar Chart, Year to Date Return rr_BarChartYearToDateReturn 17.67%
Highest Quarterly Return, Label rr_HighestQuarterlyReturnLabel Best Quarter
Highest Quarterly Return, Date rr_BarChartHighestQuarterlyReturnDate Jun. 30, 2020
Highest Quarterly Return rr_BarChartHighestQuarterlyReturn 17.00%
Lowest Quarterly Return, Label rr_LowestQuarterlyReturnLabel Worst Quarter
Lowest Quarterly Return, Date rr_BarChartLowestQuarterlyReturnDate Mar. 31, 2020
Lowest Quarterly Return rr_BarChartLowestQuarterlyReturn (24.32%)
Performance Table Heading rr_PerformanceTableHeading Average Annual Total Returns for the periods ended December 31, 2020
Index No Deduction for Fees, Expenses, Taxes [Text] rr_IndexNoDeductionForFeesExpensesTaxes (reflects no deduction for fees, expenses or taxes)
Performance Table Uses Highest Federal Rate rr_PerformanceTableUsesHighestFederalRate After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes.
Performance Table Not Relevant to Tax Deferred rr_PerformanceTableNotRelevantToTaxDeferred Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the Flexible Income Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan.
Performance Table One Class of after Tax Shown [Text] rr_PerformanceTableOneClassOfAfterTaxShown After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares.
Performance Table Explanation after Tax Higher rr_PerformanceTableExplanationAfterTaxHigher In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Performance Table Closing [Text Block] rr_PerformanceTableClosingTextBlock
The Lipper Mixed-Asset Target Allocation Moderate Funds Index® is an unmanaged index considered representative of mixed-asset target allocation moderate funds tracked by Lipper.

After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares. After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes. Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the Flexible Income Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan. In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Buffalo Flexible Income Fund | Morningstar Moderately Aggressive Target Risk Index (reflects no deduction for fees, expenses or taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Morningstar Moderately Aggressive Target Risk Index*(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 13.51%
5 Years rr_AverageAnnualReturnYear05 11.27%
10 Years rr_AverageAnnualReturnYear10 8.94%
Buffalo Flexible Income Fund | Lipper Mixed-Asset Target Allocation Moderate Funds Index® (reflects no deduction for taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Lipper Mixed-Asset Target Allocation Moderate Funds Index®(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 12.47%
5 Years rr_AverageAnnualReturnYear05 8.95%
10 Years rr_AverageAnnualReturnYear10 7.52%
Buffalo Flexible Income Fund | Investor Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUFBX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.85%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets 0.15%
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.01%
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 1.01%
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 103
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 322
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 558
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,236
Annual Return 2011 rr_AnnualReturn2011 9.63%
Annual Return 2012 rr_AnnualReturn2012 10.31%
Annual Return 2013 rr_AnnualReturn2013 16.68%
Annual Return 2014 rr_AnnualReturn2014 3.59%
Annual Return 2015 rr_AnnualReturn2015 (1.97%)
Annual Return 2016 rr_AnnualReturn2016 9.90%
Annual Return 2017 rr_AnnualReturn2017 13.21%
Annual Return 2018 rr_AnnualReturn2018 (7.00%)
Annual Return 2019 rr_AnnualReturn2019 18.76%
Annual Return 2020 rr_AnnualReturn2020 (2.24%)
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 (2.24%)
5 Years rr_AverageAnnualReturnYear05 6.08%
10 Years rr_AverageAnnualReturnYear10 6.77%
Buffalo Flexible Income Fund | Investor Class | After Taxes on Distributions  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions
1 Year rr_AverageAnnualReturnYear01 (3.04%)
5 Years rr_AverageAnnualReturnYear05 5.03%
10 Years rr_AverageAnnualReturnYear10 5.80%
Buffalo Flexible Income Fund | Investor Class | After Taxes on Distributions and Sales  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions and Sale of Fund Shares
1 Year rr_AverageAnnualReturnYear01 (0.81%)
5 Years rr_AverageAnnualReturnYear05 4.65%
10 Years rr_AverageAnnualReturnYear10 5.27%
Buffalo Flexible Income Fund | Institutional Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUIBX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.85%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets none
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.01%
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 0.86%
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 88
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 274
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 477
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,061
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 (2.10%)
5 Years rr_AverageAnnualReturnYear05 6.23%
10 Years rr_AverageAnnualReturnYear10 6.92%
Buffalo Growth Fund  
Prospectus [Line Items] rr_ProspectusLineItems  
Risk/Return [Heading] rr_RiskReturnHeading BUFFALO GROWTH FUND
Objective [Heading] rr_ObjectiveHeading INVESTMENT OBJECTIVE
Objective, Primary [Text Block] rr_ObjectivePrimaryTextBlock The investment objective of the Buffalo Growth Fund (“Growth Fund” or the “Fund”) is long-term growth of capital.
Expense [Heading] rr_ExpenseHeading FEES AND EXPENSES OF THE FUND
Expense Narrative [Text Block] rr_ExpenseNarrativeTextBlock This table describes the fees and expenses that you may pay if you buy, hold and sell shares of the Fund. You may pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not reflected in the tables and example below.
Shareholder Fees Caption [Text] rr_ShareholderFeesCaption Shareholder Fees(fees paid directly from your investment)
Operating Expenses Caption [Text] rr_OperatingExpensesCaption Annual Fund Operating Expenses(expenses that you pay each year as a percentage of the value of your investment)
Portfolio Turnover [Heading] rr_PortfolioTurnoverHeading Portfolio Turnover.
Portfolio Turnover [Text Block] rr_PortfolioTurnoverTextBlock The Fund pays transaction costs, such as commissions, when it buys and sells securities (or “turns over” its portfolio). A higher portfolio turnover rate may indicate higher transaction costs and may result in higher taxes when Fund shares are held in a taxable account. These costs, which are not reflected in annual fund operating expenses or in the example, affect the Fund’s performance. During the most recent fiscal year, the Fund’s portfolio turnover rate was 21% of the average value of its portfolio.
Portfolio Turnover, Rate rr_PortfolioTurnoverRate 21.00%
Expense Example [Heading] rr_ExpenseExampleHeading Example.
Expense Example Narrative [Text Block] rr_ExpenseExampleNarrativeTextBlock This example is intended to help you compare the cost of investing in the Fund with the cost of investing in other mutual funds. The example assumes that you invest $10,000 in the Fund for the time periods indicated and then redeem all of your shares at the end of those periods. The example also assumes that your investment has a 5% return each year and that the Fund’s operating expenses remain the same.
Expense Example by, Year, Caption [Text] rr_ExpenseExampleByYearCaption Although your actual costs may be higher or lower, based on these assumptions your costs would be:
Strategy [Heading] rr_StrategyHeading PRINCIPAL INVESTMENT STRATEGIES
Strategy Narrative [Text Block] rr_StrategyNarrativeTextBlock
The Growth Fund invests in common stocks and other equity securities, including preferred stock, convertible securities, warrants and rights, with a goal of maintaining at least 75% of the Fund’s portfolio in companies with market capitalizations greater than the median of the Morningstar US Growth Index or $5 billion, whichever is lower. The median market capitalization of the Morningstar US Growth Index changes due to market conditions and also changes with the composition of the index. As of June 30, 2021, the median market capitalization of companies in the Morningstar US Growth Index was approximately $6.8 billion. With respect to the remaining 25% of the equity weighting of the Fund’s portfolio, the Fund may invest in companies of any size, including, but not limited to, those with market capitalizations less than the lower of the median of the Morningstar US Growth Index or $5 billion, whichever is lower. In addition to the Fund’s investments in domestic securities, the Fund may invest up to 20% of its net assets in sponsored or unsponsored American Depositary Receipts (“ADRs”) and securities of foreign companies that are traded on U.S. stock exchanges. The Fund may invest in companies in any sector. The Fund may have significant investments in the information technology sector.

Kornitzer Capital Management, Inc., the Fund’s investment advisor (the “Advisor” or “KCM”), seeks to identify companies for the Growth Fund’s portfolio that are expected to experience growth based on the identification of long-term, measurable secular trends, and which, as a result, the Advisor believes may have potential revenue growth in
excess of the gross domestic product growth rate. Companies are screened using in-depth, in-house research to identify those which the Advisor believes have favorable attributes, including attractive valuation, strong management, conservative debt, free cash flow, scalable business models, and competitive advantages. The Advisor may sell the Growth Fund’s investments to secure gains, limit losses or reinvest in more promising investment opportunities
Risk [Heading] rr_RiskHeading PRINCIPAL RISKS
Risk Narrative [Text Block] rr_RiskNarrativeTextBlock
The Growth Fund cannot guarantee that it will achieve its investment objective. As with any mutual fund, the value of the Growth Fund’s investments may fluctuate. If the value of the Growth Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money. The risks associated with the principal investment strategies of the Growth Fund are:

Market Risk; Recent Market Events – The Growth Fund’s investments are subject to market risk, which may cause the value of the Fund to decline. Equity securities are generally subject to greater risk than fixed income securities in adverse market conditions. U.S. and international markets have experienced significant periods of volatility in recent months and years due to economic, political and global macro factors including the impact of the coronavirus (COVID-19) global pandemic, which has resulted in a public health crisis, business interruptions, growth concerns in the U.S. and overseas, rising unemployment claims, changed travel and social behaviors and reduced consumer spending. The effects of COVID-19 have led to a substantial economic downturn or recession of the U.S. and global economies, the recovery from which is uncertain and may last for an extended period of time. Uncertainties regarding interest rates, political events, rising government debt in the U.S. and trade tensions also contribute to market volatility. During those periods, the Fund may experience high levels of shareholder redemptions and may have to sell securities at times when the Fund would otherwise not do so, potentially at unfavorable prices. Certain securities may be difficult to value during such periods.

Management Risk – Management risk means that your investment in the Growth Fund varies with the success and failure of the Advisor’s investment strategies and the Advisor’s research, analysis and determination of portfolio securities.

Equity Market Risk – Equity securities held by the Growth Fund may experience sudden, unpredictable drops in value or long periods of decline in value due to general stock market fluctuations, decisions by management or related factors.

Common Stocks. Common Stocks are susceptible to general stock market fluctuations and to volatile increases and decreases in value as market confidence in and perceptions of their issuers change. Common stock is generally subject to greater risk than preferred stocks and debt obligations because holders of common stock generally have inferior rights to receive payments from issuers in comparison with the rights of the holders of other securities, bondholders and other creditors.

Preferred Stock. Preferred stock is subject to the risk that the dividend on the stock may be changed or omitted by the issuer, and that participation in the growth of an issuer may be limited.

Convertible Securities. A convertible security is a fixed-income security (a debt instrument or a preferred stock) which may be converted at a stated price within a specified period of time into a certain quantity of the common stock of the same or a different issuer. The market value of a convertible security performs like that of a regular debt security, that is, if market interest rates rise, the value of the convertible security falls.

Warrants. Investments in warrants involve certain risks, including the possible lack of a liquid market for resale of the warrants, potential price fluctuations as a result of speculation or other factors, and failure of the price of the underlying security to reach or have reasonable prospects of reaching a level at which the warrant can be prudently exercised (in which event the warrant may expire without being exercised, resulting in a loss of a Fund’s entire investment therein).

Rights. The purchase of rights involves the risk that a fund could lose the purchase value of a right if the right is not exercised prior to its expiration. Also, the purchase of rights involves the risk that the effective price paid for the right added to the subscription price of the related security may exceed the value of the subscribed security’s market price.
Sector Risk – Companies with similar characteristics, such as those within the same industry, may be grouped together in broad categories called sectors. To the extent the Fund invests its assets in a particular sector, the Fund’s performance may be more susceptible to any economic, business, or other developments that generally affect that sector.

Information Technology Company Risk – Information technology companies often face unusually high price volatility, both in terms of gains and losses. To the extent that the Fund makes investments in such companies, its share price is likely to be more volatile. The potential for wide variations in performance is based on special risks common to information technology companies. Information technology companies may have limited product lines, markets or financial resources. Information technology companies are affected by worldwide technological developments and their products and services may quickly become outdated. Given these risks, an investment in the Fund may be more suitable for long-term investors, who are willing to withstand the Fund’s potential for volatility.

Large-Cap Company Risk – Larger, more established companies may be unable to respond quickly to new competitive challenges and are sometimes unable to attain the high growth rates of successful, smaller companies during periods of economic expansion.

Mid-Cap Company Risk – Investing in mid-cap companies may involve greater risk than investing in large-cap companies due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than large-cap companies. In addition, mid-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Small-Cap Company Risk – Investing in small-cap companies may involve greater risk than investing in large- or mid-cap companies due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than mid- and large-cap companies. In addition, small-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Micro-Cap Company Risk – Investing in micro-cap companies may involve greater risk than investing in companies with larger capitalization due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than companies with larger capitalization. In addition, micro-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Money Market Funds Risk – An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency. Although money market funds seek to preserve the value of investments at $1.00 per share, it is possible for the Fund to lose money if shares of money market funds in which it invests fall below $1.00 per share.

Foreign Risk – Investing in securities of foreign corporations involves additional risks relating to: political, social, religious and economic developments abroad; market instability; fluctuations in foreign exchange rates; different regulatory requirements, market practices, accounting standards and practices; and less publicly available information about foreign issuers. Additionally, these investments may be subject to foreign withholding taxes, may be less liquid, carry higher brokerage commissions and other fees, and procedures and regulations governing transactions and custody in foreign markets also may involve delays in payment, delivery or recovery of money or investments. Investments in common stocks of U.S. companies with international operations, and the purchase of sponsored or unsponsored ADRs carry similar risks.

American Depositary Receipts – Unsponsored ADRs held by the Fund are frequently under no obligation to distribute shareholder communications received from the underlying issuer. For this and other reasons, there is less information available about unsponsored ADRs than sponsored ADRs. Unsponsored ADRs are also not obligated to pass through voting rights to the Fund. Investing in foreign companies, even indirectly through ADRs, may involve the same inherent risks as investing in securities of foreign issuers, as described above.
Cybersecurity Risk – With the increased use of technologies such as the Internet to conduct business, the Fund is susceptible to operational, information security, and related risks. Cyber incidents affecting the Fund or its service providers may cause disruptions and impact business operations, potentially resulting in financial losses, interference with the Fund’s ability to calculate its NAV, impediments to trading, the inability of shareholders to transact business, violations of applicable privacy and other laws, regulatory fines, penalties, reputational damage, reimbursement or other compensation costs, or additional compliance costs.
Risk Lose Money [Text] rr_RiskLoseMoney If the value of the Growth Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money.
Risk Not Insured Depository Institution [Text] rr_RiskNotInsuredDepositoryInstitution An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency.
Bar Chart and Performance Table [Heading] rr_BarChartAndPerformanceTableHeading PERFORMANCE
Performance Narrative [Text Block] rr_PerformanceNarrativeTextBlock The performance information provides some indication of the risks of investing in the Growth Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund). The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future. Updated performance information is available on the Fund’s website at http://www.buffalofunds.com/performance.html, or by calling the Fund toll-free at 1-800-49-BUFFALO (1-800-492-8332).
Performance Information Illustrates Variability of Returns [Text] rr_PerformanceInformationIllustratesVariabilityOfReturns The performance information provides some indication of the risks of investing in the Growth Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund).
Performance Availability Phone [Text] rr_PerformanceAvailabilityPhone 1-800-492-8332
Performance Availability Website Address [Text] rr_PerformanceAvailabilityWebSiteAddress http://www.buffalofunds.com/performance.html
Performance Past Does Not Indicate Future [Text] rr_PerformancePastDoesNotIndicateFuture The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future.
Bar Chart [Heading] rr_BarChartHeading Investor Class Annual Total Return as of December 31 of Each Year
Bar Chart Closing [Text Block] rr_BarChartClosingTextBlock
Calendar Year-to-Date Return – Investor Class (through June 30, 2021) = 12.07%
Best Quarter: June 30, 2020 = 24.48%
Worst Quarter: September 30, 2011 = -16.04%
Year to Date Return, Label rr_YearToDateReturnLabel Calendar Year-to-Date Return
Bar Chart, Year to Date Return, Date rr_BarChartYearToDateReturnDate Jun. 30, 2021
Bar Chart, Year to Date Return rr_BarChartYearToDateReturn 12.07%
Highest Quarterly Return, Label rr_HighestQuarterlyReturnLabel Best Quarter
Highest Quarterly Return, Date rr_BarChartHighestQuarterlyReturnDate Jun. 30, 2020
Highest Quarterly Return rr_BarChartHighestQuarterlyReturn 24.48%
Lowest Quarterly Return, Label rr_LowestQuarterlyReturnLabel Worst Quarter
Lowest Quarterly Return, Date rr_BarChartLowestQuarterlyReturnDate Sep. 30, 2011
Lowest Quarterly Return rr_BarChartLowestQuarterlyReturn (16.04%)
Performance Table Heading rr_PerformanceTableHeading Average Annual Total Returns for the periods ended December 31, 2020
Index No Deduction for Fees, Expenses, Taxes [Text] rr_IndexNoDeductionForFeesExpensesTaxes (reflects no deduction for fees, expenses or taxes)
Performance Table Uses Highest Federal Rate rr_PerformanceTableUsesHighestFederalRate After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes.
Performance Table Not Relevant to Tax Deferred rr_PerformanceTableNotRelevantToTaxDeferred Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the Growth Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan.
Performance Table One Class of after Tax Shown [Text] rr_PerformanceTableOneClassOfAfterTaxShown After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares.
Performance Table Explanation after Tax Higher rr_PerformanceTableExplanationAfterTaxHigher In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Performance Table Closing [Text Block] rr_PerformanceTableClosingTextBlock
The Lipper Large-Cap Growth Funds Index® is an unmanaged, equally weighted performance index of the 30 largest qualifying mutual funds (based on net assets) in the Lipper Large-Cap classification.

After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares. After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of
state or local taxes. Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the Growth Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan. In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Buffalo Growth Fund | Morningstar US Growth Index (reflects no deduction for taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Morningstar US Growth Index(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 44.65%
5 Years rr_AverageAnnualReturnYear05 21.32%
10 Years rr_AverageAnnualReturnYear10 17.28%
Buffalo Growth Fund | Lipper Large-Cap Growth Funds Index® (reflects no deduction for taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Lipper Large-Cap Growth Funds Index®(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 38.60%
5 Years rr_AverageAnnualReturnYear05 19.55%
10 Years rr_AverageAnnualReturnYear10 15.80%
Buffalo Growth Fund | Investor Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUFGX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.75%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets 0.15%
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.02%
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 0.92%
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 94
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 293
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 509
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,131
Annual Return 2011 rr_AnnualReturn2011 (0.06%)
Annual Return 2012 rr_AnnualReturn2012 11.86%
Annual Return 2013 rr_AnnualReturn2013 35.40%
Annual Return 2014 rr_AnnualReturn2014 8.88%
Annual Return 2015 rr_AnnualReturn2015 2.64%
Annual Return 2016 rr_AnnualReturn2016 4.86%
Annual Return 2017 rr_AnnualReturn2017 22.81%
Annual Return 2018 rr_AnnualReturn2018 0.51%
Annual Return 2019 rr_AnnualReturn2019 31.91%
Annual Return 2020 rr_AnnualReturn2020 28.29%
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 28.29%
5 Years rr_AverageAnnualReturnYear05 16.98%
10 Years rr_AverageAnnualReturnYear10 14.00%
Buffalo Growth Fund | Investor Class | After Taxes on Distributions  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions
1 Year rr_AverageAnnualReturnYear01 26.82%
5 Years rr_AverageAnnualReturnYear05 13.35%
10 Years rr_AverageAnnualReturnYear10 11.22%
Buffalo Growth Fund | Investor Class | After Taxes on Distributions and Sales  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions and Sale of Fund Shares
1 Year rr_AverageAnnualReturnYear01 17.76%
5 Years rr_AverageAnnualReturnYear05 12.72%
10 Years rr_AverageAnnualReturnYear10 10.80%
Buffalo Growth Fund | Institutional Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BIIGX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.75%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets none
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.02%
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 0.77%
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 79
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 246
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 428
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 954
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 28.49%
5 Years rr_AverageAnnualReturnYear05 17.16%
10 Years rr_AverageAnnualReturnYear10 14.17%
Buffalo High Yield Fund  
Prospectus [Line Items] rr_ProspectusLineItems  
Risk/Return [Heading] rr_RiskReturnHeading BUFFALO HIGH YIELD FUND
Objective [Heading] rr_ObjectiveHeading INVESTMENT OBJECTIVE
Objective, Primary [Text Block] rr_ObjectivePrimaryTextBlock The investment objective of the Buffalo High Yield Fund (“High Yield Fund” or the “Fund”) is current income,
Objective, Secondary [Text Block] rr_ObjectiveSecondaryTextBlock with long-term growth of capital as a secondary objective.
Expense [Heading] rr_ExpenseHeading FEES AND EXPENSES OF THE FUND
Expense Narrative [Text Block] rr_ExpenseNarrativeTextBlock This table describes the fees and expenses that you may pay if you buy, hold and sell shares of the Fund. You may pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not reflected in the tables and example below.
Shareholder Fees Caption [Text] rr_ShareholderFeesCaption Shareholder Fees(fees paid directly from your investment)
Operating Expenses Caption [Text] rr_OperatingExpensesCaption Annual Fund Operating Expenses(expenses that you pay each year as a percentage of the value of your investment)
Portfolio Turnover [Heading] rr_PortfolioTurnoverHeading Portfolio Turnover.
Portfolio Turnover [Text Block] rr_PortfolioTurnoverTextBlock The Fund pays transaction costs, such as commissions, when it buys and sells securities (or “turns over” its portfolio). A higher portfolio turnover rate may indicate higher transaction costs and may result in higher taxes when Fund shares are held in a taxable account. These costs, which are not reflected in annual fund operating expenses or in the example, affect the Fund’s performance. During the most recent fiscal year, the Fund’s portfolio turnover rate was 66% of the average value of its portfolio.
Portfolio Turnover, Rate rr_PortfolioTurnoverRate 66.00%
Expenses Not Correlated to Ratio Due to Acquired Fund Fees [Text] rr_ExpensesNotCorrelatedToRatioDueToAcquiredFundFees The Total Annual Fund Operating Expenses for the Fund do not correlate to the ratio of expenses to average net assets listed in the Fund’s financial highlights, which reflects the operating expenses of the Fund and does not include the amount of the Fund’s proportionate share of the fees and expenses of other investment companies in which the Fund invests.
Expense Example [Heading] rr_ExpenseExampleHeading Example.
Expense Example Narrative [Text Block] rr_ExpenseExampleNarrativeTextBlock This example is intended to help you compare the cost of investing in the Fund with the cost of investing in other mutual funds. The example assumes that you invest $10,000 in the Fund for the time periods indicated and then redeem all of your shares at the end of those periods. The example also assumes that your investment has a 5% return each year and that the Fund’s operating expenses remain the same.
Expense Example by, Year, Caption [Text] rr_ExpenseExampleByYearCaption Although your actual costs may be higher or lower, based on these assumptions your costs would be:
Strategy [Heading] rr_StrategyHeading PRINCIPAL INVESTMENT STRATEGIES
Strategy Narrative [Text Block] rr_StrategyNarrativeTextBlock The High Yield Fund normally invests at least 80% of its net assets in higher-yielding, higher-risk debt securities rated below investment grade by the major rating agencies (or in similar unrated securities), commonly known as “junk bonds.” Debt securities can include fixed and floating rate bonds as well as bank debt and convertible debt securities. While the Fund maintains flexibility to invest in bonds of varying maturities, the Fund generally holds bonds with intermediate-term maturities. With respect to the remaining 20% of the Fund’s net assets, the High Yield Fund may invest in securities such as investment grade debt securities, U.S. Treasury Securities (typically with maturities of 60 days or less), money market funds, and equity investments, including dividend paying stocks, convertible stocks and preferred stocks. The Fund may invest up to 20% of its net assets in sponsored or unsponsored American Depositary Receipts (“ADRs”) and securities of foreign companies that are traded on U.S. stock exchanges and U.S. over-the-counter markets. The Fund may invest in companies in any sector.
The Fund maintains a flexible investment policy which allows it to invest in debt securities with varying maturities. However, it is anticipated that the dollar-weighted average maturity of debt securities that the Fund purchases will not exceed 15 years and that the average maturity of all securities that the Fund holds at any given time will be 10 years or less. The lowest rated debt security that the Fund will hold is D quality (defaulted securities). Although the Fund will not purchase D quality debt securities, the Fund may continue to hold these securities and will sell them at the discretion of Kornitzer Capital Management, Inc’s., the Fund’s investment advisor (the “Advisor” or “KCM”). The Fund has no limitation on principal, interest or reset terms on debt securities held in the Fund.

The Advisor performs extensive fundamental investment research to identify investment opportunities for the Fund. When evaluating investments and the credit quality of rated and unrated securities, the Advisor looks at a number of past, present and estimated future factors, including: (1) financial strength of the issuer; (2) cash flow; (3) management; (4) borrowing requirements; (5) sensitivity to changes in interest rates and business conditions; and (6) relative value. The High Yield Fund relies on the Advisor to undertake a careful analysis to determine the creditworthiness of the issuers of rated debt (on debt ratings by Moody’s or S&P), as well as the issuers of debt not rated by Moody’s or S&P. The Advisor may sell the High Yield Fund’s investments to secure gains, limit losses or reinvest in more promising investment opportunities.
Risk [Heading] rr_RiskHeading PRINCIPAL RISKS
Risk Narrative [Text Block] rr_RiskNarrativeTextBlock
The High Yield Fund cannot guarantee that it will achieve its investment objective. As with any mutual fund, the value of the High Yield Fund’s investments may fluctuate. If the value of the High Yield Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money. The risks associated with the High Yield Fund’s principal investment strategies are:

High Yield Risk – The High Yield Fund invests in higher-yielding, high-risk bonds commonly known as junk bonds. These lower-rated bonds have a greater degree of default risk. Lower-rated securities may be issued by companies that are restructuring, are smaller and less credit worthy or are highly indebted, and tend to be less liquid and react more poorly to adverse economic and political changes, unfavorable investor perceptions and negative corporate developments.

Market Risk; Recent Market Events – The High Yield Fund’s investments are subject to market risk, which may cause the value of the Fund to decline. Equity securities are generally subject to greater risk than fixed income securities in adverse market conditions. U.S. and international markets have experienced significant periods of volatility in recent months and years due to economic, political and global macro factors including the impact of the coronavirus (COVID-19) global pandemic, which has resulted in a public health crisis, business interruptions, growth concerns in the U.S. and overseas, rising unemployment claims, changed travel and social behaviors and reduced consumer spending. The effects of COVID-19 have led to a substantial economic downturn or recession of the U.S. and global economies, the recovery from which is uncertain and may last for an extended period of time. Uncertainties regarding interest rates, political events, rising government debt in the U.S. and trade tensions also contribute to market volatility. During those periods, the Fund may experience high levels of shareholder redemptions and may have to sell securities at times when the Fund would otherwise not do so, potentially at unfavorable prices. Certain securities may be difficult to value during such periods.

Management Risk – Management risk means that your investment in the High Yield Fund varies with the success and failure of the Advisor’s investment strategies and the Advisor’s research, analysis and determination of portfolio securities.

Debt Securities Risk – Interest rates may go up resulting in a decrease in the value of the debt securities held by the Fund. As of the date of this prospectus, interest rates are near historic lows, but may rise significantly or rapidly in the future, potentially resulting in significant losses to the Fund. Investments in debt securities include credit risk, which is the risk that an issuer will not make timely payments of principal and interest. There is also the risk that a bond issuer may “call,” or repay, its high yielding bonds before their maturity dates. Debt securities subject to prepayment can offer less potential for gains during a declining interest rate environment and similar or greater potential for loss in a rising interest rate environment. Limited trading opportunities for certain debt securities may make it more difficult to sell or buy a security at a favorable price or time.
LIBOR Transition Risk – The High Yield Fund may invest in securities that use the London Inter-Bank Offered Rate (“LIBOR”) as a benchmark or reference rate for interest rate calculations. Plans are underway to phase out the use of LIBOR between December 31, 2021 and June 30, 2023. There remains uncertainty regarding the nature of any replacement rate and the impact of the transition from LIBOR on the Fund’s transactions and the financial markets generally. As such, the potential effect of a transition away from LIBOR on the Fund cannot yet be determined. The expected discontinuation of LIBOR could have a significant impact on the financial markets and may present risks for certain market participants.

Bank Loan Risk – The High Yield Fund’s investments in secured and unsecured participations in bank loans and assignments of such loans may create substantial risk. In making investments in such loans, which banks or other financial intermediaries make to borrowers, the Fund will depend primarily upon the creditworthiness of the borrower for payment of principal and interest. If the Fund does not receive scheduled interest or principal payments on such indebtedness, the Fund’s share price could be adversely affected. The High Yield Fund may invest in loan participations that are rated by a nationally recognized statistical rating organization or are unrated, and may invest in loan participations of any credit quality, including loans to “distressed” companies with respect to which there is a substantial risk of losing the entire amount invested. In addition, certain bank loans in which the Fund may invest may be illiquid and, therefore, difficult to value and/or sell at a price that is beneficial to the Fund.

U.S. Government Obligations Risk – The Fund may invest in securities issued, sponsored or guaranteed by the U.S. government, its agencies and instrumentalities. However, no assurance can be given that the U.S. government will provide financial support to U.S. government-sponsored agencies or instrumentalities where it is not obligated to do so by law.

U.S. Treasury Securities Risk – A security backed by the U.S. Treasury or the full faith and credit of the United States is guaranteed only as to the timely payment of interest and principal when held to maturity, but the market prices for such securities are not guaranteed and will fluctuate.

Money Market Funds Risk – An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency. Although money market funds seek to preserve the value of investments at $1.00 per share, it is possible for the High Yield Fund to lose money if shares of money market funds in which it invests fall below $1.00 per share.

Common Stock Risk – Common Stocks are susceptible to general stock market fluctuations and to volatile increases and decreases in value as market confidence in and perceptions of their issuers change. Common stock is generally subject to greater risk than preferred stocks and debt obligations because holders of common stock generally have inferior rights to receive payments from issuers in comparison with the rights of the holders of other securities, bondholders and other creditors.

Preferred Stock Risk – Equity securities may experience sudden, unpredictable drops in value or long periods of decline in value due to general stock market fluctuations, increases in production costs, decisions by management or related factors. Preferred stock, specifically, is subject to the risk that the dividend on the stock may be changed or omitted by the issuer, and that participation in the growth of an issuer may be limited.

Convertible Securities Risk – Convertible securities generally offer lower interest or dividend yields than non-convertible debt securities of similar quality. The value of a convertible security is influenced by changes in interest rates, with investment value declining as interest rates increase and increasing as interest rates decline. The credit standing of the company and other factors also may have an effect on a convertible security’s investment value.

Sector Risk – Companies with similar characteristics, such as those within the same industry, may be grouped together in broad categories called sectors. To the extent the Fund invests its assets in a particular sector, the Fund’s performance may be more susceptible to any economic, business, or other developments that generally affect that sector.

Foreign Risk – Investing in securities of foreign corporations involves additional risks relating to: political, social, religious and economic developments abroad; market instability; fluctuations in foreign exchange rates; different regulatory requirements, market practices, accounting standards and practices; and less publicly available information about foreign issuers. Additionally, these investments may be subject to foreign withholding taxes, may be less liquid,
carry higher brokerage commissions and other fees, and procedures and regulations governing transactions and custody in foreign markets also may involve delays in payment, delivery or recovery of money or investments. Investments in common stocks of U.S. companies with international operations, and the purchase of sponsored or unsponsored ADRs carry similar risks.

American Depositary Receipts – Unsponsored ADRs held by the Fund are frequently under no obligation to distribute shareholder communications received from the underlying issuer. For this and other reasons, there is less information available about unsponsored ADRs than sponsored ADRs. Unsponsored ADRs are also not obligated to pass through voting rights to the Fund. Investing in foreign companies, even indirectly through ADRs, may involve the same inherent risks as investing in securities of foreign issuers, as described above.

Cybersecurity Risk – With the increased use of technologies such as the Internet to conduct business, the Fund is susceptible to operational, information security, and related risks. Cyber incidents affecting the Fund or its service providers may cause disruptions and impact business operations, potentially resulting in financial losses, interference with the Fund’s ability to calculate its NAV, impediments to trading, the inability of shareholders to transact business, violations of applicable privacy and other laws, regulatory fines, penalties, reputational damage, reimbursement or other compensation costs, or additional compliance costs.
Risk Lose Money [Text] rr_RiskLoseMoney If the value of the High Yield Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money.
Risk Not Insured Depository Institution [Text] rr_RiskNotInsuredDepositoryInstitution An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency.
Bar Chart and Performance Table [Heading] rr_BarChartAndPerformanceTableHeading PERFORMANCE
Performance Narrative [Text Block] rr_PerformanceNarrativeTextBlock The performance information provides some indication of the risks of investing in the High Yield Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund). The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future. Updated performance information is available on the Fund’s website at http://www.buffalofunds.com/performance.html, or by calling the Fund toll-free at 1-800-49-BUFFALO (1-800-492-8332).
Performance Information Illustrates Variability of Returns [Text] rr_PerformanceInformationIllustratesVariabilityOfReturns The performance information provides some indication of the risks of investing in the High Yield Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund).
Performance Availability Phone [Text] rr_PerformanceAvailabilityPhone 1-800-492-8332
Performance Availability Website Address [Text] rr_PerformanceAvailabilityWebSiteAddress http://www.buffalofunds.com/performance.html
Performance Past Does Not Indicate Future [Text] rr_PerformancePastDoesNotIndicateFuture The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future.
Bar Chart [Heading] rr_BarChartHeading Investor Class Annual Total Return as of December 31 of Each Year
Bar Chart Closing [Text Block] rr_BarChartClosingTextBlock
Calendar Year-to-Date Return – Investor Class (through June 30, 2021) = 4.30%
Best Quarter: June 30, 2020 = 10.00%
Worst Quarter: March 31, 2020 = -12.52%
Year to Date Return, Label rr_YearToDateReturnLabel Calendar Year-to-Date Return
Bar Chart, Year to Date Return, Date rr_BarChartYearToDateReturnDate Jun. 30, 2021
Bar Chart, Year to Date Return rr_BarChartYearToDateReturn 4.30%
Highest Quarterly Return, Label rr_HighestQuarterlyReturnLabel Best Quarter
Highest Quarterly Return, Date rr_BarChartHighestQuarterlyReturnDate Jun. 30, 2020
Highest Quarterly Return rr_BarChartHighestQuarterlyReturn 10.00%
Lowest Quarterly Return, Label rr_LowestQuarterlyReturnLabel Worst Quarter
Lowest Quarterly Return, Date rr_BarChartLowestQuarterlyReturnDate Mar. 31, 2020
Lowest Quarterly Return rr_BarChartLowestQuarterlyReturn (12.52%)
Performance Table Heading rr_PerformanceTableHeading Average Annual Total Returns for the periods ended December 31, 2020
Index No Deduction for Fees, Expenses, Taxes [Text] rr_IndexNoDeductionForFeesExpensesTaxes (reflects no deduction for fees, expenses or taxes)
Performance Table Uses Highest Federal Rate rr_PerformanceTableUsesHighestFederalRate After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes.
Performance Table Not Relevant to Tax Deferred rr_PerformanceTableNotRelevantToTaxDeferred Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the High Yield Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan.
Performance Table One Class of after Tax Shown [Text] rr_PerformanceTableOneClassOfAfterTaxShown After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares.
Performance Table Explanation after Tax Higher rr_PerformanceTableExplanationAfterTaxHigher In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Performance Table Closing [Text Block] rr_PerformanceTableClosingTextBlock
The Lipper High Yield Bond Funds Index® is a widely recognized index of the 30 largest mutual funds that invest primarily in high yield bonds.

After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares. After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes. Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the High Yield Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan. In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Buffalo High Yield Fund | ICE BofAML US High Yield Master II Index®  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel ICE BofAML US High Yield Master II Index®(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 6.17%
5 Years rr_AverageAnnualReturnYear05 8.43%
10 Years rr_AverageAnnualReturnYear10 6.62%
Buffalo High Yield Fund | Lipper High Yield Bond Funds Index® (reflects no deduction for taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Lipper High Yield Bond Funds Index®(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 4.81%
5 Years rr_AverageAnnualReturnYear05 7.44%
10 Years rr_AverageAnnualReturnYear10 5.93%
Buffalo High Yield Fund | Investor Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUFHX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.85%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets 0.15%
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.02%
Acquired Fund Fees and Expenses rr_AcquiredFundFeesAndExpensesOverAssets 0.01% [3]
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 1.03% [3],[4]
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 105
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 328
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 569
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,259
Annual Return 2011 rr_AnnualReturn2011 3.54%
Annual Return 2012 rr_AnnualReturn2012 10.35%
Annual Return 2013 rr_AnnualReturn2013 9.40%
Annual Return 2014 rr_AnnualReturn2014 1.96%
Annual Return 2015 rr_AnnualReturn2015 1.80%
Annual Return 2016 rr_AnnualReturn2016 6.65%
Annual Return 2017 rr_AnnualReturn2017 5.98%
Annual Return 2018 rr_AnnualReturn2018 (2.26%)
Annual Return 2019 rr_AnnualReturn2019 12.32%
Annual Return 2020 rr_AnnualReturn2020 9.27%
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 9.27%
5 Years rr_AverageAnnualReturnYear05 6.28%
10 Years rr_AverageAnnualReturnYear10 5.81%
Buffalo High Yield Fund | Investor Class | After Taxes on Distributions  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions
1 Year rr_AverageAnnualReturnYear01 7.32%
5 Years rr_AverageAnnualReturnYear05 4.22%
10 Years rr_AverageAnnualReturnYear10 3.75%
Buffalo High Yield Fund | Investor Class | After Taxes on Distributions and Sales  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions and Sale of Fund Shares
1 Year rr_AverageAnnualReturnYear01 5.39%
5 Years rr_AverageAnnualReturnYear05 3.94%
10 Years rr_AverageAnnualReturnYear10 3.64%
Buffalo High Yield Fund | Institutional Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUIHX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.85%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets none
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.01%
Acquired Fund Fees and Expenses rr_AcquiredFundFeesAndExpensesOverAssets 0.01% [3]
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 0.87% [3],[4]
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 89
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 278
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 482
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,073
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 9.43%
5 Years rr_AverageAnnualReturnYear05 6.42%
10 Years rr_AverageAnnualReturnYear10 5.96%
Buffalo International Fund  
Prospectus [Line Items] rr_ProspectusLineItems  
Risk/Return [Heading] rr_RiskReturnHeading BUFFALO INTERNATIONAL FUND
Objective [Heading] rr_ObjectiveHeading INVESTMENT OBJECTIVE
Objective, Primary [Text Block] rr_ObjectivePrimaryTextBlock The investment objective of the Buffalo International Fund (“International Fund” or the “Fund”) is long-term growth of capital.
Expense [Heading] rr_ExpenseHeading FEES AND EXPENSES OF THE FUND
Expense Narrative [Text Block] rr_ExpenseNarrativeTextBlock This table describes the fees and expenses that you may pay if you buy, hold and sell shares of the Fund. You may pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not reflected in the tables and example below.
Shareholder Fees Caption [Text] rr_ShareholderFeesCaption Shareholder Fees(fees paid directly from your investment)
Operating Expenses Caption [Text] rr_OperatingExpensesCaption Annual Fund Operating Expenses(expenses that you pay each year as a percentage of the value of your investment)
Portfolio Turnover [Heading] rr_PortfolioTurnoverHeading Portfolio Turnover.
Portfolio Turnover [Text Block] rr_PortfolioTurnoverTextBlock The Fund pays transaction costs, such as commissions, when it buys and sells securities (or “turns over” its portfolio). A higher portfolio turnover rate may indicate higher transaction costs and may result in higher taxes when Fund shares are held in a taxable account. These costs, which are not reflected in annual fund operating expenses or in the example, affect the Fund’s performance. During the most recent fiscal year, the Fund’s portfolio turnover rate was 14% of the average value of its portfolio.
Portfolio Turnover, Rate rr_PortfolioTurnoverRate 14.00%
Expenses Not Correlated to Ratio Due to Acquired Fund Fees [Text] rr_ExpensesNotCorrelatedToRatioDueToAcquiredFundFees The Total Annual Fund Operating Expenses for the Fund do not correlate to the ratio of expenses to average net assets listed in the Fund’s financial highlights, which reflects the operating expenses of the Fund and does not include the amount of the Fund’s proportionate share of the fees and expenses of other investment companies in which the Fund invests.
Expense Example [Heading] rr_ExpenseExampleHeading Example.
Expense Example Narrative [Text Block] rr_ExpenseExampleNarrativeTextBlock This example is intended to help you compare the cost of investing in the Fund with the cost of investing in other mutual funds. The example assumes that you invest $10,000 in the Fund for the time periods indicated and then redeem all of your shares at the end of those periods. The example also assumes that your investment has a 5% return each year and that the Fund’s operating expenses remain the same.
Expense Example by, Year, Caption [Text] rr_ExpenseExampleByYearCaption Although your actual costs may be higher or lower, based on these assumptions your costs would be:
Strategy [Heading] rr_StrategyHeading PRINCIPAL INVESTMENT STRATEGIES
Strategy Narrative [Text Block] rr_StrategyNarrativeTextBlock
The International Fund invests primarily in equity securities of established companies that are economically tied to various countries throughout the world (excluding the U.S.). The Fund may invest directly or indirectly in foreign securities or foreign currencies of both developed and developing countries. For purposes of the International Fund’s investments, “foreign securities” means those securities issued by companies:

•that are organized under the laws of, or with a principal office in, a country other than the U.S. and issue securities for which the principal trading market is in a country other than the U.S.; or
•that derive at least 50% of their revenues or profits from goods produced or sold, investments made, or services provided in a country other than the U.S., or have at least 50% of their assets in a country other than the U.S.

Under normal circumstances, the International Fund does not expect its investments in emerging markets to exceed 35% of its net assets. Equity securities in which the International Fund will invest include common stocks, preferred stocks, convertible securities, warrants, rights and depositary receipts. The Fund’s investments in depositary receipts may include sponsored or unsponsored American Depositary Receipts (“ADRs”), European Depositary Receipts (“EDRs”) or Global Depositary Receipts (“GDRs”). The International Fund may invest in securities of companies of any size and in any sector.

In selecting securities for the International Fund, Kornitzer Capital Management, Inc., the Fund’s investment advisor (the “Advisor” or “KCM”), uses a bottom-up approach in choosing investments. The Advisor seeks to identify companies for the International Fund’s portfolio that are expected to experience growth based on the identification of long-term, measurable industry, technological, global or other trends. Companies are screened using in-depth, in-house research to identify those which the Advisor believes have favorable attributes, including attractive valuation, strong management, conservative debt, free cash flow, scalable business models, and competitive advantages. In making portfolio selections for the International Fund, the Advisor will also consider the economic, political and market conditions of the various countries in which the Fund may invest. The Advisor may sell the International Fund’s investments to secure gains, limit losses or reinvest in more promising investment opportunities.
Risk [Heading] rr_RiskHeading PRINCIPAL RISKS
Risk Narrative [Text Block] rr_RiskNarrativeTextBlock
The International Fund cannot guarantee that it will achieve its investment objective. As with any mutual fund, the value of the Fund’s investments may fluctuate. If the value of the International Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money. The risks associated with the International Fund’s principal investment strategies are:

Market Risk; Recent Market Events – The International Fund’s investments are subject to market risk, which may cause the value of the Fund to decline. Equity securities are generally subject to greater risk than fixed income securities in adverse market conditions. U.S. and international markets have experienced significant periods of volatility in recent months and years due to economic, political and global macro factors including the impact of the coronavirus (COVID-19) global pandemic, which has resulted in a public health crisis, business interruptions, growth concerns in the U.S. and overseas, rising unemployment claims, changed travel and social behaviors and reduced consumer spending. The effects of COVID-19 have led to a substantial economic downturn or recession of the U.S. and global economies, the recovery from which is uncertain and may last for an extended period of time. Uncertainties regarding interest rates, political events, rising government debt in the U.S. and trade tensions also contribute to market volatility. During those periods, the Fund may experience high levels of shareholder redemptions and may have to sell securities at times when the Fund would otherwise not do so, potentially at unfavorable prices. Certain securities may be difficult to value during such periods.

Management Risk – Management risk means that your investment in the Fund varies with the success and failure of the Advisor’s investment strategies and the Advisor’s research, analysis and determination of portfolio securities.

Equity Market Risk – Equity securities held by the International Fund may experience sudden, unpredictable drops in value or long periods of decline in value due to general stock market fluctuations, increases in production costs, decisions by management or related factors.

Common Stocks. Common stocks are susceptible to general stock market fluctuations and to volatile increases and decreases in value as market confidence in and perceptions of their issuers change. Common stock is generally subject to greater risk than preferred stocks and debt obligations because holders of common stock generally have inferior rights to receive payments from issuers in comparison with the rights of the holders of other securities, bondholders and other creditors.

Preferred Stock. Preferred stock is subject to the risk that the dividend on the stock may be changed or omitted by the issuer, and that participation in the growth of an issuer may be limited.
Convertible Securities. A convertible security is a fixed-income security (a debt instrument or a preferred stock) which may be converted at a stated price within a specified period of time into a certain quantity of the common stock of the same or a different issuer. The market value of a convertible security performs like that of a regular debt security, that is, if market interest rates rise, the value of the convertible security falls.

Warrants. Investments in warrants involve certain risks, including the possible lack of a liquid market for resale of the warrants, potential price fluctuations as a result of speculation or other factors, and failure of the price of the underlying security to reach or have reasonable prospects of reaching a level at which the warrant can be prudently exercised (in which event the warrant may expire without being exercised, resulting in a loss of the Fund’s entire investment therein).

Rights. The purchase of rights involves the risk that the Fund could lose the purchase value of a right if the right is not exercised prior to its expiration. Also, the purchase of rights involves the risk that the effective price paid for the right added to the subscription price of the related security may exceed the value of the subscribed security’s market price.

Large-Cap Company Risk – Larger, more established companies may be unable to respond quickly to new competitive challenges and are sometimes unable to attain the high growth rates of successful, smaller companies during periods of economic expansion.

Mid-Cap Company Risk – Investing in mid-cap companies may involve greater risk than investing in large-cap companies due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than large-cap companies. In addition, mid-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Small-Cap Company Risk – Investing in small-cap companies may involve greater risk than investing in large- or mid-cap companies due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than mid- and large-cap companies. In addition, small-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Money Market Funds Risk – An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency. Although money market funds seek to preserve the value of investments at $1.00 per share, it is possible for the Fund to lose money if shares of money market funds in which it invests fall below $1.00 per share.

Foreign Risk – Investing in securities of foreign corporations involves additional risks relating to: political, social, religious and economic developments abroad; market instability; fluctuations in foreign exchange rates; different regulatory requirements, market practices, accounting standards and practices; and less publicly available information about foreign issuers. Additionally, these investments may be subject to foreign withholding taxes, may be less liquid, carry higher brokerage commissions and other fees, and procedures and regulations governing transactions and custody in foreign markets also may involve delays in payment, delivery or recovery of money or investments. Investments in common stocks of U.S. companies with international operations, and the purchase of sponsored or unsponsored ADRs, EDRs and GDRs carry similar risks.

American Depositary Receipts – Unsponsored ADRs held by the Fund are frequently under no obligation to distribute shareholder communications received from the underlying issuer. For this and other reasons, there is less information available about unsponsored ADRs than sponsored ADRs. Unsponsored ADRs are also not obligated to pass through voting rights to the Fund. Investing in foreign companies, even indirectly through ADRs, may involve the same inherent risks as investing in securities of foreign issuers, as described above.
Emerging Markets Risk – Emerging markets are markets of countries, such as China, the Philippines and India, in the initial stages of industrialization and that generally have low per capita income. In addition to the risks of foreign securities in general, emerging markets are generally more volatile, have relatively unstable governments, social and legal systems that do not protect shareholders, economies based on only a few industries and securities markets that are substantially smaller, less liquid and more volatile with less government oversight than more developed countries. Emerging markets securities or companies may be subject to the risk of nationalization or may be subject to the control of the country in which such companies are domiciled. Additionally, the Fund may have investments in companies located in China.  Risks associated with investments in China include risks related to governmental policies and risks to the economy from trade or political disputes with China’s trading partners.

Currency Risk – When the International Fund buys or sells securities on a foreign stock exchange, the transaction is undertaken in the local currency rather than in U.S. dollars, which carries the risk that the value of the foreign currency will increase or decrease, which may impact the value of the Fund’s portfolio holdings and your investment. China and other countries may adopt economic policies and/or currency exchange controls that affect its currency valuations in a disadvantageous manner for U.S. investors and companies and restrict or prohibit the Fund’s ability to repatriate both investment capital and income, which could place the International Fund’s assets at risk of total loss.

Cybersecurity Risk – With the increased use of technologies such as the Internet to conduct business, the Fund is susceptible to operational, information security, and related risks. Cyber incidents affecting the Fund or its service providers may cause disruptions and impact business operations, potentially resulting in financial losses, interference with the Fund’s ability to calculate its NAV, impediments to trading, the inability of shareholders to transact business, violations of applicable privacy and other laws, regulatory fines, penalties, reputational damage, reimbursement or other compensation costs, or additional compliance costs.
Risk Lose Money [Text] rr_RiskLoseMoney If the value of the International Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money.
Risk Not Insured Depository Institution [Text] rr_RiskNotInsuredDepositoryInstitution An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency.
Bar Chart and Performance Table [Heading] rr_BarChartAndPerformanceTableHeading PERFORMANCE
Performance Narrative [Text Block] rr_PerformanceNarrativeTextBlock The performance information provides some indication of the risks of investing in the International Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund). The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future. Updated performance information is available on the Fund’s website at http://www.buffalofunds.com/performance.html, or by calling the Fund toll-free at 1-800-49-BUFFALO (1-800-492-8332).
Performance Information Illustrates Variability of Returns [Text] rr_PerformanceInformationIllustratesVariabilityOfReturns The performance information provides some indication of the risks of investing in the International Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund).
Performance Availability Phone [Text] rr_PerformanceAvailabilityPhone 1-800-492-8332
Performance Availability Website Address [Text] rr_PerformanceAvailabilityWebSiteAddress http://www.buffalofunds.com/performance.html
Performance Past Does Not Indicate Future [Text] rr_PerformancePastDoesNotIndicateFuture The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future.
Bar Chart [Heading] rr_BarChartHeading Investor Class Annual Total Return as of December 31 of Each Year
Bar Chart Closing [Text Block] rr_BarChartClosingTextBlock
Calendar Year-to-Date Return – Investor Class (through June 30, 2021) = 11.42%
Best Quarter: June 30, 2020 = 18.82%
Worst Quarter: September 30, 2011 = -21.53%
Year to Date Return, Label rr_YearToDateReturnLabel Calendar Year-to-Date Return
Bar Chart, Year to Date Return, Date rr_BarChartYearToDateReturnDate Jun. 30, 2021
Bar Chart, Year to Date Return rr_BarChartYearToDateReturn 11.42%
Highest Quarterly Return, Label rr_HighestQuarterlyReturnLabel Best Quarter
Highest Quarterly Return, Date rr_BarChartHighestQuarterlyReturnDate Jun. 30, 2020
Highest Quarterly Return rr_BarChartHighestQuarterlyReturn 18.82%
Lowest Quarterly Return, Label rr_LowestQuarterlyReturnLabel Worst Quarter
Lowest Quarterly Return, Date rr_BarChartLowestQuarterlyReturnDate Sep. 30, 2011
Lowest Quarterly Return rr_BarChartLowestQuarterlyReturn (21.53%)
Performance Table Heading rr_PerformanceTableHeading Average Annual Total Returns for the periods ended December 31, 2020
Index No Deduction for Fees, Expenses, Taxes [Text] rr_IndexNoDeductionForFeesExpensesTaxes (reflects no deduction for fees, expenses or taxes)
Performance Table Uses Highest Federal Rate rr_PerformanceTableUsesHighestFederalRate After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes.
Performance Table Not Relevant to Tax Deferred rr_PerformanceTableNotRelevantToTaxDeferred Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the International Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan.
Performance Table One Class of after Tax Shown [Text] rr_PerformanceTableOneClassOfAfterTaxShown After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares.
Performance Table Explanation after Tax Higher rr_PerformanceTableExplanationAfterTaxHigher In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Performance Table Closing [Text Block] rr_PerformanceTableClosingTextBlock
The Lipper International Funds Index® measures the performance of the 30 largest mutual funds in the international equity fund objective, as determined by Lipper, Inc.

After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares. After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes. Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the International Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan. In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Buffalo International Fund | Morningstar Global Markets ex-US Index (reflects no deduction for fees, expenses or taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Morningstar Global Markets ex-US Index(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 11.17%
5 Years rr_AverageAnnualReturnYear05 9.27%
10 Years rr_AverageAnnualReturnYear10 5.40%
Buffalo International Fund | Lipper International Funds Index® (reflects no deduction for taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Lipper International Funds Index®(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 12.70%
5 Years rr_AverageAnnualReturnYear05 8.80%
10 Years rr_AverageAnnualReturnYear10 5.98%
Buffalo International Fund | Investor Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUFIX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.85%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets 0.15%
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.03%
Acquired Fund Fees and Expenses rr_AcquiredFundFeesAndExpensesOverAssets 0.01% [5]
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 1.04% [5],[6]
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 106
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 331
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 574
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,271
Annual Return 2011 rr_AnnualReturn2011 (13.82%)
Annual Return 2012 rr_AnnualReturn2012 19.01%
Annual Return 2013 rr_AnnualReturn2013 19.29%
Annual Return 2014 rr_AnnualReturn2014 (2.04%)
Annual Return 2015 rr_AnnualReturn2015 (0.45%)
Annual Return 2016 rr_AnnualReturn2016 3.19%
Annual Return 2017 rr_AnnualReturn2017 29.33%
Annual Return 2018 rr_AnnualReturn2018 (8.85%)
Annual Return 2019 rr_AnnualReturn2019 28.02%
Annual Return 2020 rr_AnnualReturn2020 19.10%
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 19.10%
5 Years rr_AverageAnnualReturnYear05 13.15%
10 Years rr_AverageAnnualReturnYear10 8.27%
Buffalo International Fund | Investor Class | After Taxes on Distributions  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions
1 Year rr_AverageAnnualReturnYear01 19.16%
5 Years rr_AverageAnnualReturnYear05 13.08%
10 Years rr_AverageAnnualReturnYear10 8.25%
Buffalo International Fund | Investor Class | After Taxes on Distributions and Sales  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions and Sale of Fund Shares
1 Year rr_AverageAnnualReturnYear01 11.50%
5 Years rr_AverageAnnualReturnYear05 10.66%
10 Years rr_AverageAnnualReturnYear10 6.87%
Buffalo International Fund | Institutional Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUIIX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.85%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets none
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.03%
Acquired Fund Fees and Expenses rr_AcquiredFundFeesAndExpensesOverAssets 0.01% [5]
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 0.89% [5],[6]
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 91
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 284
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 493
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,096
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 19.24%
5 Years rr_AverageAnnualReturnYear05 13.31%
10 Years rr_AverageAnnualReturnYear10 8.43%
Buffalo Large Cap Fund  
Prospectus [Line Items] rr_ProspectusLineItems  
Risk/Return [Heading] rr_RiskReturnHeading BUFFALO LARGE CAP FUND
Objective [Heading] rr_ObjectiveHeading INVESTMENT OBJECTIVE
Objective, Primary [Text Block] rr_ObjectivePrimaryTextBlock The investment objective of the Buffalo Large Cap Fund (“Large Cap Fund” or the “Fund”) is long-term growth of capital.
Expense [Heading] rr_ExpenseHeading FEES AND EXPENSES OF THE FUND
Expense Narrative [Text Block] rr_ExpenseNarrativeTextBlock This table describes the fees and expenses that you may pay if you buy, hold and sell shares of the Fund. You may pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not reflected in the tables and example below.
Shareholder Fees Caption [Text] rr_ShareholderFeesCaption Shareholder Fees(fees paid directly from your investment)
Operating Expenses Caption [Text] rr_OperatingExpensesCaption Annual Fund Operating Expenses (expenses that you pay each year as a percentage of the value of your investment)
Portfolio Turnover [Heading] rr_PortfolioTurnoverHeading Portfolio Turnover.
Portfolio Turnover [Text Block] rr_PortfolioTurnoverTextBlock The Fund pays transaction costs, such as commissions, when it buys and sells securities (or “turns over” its portfolio). A higher portfolio turnover rate may indicate higher transaction costs and may result in higher taxes when Fund shares are held in a taxable account. These costs, which are not reflected in annual fund operating expenses or in the example, affect the Fund’s performance. During the most recent fiscal year, the Fund’s portfolio turnover rate was 7% of the average value of its portfolio.
Portfolio Turnover, Rate rr_PortfolioTurnoverRate 7.00%
Expenses Not Correlated to Ratio Due to Acquired Fund Fees [Text] rr_ExpensesNotCorrelatedToRatioDueToAcquiredFundFees The Total Annual Fund Operating Expenses for the Fund do not correlate to the ratio of expenses to average net assets listed in the Fund’s financial highlights, which reflects the operating expenses of the Fund and does not include the amount of the Fund’s proportionate share of the fees and expenses of other investment companies in which the Fund invests.
Expense Example [Heading] rr_ExpenseExampleHeading Example.
Expense Example Narrative [Text Block] rr_ExpenseExampleNarrativeTextBlock This example is intended to help you compare the cost of investing in the Fund with the cost of investing in other mutual funds. The example assumes that you invest $10,000 in the Fund for the time periods indicated and then redeem all of your shares at the end of those periods. The example also assumes that your investment has a 5% return each year and that the Fund’s operating expenses remain the same.
Expense Example by, Year, Caption [Text] rr_ExpenseExampleByYearCaption Although your actual costs may be higher or lower, based on these assumptions your costs would be:
Strategy [Heading] rr_StrategyHeading PRINCIPAL INVESTMENT STRATEGIES
Strategy Narrative [Text Block] rr_StrategyNarrativeTextBlock
The Large Cap Fund normally invests at least 80% of its net assets in equity securities, consisting of common stocks, preferred stocks, convertible securities, warrants and rights of large capitalization (“large-cap”) companies. The Large Cap Fund considers a company to be a large-cap company if, at time of purchase by the Fund, it has a market capitalization greater than or equal to the lesser of (1) $10 billion, or (2) the median market capitalization of companies in the Morningstar US Large Growth Index. The median market capitalization of the Morningstar US Large Growth Index changes due to market conditions and also changes with the composition of the Morningstar US Large Growth Index. As of June 30, 2021, the median market capitalization of companies in the Morningstar US Large Growth Index was approximately $84.1 billion. In addition to the Fund’s investments in domestic securities, the Fund may invest up to 20% of its net assets in sponsored or unsponsored American Depositary Receipts (“ADRs”) and securities of foreign companies that are traded on U.S. stock exchanges. The Fund may invest in companies in any sector. The Fund may have significant investments in the information technology sector.

Kornitzer Capital Management, Inc., the Fund’s investment advisor (the “Advisor” or “KCM”), seeks to identify companies for the Large Cap Fund’s portfolio that are expected to experience growth based on the identification of long-term, measurable secular trends, and which, as a result, the Advisor believes may have potential revenue growth in excess of the gross domestic product growth rate. Companies are screened using in-depth, in-house research to identify those which the Advisor believes have favorable attributes, including attractive valuation, strong management, conservative debt, free cash flow, scalable business models, and competitive advantages. The Advisor may sell the Large Cap Fund’s investments to secure gains, limit losses or reinvest in more promising investment opportunities.
Risk [Heading] rr_RiskHeading PRINCIPAL RISKS
Risk Narrative [Text Block] rr_RiskNarrativeTextBlock
The Large Cap Fund cannot guarantee that it will achieve its investment objective. As with any mutual fund, the value of the Large Cap Fund’s investments may fluctuate. If the value of the Large Cap Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money. The risks associated with the Large Cap Fund’s principal investment strategies are:

Market Risk; Recent Market Events – The Large Cap Fund’s investments are subject to market risk, which may cause the value of the Fund to decline. Equity securities are generally subject to greater risk than fixed income securities in adverse market conditions. U.S. and international markets have experienced significant periods of volatility in recent months and years due to economic, political and global macro factors including the impact of the coronavirus (COVID-19) global pandemic, which has resulted in a public health crisis, business interruptions, growth concerns in the U.S. and overseas, rising unemployment claims, changed travel and social behaviors and reduced consumer spending. The effects of COVID-19 have led to a substantial economic downturn or recession of the U.S. and global economies, the recovery from which is uncertain and may last for an extended period of time. Uncertainties regarding interest rates, political events, rising government debt in the U.S. and trade tensions also contribute to market volatility. During those periods, the Fund may experience high levels of shareholder redemptions and may have to sell securities at times when the Fund would otherwise not do so, potentially at unfavorable prices. Certain securities may be difficult to value during such periods.

Management Risk – Management risk means that your investment in the Large Cap Fund varies with the success and failure of the Advisor’s investment strategies and the Advisor’s research, analysis and determination of portfolio securities.

Equity Market Risk – Equity securities held by the Large Cap Fund may experience sudden, unpredictable drops in value or long periods of decline in value due to general stock market fluctuations, increases in production costs, decisions by management or related factors.

Common Stocks. Common stocks are susceptible to general stock market fluctuations and to volatile increases and decreases in value as market confidence in and perceptions of their issuers change. Common stock is generally subject to greater risk than preferred stocks and debt obligations because holders of common stock generally have inferior rights to receive payments from issuers in comparison with the rights of the holders of other securities, bondholders and other creditors.
Preferred Stock. Preferred stock is subject to the risk that the dividend on the stock may be changed or omitted by the issuer, and that participation in the growth of an issuer may be limited.

Convertible Securities. A convertible security is a fixed-income security (a debt instrument or a preferred stock) which may be converted at a stated price within a specified period of time into a certain quantity of the common stock of the same or a different issuer. The market value of a convertible security performs like that of a regular debt security, that is, if market interest rates rise, the value of the convertible security falls.

Warrants. Investments in warrants involve certain risks, including the possible lack of a liquid market for resale of the warrants, potential price fluctuations as a result of speculation or other factors, and failure of the price of the underlying security to reach or have reasonable prospects of reaching a level at which the warrant can be prudently exercised (in which event the warrant may expire without being exercised, resulting in a loss of the Fund’s entire investment therein).

Rights. The purchase of rights involves the risk that the Fund could lose the purchase value of a right if the right is not exercised prior to its expiration. Also, the purchase of rights involves the risk that the effective price paid for the right added to the subscription price of the related security may exceed the value of the subscribed security’s market price.

Sector Risk – Companies with similar characteristics, such as those within the same industry, may be grouped together in broad categories called sectors. To the extent the Fund invests its assets in a particular sector, the Fund’s performance may be more susceptible to any economic, business, or other developments that generally affect that sector.

Information Technology Company Risk – Information technology companies often face unusually high price volatility, both in terms of gains and losses. To the extent that the Fund makes investments in such companies, its share price is likely to be more volatile. The potential for wide variations in performance is based on special risks common to information technology companies. Information technology companies may have limited product lines, markets or financial resources. Information technology companies are affected by worldwide technological developments and their products and services may quickly become outdated. Given these risks, an investment in the Fund may be more suitable for long-term investors, who are willing to withstand the Fund’s potential for volatility.

Large-Cap Company Risk – Larger, more established companies may be unable to respond quickly to new competitive challenges and are sometimes unable to attain the high growth rates of successful smaller companies during periods of economic expansion.

Mid-Cap Company Risk – Investing in mid-cap companies may involve greater risk than investing in large-cap companies due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than large-cap companies. In addition, mid-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Small-Cap Company Risk – Investing in small-cap companies may involve greater risk than investing in large- or mid-cap companies due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than mid- and large-cap companies. In addition, small-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Money Market Funds Risk – An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency. Although money market funds seek to preserve the value of investments at $1.00 per share, it is possible for the Fund to lose money if shares of money market funds in which it invests fall below $1.00 per share.

Foreign Risk – Investing in securities of foreign corporations involves additional risks relating to: political, social, religious and economic developments abroad; market instability; fluctuations in foreign exchange rates; different regulatory requirements, market practices, accounting standards and practices; and less publicly available information about foreign issuers. Additionally, these investments may be subject to foreign withholding taxes, may be less liquid,
carry higher brokerage commissions and other fees, and procedures and regulations governing transactions and custody in foreign markets also may involve delays in payment, delivery or recovery of money or investments. Investments in common stocks of U.S. companies with international operations, and the purchase of sponsored or unsponsored ADRs carry similar risks.

American Depositary Receipts – Unsponsored ADRs held by the Fund are frequently under no obligation to distribute shareholder communications received from the underlying issuer. For this and other reasons, there is less information available about unsponsored ADRs than sponsored ADRs. Unsponsored ADRs are also not obligated to pass through voting rights to the Fund. Investing in foreign companies, even indirectly through ADRs, may involve the same inherent risks as investing in securities of foreign issuers, as described above.

Cybersecurity Risk – With the increased use of technologies such as the Internet to conduct business, the Fund is susceptible to operational, information security, and related risks. Cyber incidents affecting the Fund or its service providers may cause disruptions and impact business operations, potentially resulting in financial losses, interference with the Fund’s ability to calculate its NAV, impediments to trading, the inability of shareholders to transact business, violations of applicable privacy and other laws, regulatory fines, penalties, reputational damage, reimbursement or other compensation costs, or additional compliance costs.
Risk Lose Money [Text] rr_RiskLoseMoney If the value of the Large Cap Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money.
Risk Not Insured Depository Institution [Text] rr_RiskNotInsuredDepositoryInstitution An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency.
Bar Chart and Performance Table [Heading] rr_BarChartAndPerformanceTableHeading PERFORMANCE
Performance Narrative [Text Block] rr_PerformanceNarrativeTextBlock The performance information provides some indication of the risks of investing in the Large Cap Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund). The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future. Updated performance information is available on the Fund’s website at http://www.buffalofunds.com/performance.html, or by calling the Fund toll-free at 1-800-49-BUFFALO (1-800-492-8332).
Performance Information Illustrates Variability of Returns [Text] rr_PerformanceInformationIllustratesVariabilityOfReturns The performance information provides some indication of the risks of investing in the Large Cap Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund).
Performance Availability Phone [Text] rr_PerformanceAvailabilityPhone 1-800-492-8332
Performance Availability Website Address [Text] rr_PerformanceAvailabilityWebSiteAddress http://www.buffalofunds.com/performance.html
Performance Past Does Not Indicate Future [Text] rr_PerformancePastDoesNotIndicateFuture The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future.
Bar Chart [Heading] rr_BarChartHeading Investor Class Annual Total Return as of December 31 of Each Year
Bar Chart Closing [Text Block] rr_BarChartClosingTextBlock
Calendar Year-to-Date Return – Investor Class (through June 30, 2021) = 14.49%
Best Quarter: June 30, 2020 = 24.25%
Worst Quarter: September 30, 2011 = -18.29%
Year to Date Return, Label rr_YearToDateReturnLabel Calendar Year-to-Date Return
Bar Chart, Year to Date Return, Date rr_BarChartYearToDateReturnDate Jun. 30, 2021
Bar Chart, Year to Date Return rr_BarChartYearToDateReturn 14.49%
Highest Quarterly Return, Label rr_HighestQuarterlyReturnLabel Best Quarter
Highest Quarterly Return, Date rr_BarChartHighestQuarterlyReturnDate Jun. 30, 2020
Highest Quarterly Return rr_BarChartHighestQuarterlyReturn 24.25%
Lowest Quarterly Return, Label rr_LowestQuarterlyReturnLabel Worst Quarter
Lowest Quarterly Return, Date rr_BarChartLowestQuarterlyReturnDate Sep. 30, 2011
Lowest Quarterly Return rr_BarChartLowestQuarterlyReturn (18.29%)
Performance Table Heading rr_PerformanceTableHeading Average Annual Total Returns for the periods ended December 31, 2020
Index No Deduction for Fees, Expenses, Taxes [Text] rr_IndexNoDeductionForFeesExpensesTaxes (reflects no deduction for fees, expenses or taxes)
Performance Table Uses Highest Federal Rate rr_PerformanceTableUsesHighestFederalRate After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes.
Performance Table Not Relevant to Tax Deferred rr_PerformanceTableNotRelevantToTaxDeferred Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the Large Cap Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan.
Performance Table One Class of after Tax Shown [Text] rr_PerformanceTableOneClassOfAfterTaxShown After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares.
Performance Table Explanation after Tax Higher rr_PerformanceTableExplanationAfterTaxHigher In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Performance Table Closing [Text Block] rr_PerformanceTableClosingTextBlock
The Lipper Large-Cap Growth Funds Index® is an unmanaged, equally weighted performance index of the 30 largest qualifying mutual funds (based on net assets) in the Lipper Large-Cap classification.

After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares. After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes. Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the Large Cap Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan. In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Buffalo Large Cap Fund | Lipper Large-Cap Growth Funds Index® (reflects no deduction for taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Lipper Large-Cap Growth Funds Index®(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 38.60%
5 Years rr_AverageAnnualReturnYear05 19.55%
10 Years rr_AverageAnnualReturnYear10 15.80%
Buffalo Large Cap Fund | Morningstar US Large Growth Index (reflects no deduction for fees, expenses or taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Morningstar US Large Growth Index(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 38.86%
5 Years rr_AverageAnnualReturnYear05 20.62%
10 Years rr_AverageAnnualReturnYear10 17.44%
Buffalo Large Cap Fund | Investor Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUFEX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.75%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets 0.15%
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.04%
Acquired Fund Fees and Expenses rr_AcquiredFundFeesAndExpensesOverAssets 0.01% [7]
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 0.95% [7],[8]
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 97
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 303
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 525
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,166
Annual Return 2011 rr_AnnualReturn2011 (5.60%)
Annual Return 2012 rr_AnnualReturn2012 17.23%
Annual Return 2013 rr_AnnualReturn2013 32.76%
Annual Return 2014 rr_AnnualReturn2014 12.76%
Annual Return 2015 rr_AnnualReturn2015 7.15%
Annual Return 2016 rr_AnnualReturn2016 6.90%
Annual Return 2017 rr_AnnualReturn2017 24.86%
Annual Return 2018 rr_AnnualReturn2018 (1.63%)
Annual Return 2019 rr_AnnualReturn2019 31.77%
Annual Return 2020 rr_AnnualReturn2020 28.08%
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 28.08%
5 Years rr_AverageAnnualReturnYear05 17.25%
10 Years rr_AverageAnnualReturnYear10 14.68%
Buffalo Large Cap Fund | Investor Class | After Taxes on Distributions  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions
1 Year rr_AverageAnnualReturnYear01 28.04%
5 Years rr_AverageAnnualReturnYear05 16.33%
10 Years rr_AverageAnnualReturnYear10 13.19%
Buffalo Large Cap Fund | Investor Class | After Taxes on Distributions and Sales  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions and Sale of Fund Shares
1 Year rr_AverageAnnualReturnYear01 16.66%
5 Years rr_AverageAnnualReturnYear05 13.66%
10 Years rr_AverageAnnualReturnYear10 11.71%
Buffalo Large Cap Fund | Institutional Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUIEX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.75%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets none
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.04%
Acquired Fund Fees and Expenses rr_AcquiredFundFeesAndExpensesOverAssets 0.01% [7]
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 0.80% [7],[8]
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 82
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 255
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 444
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 990
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 28.28%
5 Years rr_AverageAnnualReturnYear05 17.43%
10 Years rr_AverageAnnualReturnYear10 14.85%
Buffalo Mid Cap Fund  
Prospectus [Line Items] rr_ProspectusLineItems  
Risk/Return [Heading] rr_RiskReturnHeading BUFFALO MID CAP FUND
Objective [Heading] rr_ObjectiveHeading INVESTMENT OBJECTIVE
Objective, Primary [Text Block] rr_ObjectivePrimaryTextBlock The investment objective of the Buffalo Mid Cap Fund (“Mid Cap Fund” or the “Fund”) is long-term growth of capital.
Expense [Heading] rr_ExpenseHeading FEES AND EXPENSES OF THE FUND
Expense Narrative [Text Block] rr_ExpenseNarrativeTextBlock This table describes the fees and expenses that you may pay if you buy, hold and sell shares of the Fund. You may pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not reflected in the tables and example below.
Shareholder Fees Caption [Text] rr_ShareholderFeesCaption Shareholder Fees(fees paid directly from your investment)
Operating Expenses Caption [Text] rr_OperatingExpensesCaption Annual Fund Operating Expenses(expenses that you pay each year as a percentage of the value of your investment)
Portfolio Turnover [Heading] rr_PortfolioTurnoverHeading Portfolio Turnover.
Portfolio Turnover [Text Block] rr_PortfolioTurnoverTextBlock The Fund pays transaction costs, such as commissions, when it buys and sells securities (or “turns over” its portfolio). A higher portfolio turnover rate may indicate higher transaction costs and may result in higher taxes when Fund shares are held in a taxable account. These costs, which are not reflected in annual fund operating expenses or in the example, affect the Fund’s performance. During the most recent fiscal year, the Fund’s portfolio turnover rate was 41% of the average value of its portfolio.
Portfolio Turnover, Rate rr_PortfolioTurnoverRate 41.00%
Expense Example [Heading] rr_ExpenseExampleHeading Example.
Expense Example Narrative [Text Block] rr_ExpenseExampleNarrativeTextBlock This example is intended to help you compare the cost of investing in the Fund with the cost of investing in other mutual funds. The example assumes that you invest $10,000 in the Fund for the time periods indicated and then redeem all of your shares at the end of those periods. The example also assumes that your investment has a 5% return each year and that the Fund’s operating expenses remain the same.
Expense Example by, Year, Caption [Text] rr_ExpenseExampleByYearCaption Although your actual costs may be higher or lower, based on these assumptions your costs would be:
Strategy [Heading] rr_StrategyHeading PRINCIPAL INVESTMENT STRATEGIES
Strategy Narrative [Text Block] rr_StrategyNarrativeTextBlock
The Mid Cap Fund normally invests at least 80% of its net assets in equity securities, consisting of common stocks, preferred stocks, convertible preferred stocks, warrants and rights of medium capitalization (“mid-cap”) companies. The Mid Cap Fund defines mid-cap companies as those companies, at the time of purchase, with market capitalizations within the range of the Morningstar US Mid Growth Index. As of June 30, 2021 the range of market capitalizations of the Morningstar US Mid Growth Index was $4.3 billion to $93.2 billion. In addition to the Fund’s investments in domestic securities, the Fund may invest up to 20% of its net assets in sponsored or unsponsored American Depositary Receipts (“ADRs”) and securities of foreign companies that are traded on U.S. stock exchanges. The Fund may invest in companies in any sector.

Kornitzer Capital Management, Inc., the Fund’s investment advisor (the “Advisor” or “KCM”), seeks to identify companies for the Mid Cap Fund’s portfolio that are expected to experience growth based on the identification of long-term, measurable secular trends, and which, as a result, the Advisor believes may have potential revenue growth in excess of the gross domestic product growth rate. Companies are screened using in-depth, in-house research to identify those which the Advisor believes have favorable attributes, including attractive valuation, strong management,
conservative debt, free cash flow, scalable business models, and competitive advantages. The Advisor may sell the Mid Cap Fund’s investments to secure gains, limit losses or reinvest in more promising investment opportunities.
Risk [Heading] rr_RiskHeading PRINCIPAL RISKS
Risk Narrative [Text Block] rr_RiskNarrativeTextBlock
The Mid Cap Fund cannot guarantee that it will achieve its investment objective. As with any mutual fund, the value of the Mid Cap Fund’s investments may fluctuate. If the value of the Mid Cap Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money. The risks associated with the Mid Cap Fund’s principal investment strategies are:

Market Risk; Recent Market Events – The Mid Cap Fund’s investments are subject to market risk, which may cause the value of the Fund to decline. Equity securities are generally subject to greater risk than fixed income securities in adverse market conditions. U.S. and international markets have experienced significant periods of volatility in recent months and years due to economic, political and global macro factors including the impact of the coronavirus (COVID-19) global pandemic, which has resulted in a public health crisis, business interruptions, growth concerns in the U.S. and overseas, rising unemployment claims, changed travel and social behaviors and reduced consumer spending. The effects of COVID-19 have led to a substantial economic downturn or recession of the U.S. and global economies, the recovery from which is uncertain and may last for an extended period of time. Uncertainties regarding interest rates, political events, rising government debt in the U.S. and trade tensions also contribute to market volatility. During those periods, the Fund may experience high levels of shareholder redemptions and may have to sell securities at times when the Fund would otherwise not do so, potentially at unfavorable prices. Certain securities may be difficult to value during such periods.

Management Risk – Management risk means that your investment in the Mid Cap Fund varies with the success and failure of the Advisor’s investment strategies and the Advisor’s research, analysis and determination of portfolio securities.

Equity Market Risk – Equity securities held by the Mid Cap Fund may experience sudden, unpredictable drops in value or long periods of decline in value due to general stock market fluctuations, increases in production costs, decisions by management or related factors.

Common Stocks. Common stocks are susceptible to general stock market fluctuations and to volatile increases and decreases in value as market confidence in and perceptions of their issuers change. Common stock is generally subject to greater risk than preferred stocks and debt obligations because holders of common stock generally have inferior rights to receive payments from issuers in comparison with the rights of the holders of other securities, bondholders and other creditors.

Preferred Stock. Preferred stock is subject to the risk that the dividend on the stock may be changed or omitted by the issuer, and that participation in the growth of an issuer may be limited.

Convertible Securities. A convertible security is a fixed-income security (a debt instrument or a preferred stock) which may be converted at a stated price within a specified period of time into a certain quantity of the common stock of the same or a different issuer. The market value of a convertible security performs like that of a regular debt security, that is, if market interest rates rise, the value of the convertible security falls.

Warrants. Investments in warrants involve certain risks, including the possible lack of a liquid market for resale of the warrants, potential price fluctuations as a result of speculation or other factors, and failure of the price of the underlying security to reach or have reasonable prospects of reaching a level at which the warrant can be prudently exercised (in which event the warrant may expire without being exercised, resulting in a loss of the Fund’s entire investment therein).

Rights. The purchase of rights involves the risk that the Fund could lose the purchase value of a right if the right is not exercised prior to its expiration. Also, the purchase of rights involves the risk that the effective price paid for the right added to the subscription price of the related security may exceed the value of the subscribed security’s market price.
Sector Risk – Companies with similar characteristics, such as those within the same industry, may be grouped together in broad categories called sectors. To the extent the Fund invests its assets in a particular sector, the Fund’s performance may be more susceptible to any economic, business, or other developments that generally affect that sector.

Mid-Cap Company Risk – Investing in mid-cap companies may involve greater risk than investing in large-cap companies due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than large-cap companies. In addition, mid-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Money Market Funds Risk – An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency. Although money market funds seek to preserve the value of investments at $1.00 per share, it is possible for the Fund to lose money if shares of money market funds in which it invests fall below $1.00 per share.

Foreign Risk – Investing in securities of foreign corporations involves additional risks relating to: political, social, religious and economic developments abroad; market instability; fluctuations in foreign exchange rates; different regulatory requirements, market practices, accounting standards and practices; and less publicly available information about foreign issuers. Additionally, these investments may be subject to foreign withholding taxes, may be less liquid, carry higher brokerage commissions and other fees, and procedures and regulations governing transactions and custody in foreign markets also may involve delays in payment, delivery or recovery of money or investments. Investments in common stocks of U.S. companies with international operations, and the purchase of sponsored or unsponsored ADRs carry similar risks.

American Depositary Receipts – Unsponsored ADRs held by the Fund are frequently under no obligation to distribute shareholder communications received from the underlying issuer. For this and other reasons, there is less information available about unsponsored ADRs than sponsored ADRs. Unsponsored ADRs are also not obligated to pass through voting rights to the Fund. Investing in foreign companies, even indirectly through ADRs, may involve the same inherent risks as investing in securities of foreign issuers, as described above.

Cybersecurity Risk – With the increased use of technologies such as the Internet to conduct business, the Fund is susceptible to operational, information security, and related risks. Cyber incidents affecting the Fund or its service providers may cause disruptions and impact business operations, potentially resulting in financial losses, interference with the Fund’s ability to calculate its NAV, impediments to trading, the inability of shareholders to transact business, violations of applicable privacy and other laws, regulatory fines, penalties, reputational damage, reimbursement or other compensation costs, or additional compliance costs.
Risk Lose Money [Text] rr_RiskLoseMoney If the value of the Mid Cap Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money.
Risk Not Insured Depository Institution [Text] rr_RiskNotInsuredDepositoryInstitution An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency.
Bar Chart and Performance Table [Heading] rr_BarChartAndPerformanceTableHeading PERFORMANCE
Performance Narrative [Text Block] rr_PerformanceNarrativeTextBlock The performance information provides some indication of the risks of investing in the Mid Cap Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund). The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future. Updated performance information is available on the Fund’s website at http://www.buffalofunds.com/performance.html, or by calling the Fund toll-free at 1-800-49-BUFFALO (1-800-492-8332).
Performance Information Illustrates Variability of Returns [Text] rr_PerformanceInformationIllustratesVariabilityOfReturns The performance information provides some indication of the risks of investing in the Mid Cap Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund).
Performance Availability Phone [Text] rr_PerformanceAvailabilityPhone 1-800-492-8332
Performance Availability Website Address [Text] rr_PerformanceAvailabilityWebSiteAddress http://www.buffalofunds.com/performance.html
Performance Past Does Not Indicate Future [Text] rr_PerformancePastDoesNotIndicateFuture The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future.
Bar Chart [Heading] rr_BarChartHeading Investor Class Annual Total Return as of December 31 of Each Year
Bar Chart Closing [Text Block] rr_BarChartClosingTextBlock
Calendar Year-to-Date Return – Investor Class (through June 30, 2021) = 10.47%
Best Quarter: June 30, 2020 = 22.66%
Worst Quarter: September 30, 2011 = -19.08%
Year to Date Return, Label rr_YearToDateReturnLabel Calendar Year-to-Date Return
Bar Chart, Year to Date Return, Date rr_BarChartYearToDateReturnDate Jun. 30, 2021
Bar Chart, Year to Date Return rr_BarChartYearToDateReturn 10.47%
Highest Quarterly Return, Label rr_HighestQuarterlyReturnLabel Best Quarter
Highest Quarterly Return, Date rr_BarChartHighestQuarterlyReturnDate Jun. 30, 2020
Highest Quarterly Return rr_BarChartHighestQuarterlyReturn 22.66%
Lowest Quarterly Return, Label rr_LowestQuarterlyReturnLabel Worst Quarter
Lowest Quarterly Return, Date rr_BarChartLowestQuarterlyReturnDate Sep. 30, 2011
Lowest Quarterly Return rr_BarChartLowestQuarterlyReturn (19.08%)
Performance Table Heading rr_PerformanceTableHeading Average Annual Total Returns for the periods ended December 31, 2020
Index No Deduction for Fees, Expenses, Taxes [Text] rr_IndexNoDeductionForFeesExpensesTaxes (reflects no deduction for fees, expenses or taxes)
Performance Table Uses Highest Federal Rate rr_PerformanceTableUsesHighestFederalRate After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes.
Performance Table Not Relevant to Tax Deferred rr_PerformanceTableNotRelevantToTaxDeferred Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the Mid Cap Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan.
Performance Table One Class of after Tax Shown [Text] rr_PerformanceTableOneClassOfAfterTaxShown After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares.
Performance Table Explanation after Tax Higher rr_PerformanceTableExplanationAfterTaxHigher In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Performance Table Closing [Text Block] rr_PerformanceTableClosingTextBlock
The Lipper Mid-Cap Growth Funds Index® is an unmanaged, equally weighted performance index of the 30 largest qualifying mutual funds (based on net assets) in the Lipper Mid-Cap classification.

After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares. After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes. Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the Mid Cap Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan. In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Buffalo Mid Cap Fund | Morningstar US Mid Growth Index (reflects no deduction for fees, expenses or taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Morningstar US Mid Growth Index(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 46.17%
5 Years rr_AverageAnnualReturnYear05 20.83%
10 Years rr_AverageAnnualReturnYear10 15.59%
Buffalo Mid Cap Fund | Lipper Mid-Cap Growth Funds Index® (reflects no deduction for taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Lipper Mid-Cap Growth Funds Index®(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 35.98%
5 Years rr_AverageAnnualReturnYear05 18.62%
10 Years rr_AverageAnnualReturnYear10 13.91%
Buffalo Mid Cap Fund | Investor Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUFMX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.85%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets 0.15%
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.03%
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 1.03%
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 105
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 328
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 569
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,259
Annual Return 2011 rr_AnnualReturn2011 (5.83%)
Annual Return 2012 rr_AnnualReturn2012 13.93%
Annual Return 2013 rr_AnnualReturn2013 29.25%
Annual Return 2014 rr_AnnualReturn2014 5.85%
Annual Return 2015 rr_AnnualReturn2015 (0.52%)
Annual Return 2016 rr_AnnualReturn2016 5.93%
Annual Return 2017 rr_AnnualReturn2017 13.66%
Annual Return 2018 rr_AnnualReturn2018 (7.30%)
Annual Return 2019 rr_AnnualReturn2019 37.98%
Annual Return 2020 rr_AnnualReturn2020 34.18%
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 34.18%
5 Years rr_AverageAnnualReturnYear05 15.62%
10 Years rr_AverageAnnualReturnYear10 11.68%
Buffalo Mid Cap Fund | Investor Class | After Taxes on Distributions  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions
1 Year rr_AverageAnnualReturnYear01 31.99%
5 Years rr_AverageAnnualReturnYear05 12.90%
10 Years rr_AverageAnnualReturnYear10 9.23%
Buffalo Mid Cap Fund | Investor Class | After Taxes on Distributions and Sales  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions and Sale of Fund Shares
1 Year rr_AverageAnnualReturnYear01 21.59%
5 Years rr_AverageAnnualReturnYear05 11.72%
10 Years rr_AverageAnnualReturnYear10 8.81%
Buffalo Mid Cap Fund | Institutional Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUIMX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.85%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets none
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.03%
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 0.88%
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 90
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 281
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 488
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,084
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 34.42%
5 Years rr_AverageAnnualReturnYear05 15.80%
10 Years rr_AverageAnnualReturnYear10 11.84%
Buffalo Small Cap Fund  
Prospectus [Line Items] rr_ProspectusLineItems  
Risk/Return [Heading] rr_RiskReturnHeading BUFFALO SMALL CAP FUND
Objective [Heading] rr_ObjectiveHeading INVESTMENT OBJECTIVE
Objective, Primary [Text Block] rr_ObjectivePrimaryTextBlock The investment objective of the Buffalo Small Cap Fund (“Small Cap Fund” or the “Fund”) is long-term growth of capital.
Expense [Heading] rr_ExpenseHeading FEES AND EXPENSES OF THE FUND
Expense Narrative [Text Block] rr_ExpenseNarrativeTextBlock This table describes the fees and expenses that you may pay if you buy, hold and sell shares of the Fund. You may pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not reflected in the tables and example below.
Shareholder Fees Caption [Text] rr_ShareholderFeesCaption Shareholder Fees(fees paid directly from your investment)
Operating Expenses Caption [Text] rr_OperatingExpensesCaption Annual Fund Operating Expenses(expenses that you pay each year as a percentage of the value of your investment)
Portfolio Turnover [Heading] rr_PortfolioTurnoverHeading Portfolio Turnover.
Portfolio Turnover [Text Block] rr_PortfolioTurnoverTextBlock The Fund pays transaction costs, such as commissions, when it buys and sells securities (or “turns over” its portfolio). A higher portfolio turnover rate may indicate higher transaction costs and may result in higher taxes when Fund shares are held in a taxable account. These costs, which are not reflected in annual fund operating expenses or in the example, affect the Fund’s performance. During the most recent fiscal year, the Fund’s portfolio turnover rate was 63% of the average value of its portfolio.
Portfolio Turnover, Rate rr_PortfolioTurnoverRate 63.00%
Expense Example [Heading] rr_ExpenseExampleHeading Example.
Expense Example Narrative [Text Block] rr_ExpenseExampleNarrativeTextBlock This example is intended to help you compare the cost of investing in the Fund with the cost of investing in other mutual funds. The example assumes that you invest $10,000 in the Fund for the time periods indicated and then redeem all of your shares at the end of those periods. The example also assumes that your investment has a 5% return each year and that the Fund’s operating expenses remain the same.
Expense Example by, Year, Caption [Text] rr_ExpenseExampleByYearCaption Although your actual costs may be higher or lower, based on these assumptions your costs would be:
Strategy [Heading] rr_StrategyHeading PRINCIPAL INVESTMENT STRATEGIES
Strategy Narrative [Text Block] rr_StrategyNarrativeTextBlock The Small Cap Fund normally invests at least 80% of its net assets in equity securities, consisting of common stocks, preferred stocks, convertible preferred stocks, warrants and rights of small capitalization (“small-cap”) companies. The Small Cap Fund defines small-cap companies as those companies, at the time of purchase, with market capitalizations within the range of the Morningstar US Small Growth Index. As of June 30, 2021 the range of market capitalizations of the Morningstar US Small Growth Index was $543 million to $20.4 billion. In addition to the Fund’s investments in domestic securities, the Fund may invest up to 20% of its net assets in sponsored or unsponsored American Depositary Receipts (“ADRs”) and securities of foreign companies that are traded on U.S. stock exchanges. The Fund may invest in companies in any sector. The Fund may have significant investments in the healthcare sector.Kornitzer Capital Management, Inc., the Fund’s investment advisor (the “Advisor” or “KCM”), seeks to identify companies for the Small Cap Fund’s portfolio that are expected to experience growth based on the identification of long-term, measurable secular trends, and which, as a result, the Advisor believes may have potential revenue growth in excess of the gross domestic product growth rate. Companies are screened using in-depth, in-house research to identify those which the Advisor believes have favorable attributes, including attractive valuation, strong management, conservative debt, free cash flow, scalable business models, and competitive advantages. The Advisor may sell the Small-Cap Fund’s investments to secure gains, limit losses or reinvest in more promising investment opportunities.
Risk [Heading] rr_RiskHeading PRINCIPAL RISKS
Risk Narrative [Text Block] rr_RiskNarrativeTextBlock
The Small Cap Fund cannot guarantee that it will achieve its investment objective. As with any mutual fund, the value of the Fund’s investments may fluctuate. If the value of the Small Cap Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money. The risks associated with the Small Cap Fund’s principal investment strategies are:

Market Risk; Recent Market Events – The Small Cap Fund’s investments are subject to market risk, which may cause the value of the Fund to decline. Equity securities are generally subject to greater risk than fixed income securities in adverse market conditions. U.S. and international markets have experienced significant periods of volatility in recent months and years due to economic, political and global macro factors including the impact of the coronavirus (COVID-19) global pandemic, which has resulted in a public health crisis, business interruptions, growth concerns in the U.S. and overseas, rising unemployment claims, changed travel and social behaviors and reduced consumer spending. The effects of COVID-19 have led to a substantial economic downturn or recession of the U.S. and global economies, the recovery from which is uncertain and may last for an extended period of time. Uncertainties regarding interest rates, political events, rising government debt in the U.S. and trade tensions also contribute to market volatility. During those periods, the Fund may experience high levels of shareholder redemptions and may have to sell securities at times when the Fund would otherwise not do so, potentially at unfavorable prices. Certain securities may be difficult to value during such periods.

Management Risk – Management risk means that your investment in the Small Cap Fund varies with the success and failure of the Advisor’s investment strategies and the Advisor’s research, analysis and determination of portfolio securities.

Equity Market Risk – Equity securities held by the Small Cap Fund may experience sudden, unpredictable drops in value or long periods of decline in value due to general stock market fluctuations, increases in production costs, decisions by management or related factors.

Common Stocks. Common Stocks are susceptible to general stock market fluctuations and to volatile increases and decreases in value as market confidence in and perceptions of their issuers change. Common stock is generally subject to greater risk than preferred stocks and debt obligations because holders of common stock generally have inferior rights to receive payments from issuers in comparison with the rights of the holders of other securities, bondholders and other creditors.

Preferred Stock. Preferred stock is subject to the risk that the dividend on the stock may be changed or omitted by the issuer, and that participation in the growth of an issuer may be limited.

Convertible Securities. A convertible security is a fixed-income security (a debt instrument or a preferred stock) which may be converted at a stated price within a specified period of time into a certain quantity of the common stock of the same or a different issuer. The market value of a convertible security performs like that of a regular debt security, that is, if market interest rates rise, the value of the convertible security falls.

Warrants. Investments in warrants involve certain risks, including the possible lack of a liquid market for resale of the warrants, potential price fluctuations as a result of speculation or other factors, and failure of the price of the underlying security to reach or have reasonable prospects of reaching a level at which the warrant can be prudently exercised (in which event the warrant may expire without being exercised, resulting in a loss of the Fund’s entire investment therein).
Rights. The purchase of rights involves the risk that the Fund could lose the purchase value of a right if the right is not exercised prior to its expiration. Also, the purchase of rights involves the risk that the effective price paid for the right added to the subscription price of the related security may exceed the value of the subscribed security’s market price.

Sector Risk – Companies with similar characteristics, such as those within the same industry, may be grouped together in broad categories called sectors. To the extent the Fund invests its assets in a particular sector, the Fund’s performance may be more susceptible to any economic, business, or other developments that generally affect that sector.

Healthcare Sector Risk – To the extent the Fund invests a significant portion of its assets in the healthcare sector, the Fund will be sensitive to changes in, and its performance will depend to a greater extent on, the overall condition of the healthcare sector. Companies in the healthcare sector are subject to extensive government regulation and their profitability can be significantly affected by regulatory changes. Other risk factors include rising costs of medical products and services, pricing pressure and limited product lines, loss or impairment of intellectual property rights and litigation regarding product or service liability.

Small-Cap Company Risk – Investing in small-cap companies may involve greater risk than investing in large- or mid-cap companies due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than mid- and large-cap companies. In addition, small-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans.

Micro-Cap Company Risk – Investing in micro-cap companies may involve greater risk than investing in companies with larger capitalization due to less management experience, fewer financial resources, less product diversification and fewer competitive strengths. Therefore, such securities may be more volatile and less liquid than companies with larger capitalization. In addition, micro-cap companies may be particularly affected by interest rate increases, as they may find it more difficult to borrow money to continue or expand operations, or may have difficulty in repaying any loans. The trading volume of securities of smaller capitalization companies is normally less than that of larger capitalization companies, and therefore may disproportionately affect their market price, tending to make them fall more in response to selling pressure than is the case with larger capitalization companies. These risks are enhanced for micro-cap securities. Many micro-cap companies tend to be new and have no proven track record. Some of these companies have no assets or operations, while others have products and services that are still in development or have yet to be tested in the market. As any size of trade can have a large percentage impact on the price of a micro-cap stock, the Fund will be more susceptible to sudden and significant losses. In addition, micro-cap company stocks will also be bought and sold less often than other stocks, making them less liquid than other securities.

Money Market Funds Risk – An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency. Although money market funds seek to preserve the value of investments at $1.00 per share, it is possible for the Fund to lose money if shares of money market funds in which it invests fall below $1.00 per share.

Foreign Risk – Investing in securities of foreign corporations involves additional risks relating to: political, social, religious and economic developments abroad; market instability; fluctuations in foreign exchange rates; different regulatory requirements, market practices, accounting standards and practices; and less publicly available information about foreign issuers. Additionally, these investments may be subject to foreign withholding taxes, may be less liquid, carry higher brokerage commissions and other fees, and procedures and regulations governing transactions and custody in foreign markets also may involve delays in payment, delivery or recovery of money or investments. Investments in common stocks of U.S. companies with international operations, and the purchase of sponsored or unsponsored ADRs carry similar risks.

American Depositary Receipts – Unsponsored ADRs held by the Fund are frequently under no obligation to distribute shareholder communications received from the underlying issuer. For this and other reasons, there is less information available about unsponsored ADRs than sponsored ADRs. Unsponsored ADRs are also not obligated to pass through voting rights to the Fund. Investing in foreign companies, even indirectly through ADRs, may involve the same inherent risks as investing in securities of foreign issuers, as described above.
Cybersecurity Risk – With the increased use of technologies such as the Internet to conduct business, the Fund is susceptible to operational, information security, and related risks. Cyber incidents affecting the Fund or its service providers may cause disruptions and impact business operations, potentially resulting in financial losses, interference with the Fund’s ability to calculate its NAV, impediments to trading, the inability of shareholders to transact business, violations of applicable privacy and other laws, regulatory fines, penalties, reputational damage, reimbursement or other compensation costs, or additional compliance costs.
Risk Lose Money [Text] rr_RiskLoseMoney If the value of the Small Cap Fund’s investments decreases, the value of the Fund’s shares will also decrease and you may lose money.
Risk Not Insured Depository Institution [Text] rr_RiskNotInsuredDepositoryInstitution An investment in a money market fund is not a bank deposit and is not insured or guaranteed by any bank, the Federal Deposit Insurance Corporation (FDIC) or any other government agency.
Bar Chart and Performance Table [Heading] rr_BarChartAndPerformanceTableHeading PERFORMANCE
Performance Narrative [Text Block] rr_PerformanceNarrativeTextBlock The performance information provides some indication of the risks of investing in the Small Cap Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund). The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future. Updated performance information is available on the Fund’s website at http://www.buffalofunds.com/performance.html, or by calling the Fund toll-free at 1-800-49-BUFFALO (1-800-492-8332).
Performance Information Illustrates Variability of Returns [Text] rr_PerformanceInformationIllustratesVariabilityOfReturns The performance information provides some indication of the risks of investing in the Small Cap Fund by showing changes in the Fund’s performance from year to year and by showing how the Fund’s average annual returns for one, five and ten years compare with those of a broad measure of market performance and the returns of an additional index of a Lipper peer group (a group of mutual funds with investment objectives similar to that of the Fund).
Performance Availability Phone [Text] rr_PerformanceAvailabilityPhone 1-800-492-8332
Performance Availability Website Address [Text] rr_PerformanceAvailabilityWebSiteAddress http://www.buffalofunds.com/performance.html
Performance Past Does Not Indicate Future [Text] rr_PerformancePastDoesNotIndicateFuture The performance information, before and after taxes, is not necessarily an indication of how the Fund will perform in the future.
Bar Chart [Heading] rr_BarChartHeading Investor Class Annual Total Return as of December 31 of Each Year
Bar Chart Closing [Text Block] rr_BarChartClosingTextBlock
Calendar Year-to-Date Return – Investor Class (through June 30, 2021) = 15.27%
Best Quarter: June 30, 2020 = 43.88%
Worst Quarter: December 31, 2018 = -24.60%
Year to Date Return, Label rr_YearToDateReturnLabel Calendar Year-to-Date Return
Bar Chart, Year to Date Return, Date rr_BarChartYearToDateReturnDate Jun. 30, 2021
Bar Chart, Year to Date Return rr_BarChartYearToDateReturn 15.27%
Highest Quarterly Return, Label rr_HighestQuarterlyReturnLabel Best Quarter
Highest Quarterly Return, Date rr_BarChartHighestQuarterlyReturnDate Jun. 30, 2020
Highest Quarterly Return rr_BarChartHighestQuarterlyReturn 43.88%
Lowest Quarterly Return, Label rr_LowestQuarterlyReturnLabel Worst Quarter
Lowest Quarterly Return, Date rr_BarChartLowestQuarterlyReturnDate Dec. 31, 2018
Lowest Quarterly Return rr_BarChartLowestQuarterlyReturn (24.60%)
Performance Table Heading rr_PerformanceTableHeading Average Annual Total Returns for the periods ended December 31, 2020
Index No Deduction for Fees, Expenses, Taxes [Text] rr_IndexNoDeductionForFeesExpensesTaxes (reflects no deduction for fees, expenses or taxes)
Performance Table Uses Highest Federal Rate rr_PerformanceTableUsesHighestFederalRate After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes.
Performance Table Not Relevant to Tax Deferred rr_PerformanceTableNotRelevantToTaxDeferred Actual after-tax returns depend on each investor’s individual tax situation and may differ from those shown in the table. The after-tax returns shown are not relevant to investors who own the Small Cap Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan.
Performance Table One Class of after Tax Shown [Text] rr_PerformanceTableOneClassOfAfterTaxShown After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares.
Performance Table Explanation after Tax Higher rr_PerformanceTableExplanationAfterTaxHigher In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Performance Table Closing [Text Block] rr_PerformanceTableClosingTextBlock
The Lipper Small-Cap Growth Funds Index® is an unmanaged, equally weighted performance index of the 30 largest qualifying mutual funds (based on net assets) in the Lipper Small-Cap classification.

After-tax returns are shown for Investor Class shares only and will vary for Institutional Class shares. After-tax returns are calculated using the highest historical individual federal marginal income tax rates and do not reflect the impact of state or local taxes. Actual after-tax returns depend on each investor’s individual tax situation and may differ from
those shown in the table. The after-tax returns shown are not relevant to investors who own the Small Cap Fund in a tax-deferred arrangement, such as an individual retirement account (“IRA”) or a 401(k) plan. In certain cases, the figure representing “Return After Taxes on Distributions and Sale of Fund Shares” may be higher than the other return figures for the same period, since a higher after-tax return results when a capital loss occurs upon redemption and provides an assumed tax deduction that benefits the investor.
Buffalo Small Cap Fund | Morningstar US Small Growth Index (reflects no deduction for fees, expenses or taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Morningstar US Small Growth Index(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 43.52%
5 Years rr_AverageAnnualReturnYear05 18.57%
10 Years rr_AverageAnnualReturnYear10 14.44%
Buffalo Small Cap Fund | Lipper Small-Cap Growth Funds Index® (reflects no deduction for taxes)  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Lipper Small-Cap Growth Funds Index®(reflects no deduction for fees, expenses or taxes)
1 Year rr_AverageAnnualReturnYear01 37.36%
5 Years rr_AverageAnnualReturnYear05 18.41%
10 Years rr_AverageAnnualReturnYear10 13.89%
Buffalo Small Cap Fund | Investor Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUFSX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.85%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets 0.15%
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.01%
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 1.01%
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 103
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 322
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 558
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,236
Annual Return 2011 rr_AnnualReturn2011 (4.66%)
Annual Return 2012 rr_AnnualReturn2012 19.93%
Annual Return 2013 rr_AnnualReturn2013 44.15%
Annual Return 2014 rr_AnnualReturn2014 (6.55%)
Annual Return 2015 rr_AnnualReturn2015 (4.46%)
Annual Return 2016 rr_AnnualReturn2016 6.22%
Annual Return 2017 rr_AnnualReturn2017 27.07%
Annual Return 2018 rr_AnnualReturn2018 (5.78%)
Annual Return 2019 rr_AnnualReturn2019 40.97%
Annual Return 2020 rr_AnnualReturn2020 66.36%
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 66.36%
5 Years rr_AverageAnnualReturnYear05 24.43%
10 Years rr_AverageAnnualReturnYear10 15.94%
Buffalo Small Cap Fund | Investor Class | After Taxes on Distributions  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions
1 Year rr_AverageAnnualReturnYear01 61.82%
5 Years rr_AverageAnnualReturnYear05 19.19%
10 Years rr_AverageAnnualReturnYear10 11.72%
Buffalo Small Cap Fund | Investor Class | After Taxes on Distributions and Sales  
Prospectus [Line Items] rr_ProspectusLineItems  
Label rr_AverageAnnualReturnLabel Return After Taxes on Distributions and Sale of Fund Shares
1 Year rr_AverageAnnualReturnYear01 40.37%
5 Years rr_AverageAnnualReturnYear05 17.79%
10 Years rr_AverageAnnualReturnYear10 11.46%
Buffalo Small Cap Fund | Institutional Class  
Prospectus [Line Items] rr_ProspectusLineItems  
Trading Symbol dei_TradingSymbol BUISX
Shareholder Fee, Other rr_ShareholderFeeOther none
Management Fees (as a percentage of Assets) rr_ManagementFeesOverAssets 0.85%
Shareholder Servicing Fee rr_Component1OtherExpensesOverAssets none
Other Expenses (as a percentage of Assets): rr_OtherExpensesOverAssets 0.01%
Expenses (as a percentage of Assets) rr_ExpensesOverAssets 0.86%
Expense Example, with Redemption, 1 Year rr_ExpenseExampleYear01 $ 88
Expense Example, with Redemption, 3 Years rr_ExpenseExampleYear03 274
Expense Example, with Redemption, 5 Years rr_ExpenseExampleYear05 477
Expense Example, with Redemption, 10 Years rr_ExpenseExampleYear10 $ 1,061
Label rr_AverageAnnualReturnLabel Return Before Taxes
1 Year rr_AverageAnnualReturnYear01 66.60%
5 Years rr_AverageAnnualReturnYear05 24.61%
10 Years rr_AverageAnnualReturnYear10 16.11%
[1] Acquired Fund Fees and Expenses represent the indirect costs of the Fund’s investments in other investment companies.
[2] The Total Annual Fund Operating Expenses for the Fund do not correlate to the ratio of expenses to average net assets listed in the Fund’s financial highlights, which reflects the operating expenses of the Fund and does not include the amount of the Fund’s proportionate share of the fees and expenses of other investment companies in which the Fund invests.
[3] Acquired Fund Fees and Expenses represent the indirect costs of the Fund’s investments in other investment companies.
[4] The Total Annual Fund Operating Expenses for the Fund do not correlate to the ratio of expenses to average net assets listed in the Fund’s financial highlights, which reflects the operating expenses of the Fund and does not include the amount of the Fund’s proportionate share of the fees and expenses of other investment companies in which the Fund invests.
[5] Acquired Fund Fees and Expenses represent the indirect costs of the Fund’s investments in other investment companies.
[6] The Total Annual Fund Operating Expenses for the Fund do not correlate to the ratio of expenses to average net assets listed in the Fund’s financial highlights, which reflects the operating expenses of the Fund and does not include the amount of the Fund’s proportionate share of the fees and expenses of other investment companies in which the Fund invests.
[7] Acquired Fund Fees and Expenses represent the indirect costs of the Fund’s investments in other investment companies.
[8] The Total Annual Fund Operating Expenses for the Fund do not correlate to the ratio of expenses to average net assets listed in the Fund’s financial highlights, which reflects the operating expenses of the Fund and does not include the amount of the Fund’s proportionate share of the fees and expenses of other investment companies in which the Fund invests.