/* css/admin_badges.css - the small status badges shared by the admin pages
   (loaded by subpages/head.php on every panel page).

   .seen-badge  "seen N ago" pill: green <= 1 min, yellow <= 5 min, orange <= 24 h,
                red older, grey never. Text and class come from seenAgo() in
                js/utils.js (and seenAgoParts() in subpages/admin_sites.php for the
                server-rendered pills) - keep the two rule sets in step.
   .badge-dec   the optimizer's decision: SELL red, BUY blue, WAIT amber, HOLD violet
                (the "bez baterii" colour of the panel and the chart widget), the rest
                (idle, solar_sell, no_sell) green; markup from decisionBadgeHtml()
                in js/utils.js. */
/* min-width: one width for every "Ns ago" / "Nmin ago" / "N.Nh ago", so a pill that
   flips between one and two digits every few seconds does not move its badge
   (Poppins has proportional digits, so padding the text would not do). */
.seen-badge { display: inline-block; min-width: 6.4em; text-align: center; white-space: nowrap; margin-left: 4px; padding: 0 5px; border-radius: 8px; font-size: 0.85em; font-weight: 700; color: #fff; background: #6c757d; }
.seen-badge.s-on { background: #28a745; }
.seen-badge.s-wa { background: #ffc107; color: #000; }
.seen-badge.s-or { background: #fd7e14; }
.seen-badge.s-er { background: #dc3545; }

.badge-dec { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 0.75rem; font-weight: bold; }
.badge-sell { background: #e53935; color: #fff; }
.badge-buy { background: #1e88e5; color: #fff; }
.badge-idle { background: #43a047; color: #fff; }
.badge-wait { background: #f9a825; color: #333; }
.badge-hold { background: #5e35b1; color: #fff; }
