/* ── Page layout ──────────────────────────────── */
.lh-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Stats cards ─────────────────────────────── */
.lh-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.lh-stat {
  padding: 14px 16px;
  background: rgba(148,137,202,0.04);
  border: 1px solid rgba(148,137,202,0.12);
  border-radius: 3px;
  text-align: center;
}
body.light .lh-stat {
  background: rgba(83,74,128,0.02);
  border-color: rgba(83,74,128,0.08);
}
.lh-stat .n {
  font-size: 26px;
  font-weight: 700;
  color: #9489ca;
  line-height: 1.2;
}
body.light .lh-stat .n { color: #534A80; }
.lh-stat .l {
  font-size: 10px;
  color: rgba(148,137,202,0.5);
  margin-top: 4px;
  letter-spacing: 0.5px;
}
body.light .lh-stat .l { color: rgba(83,74,128,0.45); }

/* ── Filter tabs ──────────────────────────────── */
.lh-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.lh-tab {
  padding: 4px 14px;
  border: 1px solid rgba(148,137,202,0.2);
  background: transparent;
  color: rgba(148,137,202,0.55);
  font-size: 11px;
  cursor: pointer;
  border-radius: 3px;
  font-family: inherit;
  letter-spacing: 0.5px;
  line-height: 1.4;
  transition: all .25s;
  user-select: none;
}
.lh-tab:hover {
  background: rgba(148,137,202,0.08);
  border-color: #9489ca;
  color: #9489ca;
}
.lh-tab.is-active {
  background: #9489ca;
  border-color: #9489ca;
  color: #fff;
  font-weight: 600;
  cursor: default;
}
body.light .lh-tab {
  border-color: rgba(83,74,128,0.18);
  color: rgba(83,74,128,0.5);
}
body.light .lh-tab:hover {
  background: rgba(83,74,128,0.08);
  border-color: #534A80;
  color: #534A80;
}
body.light .lh-tab.is-active {
  background: #534A80;
  border-color: #534A80;
  color: #fff;
}

/* ── Result badges ───────────────────────────── */
.lh-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.lh-badge.approved  { background: #08BDBA; color: #fff; }
.lh-badge.rejected  { background: #FF8389; color: #fff; }
.lh-badge.pending   { background: #78A9FF; color: #fff; }
.lh-badge.deferred  { background: #f0a030; color: #fff; }
.lh-badge.lapsed    { background: #82888d; color: #fff; }
.lh-badge.returned  { background: #6c5b7b; color: #fff; }

/* ── Table ────────────────────────────────────── */
.lh-table-wrap {
  overflow-x: auto;
  margin-bottom: 32px;
}
.lh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.lh-table thead th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  color: rgba(148,137,202,0.45);
  letter-spacing: 1px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(148,137,202,0.12);
  white-space: nowrap;
  font-family: var(--font-mono);
}
body.light .lh-table thead th {
  color: rgba(83,74,128,0.45);
  border-bottom-color: rgba(83,74,128,0.1);
}
.lh-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(148,137,202,0.05);
  color: #9489ca;
  vertical-align: middle;
  font-size: 12px;
}
body.light .lh-table tbody td {
  color: #111110;
  border-bottom-color: rgba(83,74,128,0.04);
}
.lh-table tbody tr:hover td {
  background: rgba(148,137,202,0.03);
}
body.light .lh-table tbody tr:hover td {
  background: rgba(83,74,128,0.02);
}
.lh-table .td-date {
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}
.lh-table .td-name {
  font-weight: 600;
  font-size: 13px;
}
.lh-table .td-name small {
  font-size: 10px;
  color: rgba(148,137,202,0.4);
  display: block;
  font-weight: 400;
}
body.light .lh-table .td-name small {
  color: rgba(83,74,128,0.4);
}
.lh-table .td-market {
  font-size: 11px;
  color: rgba(148,137,202,0.5);
  white-space: nowrap;
}
body.light .lh-table .td-market {
  color: rgba(83,74,128,0.5);
}
.lh-table .td-listing {
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  color: rgba(148,137,202,0.45);
}
body.light .lh-table .td-listing {
  color: rgba(83,74,128,0.45);
}
.lh-table .td-link {
  color: #9489ca;
  text-decoration: none;
  font-size: 10px;
}
.lh-table .td-link:hover {
  text-decoration: underline;
}
body.light .lh-table .td-link {
  color: #534A80;
}

/* ── Empty state ─────────────────────────────── */
.lh-empty {
  text-align: center;
  color: rgba(148,137,202,0.35);
  padding: 40px 16px;
  font-size: 12px;
}
body.light .lh-empty {
  color: rgba(83,74,128,0.3);
}

/* ── Count label ──────────────────────────────── */
.lh-count {
  font-size: 11px;
  color: rgba(148,137,202,0.4);
  margin-bottom: 16px;
  margin-left: 2px;
}
body.light .lh-count {
  color: rgba(83,74,128,0.4);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .lh-main { padding: 0 20px; }
  .lh-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lh-stat { padding: 12px 10px; }
  .lh-stat .n { font-size: 22px; }
  .lh-tabs { gap: 4px; }
  .lh-tab { padding: 3px 10px; font-size: 10px; }
  .lh-table thead th,
  .lh-table tbody td { padding: 6px 8px; }
  .lh-table .td-name { font-size: 12px; }
}
