/* Europa Specials — shared chart + KPI-card styles. ONE copy for the admin and the vendor portal.
   Chart colours are CSS variables on :root (no redraw on a theme switch); series classes (.impr, .hit, .s1…) set --c on the chart host.
   Engine: assets/shared/charts.js (window.EsCharts). */
:root {--ec-impr:#3b6fd6; --ec-clicks:#e0a200; --ec-ctr:#0e9488; --ec-exp:#3b6fd6; --ec-conf:#e0a200; --ec-hit:#2f9e5c; --ec-stale:#c9820a; --ec-miss:#c0392b; --ec-load:#3b6fd6; --ec-avg:#0e9488; --ec-max:#8c6eff; --ec-rate:#2f9e5c; --ec-s1:#3b6fd6; --ec-s2:#e0a200; --ec-s3:#0e9488; --ec-s4:#8a4fc9; --ec-s5:#d6336c;}
:root[data-theme="dark"] {--ec-impr:#7ea2f2; --ec-clicks:#FFCC00; --ec-ctr:#3ed6c8; --ec-exp:#7ea2f2; --ec-conf:#FFCC00; --ec-hit:#3ed68a; --ec-stale:#f4be68; --ec-miss:#ff7a6b; --ec-load:#7ea2f2; --ec-avg:#3ed6c8; --ec-max:#b49cff; --ec-rate:#3ed68a; --ec-s1:#7ea2f2; --ec-s2:#FFCC00; --ec-s3:#3ed6c8; --ec-s4:#b49cff; --ec-s5:#ff8fb8;}
.ec-host .impr {--c:var(--ec-impr);} .ec-host .clicks {--c:var(--ec-clicks);} .ec-host .ctr {--c:var(--ec-ctr);}
.ec-host .rev-exp {--c:var(--ec-exp);} .ec-host .rev-conf {--c:var(--ec-conf);}
.ec-host .hit {--c:var(--ec-hit);} .ec-host .stale {--c:var(--ec-stale);} .ec-host .miss {--c:var(--ec-miss);}
.ec-host .load {--c:var(--ec-load);} .ec-host .avg {--c:var(--ec-avg);} .ec-host .max {--c:var(--ec-max);} .ec-host .rate {--c:var(--ec-rate);}
.ec-host .s1 {--c:var(--ec-s1);} .ec-host .s2 {--c:var(--ec-s2);} .ec-host .s3 {--c:var(--ec-s3);} .ec-host .s4 {--c:var(--ec-s4);} .ec-host .s5 {--c:var(--ec-s5);}
.ec-host {position:relative; min-height:60px;}
.ec-head {display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 16px; font-size:11.5px; color:var(--gray); margin-bottom:8px;}
.ec-key {display:inline-flex; align-items:center; gap:6px;}
.ec-dash {display:inline-block; width:18px; border-top:2px dashed var(--gray); opacity:.7;}
.ec-body {position:relative;}
.ec-row-title {display:flex; flex-wrap:wrap; gap:4px 16px; margin:4px 0 0 46px; font-size:11.5px; font-weight:600; color:var(--text);}
.ec-row-title span {display:inline-flex; align-items:center; gap:6px;}
.ec-leg {all:unset; box-sizing:border-box; display:inline-flex; align-items:center; gap:6px; cursor:pointer; border-radius:6px; padding:2px 6px; margin:-2px -6px; font:inherit; color:inherit; user-select:none;}
.ec-leg:hover {background:color-mix(in srgb, var(--text) 8%, transparent);}
.ec-leg:focus-visible {outline:2px solid var(--gold, #FFCC00); outline-offset:1px;}
.ec-leg.off {opacity:.5; text-decoration:line-through;}
.ec-leg.off .ec-sw {background:transparent; box-shadow:inset 0 0 0 1.5px var(--c);}
.ec-sw {display:inline-block; width:9px; height:9px; border-radius:2px; background:var(--c); flex-shrink:0;}
.ec-svg {display:block; overflow:visible;}
.ec-grid {stroke:var(--line); stroke-width:1;}
.ec-grid.base {stroke:color-mix(in srgb, var(--gray) 40%, var(--line));}
.ec-ytick, .ec-xtick, .ec-reflab {font-family:'Outfit',sans-serif; font-size:10px; fill:var(--gray);}
.ec-reflab {paint-order:stroke; stroke:var(--surface); stroke-width:3px; stroke-linejoin:round;}
.ec-ref {stroke:var(--gray); stroke-width:1; stroke-dasharray:2 3; opacity:.8;}
.ec-bar {fill:var(--c);}
.ec-area {fill:color-mix(in srgb, var(--c) 18%, transparent);}
.ec-line {fill:none; stroke:var(--c); stroke-width:2; stroke-linejoin:round; stroke-linecap:round;}
.ec-prev {fill:none; stroke:var(--c); stroke-width:1.5; stroke-dasharray:4 3; opacity:.55;}
.ec-dotpt {fill:var(--c); stroke:var(--surface); stroke-width:1;}
.ec-cursor {stroke:var(--gray); stroke-width:1; opacity:0;}
.ec-cursor.on {opacity:.6;}
.ec-tip {position:absolute; z-index:6; pointer-events:none; min-width:160px; background:var(--navy); color:#fff; border:1px solid rgba(255,255,255,.12); border-radius:8px; padding:8px 11px; font-size:12px; box-shadow:0 6px 18px rgba(0,17,74,.25);}
.ec-tip[hidden] {display:none;}
.ec-tip-h {font-weight:700; margin-bottom:5px; white-space:nowrap;}
.ec-tip-r {display:flex; align-items:center; gap:7px; margin-top:3px; white-space:nowrap;}
.ec-tip-r b {margin-left:auto; padding-left:14px;}
.ec-tip-r small {opacity:.65; font-size:11px;}
.ec-empty {font-size:13px; color:var(--gray); padding:28px 20px; text-align:center;}
:root[data-theme="dark"] .ec-tip {background:#0b1220; border-color:var(--line);}

/* ===== KPI cards: delta pill, sparkline, info tooltip ===== */
.kpi-delta{ font-family:'Outfit',sans-serif; font-size:11.5px; font-weight:600; margin-top:3px; }
.kpi-delta.up{ color:var(--travel); }
.kpi-delta.down{ color:var(--red); }
.kpi-delta.flat{ color:var(--gray); }
.kpi-sparkline{ display:block; width:100%; height:26px; margin-top:6px; }
.kpi-sparkline .spark-current{ fill:none; stroke:var(--accent); stroke-width:1.6; }
.kpi-sparkline .spark-previous{ fill:none; stroke:var(--gray); stroke-width:1.3; stroke-dasharray:3,2; }
.kpi-info{ position:absolute; top:10px; right:10px; width:15px; height:15px; border-radius:50%; background:rgba(0,0,0,0.14); color:var(--gray); font-family:'Outfit',sans-serif; font-size:10px; font-weight:700; display:flex; align-items:center; justify-content:center; cursor:help; }
.kpi-info:hover .kpi-tooltip, .kpi-info:focus .kpi-tooltip{ opacity:1; visibility:visible; }
.kpi-tooltip{ position:absolute; top:calc(100% + 8px); right:0; width:230px; background:var(--navy); color:#fff; font-family:'Outfit',sans-serif; font-size:11.5px; font-weight:400; line-height:1.45; text-transform:none; letter-spacing:0; padding:10px 12px; border-radius:8px; opacity:0; visibility:hidden; transition:opacity .15s ease; z-index:30; box-shadow:0 10px 26px rgba(0,0,0,.28); pointer-events:none; }

/* v1.48.2 — a stretch of the axis where the figure was not recorded: unknown, not zero */
.ec-gap {fill:color-mix(in srgb, var(--gray, #8a94a6) 16%, transparent); stroke:var(--gray, #8a94a6); stroke-opacity:.45; stroke-dasharray:4 4;}
.ec-gaplab {fill:var(--gray, #8a94a6); font-size:11px; font-style:italic;}
