/* ── MATERIAL SYMBOLS ── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; }

/* ── SIDEBAR NAV ACTIVE STATE ── */
.sidebar-link.active {
  background-color: #f1dbff !important;
  color: #6100a4 !important;
}
.sidebar-link.active .material-symbols-outlined { color: #6100a4 !important; }
.sidebar-link.active span:not(.material-symbols-outlined) { color: #6100a4 !important; font-weight: 700; }

/* ── MOBILE BOTTOM NAV ACTIVE STATE ── */
.bottom-link.active { color: #6100a4 !important; }
.bottom-link.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── LAST UPDATED TAG ── */
.last-updated-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1dbff;
  color: #6100a4;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── SEARCH INPUT ── */
#searchInput, #dashSearch {
  padding: 9px 18px;
  border-radius: 9999px;
  border: 1px solid #cfc2d5;
  background: #f8f2f9;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none;
  width: 220px;
  color: #1d1b20;
}
#searchInput:focus, #dashSearch:focus {
  border-color: #6100a4;
  box-shadow: 0 0 0 3px rgba(97, 0, 164, 0.10);
}
@media (max-width: 640px) { #searchInput, #dashSearch { width: 100%; } }

/* ──────────────────────────────────────────
   MODERN TABLE  (category ranking pages)
   ────────────────────────────────────────── */
.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.modern-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  color: #7e7384;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  background: #fef7ff;
  border-bottom: 1px solid #cfc2d5;
}
.modern-table thead th:first-child { text-align: center; width: 52px; }
.modern-table thead th:last-child  { text-align: right; }
.modern-table td {
  padding: 11px 14px;
  background: #ffffff;
  border-bottom: 1px solid #f2ecf3;
  font-size: 14px;
  color: #1d1b20;
  transition: background 0.12s;
}
.modern-table tbody tr:last-child td { border-bottom: none; }
.modern-table tbody tr:hover td { background: #faf8ff; }
.modern-table td:first-child { text-align: center; width: 52px; }
.modern-table td:nth-child(2) { font-weight: 700; }
.modern-table td:last-child  { text-align: right; }

/* Rank row distinction — colored left stripe on first cell */
.rank-1 td:first-child { border-left: 3px solid #f59e0b; }
.rank-2 td:first-child { border-left: 3px solid #6100a4; }
.rank-3 td:first-child { border-left: 3px solid #b8004b; }
.rank-1 td, .rank-2 td, .rank-3 td { background: #fdfcff !important; }
.rank-1 td:nth-child(2), .rank-2 td:nth-child(2), .rank-3 td:nth-child(2) { font-weight: 800; }
.is-winner-rank td { box-shadow: 0 1px 6px rgba(97,0,164,0.06); }

.qualified-entry td { background: #ffffff !important; }
.below-target td { opacity: 0.38; }

.threshold-divider td {
  background: #f8f2f9 !important;
  color: #7e7384 !important;
  font-weight: 700 !important;
  text-align: center !important;
  border-top: 1px dashed #cfc2d5;
  border-bottom: 1px dashed #cfc2d5;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.threshold-divider:hover td { background: #f8f2f9 !important; }

.place-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f1dbff;
  color: #6100a4;
  font-weight: 800;
  font-size: 12px;
}
.rank-1 .place-icon { background: linear-gradient(135deg,#f8c847,#f59e0b); color: #3d2b00; }
.rank-2 .place-icon { background: linear-gradient(135deg,#7b2cbf,#6100a4); color: #ffffff; }
.rank-3 .place-icon { background: linear-gradient(135deg,#e21461,#b8004b); color: #ffffff; }

.unit-inline {
  font-size: 11px;
  font-weight: 600;
  margin-left: 3px;
  color: #7e7384;
}

/* ──────────────────────────────────────────
   DASHBOARD TABLE
   ────────────────────────────────────────── */
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.dash-table th {
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  border-bottom: 1px solid #cfc2d5;
  background: #f8f2f9;
  color: #4c4353;
}
.dash-table th.sortable { cursor: pointer; user-select: none; }
.dash-table th.sortable:hover { background: #ede9f4; }
.dash-table th .sort-icon {
  font-size: 13px;
  vertical-align: middle;
  margin-left: 2px;
  opacity: 0.6;
}
.dash-table th.group-voice { background: #bbf7d0; color: #15803d; border-bottom: 2px solid #4ade80; }
.dash-table th.group-eon   { background: #ffedd5; color: #b25637; border-bottom: 2px solid #ea8b48; }
.dash-table th.group-fiber { background: #bae6fd; color: #0369a1; border-bottom: 2px solid #38bdf8; }
.dash-table th.group-name  { background: #e8bdf2; border-bottom: 2px solid #cfc2d5; vertical-align: bottom; }
.dash-table th.group-voice.sortable:hover { background: #a7f3d0; }
.dash-table th.group-eon.sortable:hover   { background: #ddd6fe; }
.dash-table th.group-fiber.sortable:hover { background: #a5d8f5; }

.dash-table td {
  padding: 9px 12px;д
  border-bottom: 1px solid #f2ecf3;
  vertical-align: middle;
  white-space: nowrap;
}

.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover td { background: #faf8ff; }

.agent-name { font-weight: 700; font-size: 13px; color: #1d1b20; min-width: 140px; }
.num-actual { font-weight: 900; font-size: 14px; text-align: center; }

/* PCT badge */
.pct-cell { text-align: center; min-width: 80px; }
.pct-badge { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; }
.pct-value { font-weight: 800; font-size: 12px; border-radius: 5px; padding: 2px 7px; }
.pct-bar-wrap { width: 52px; height: 3px; background: #e6e1e8; border-radius: 99px; overflow: hidden; }
.pct-bar-fill { height: 100%; border-radius: 99px; transition: width 0.5s ease; }
.tier-green  .pct-value { background: #dcfce7; color: #15803d; }
.tier-green  .pct-bar-fill { background: #22c55e; }
.tier-orange .pct-value { background: #fef3c7; color: #92400e; }
.tier-orange .pct-bar-fill { background: #f59e0b; }
.tier-red    .pct-value { background: #ffe4e6; color: #b91c1c; }
.tier-red    .pct-bar-fill { background: #f87171; }
.tier-zero   .pct-value { background: #f1dbff; color: #6100a4; }
.tier-zero   .pct-bar-fill { background: #cfc2d5; }

/* ── ULTRA-SEAMLESS DUAL FADE ── */
.hero-static-fade {
  /* scale(2.2) maintains the zoom. 
     translateX(-5%) moves it slightly right compared to before (-20%) */
  transform: scale(2.2) translateX(-5%); 
  transform-origin: right center;

  /* STEP 1: Wider Gradient Mask for "Seamlessness" */
  /* 0-35%: Long fade-in from the left (behind the text) */
  /* 35-65%: Solid center area for the partners */
  /* 65-100%: Long fade-out to the right edge */
  -webkit-mask-image: linear-gradient(to right, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,1) 35%, 
    rgba(0,0,0,1) 65%, 
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(to right, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,1) 35%, 
    rgba(0,0,0,1) 65%, 
    rgba(0,0,0,0) 100%
  );

  /* STEP 2: The Purple Brand Filter */
  mix-blend-mode: luminosity;
  opacity: 0.85; /* Slightly lowered to help the "blend" into the background color */
  filter: blur(0px);
}
/* Freeze the table headers */
#dashTable thead th {
  position: sticky;
}

#dashTable thead tr:first-child th {
  top: 0;
}

#dashTable thead tr:nth-child(2) th {
  top: 40px;
}

#dashTable thead th:first-child {
  left: 0;
  z-index: 60;
}

#dashTable tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 30;
  background: var(--surface);
}
.image-frame {
  background: #ffffff;
  border: 1px solid #cfc2d5; /* outline-variant */
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(97, 0, 164, 0.08);
}

.image-frame img {
  display: block;
  border-radius: 16px;
}
/* Top 3 - Light Green */
.modern-table tbody tr.rank-top3 td {
    background-color: #66f87962 !important; /* Light Green */
}

/* 4th place and above with at least 1 sale - Light Yellow */
.modern-table tbody tr.rank-active td {
    background-color: #fff89a69 !important; /* Light Yellow */
}

/* 0 sales - Light Grey */
.modern-table tbody tr.rank-zero td {
    background-color: #e8eaee80 !important; /* Light Grey */
    opacity: 0.7;
}

/* Ensure text remains readable on colored backgrounds */
.rank-top3 td:nth-child(2), .rank-active td:nth-child(2) {
    color: #1a1a1a;
}