/* Level wise Report */

.lv-page { max-width: none; width: 100%; }
.lv-intro { margin-bottom: 1.1rem; }

.lv-crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.lv-crumb a:hover { color: var(--brand); }

.lv-crumb i,
.lv-crumb svg {
  width: 13px !important;
  height: 13px !important;
  opacity: 0.5;
}

.lv-crumb strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.lv-intro__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, #fff);
}

.lv-kicker i,
.lv-kicker svg {
  width: 13px !important;
  height: 13px !important;
}

.lv-intro .page-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lv-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.lv-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.95rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.04);
}

.lv-link:hover {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}

.lv-link i,
.lv-link svg {
  width: 15px !important;
  height: 15px !important;
  color: var(--brand);
}

.lv-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.lv-stat {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lv-stat:hover,
.lv-stat.is-active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}

.lv-stat.is-active {
  background: linear-gradient(180deg, #e8f8f2, #fff);
}

.lv-stat small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.lv-stat strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.lv-stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: var(--brand-deep);
  font-weight: 600;
}

.lv-card {
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
}

.lv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.lv-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
  min-height: 46px;
  padding: 0.2rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.lv-search:focus-within {
  background: #fff;
  border-color: color-mix(in srgb, var(--brand) 45%, #e5e7eb);
  box-shadow: 0 0 0 3px rgba(0, 166, 126, 0.1);
}

.lv-search i,
.lv-search svg {
  width: 16px !important;
  height: 16px !important;
  color: #9ca3af;
}

.lv-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.88rem;
  color: var(--ink);
  font-family: "Poppins", sans-serif !important;
}

.lv-filters {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.lv-filters select {
  min-height: 46px;
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
  appearance: none;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
  font-family: "Poppins", sans-serif !important;
  cursor: pointer;
}

.lv-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.lv-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.lv-table th,
.lv-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.86rem;
  border-bottom: 1px solid #f1f5f9;
}

.lv-table th {
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.lv-table tbody tr:hover { background: #f9fafb; }
.lv-table tbody tr:last-child td { border-bottom: 0; }
.lv-table td { color: var(--ink); font-weight: 500; }

.lv-level,
.lv-badge {
  display: inline-flex;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.lv-level {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, #fff);
}

.lv-badge--active {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, #fff);
}

.lv-badge--pending {
  color: #b8954f;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.lv-empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.lv-empty i,
.lv-empty svg {
  width: 36px !important;
  height: 36px !important;
  margin-bottom: 0.65rem;
  color: #9ca3af;
}

.lv-empty strong {
  display: block;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.lv-empty p {
  margin: 0;
  font-size: 0.86rem;
}

@media (max-width: 1199.98px) {
  .lv-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767.98px) {
  .lv-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575.98px) {
  .lv-stats { grid-template-columns: 1fr; }
}
