/* ===== REE Energy Dashboard ===== */
.ree-dash{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--radius);padding:1.5rem;margin:2rem 0}
.ree-dash__head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem;margin-bottom:1.2rem}
.ree-dash__title{font-size:1.25rem;margin:0}
.ree-dash__badge{font-size:.8rem;padding:.25rem .7rem;border-radius:12px;background:#E0E0E0;color:#555;font-weight:600}
.ree-dash__badge--live{background:#E8F5E9;color:#2E7D32}
.ree-dash__badge--warn{background:#FFF3E0;color:#E65100}

.ree-dash__kpi{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem;margin-bottom:1.5rem}
.ree-kpi-card{text-align:center;padding:1rem .5rem;border-radius:var(--radius);background:var(--clr-canvas);border:1px solid var(--clr-border)}
.ree-kpi-card__val{display:block;font-family:var(--ff-head);font-size:1.6rem;font-weight:700;line-height:1.2}
.ree-kpi-card__lbl{display:block;font-size:.8rem;color:var(--clr-text-muted);margin-top:.2rem}
.ree-kpi--green .ree-kpi-card__val{color:#2E7D32}
.ree-kpi--red .ree-kpi-card__val{color:#C62828}

.ree-dash__charts{display:grid;grid-template-columns:1fr 1.5fr;gap:1.5rem;margin-bottom:1rem}
.ree-dash__chart-wrap{position:relative;min-height:260px}

.ree-dash__legend{display:flex;flex-wrap:wrap;gap:.6rem .9rem;margin-bottom:.8rem}
.ree-legend-item{display:inline-flex;align-items:center;gap:.3rem;font-size:.82rem;color:var(--clr-text-muted)}
.ree-legend-item small{font-weight:600;color:var(--clr-text)}
.ree-legend-dot{width:10px;height:10px;border-radius:2px;flex-shrink:0}

.ree-dash__foot{font-size:.78rem;color:var(--clr-text-muted);margin:0;border-top:1px solid var(--clr-border);padding-top:.6rem}

@media(max-width:768px){
  .ree-dash__kpi{grid-template-columns:repeat(2,1fr)}
  .ree-dash__charts{grid-template-columns:1fr}
}
@media(max-width:480px){
  .ree-dash__kpi{grid-template-columns:1fr 1fr}
  .ree-dash{padding:1rem}
}
