/* Overview at-a-glance panel (real saved data, read-only) */
.kp-glance-side{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.kp-glance-conn{padding:5px 10px;border-radius:20px;font-size:11px;font-weight:700;border:1px solid transparent}
.kp-glance-conn.ok{background:#e8f6f1;color:#1d7a5c;border-color:#bfe6cf}
.kp-glance-conn.off{background:#fff4e5;color:#ad6a1c;border-color:#f2d3a4}
.kp-glance-conn.unknown{background:#f1f4f9;color:#68778c;border-color:#dfe4f2}
.kp-glance-refresh{background:#fff;border:1.5px solid #f1b27a;color:#c9691b;border-radius:12px;height:34px;padding:0 14px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.kp-glance-refresh:hover{background:#fff6ee}
.kp-glance-body .live-sales-metrics{margin-top:4px}
.kp-glance-updated{margin:10px 0 0;font-size:11px;color:#8b98a8}
.kp-glance-chart{margin-top:14px}
.kp-glance-chart h4,.kp-glance-top h4{margin:0 0 8px;font-size:13px;color:#34436a}
.kp-glance-chart svg{width:100%;height:auto;display:block}
.kp-glance-bar{fill:#7e93ad}
.kp-glance-bar-zero{fill:#eef1f5}
.kp-glance-axis-line{stroke:#e8edf3;stroke-width:1}
.kp-glance-axis{fill:#7c8898;font-size:8.5px;text-anchor:middle}
.kp-glance-top{margin-top:16px}
.kp-glance-item{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #f0f2f5}
.kp-glance-item:last-child{border-bottom:0}
.kp-glance-rank{width:24px;height:24px;flex:0 0 24px;border-radius:8px;background:#fff5e8;color:#c58b46;display:grid;place-items:center;font-size:11px;font-weight:800}
.kp-glance-item-mid{flex:1 1 auto;min-width:0}
.kp-glance-item-mid b{display:block;font-size:12px;color:#35465d;margin-bottom:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kp-glance-track{height:5px;background:#f1f4f8;border-radius:9px;overflow:hidden}
.kp-glance-track span{display:block;height:100%;background:#f1a34e;border-radius:9px}
.kp-glance-qty{flex:0 0 auto;font-size:11px;color:#6d7b8e;font-weight:700}
.kp-glance-empty{text-align:center;padding:24px 14px;color:#6b7893}
.kp-glance-empty .kp-glance-empty-ico{width:44px;height:44px;margin:0 auto 10px;border-radius:50%;background:#fff1df;color:#d97c1d;display:grid;place-items:center;font-size:22px}
.kp-glance-empty b{display:block;font-size:14px;color:#34436a;margin-bottom:6px}
.kp-glance-empty p{margin:0 auto;font-size:12px;max-width:420px;line-height:1.8}
html[data-kp-theme=dark] .kp-glance-chart h4,html[data-kp-theme=dark] .kp-glance-top h4,html[data-kp-theme=dark] .kp-glance-empty b{color:#e6ebff}
html[data-kp-theme=dark] .kp-glance-updated,html[data-kp-theme=dark] .kp-glance-empty p{color:#9fb0c6}
html[data-kp-theme=dark] .kp-glance-refresh{background:transparent;border-color:#6b4a2b;color:#f0a465}
html[data-kp-theme=dark] .kp-glance-bar{fill:#63799b}
html[data-kp-theme=dark] .kp-glance-bar-zero{fill:#1c2a44}
html[data-kp-theme=dark] .kp-glance-axis-line{stroke:#243756}
html[data-kp-theme=dark] .kp-glance-item{border-bottom-color:#243756}
html[data-kp-theme=dark] .kp-glance-item-mid b{color:#dbe4f5}
html[data-kp-theme=dark] .kp-glance-track{background:#1c2a44}
html[data-kp-theme=dark] .kp-glance-qty{color:#9fb0c6}
html[data-kp-theme=dark] .kp-glance-empty .kp-glance-empty-ico{background:#3a2c1c;color:#f0a465}
@media(max-width:700px){.kp-glance-side{flex-wrap:wrap;justify-content:flex-end}}
/* v2: Rgeeb-style axes, gridlines, legend, calm slate bars */
.kp-glance-grid{stroke:#e9edf4;stroke-width:1}
.kp-glance-ylabel{fill:#8b98a8;font-size:9.5px}
.kp-glance-bar:hover{fill:#6b829e}
.kp-glance-legend{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:6px;font-size:10px;color:#8895a5}
.kp-glance-legend i{width:9px;height:9px;border-radius:3px;background:#7e93ad;flex:0 0 auto}
html[data-kp-theme=dark] .kp-glance-grid{stroke:#1c2a44}
html[data-kp-theme=dark] .kp-glance-ylabel{color:#9fb0c6}
html[data-kp-theme=dark] .kp-glance-legend{color:#9fb0c6}
/* v3: RTL-safe SVG text + livelier KPI cards with soft tinted icon chips */
.kp-glance-chart svg{direction:ltr}
.kp-glance-body .live-sales-metric.kp-kpi{display:flex;flex-direction:row;align-items:center;gap:12px;background:#fff;border:1px solid #e8edf3;border-radius:11px;padding:15px 16px;box-shadow:0 8px 28px rgba(24,42,68,.045)}
.kp-kpi-ico{width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:grid;place-items:center}
.kp-kpi:nth-child(1) .kp-kpi-ico{background:#fff4e5;color:#d3913e}
.kp-kpi:nth-child(2) .kp-kpi-ico{background:#eaf3fd;color:#4787ca}
.kp-kpi:nth-child(3) .kp-kpi-ico{background:#e8f6f1;color:#319878}
.kp-kpi-txt{min-width:0}
.kp-kpi-txt small{display:block;color:#7d8999;font-size:10px;margin-bottom:4px}
.kp-kpi-txt strong{font-size:clamp(16px,1.5vw,21px);color:#1b2b43}
html[data-kp-theme=dark] .kp-glance-body .live-sales-metric.kp-kpi{background:#101f38;border-color:#22385c}
html[data-kp-theme=dark] .kp-kpi-txt strong{color:#e6ebff}
html[data-kp-theme=dark] .kp-kpi-txt small{color:#9fb0c6}
html[data-kp-theme=dark] .kp-kpi:nth-child(1) .kp-kpi-ico{background:#3a2c1c;color:#f0a465}
html[data-kp-theme=dark] .kp-kpi:nth-child(2) .kp-kpi-ico{background:#1b2c47;color:#8fb8ec}
html[data-kp-theme=dark] .kp-kpi:nth-child(3) .kp-kpi-ico{background:#153026;color:#7fd8b5}
