table                               { margin-right: 5px; }
#block > div                        { display: inline-block; vertical-align: top; }
#block > div:first-child            { margin-right: 2ex; border-right: 2px solid black; padding-right: 2ex; }
#живущи                             { width: min-content; margin: 0 auto; }
#живущи > table                     { border-collapse: separate; }

[data-bgn]:checked ~ * .bgn         { display: var(--display, revert); text-align: inherit; }
[data-eur]:checked ~ * .eur         { display: var(--display, revert); text-align: inherit; }
[data-bgn]:checked ~ .bgn           { display: var(--display, revert); text-align: inherit; }
[data-eur]:checked ~ .eur           { display: var(--display, revert); text-align: inherit; }


[data-bgn]:checked ~ [data-eur]:checked ~ * :not(p).bgn:not(:empty):not(.no-suffix):after  { content: "\A0лв."; }
[data-bgn]:checked ~ [data-eur]:checked ~ * :not(p).eur:not(:empty):not(.no-suffix):after  { content: "\A0€"; }

:not(td) > span.bgn:has(+ span.eur):not(:empty):not(.no-suffix)::after  { content: "\A0лв."; }
:not(td) > span.bgn + span.eur:not(:empty):not(.no-suffix):after        { content: "\A0€"; }

/*td:has(> span.eur)                                                  { border-inline-start: hidden ! important; }*/

[data-bgn]:checked ~ [data-eur]:checked ~ * :not(td) > .eur:not(.no-suffix) { padding-left: 1ex; }
[data-bgn]:checked ~ [data-eur]:checked ~ .eur:not(.no-suffix)              { padding-left: 1ex; }
table.fees-table > tbody > tr > td .eur:not(.no-suffix)                     { padding-left: 0 ! important; }

[data-bgn]:checked ~ [data-eur]:checked ~ * .eur.p + .bgn.no-suffix::before { content: " ("; }
[data-bgn]:checked ~ [data-eur]:checked ~ * .eur.p + .bgn.no-suffix::after  { content: ")"; }

.balance-renov                                                      { font-size: 150%; }

*:not(p):is(.bgn, .eur)             { display: none; white-space: nowrap; text-align: left; }
.money                              { font-weight: var(--medium); width: min-content; margin: 0 auto; }

span#iban > span                    { padding-right: 0.5ex; }
span#iban > span::after             { content: "\200B"; }

.credit                             { color: red; }
.debit                              { color: blue; }
span.single-pay                     { display: inline-block; width: 2ch; text-align: right; }

/*body[data-size='xs'] dl.plain-if-xs > div > dd  { padding-left: 2.5ex; }*/
body[data-size='xs'] blockquote.plain-if-xs     { margin: 0; padding: 4ex 1ex; }

body[data-size='xs'] td > a.link-here::before       { content: "☟"; display: block; }

div.standalone-image                                        { display: inline-block; width: fit-content; padding-right: 2.5ex; vertical-align: top; }
div.standalone-image > img                                  { max-height: 220px; }
body:not([data-sizes~='md']) div.standalone-image           { display: block; margin: 0 auto; }
body:not([data-sizes~='md']) div.standalone-image > img     { max-height: unset; max-width: 300px; }

table.flow > thead > tr:not(:last-child) > *                { border-bottom: 1px solid silver ! important; }
table.flow > tfoot > tr:not(:last-child) > *                { border-bottom: 1px solid silver ! important; }
table.flow > * > tr > th                                    { min-width: 50px; }
body:not([data-sizes~='sm']) table.balance .cell5           { display: none; }
table.balance span.balance                                  { --display: inline-block; width: 10ex; text-align: right ! important; }

#es > div                       { display: inline-block; width: fit-content; padding: 2ex; margin-right: 5ex; text-align: left; vertical-align: top; border: 3px groove silver; border-radius: 15px; box-shadow:6px 6px 8px 2px #666; }
body[data-size='xs'] #es > div  { display: block; margin: 0 auto 1em; }
#es > div > img                 { display: block; margin: 0 auto 0.5em; }

span.pending-pay.unpaid         { color: #F00; }
span.pending-pay:not(.unpaid)   { font-weight: var(--light); color: #F88; font-style: italic; }

h1 > small                      { font-weight: var(--bold); }

table[data-fee] small:last-child        { margin-top: 0.5rem; margin-bottom: 0; }

small.id > span                                { color: blue; }
td > span.estimated, small.id.estimated        { font-style: italic; }
td > span.estimated, small.id.estimated > span { font-weight: var(--semi-light); }
small.id:not(.estimated) > span                { font-weight: var(--semi-bold); }

span:is(.underpaid, .ovrepaid)::after   { content: "(" attr(data-disbalance) ")"; display: block; font-size: smaller; }
span.underpaid::after                   { color: red; }
span.overpaid::after                    { color: blue; }

@media print
{
    #subtitle-note                      { display: none; }
    #todays-citation                    { display: none; }
    #Етажна-собственост                 { display: none; }
    span.pending-pay:not(.unpaid)       { color: red; }
}

[id^='renovation'] > div                       { display: inline-block; margin-top: 0.5em; }
[id^='renovation'] > div > h5                  { font-size: 1rem; }
[id^='renovation'] > div > h5 + table          { margin-top: 0; }


table > thead > tr > td[colspan='2']           { text-align: center ! important; }

section > h4:not(.inline)                       { font-size: 117.5%; }
figcaption                                      { font-weight: var(--medium); }

table#идеални-части > tbody > tr.estimated > .cell2     { visibility: hidden; }
table#идеални-части > tbody > tr.estimated > .cell3     { font-style: italic; font-weight: var(--semi-light); }

.bgn-first td:has(> span.bgn:only-child)                { border-right: hidden; }
.eur-first td:has(> span.eur:only-child)                { border-right: hidden; }

table.renovation[data-percentage='100'] > thead :is(.cell6, .cell7) { display: none; }
table.renovation[data-percentage='100'] > tbody :is(.cell4, .cell5) { display: none; }
table.renovation[data-percentage='100'] > tfoot :is(.cell4, .cell5) { display: none; }