.general-balance-group { margin-bottom: 22px; }
.general-balance-group h2 { margin: 0 0 12px; text-transform: uppercase; }
.general-balance th:first-child,
.general-balance td:first-child { width: 120px; }
.general-balance th:nth-child(2),
.general-balance td:nth-child(2) { min-width: 300px; }
.general-balance th:nth-child(n+3),
.general-balance td:nth-child(n+3) { min-width: 135px; }
.general-balance .negative { color: #8b3a2f; }

.tango-general-wrap { padding: 18px 22px; }
.tango-general { table-layout: fixed; }
.tango-general th:first-child { width: 55%; text-align: left; }
.tango-general th:not(:first-child) { width: 15%; text-align: right; }
.tango-general td { border-bottom-color: #edf0f5; }
.tango-general td:first-child span { display: block; }
.tango-general td:first-child small { display: block; color: #7b8496; margin-top: 2px; }
.tango-heading td { padding-top: 16px; border-bottom: 0; font-weight: 700; text-transform: uppercase; }
.tango-level-1 td:first-child { padding-left: 8px; font-size: 1.08em; }
.tango-level-2 td:first-child { padding-left: 26px; }
.tango-level-3 td:first-child { padding-left: 48px; }
.tango-level-4 td:first-child { padding-left: 70px; }
.tango-account td:first-child { font-weight: 400; text-transform: none; }
.tango-subtotal td { border-top: 1px solid #cbd2df; font-weight: 700; }
.tango-subtotal td:first-child span::before { content: "Subtotal "; }
.tango-total td { border-top: 2px solid #2b3855; border-bottom: 0; font-weight: 800; padding-top: 10px; }
.tango-general .negative { color: #8b3a2f; }
.balance-check { margin: 12px 0 24px; padding: 11px 14px; border-radius: 8px; font-weight: 700; }
.balance-check.ok { background: #e8f5ed; color: #24613b; }
.balance-check.error { background: #faece9; color: #8b3a2f; }
.balance-general-actions { gap: 2ch; padding-right: 3ch; }

@media print {
    .general-balance-group { break-inside: avoid; margin-bottom: 12px; }
    .general-balance { font-size: 9px; }
    .general-balance th:nth-child(2),
    .general-balance td:nth-child(2) { min-width: 220px; }
    .general-balance th:nth-child(n+3),
    .general-balance td:nth-child(n+3) { min-width: 90px; }
    .tango-general-wrap { padding: 0; border: 0; box-shadow: none; }
    .tango-general { font-size: 9px; }
    .tango-general thead th:not(:first-child) { color: transparent; }
    .tango-general td:first-child small { display: none; }
    .tango-heading td { padding-top: 8px; }
    .tango-level-1 td:first-child { padding-left: 0; }
    .tango-level-2 td:first-child { padding-left: 18px; }
    .tango-level-3 td:first-child { padding-left: 36px; }
    .tango-level-4 td:first-child { padding-left: 54px; }
}
