/* premium-admin.css — final visual layer (Seller Admin + Administrator Console).
   Loaded LAST so it wins the cascade. */

/* ---------- product table thumbnails ---------- */
.tbl-thumb {
  width: 42px; height: 42px; border-radius: 9px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--ink-3);
}
.tbl-thumb .thumb-img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.tbl-thumb .thumb-glyph { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; font-size: 12px; }

/* ---------- tables ---------- */
.tbl tbody tr { transition: background .15s ease; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--brand) 3%, #fff); }
.tbl th { letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; }

/* ---------- KPI cards: coloured accent bar + hover lift ---------- */
.kpi { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.kpi::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3.5px;
  background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 40%, transparent));
  border-radius: 3px;
}
.kpi:nth-child(2)::before { background: linear-gradient(180deg, #2f6fed, rgba(47, 111, 237, .35)); }
.kpi:nth-child(3)::before { background: linear-gradient(180deg, #0a8a3d, rgba(10, 138, 61, .35)); }
.kpi:nth-child(4)::before { background: linear-gradient(180deg, #f2a93b, rgba(242, 169, 59, .35)); }
.kpi:nth-child(5)::before { background: linear-gradient(180deg, #8b5cf6, rgba(139, 92, 246, .35)); }
html:not(.lite) .kpi:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(16, 24, 40, .22); }
.kpi .val { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---------- panels / chart cards ---------- */
.card.panel { border-radius: 16px; transition: box-shadow .2s ease; }
html:not(.lite) .card.panel:hover { box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 34px -18px rgba(16, 24, 40, .16); }
.panel-head h3 { letter-spacing: -.01em; }

/* ---------- smart-insights panel (Analytics view) ---------- */
.insight-panel {
  margin-bottom: 18px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, color-mix(in srgb, var(--brand) 45%, #fff), #2f6fed66, #f2a93b55) border-box;
  border: 1.5px solid transparent;
}
.insight-list { list-style: none; margin: 0; padding: 4px 0 2px; display: grid; gap: 9px; }
.insight-list li {
  position: relative; padding-left: 24px; font-size: 13px; line-height: 1.55; color: var(--ink-2, #333a45);
}
.insight-list li::before {
  content: ''; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}
.insight-list li:nth-child(2n)::before { background: #2f6fed; box-shadow: 0 0 0 3px rgba(47, 111, 237, .15); }
.insight-list li:nth-child(3n)::before { background: #f2a93b; box-shadow: 0 0 0 3px rgba(242, 169, 59, .18); }

/* ---------- sidebar ---------- */
.nav-item { border-radius: 10px; transition: background .16s ease, color .16s ease, transform .16s ease; }
html:not(.lite) .nav-item:hover { transform: translateX(2px); }
.nav-item.on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent); }

/* ---------- misc ---------- */
.pill { font-variant-numeric: tabular-nums; }
.legend .lg-val { font-variant-numeric: tabular-nums; }
