/* ==========================================================================
   PixelCore — Purple Panel (design B)
   Loaded LAST in every panel, after np-pro.css. It only restyles the shell
   and the dashboard; every id, onclick and data hook the scripts use is left
   alone. Remove this one <link> to get the previous look back.
   - light purple top bar, lavender breadcrumb strip (no tall indigo band)
   - sidebar: logo row, avatar + name + role in a row, flat items with a
     right-edge marker on the current page
   - dashboard: orange orb on the greeting card, clock-ring SMS cards,
     summary cards with solid round icons
   ========================================================================== */

body.tnui {
  --tn-band: #7B5FC0;
  --tn-page: #F8F7FC;
  --pp-crumb-bg: #F0EDF8;
  --pp-crumb-line: #E8E4F0;
  --pp-crumb-ink: #6E6E85;
  --pp-crumb-cur: #3E3A4F;
  --pp-ring: #2F2A3D;
}
body.tnui.tn-dark {
  --pp-crumb-bg: #1A1729;
  --pp-crumb-line: #262239;
  --pp-crumb-ink: #9A95B4;
  --pp-crumb-cur: #E8E6F2;
  --pp-ring: #DAD6EC;
}

/* ── breadcrumb strip ───────────────────────────────────────────────── */
body.tnui .tn-band {
  background: var(--pp-crumb-bg); color: var(--pp-crumb-ink);
  padding: 9px 24px; margin: 0; overflow: visible;
  border-bottom: 1px solid var(--pp-crumb-line);
}
body.tnui .tn-band::after { display: none; }
body.tnui .tn-band-in { animation: none; }
body.tnui .tn-crumb { color: var(--pp-crumb-ink); font-size: 12.5px; font-weight: 500; }
body.tnui .tn-crumb::before { background: var(--tn-primary); }
body.tnui .tn-crumb > span:last-child { color: var(--pp-crumb-cur); font-weight: 700; }
body.tnui .tn-crumb span.lnk { color: var(--pp-crumb-ink); }
body.tnui .tn-crumb span.lnk:hover { color: var(--tn-primary); background: var(--tn-tint-bg); }
body.tnui .tn-crumb i.sep { opacity: .7; }
body.tnui .tn-acts .btn-primary, body.tnui .tn-acts .btn-blue {
  background: var(--tn-primary) !important; color: #fff !important;
}
body.tnui .tn-acts .btn-primary i, body.tnui .tn-acts .btn-blue i,
body.tnui .tn-acts .btn-primary svg, body.tnui .tn-acts .btn-blue svg { color: #fff !important; }

/* ── page column: sits below the strip instead of over a band ───────── */
body.tnui .tn-main { margin-top: 18px; }

/* ── greeting card: the orange orb from the design ──────────────────── */
body.tnui.tn-dash .tn-title { position: relative; padding-right: 76px; }
body.tnui.tn-dash .tn-title::after {
  content: ""; position: absolute; top: 14px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
  background: #F59E0B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 6px 16px rgba(245, 158, 11, .35);
}

/* ── top bar ────────────────────────────────────────────────────────── */
body.tnui .tn-top { box-shadow: 0 2px 12px rgba(59, 40, 120, .18); }
/* the design's menu control is plain white lines on the bar, not a tile */
body.tnui .tn-burger, body.tnui .tn-burger-alt[aria-expanded], body.tnui .tn-burger-alt:not([aria-expanded]) {
  background: transparent; color: #fff; box-shadow: none; border-radius: 8px;
}
body.tnui .tn-burger:hover { background: rgba(255, 255, 255, .16); color: #fff; }
body.tnui .tn-burger svg { width: 22px; height: 22px; }
body.tnui .tn-tool svg { width: 20px; height: 20px; }
body.tnui .tn-prof a svg { width: 16px; height: 16px; }
body.tnui .tn-sup-ic svg { width: 16px; height: 16px; }

/* ── sidebar ────────────────────────────────────────────────────────── */
body.tnui .tn-side-brand {
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
  padding: 13px 16px; border-bottom: 1px solid var(--tn-line); cursor: pointer;
}
body.tnui .tn-side-brand img { width: 34px; height: 34px; display: block; }
body.tnui .tn-side-brand span { font-size: 16px; font-weight: 800; letter-spacing: -.3px; color: var(--tn-ink); }
body.tnui .tn-side-brand b { color: var(--tn-primary); font-weight: 800; }

body.tnui .tn-me {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto auto;
  column-gap: 11px; align-items: center; text-align: left; padding: 13px 16px;
}
body.tnui .tn-me-av {
  grid-row: 1 / 3; width: 42px; height: 42px; margin: 0; font-size: 15px;
  box-shadow: 0 0 0 2px var(--tn-card), 0 0 0 3px var(--tn-line);
}
body.tnui .tn-me-av::after { width: 10px; height: 10px; top: -1px; right: -1px; }
body.tnui .tn-me-name { align-self: end; font-size: 13px; line-height: 1.25; }
body.tnui .tn-me-role {
  align-self: start; justify-self: start; margin-top: 3px; padding: 1px 7px;
  border-radius: 4px; font-size: 10px; letter-spacing: .2px;
}

body.tnui .tn-nav { padding: 8px 0 0; }
body.tnui .tn-item {
  min-height: 42px; padding: 8px 16px; margin: 0; gap: 11px; border-radius: 0;
  font-size: 13.5px; color: var(--tn-ink-2);
}
body.tnui .tn-item svg.ic,
body.tnui .tn-item:hover svg.ic,
body.tnui .tn-group.open > .tn-item svg.ic,
body.tnui .tn-item.nav-item.active svg.ic {
  box-sizing: border-box; width: 19px; height: 19px; padding: 0;
  background: none; border-radius: 0; transform: none;
}
body.tnui .tn-item svg.ic { color: var(--tn-muted); }
body.tnui .tn-item:hover { background: var(--tn-tint-bg); color: var(--tn-ink); }
body.tnui .tn-item:hover svg.ic { color: var(--tn-primary); }
body.tnui .tn-group.open > .tn-item { background: transparent; color: var(--tn-ink); font-weight: 600; }
body.tnui .tn-group.open > .tn-item svg.ic { color: var(--tn-primary); }
body.tnui .tn-item.active, body.tnui .tn-item.nav-item.active {
  background: var(--tn-tint-bg); color: var(--tn-primary); font-weight: 600;
  box-shadow: inset -3px 0 0 var(--tn-primary);
}
body.tnui .tn-item.nav-item.active svg.ic { color: var(--tn-primary); }
body.tnui .tn-g-priv > .tn-item svg.ic, body.tnui .tn-g-priv > .tn-item:hover svg.ic { color: var(--tn-red); }
body.tnui .tn-g-ai > .tn-item svg.ic { color: var(--tn-primary); }

body.tnui .tn-sub {
  height: 36px; padding: 0 16px 0 46px; border-radius: 0; font-size: 13px;
}
body.tnui .tn-sub::before {
  content: ""; width: 5px; height: 5px; flex: 0 0 auto; margin-right: 12px;
  border-radius: 50%; background: var(--tn-muted); opacity: .6;
}
body.tnui .tn-sub:hover { background: var(--tn-tint-bg); }
body.tnui .tn-sub.active { box-shadow: inset -3px 0 0 var(--tn-primary); }
body.tnui .tn-sub.active::before { background: var(--tn-primary); opacity: 1; }
body.tnui .tn-nav-cap, body.tnui .tn-nav-sep { margin-left: 0; margin-right: 0; }

/* ── dashboard: SMS cards (icon + trend) ────────────────────────────── */
body.tnui .tn-clocks {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px;
}
body.tnui .tn-sms-card {
  display: flex; align-items: center; gap: 14px; min-width: 0; padding: 18px 16px;
  background: var(--tn-card); border: 1px solid var(--tn-line); border-radius: 12px;
  box-shadow: 0 2px 8px rgba(40, 30, 90, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}
body.tnui .tn-sms-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(40, 30, 90, .10); }
/* flat chip, the same language as the sidebar: a soft tint of the colour
   behind a solid glyph in that colour — no gradient, gloss or glow */
body.tnui .tn-sms-ic,
body.tnui .tn-rev .tn-stat-ic {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; background: var(--pp-bg); color: var(--pp-fg); box-shadow: none;
}
body.tnui .tn-sms-ic svg, body.tnui .tn-rev .tn-stat-ic svg { width: 24px; height: 24px; fill: currentColor; }
body.tnui .tn-sms-ic.violet, body.tnui .tn-rev .tn-stat-ic.green { --pp-bg: rgba(123, 95, 192, .12); --pp-fg: #6A4FC4; }
body.tnui .tn-sms-ic.amber,  body.tnui .tn-rev .tn-stat-ic.pink  { --pp-bg: rgba(245, 158, 11, .14); --pp-fg: #C27A06; }
body.tnui .tn-sms-ic.teal   { --pp-bg: rgba(31, 162, 192, .13); --pp-fg: #16809C; }
body.tnui .tn-sms-ic.rose   { --pp-bg: rgba(232, 85, 124, .12); --pp-fg: #C8406A; }
body.tnui .tn-rev .tn-stat-ic.orange { --pp-bg: rgba(22, 168, 116, .13); --pp-fg: #0E8A5F; }
body.tnui.tn-dark .tn-sms-ic.violet, body.tnui.tn-dark .tn-rev .tn-stat-ic.green { --pp-bg: rgba(156, 143, 224, .16); --pp-fg: #B7AAF0; }
body.tnui.tn-dark .tn-sms-ic.amber,  body.tnui.tn-dark .tn-rev .tn-stat-ic.pink  { --pp-bg: rgba(245, 158, 11, .16); --pp-fg: #F2BE5C; }
body.tnui.tn-dark .tn-sms-ic.teal   { --pp-bg: rgba(94, 211, 226, .14); --pp-fg: #7DD6E4; }
body.tnui.tn-dark .tn-sms-ic.rose   { --pp-bg: rgba(255, 143, 171, .14); --pp-fg: #F59AB3; }
body.tnui.tn-dark .tn-rev .tn-stat-ic.orange { --pp-bg: rgba(94, 224, 168, .14); --pp-fg: #6FDDAE; }
body.tnui .tn-sms-bd { min-width: 0; }
body.tnui .tn-sms-v {
  font-size: 23px; font-weight: 800; line-height: 1.1; color: var(--tn-ink); font-variant-numeric: tabular-nums;
}
body.tnui .tn-sms-l { font-size: 12.5px; color: var(--tn-muted); margin-top: 2px; }
body.tnui .tn-trend {
  display: inline-flex; align-items: center; gap: 2px; margin-top: 7px; padding: 2px 8px 2px 6px;
  border-radius: 20px; font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
body.tnui .tn-trend svg { width: 14px; height: 14px; fill: currentColor; }
body.tnui .tn-trend.up { background: var(--tn-ok-bg); color: var(--tn-ok-ink); }
body.tnui .tn-trend.dn { background: var(--tn-bad-bg); color: var(--tn-bad-ink); }
body.tnui .tn-trend.nt { background: var(--tn-tint-bg); color: var(--tn-tint-ink); padding-left: 8px; }

/* ── dashboard: summary row ─────────────────────────────────────────── */
body.tnui .tn-sec-t { font-size: 14px; font-weight: 700; color: var(--tn-ink); margin: 0 0 10px; }
body.tnui .tn-rev .tn-stat { min-height: 104px; }

@media (max-width: 1100px) {
  body.tnui .tn-clocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.tnui .tn-band { padding: 8px 14px; }
  body.tnui .tn-main { margin-top: 14px; }
  body.tnui.tn-dash .tn-title::after { width: 34px; height: 34px; top: 10px; right: 12px; background-size: 17px; }
  body.tnui .tn-clocks { gap: 10px; }
}
/* phones: two cards a row, so stack the chip over the figure */
@media (max-width: 560px) {
  body.tnui .tn-sms-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 12px; }
  body.tnui .tn-sms-ic { width: 42px; height: 42px; border-radius: 11px; }
  body.tnui .tn-sms-ic svg { width: 22px; height: 22px; }
  body.tnui .tn-sms-v { font-size: 20px; }
  body.tnui .tn-trend { white-space: normal; border-radius: 10px; }
}
