XML 55 R44.htm IDEA: XBRL DOCUMENT
v3.25.3

Summary of Significant Accounting Policies - Schedule of Deferred Commissions (Details) - USD ($) $ in Thousands | Aug. 30, 2025 | Aug. 31, 2024
--- | --- | ---
Prepaid expenses and other current assets |  |
Deferred Commissions [Line item] |  |
Deferred commission | $ 19,795 | $ 18,079
Other assets |  |
Deferred Commissions [Line item] |  |
Deferred commission | $ 84,884 | $ 78,856

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: |