XML 48 R40.htm IDEA: XBRL DOCUMENT
v3.26.1

Revenue Recognition - Schedule of Deferred Commissions (Details) - USD ($) $ in Thousands | Feb. 28, 2026 | Aug. 30, 2025
--- | --- | ---
Prepaid expenses and other current assets |  |
Deferred Commissions [Line item] |  |
Deferred commission | $ 20,722 | $ 19,795
Other assets |  |
Deferred Commissions [Line item] |  |
Deferred commission | $ 88,180 | $ 84,884

X
- Definition Deferred commissions. + References No definition available. + Details
Name: | unf_DeferredCommissionsLineItem
Namespace Prefix: | unf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The carrying amount of deferred costs. + References No definition available. + Details
Name: | us-gaap_DeferredCostsCurrentAndNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=us-gaap_OtherAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |