/* v1.43.0 — the product sheet (assets/shared/product-sheet.js): a panel over the dashboard, on the admin and on the vendor portal.
   Colours come from tokens.css (light / dark), the chart from charts.css, the country list from geo.css. */
body.eps-open{ overflow:hidden; }
.eps-overlay{ position:fixed; inset:0; z-index:1200; background:rgba(8,14,30,.5); display:flex; justify-content:flex-end; animation:eps-fade .15s ease-out; }
@keyframes eps-fade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes eps-slide{ from{ transform:translateX(24px); opacity:.6; } to{ transform:none; opacity:1; } }
.eps-panel{ width:min(980px, 100%); height:100%; background:var(--bg); color:var(--text); overflow-y:auto; overscroll-behavior:contain; box-shadow:-12px 0 40px rgba(0,0,0,.28); animation:eps-slide .18s ease-out; outline:none; font-family:'Outfit',-apple-system,BlinkMacSystemFont,sans-serif; }
.eps-head{ position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:14px; padding:16px 22px; background:var(--surface); border-bottom:1px solid var(--line); }
.eps-img{ width:56px; height:56px; border-radius:10px; object-fit:cover; background:var(--bg); border:1px solid var(--line); flex:none; }
.eps-titles{ min-width:0; flex:1; }
.eps-titles h2{ margin:0; font-size:19px; line-height:1.25; font-weight:700; overflow-wrap:anywhere; }
.eps-meta{ margin-top:3px; font-size:12.5px; color:var(--gray); }
.eps-link, .eps-x{ flex:none; display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:9px; border:1px solid var(--line); background:var(--bg); color:var(--text); font-size:20px; line-height:1; text-decoration:none; cursor:pointer; }
.eps-link:hover, .eps-x:hover{ border-color:var(--gray); }
.eps-link:focus-visible, .eps-x:focus-visible, .eps-retry:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }
.eps-body{ padding:20px 22px 40px; display:flex; flex-direction:column; gap:22px; }
.eps-state{ padding:60px 10px; text-align:center; color:var(--gray); }
.eps-retry{ margin-top:6px; padding:8px 16px; border-radius:9px; border:1px solid var(--line); background:var(--surface); color:var(--text); cursor:pointer; font:inherit; }

.eps-kpis{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
.eps-kpi{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:12px 14px; min-width:0; }
.eps-kpi-l{ display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--gray); text-transform:uppercase; letter-spacing:.04em; font-weight:600; }
.eps-kpi-v{ margin-top:4px; font-size:23px; font-weight:700; line-height:1.15; overflow-wrap:anywhere; }
.eps-kpi-d{ min-height:17px; margin-top:3px; font-size:12px; }
.eps-d{ font-weight:600; white-space:nowrap; } .eps-d.up{ color:var(--green); } .eps-d.down{ color:var(--red); } .eps-d.flat{ color:var(--gray); font-weight:500; }
.eps-info{ position:relative; display:inline-flex; align-items:center; justify-content:center; width:15px; height:15px; border-radius:50%; border:1px solid var(--line); font-size:9.5px; font-style:italic; text-transform:none; letter-spacing:0; cursor:help; flex:none; }
.eps-tip{ display:none; position:absolute; z-index:8; left:50%; top:20px; transform:translateX(-30%); width:220px; padding:8px 10px; border-radius:8px; background:var(--navy); color:#fff; font-size:12px; font-style:normal; font-weight:400; line-height:1.4; text-transform:none; letter-spacing:0; box-shadow:0 6px 18px rgba(0,0,0,.3); }
.eps-info:hover .eps-tip, .eps-info:focus .eps-tip{ display:block; }
.eps-note{ margin:-8px 0 0; font-size:12.5px; color:var(--gray); }

.eps-sec{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px 18px; min-width:0; }
.eps-sec[hidden]{ display:none; }
.eps-sec h3{ margin:0; font-size:15px; font-weight:700; }
.eps-sec h4{ margin:0 0 8px; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--gray); font-weight:600; }
.eps-sec-h{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:4px 14px; margin-bottom:8px; }
.eps-sub{ margin:3px 0 10px; font-size:12.5px; color:var(--gray); } .eps-sec-h .eps-sub{ margin:0; }
.eps-dash{ display:inline-block; width:18px; border-top:2px dashed var(--gray); opacity:.7; vertical-align:middle; }
.eps-empty{ margin:10px 0 0; font-size:13px; color:var(--gray); }

.eps-tablewrap{ overflow-x:auto; }
.eps-table{ width:100%; border-collapse:collapse; font-size:13px; }
.eps-table th{ text-align:right; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--gray); font-weight:600; padding:6px 8px; border-bottom:1px solid var(--line); white-space:nowrap; }
.eps-table td{ text-align:right; padding:9px 8px; border-bottom:1px solid var(--line); font-variant-numeric:tabular-nums; white-space:nowrap; }
.eps-table th:first-child, .eps-table td:first-child{ text-align:left; white-space:normal; }
.eps-table tbody tr:last-child td{ border-bottom:0; }
.eps-table tr.idle td{ color:var(--gray); }
.eps-pg{ min-width:200px; }
.eps-pg a{ color:inherit; text-decoration:underline; text-decoration-color:var(--line); text-underline-offset:3px; } .eps-pg a:hover{ text-decoration-color:currentColor; }
.eps-pg small{ display:block; margin-top:2px; font-size:11.5px; color:var(--gray); }
.eps-pill{ display:inline-block; margin-right:6px; padding:1px 8px; border-radius:99px; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; background:color-mix(in srgb, var(--gray) 16%, transparent); color:var(--gray); vertical-align:1px; }
.eps-pill.k-content{ background:color-mix(in srgb, var(--read) 16%, transparent); color:var(--read); }
.eps-pill.k-smartlist{ background:color-mix(in srgb, var(--experience) 16%, transparent); color:var(--experience); }
.eps-pill.k-casting{ background:color-mix(in srgb, var(--taste) 18%, transparent); color:var(--taste); }
.eps-pill.k-fast{ background:color-mix(in srgb, var(--learn) 16%, transparent); color:var(--learn); }
.eps-pill.k-widget{ background:color-mix(in srgb, var(--watch) 14%, transparent); color:var(--watch); }
:root[data-theme="dark"] .eps-pill.k-content{ color:#8fb0f5; } :root[data-theme="dark"] .eps-pill.k-smartlist{ color:#c79cf0; }

.eps-two{ display:grid; grid-template-columns:minmax(0, 3fr) minmax(0, 2fr); gap:22px; margin-top:10px; }
.eps-contract{ margin:8px 0 0; font-size:13.5px; line-height:1.6; } .eps-contract span{ color:var(--gray); }

@media (max-width:760px){
  .eps-panel{ width:100%; }
  .eps-head{ padding:12px 14px; gap:10px; } .eps-img{ width:44px; height:44px; } .eps-titles h2{ font-size:16.5px; }
  .eps-body{ padding:14px 14px 36px; gap:16px; }
  .eps-kpis{ grid-template-columns:repeat(2, minmax(0, 1fr)); } .eps-kpi-v{ font-size:20px; }
  .eps-sec{ padding:14px; } .eps-two{ grid-template-columns:minmax(0, 1fr); gap:18px; }
  .eps-tip{ left:0; transform:none; width:190px; }
}
@media (prefers-reduced-motion:reduce){ .eps-overlay, .eps-panel{ animation:none; } }
