/*
 * Component "cbs-conta" (includes/facelift/components/cbs-conta): the CBS of the period in one line,
 * debits − credits = to pay, with the status of the documents as chips. Used by #conciliacao-fiscal
 * (Fiscal Issuer) and #apuracao (Fiscal Monitor); the section keeps its own background.
 */
.cbc { box-sizing: border-box; max-width: 1280px; margin: 0 auto; padding: clamp(56px, calc(5vw + 10px), 80px) clamp(20px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.cbc-tx { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.cbc-eb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cbc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--wm-green-700, #00695A); color: #FFFFFF; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.cbc-h2 { margin: 0; font-family: var(--wm-font-display); font-weight: 500; font-size: clamp(30px, 3.1vw, 42px); line-height: 1.1; letter-spacing: -0.03em; color: var(--wm-green-900, #00251F); text-wrap: balance; }
.cbc-h2 em { font-style: italic; color: var(--wm-green-600, #008070); }
.cbc-lead { margin: 0; max-width: 520px; font-size: 16px; line-height: 1.55; color: #4A5551; text-wrap: pretty; }
.cbc-go { font-size: 15px; font-weight: 600; color: var(--wm-green-700, #00695A); text-decoration: none; }
.cbc-go:hover { text-decoration: underline; text-underline-offset: 3px; }

.cbc-card { min-width: 0; padding: 18px 22px 20px; border: 1px solid var(--wm-green-200, #AEE3D6); border-radius: 18px; background: #FFFFFF; box-shadow: 0 24px 50px -30px rgba(10, 41, 33, 0.4); }
.cbc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.cbc-top b { font-size: 14px; font-weight: 600; color: var(--wm-green-900, #00251F); }
.cbc-top span { font-size: 12px; color: var(--wm-ink-500, #687370); }
.cbc-eq { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.05fr); align-items: center; gap: 8px; }
.cbc-eq > i { font-style: normal; font-size: 22px; font-weight: 500; color: var(--wm-ink-400, #8B9691); text-align: center; }
.cbc-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 12px; border-radius: 12px; text-align: center; }
.cbc-t span { font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--wm-ink-600, #4D5854); }
.cbc-t b { font-family: var(--wm-font-display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: var(--wm-green-900, #00251F); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cbc--debit .cbc-t0, .cbc--credit .cbc-t1 { background: var(--wm-ink-50, #F4F7F5); }
.cbc-t2 { border: 1px solid var(--wm-green-200, #AEE3D6); background: var(--wm-green-50, #EBF7F3); }
.cbc-t2 span, .cbc-t2 b { color: var(--wm-green-700, #00695A); }
.cbc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cbc-c { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.cbc-c--ok { background: #E4F1EC; color: var(--wm-green-800, #003D33); }
.cbc-c--warn { background: #FFF3DE; color: #8A5212; }
.cbc-c--wait { background: #E3EDF8; color: #1F5A99; }

@media (min-width: 1024px) and (max-height: 860px) {
    .cbc { padding-top: 56px; padding-bottom: 56px; }
    .cbc-tx { gap: 12px; }
}
@media (min-width: 1024px) and (max-height: 700px) {
    .cbc { padding-top: 44px; padding-bottom: 40px; }
    .cbc-h2 { font-size: 32px; }
    .cbc-lead { font-size: 15px; }
}
@media (max-width: 960px) {
    .cbc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .cbc-eq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cbc-eq > i { display: none; }
    .cbc-t2 { grid-column: 1 / -1; }
}
