/* Receita · mesma linguagem de Indicadores (tokens e cartões .ind-* em indicadores.css, que cobre #tab-revenue).
   Aqui só o que é da aba: curva com rótulos, ponte (cascata) e barras divergentes por imóvel. */
.rec-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ind-line); background: var(--ind-card); color: var(--ind-ink); font-weight: 600; font-size: 13.5px; }
.rec-btn:hover { border-color: var(--ind-ink); }
.rec-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rec-btn[hidden] { display: none; }

.rec-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
.rec-side { display: grid; align-content: start; gap: 18px; border-left: 1px solid var(--ind-line-2); padding-left: 24px; }
.rec-stat { display: grid; gap: 2px; }
.rec-big { font-size: 30px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.rec-mid { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }

.rec-chart { position: relative; min-height: 320px; }
.rec-chart svg { display: block; width: 100%; overflow: visible; }
.rec-chart text { font: 400 11px var(--ind-mono); fill: var(--ind-mut); }
.rec-chart .rec-area-up { fill: var(--ind-mkt); opacity: .12; }
.rec-l-own { fill: none; stroke: var(--ind-own); stroke-width: 3; stroke-linecap: round; }
.rec-l-ly { fill: none; stroke: var(--ind-mkt); stroke-width: 3; stroke-linecap: round; }
.rec-l-otb { fill: none; stroke: var(--ind-own); stroke-width: 2; stroke-dasharray: 6 5; opacity: .8; }
.rec-chart .rec-lbl-box { fill: var(--ind-card); stroke-width: 1.5; }
.rec-chart .rec-lbl { font: 600 13px var(--ind-font); fill: var(--ind-ink); }
.rec-chart .rec-today { font: 500 11px var(--ind-mono); fill: var(--ind-ink); }
#tab-revenue .ind-legend i.is-dash { border-top-color: var(--ind-own); border-top-style: dashed; }

.rec-row2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.rec-wf svg { display: block; width: 100%; overflow: visible; }
.rec-wf-total { fill: var(--ind-ink-2); }
.rec-wf-up { fill: var(--ind-mkt); }
.rec-wf-down { fill: var(--ind-ink); opacity: .55; }
.rec-wf-own { fill: var(--ind-own); }
.rec-wf-link { stroke: var(--ind-line); stroke-dasharray: 3 3; }
.rec-wf .rec-wf-val { font: 600 13px var(--ind-font); fill: var(--ind-ink); }
.rec-wf .rec-wf-name { font: 500 12.5px var(--ind-font); fill: var(--ind-mut); }
.rec-wf-notes { display: grid; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--ind-ink-2); }
.rec-wf-notes b { font-weight: 650; color: var(--ind-ink); }

.rec-div { display: grid; gap: 4px; }
.rec-div > button { display: grid; grid-template-columns: 150px 1fr 96px; align-items: center; gap: 10px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 13.5px; }
.rec-div > button:hover, .rec-div > button[aria-expanded="true"] { background: var(--ind-soft); }
.rec-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-axis { position: relative; height: 14px; }
.rec-axis::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--ind-line); }
.rec-axis b { position: absolute; top: 2px; height: 10px; border-radius: 3px; }
.rec-axis b.is-up { background: var(--ind-mkt); }
.rec-axis b.is-down { background: var(--ind-ink); opacity: .55; }
.rec-v { text-align: right; font-weight: 600; white-space: nowrap; }
.rec-v.is-up { color: var(--ind-up); }
.rec-detail { margin: 2px 8px 8px; padding: 12px 14px; border-radius: 12px; background: var(--ind-soft); font-size: 13px; color: var(--ind-ink-2); }
.rec-detail svg { display: block; width: 100%; margin-top: 8px; overflow: visible; }
.rec-div-head { display: grid; grid-template-columns: 150px 1fr 96px; gap: 10px; padding: 0 8px 6px; font: 400 11px var(--ind-mono); color: var(--ind-mut); }
.rec-div-head > span:nth-child(2) { display: flex; justify-content: space-between; }
.rec-r { text-align: right; }
.rec-more { margin-top: 10px; }

@media (max-width: 1080px) {
  .rec-hero, .rec-row2 { grid-template-columns: 1fr; }
  .rec-side { border-left: 0; padding-left: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 600px) {
  .rec-div > button, .rec-div-head { grid-template-columns: 110px 1fr 84px; }
  .rec-big { font-size: 24px; }
}
