Note 15 - Stock Option and Retirement Plans (Details Textual) - USD ($) | Aug. 01, 2016 | May 02, 2016 | Oct. 16, 2015 | Jul. 31, 2015 | Feb. 09, 2015 | Dec. 17, 2014 | Nov. 03, 2014 | Dec. 23, 2013 | Nov. 01, 2013 | Apr. 08, 2013 | Apr. 14, 2011 | Nov. 08, 2010 | Feb. 09, 2010 | Oct. 23, 2009 | Jul. 31, 2016 | Nov. 30, 2012 | Jul. 31, 2012 | Oct. 01, 2016 | Aug. 31, 2016 | Nov. 30, 2015 | Feb. 28, 2015 | Feb. 28, 2014 | Nov. 30, 2013 | Aug. 31, 2016 | Aug. 31, 2015 | Aug. 31, 2014 | Nov. 30, 2014 | Aug. 31, 2016 | Aug. 31, 2013 |
Employee Stock Option [Member] | The 2004 Stock Option and Award Plan [Member] | Minimum [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Expiration Period | | | | | | | | | | | | | | | | | | | | | | | | 7 years | | | | | | |
Employee Stock Option [Member] | The 2004 Stock Option and Award Plan [Member] | Maximum [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Expiration Period | | | | | | | | | | | | | | | | | | | | | | | | 10 years | | | | | | |
Employee Stock Option [Member] | The 2004 Stock Option and Award Plan [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period | | | | | | | | | | | | | | | | | | | | | | | | 5 years | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross | | | | | | | | | | | | | | | | | | | | | | | | 1,195,649 | 828,652 | 391,478 | | | | |
Share-based Compensation Arrangements by Share-based Payment Award, Options, Grants in Period, Weighted Average Exercise Price | | | | | | | | | | | | | | | | | | | | | | | | $ 168.14 | $ 141.79 | $ 106.73 | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Intrinsic Value | | | | | | | | | | | | | | | | | | | $ 86,000,000 | | | | | $ 86,000,000 | $ 107,100,000 | | | | $ 86,000,000 | |
Employee Stock Option [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangements by Share-based Payment Award, Options, Grants in Period, Weighted Average Exercise Price | | | | | | | | | | | | | | | | | | | | | | | | $ 168.55 | $ 141.84 | $ 106.69 | | | | |
Performance Based Stock Options [Member] | The 2004 Stock Option and Award Plan [Member] | Share-based Compensation Award, Tranche One [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Rights, Percentage | | | | | | | | | | | | | | | | 20.00% | | | | | | | | | | | | | | |
Performance Based Stock Options [Member] | The 2004 Stock Option and Award Plan [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross | | | | | | | | | | | | | | | | 1,011,510 | | | | | | | | | | | | | | |
Performance Shares [Member] | Share-based Compensation Award, Tranche One [Member] | Code Red, Inc. [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period | | | | | | | | | | | | | | | | | | | | | 2 years | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross | | | | | | | | | | | | | | | | | | | | | 68,761 | | | | | | | | | |
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized | | | | | | | | | | | | | | | | | | | 1,300,000 | | | | | $ 1,300,000 | | | | | 1,300,000 | |
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Period for Recognition | | | | | | | | | | | | | | | | | | | | | | | | 2 years 146 days | | | | | | |
Performance Shares [Member] | Share-based Compensation Award, Tranche One [Member] | Portware LLC [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Rights, Percentage | | | | | | | | | | | | | | | | | | 40.00% | | 40.00% | | | | 0.00% | | | | | | |
Performance Shares [Member] | Share-based Compensation Award, Tranche Two [Member] | Code Red, Inc. [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period | | | | | | | | | | | | | | | | | | | | | 4 years | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross | | | | | | | | | | | | | | | | | | | | | 68,761 | | | | | | | | | |
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized | | | | | | | | | | | | | | | | | | | $ 700,000 | | | | | $ 700,000 | | | | | $ 700,000 | |
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Period for Recognition | | | | | | | | | | | | | | | | | | | | | | | | 2 years 146 days | | | | | | |
Performance Shares [Member] | Share-based Compensation Award, Tranche Two [Member] | Portware LLC [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Rights, Percentage | | | | | | | | | | | | | | | | | | 20.00% | | 20.00% | | | | 50.00% | | | | | | |
Performance Shares [Member] | Share-based Compensation Award, Tranche Three [Member] | Portware LLC [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Rights, Percentage | | | | | | | | | | | | | | | | | | | | | | | | 70.00% | | | | | | |
Performance Shares [Member] | Code Red, Inc. [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period | | | | | | | | | | | | | | | | | | | | | 4 years | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross | | | | | | | | | | | | | | | | | | | | | 137,522 | | | | | | | | | |
Performance Shares [Member] | Portware LLC [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross | | | | | | | | | | | | | | | | | | 20,911 | | 530,418 | | | | | | | | | | |
Performance Shares [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross | | | | | | | | | | | | | | | | | 241,546 | | 20,911 | 530,418 | 137,522 | 165,949 | 36,695 | 551,000 | 138,000 | 203,000 | | | | |
Share-based Compensation Arrangements by Share-based Payment Award, Options, Grants in Period, Weighted Average Exercise Price | | | | | | | | | | | | | | | | | | | $ 171.22 | | | | | $ 165.59 | $ 148.52 | $ 109.56 | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Rights, Percentage | | | | | | | | | | | | | | | | | 20.00% | | | | | | | | | | | | 80.00% | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested, Number of Shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 193,256 | |
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized | | | | | | | | | | | | | | | | | | | $ 300,000 | | | | | $ 300,000 | | | | | $ 300,000 | |
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Period for Recognition | | | | | | | | | | | | | | | | | | | | | | | | 1 year | | | | | | |
Restricted Stock [Member] | The 2004 Stock Option and Award Plan [Member] | Share-based Compensation Award, Tranche One [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period | | | | | | | | | | | | 3 years | 4 years | 3 years | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Rights, Percentage | | | | | | | | | | 20.00% | | 60.00% | 50.00% | 60.00% | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period | | | | | | | | | | 26,344 | | 62,544 | 17,230 | 53,495 | | | | | | | | | | | | | | | | |
Restricted Stock [Member] | The 2004 Stock Option and Award Plan [Member] | Share-based Compensation Award, Tranche Two [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period | | | | | | | | | | | | 5 years | | 5 years | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Rights, Percentage | | | | | | | | | | 20.00% | | 40.00% | | 40.00% | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period | | | | | | | | | | 14,683 | | 37,079 | 17,228 | | | | | | | | | | | | | | | | | |
Restricted Stock [Member] | The 2004 Stock Option and Award Plan [Member] | Share-based Compensation Award, Tranche Three [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Rights, Percentage | | | | | | | | | | 20.00% | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period | | | | | | | | | | 14,683 | | | | | | | | | | | | | | | | | | | | |
Restricted Stock [Member] | The 2004 Stock Option and Award Plan [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period | | | | | | | | | | | 3 years | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Rights, Percentage | | | | | | | | | | | 100.00% | | | | | | | | | | | | | | | | | | | |
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized | | | | | | | | | | | | | | | | | | | $ 20,900,000 | | | | | $ 20,900,000 | | | | | $ 20,900,000 | |
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Period for Recognition | | | | | | | | | | | | | | | | | | | | | | | | 3 years 109 days | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period | | | | | | | | | | | 29,087 | | | | | | | | | | | | | 97,319 | 54,862 | 204,124 | | 9,464 | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value | | | | | | | | | | | | | | | | | | | | | | | | $ 159.64 | $ 138.23 | $ 101.95 | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number | | | | | | | | | | | | | | | | | | | 262,220 | | | | | 262,220 | | | | | 262,220 | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period | | | | | | | | | | | | | | | | | | | | | | | | 69,244 | 94,870 | 135,205 | | | | |
Restricted Stock [Member] | Market Research Business [Member] | Disposal Group, Disposed of by Sale, Not Discontinued Operations [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period | | | | | | | | | | | | | | | 17,482 | | | | | | | | | | | | | | | |
Restricted Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period | 3,944 | 255 | 90,180 | 5,704 | 21,294 | 15,070 | 841 | 30,144 | 153,972 | | | | | | | | | | | | | | | 97,000 | 55,000 | 204,000 | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value | $ 164.77 | $ 146.20 | $ 159.13 | $ 157.84 | $ 140.88 | $ 132.71 | $ 124.18 | $ 102.84 | $ 102.22 | | | | | | | | | | | | | | | $ 159.64 | $ 138.23 | $ 101.95 | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number | | | | | | | | | | | | | | | | | | | 262,000 | | | | | 262,000 | 313,000 | 368,000 | | | 262,000 | 358,000 |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period | | | | | | | | | | | | | | | | | | | | | | | | 69,244 | 94,870 | 135,000 | [1] | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Share Equivalent | | | | | | | | | | | | | | | | | | | 2.5 | | | | | 2.5 | | | | | 2.5 | |
The 2004 Stock Option and Award Plan [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Weighted Average Remaining Contractual Term | | | | | | | | | | | | | | | | | | | | | | | | 4 years 182 days | 3 years 328 days | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercises in Period, Intrinsic Value | | | | | | | | | | | | | | | | | | | | | | | | $ 60,800,000 | $ 92,700,000 | $ 44,000,000 | | | | |
Share Price | | | | | | | | | | | | | | | | | | | $ 178.03 | | | | | $ 178.03 | | | | | $ 178.03 | |
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized | | | | | | | | | | | | | | | | | | | $ 70,800,000 | | | | | $ 70,800,000 | | | | | $ 70,800,000 | |
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Period for Recognition | | | | | | | | | | | | | | | | | | | | | | | | 3 years 146 days | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Purchase Price of Common Stock, Percent | | | | | | | | | | | | | | | | | | | | | | | | 85.00% | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Maximum Employee Subscription Rate | | | | | | | | | | | | | | | | | | | 10.00% | | | | | 10.00% | | | | | 10.00% | |
Stock Issued During Period, Shares, Employee Stock Purchase Plans | | | | | | | | | | | | | | | | | | | | | | | | 73,072 | 63,265 | 74,889 | | | | |
Common Stock, Capital Shares Reserved for Future Issuance | | | | | | | | | | | | | | | | | | | 408,544 | | | | | 408,544 | | | | | 408,544 | |
Defined Contribution Plan, Maximum Annual Contributions Per Employee, Percent | | | | | | | | | | | | | | | | | | | | | | | | 60.00% | | | | | | |
Defined Contribution Plan, Employer Matching Contribution, Percent of Employees' Gross Pay | | | | | | | | | | | | | | | | | | | | | | | | 4.00% | | | | | | |
Defined Contribution Plan, Employer Matching Contribution, Vesting Period | | | | | | | | | | | | | | | | | | | | | | | | 5 years | | | | | | |
Defined Contribution Plan, Employer Discretionary Contribution Amount | | | | | | | | | | | | | | | | | | | | | | | | $ 9,700,000 | $ 8,600,000 | $ 7,700,000 | | | | |
|
[1] | The 135,205 restricted stock awards that vested during fiscal 2014 were comprised of: 62,544 of awards granted on November 8, 2010, which cliff vested 60% after three years (on November 8, 2013) with the remaining 40% cliff vesting after five years (on November 8, 2015); 29,087 of awards granted on April 14, 2011, which vested 100% after three years on April 14, 2014; 26,344 restricted stock awards that were granted on April 8, 2013, which cliff vest 20% annually upon the anniversary date of the grant; and 17,230 awards relating to restricted stock granted on February 9, 2010 which cliff vested 50% after four years (on February 9, 2014). |