XML 173 R97.htm IDEA: XBRL DOCUMENT
v3.25.1

Cash and cash equivalents (Details Narrative) | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023
Certificado De Deposito Interbancario [Member] |  |
IfrsStatementLineItems [Line Items] |  |
Average yield of cash equivalents | 96.83% | 96.25%

X
- References No definition available. + Details
Name: | sbs_AverageYieldOfCashEquivalents
Namespace Prefix: | sbs_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | sbs_IfrsStatementLineItems
Namespace Prefix: | sbs_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_TypesOfInterestRatesAxis=sbs_CertificadoDeDepositoInterbancarioMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |