XML 177 R101.htm IDEA: XBRL DOCUMENT
v3.25.1

Restricted cash (Details) - BRL (R$) R$ in Thousands | Dec. 31, 2024 | Dec. 31, 2023
--- | --- | ---
IfrsStatementLineItems [Line Items] |  |
Restricted cash | R$ 37,715 | R$ 54,944
Agreementwiththe Sao Paulo Municipal Government [Member] |  |
IfrsStatementLineItems [Line Items] |  |
Restricted cash | 27,502 | 47,749
Agreementwiththe Sao Paulo Municipal Government 1 [Member] |  |
IfrsStatementLineItems [Line Items] |  |
Restricted cash | 4,544 |
Brazilian Federal Savings Bank Escrow Deposites [Member] |  |
IfrsStatementLineItems [Line Items] |  |
Restricted cash | 235 | 365
Other [Member] |  |
IfrsStatementLineItems [Line Items] |  |
Restricted cash | R$ 5,434 | R$ 6,830

X
- Definition The amount of cash and cash equivalents whose use or withdrawal is restricted. [Refer: Cash and cash equivalents] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 55 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_55&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_RestrictedCashAndCashEquivalents
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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_ClassesOfAssetsAxis=sbs_AgreementwiththeSaoPauloMunicipalGovernmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=sbs_AgreementwiththeSaoPauloMunicipalGovernment1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=sbs_BrazilianFederalSavingsBankEscrowDepositesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=sbs_OtherMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |