XML 243 R167.htm IDEA: XBRL DOCUMENT
v3.25.1

Equity (Details 1) | 12 Months Ended
--- | ---
Dec. 31, 2023 shares
IfrsStatementLineItems [Line Items] |
Number of shares | 683,509,869
Percentage of shares | 100.00%
State Department Of Finance [Member] |
IfrsStatementLineItems [Line Items] |
Number of shares | 343,506,664
Percentage of shares | 50.30%
Other Shareholders In Brazil [Member] |
IfrsStatementLineItems [Line Items] |
Number of shares | 262,118,658
Percentage of shares | 38.30%
Other Shareholders Abroads [Member] |
IfrsStatementLineItems [Line Items] |
Number of shares | 77,884,547
Percentage of shares | 11.40%

X
- Definition The number of shares issued by the entity. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 106 -Subparagraph d -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_106_d&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_NumberOfSharesIssued
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:sharesItemType
Balance Type: | na
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
- References No definition available. + Details
Name: | sbs_PercentageOfShares
Namespace Prefix: | sbs_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_ClassesOfEntitysOwnEquityInstrumentsAxis=sbs_StateDepartmentOfFinanceMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfEntitysOwnEquityInstrumentsAxis=sbs_OtherShareholdersInBrazilMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfEntitysOwnEquityInstrumentsAxis=sbs_OtherShareholdersAbroadsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |