/* ──────── Toolbar / result tabs ──────── */

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.seg {
  display: inline-flex;
  background: var(--bfc-soft-2);
  border: 1px solid var(--bfc-line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--bfc-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.seg button.active { background: var(--bfc-surface); color: var(--bfc-navy); box-shadow: var(--shadow-card); }
.seg button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(35, 177, 165, 0.25); }

.report-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bfc-indigo-dark);
  background: var(--bfc-soft-2);
  border-bottom: 1px solid var(--bfc-line);
}
.report-banner .clear { margin-left: auto; }

/* ──────── Data table ──────── */

.table-wrap { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data thead th {
  background: var(--bfc-soft);
  color: var(--bfc-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 22px;
  border-bottom: 1px solid var(--bfc-line);
  white-space: nowrap;
}
table.data tbody td {
  padding: 12px 22px;
  border-bottom: 1px solid var(--bfc-soft-2);
  white-space: nowrap;
}
table.data tbody tr { cursor: pointer; transition: background 0.1s ease; }
table.data tbody tr:hover { background: var(--bfc-soft); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; }


/* Small "open in Classic" external-link icon — muted until hovered;
   tooltip + aria-label carry the label (drill handoff 2026-06-06). */
.classic-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--bfc-muted);
  transition: color 0.15s ease, background 0.15s ease;
}
.classic-link:hover { color: var(--bfc-indigo); background: var(--bfc-soft-2); }
.classic-link:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(35, 177, 165, 0.25); }
.classic-link svg { display: block; }

.code-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bfc-soft-2);
  border: 1px solid var(--bfc-line);
  border-radius: 7px;
  padding: 2px 7px;
  color: var(--bfc-navy);
}

/* ──────── Pills ──────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill-success { background: var(--bfc-success-bg); color: var(--bfc-success-text); border-color: rgba(35, 177, 165, 0.22); }
.pill-warn { background: var(--bfc-warn-bg); color: var(--bfc-warn-text); border: 1px solid var(--bfc-warn-line); }
.pill-danger { background: var(--bfc-danger-bg); color: var(--bfc-danger-text); border: 1px solid var(--bfc-danger-line); }
.pill-info { background: rgba(63, 83, 216, 0.1); color: var(--bfc-indigo-dark); }
.pill-neutral { background: var(--bfc-soft-2); color: var(--bfc-muted); }

/* ──────── Pagination footer ──────── */

.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  border-top: 1px solid var(--bfc-line);
}
.table-foot .meta { font-size: 13px; color: var(--bfc-muted); }

/* ──────── Empty / loading states ──────── */

.empty {
  padding: 44px 22px;
  text-align: center;
  color: var(--bfc-muted);
}
.empty .glyph { font-size: 28px; margin-bottom: 8px; }
.empty .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--bfc-navy);
  margin-bottom: 4px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bfc-soft-2);
  border-radius: 8px;
  min-height: 14px;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .skeleton::after { animation: none; }
  .boot-spinner { animation: none; }
  .drawer, .drawer-scrim { transition: none; }
}
