/* Flagged Transactions — aligns with DarkScout dark theme; page bg per spec */
body.flagged-txs-page {
  background-color: #0a0e17;
}

.ds-page-main {
  width: 100%;
  box-sizing: border-box;
  padding: 0 clamp(12px, 2.5vw, 40px);
}

.ds-page-shell {
  width: 100%;
  max-width: min(100%, 1920px);
  margin: 0 auto;
  padding-top: 24px;
}

.flagged-page-main {
  padding-bottom: 48px;
}

.flagged-txs-page .page-hero {
  padding-top: 28px;
  padding-bottom: 12px;
}

.flagged-txs-page .hero-subtitle {
  max-width: min(100%, 56rem);
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.flagged-section-title {
  margin: 24px 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-electric-blue);
}

.flagged-range-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flagged-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

#cex-mount {
  margin-bottom: 2rem;
}

.flagged-banner {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.flagged-banner.error {
  background: rgba(255, 82, 82, 0.08);
  border: 1px solid rgba(255, 82, 82, 0.35);
  color: #ffb4b4;
}

.flagged-banner.warn {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: #c8e8ee;
}

.flagged-banner.loading {
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--color-text-secondary);
}

.flagged-loading-panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.flagged-spinner {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0, 212, 255, 0.2);
  border-top-color: var(--color-electric-blue);
  border-radius: 50%;
  animation: flagged-spin 0.7s linear infinite;
}

@keyframes flagged-spin {
  to {
    transform: rotate(360deg);
  }
}

.flagged-loading-text {
  flex: 1;
  line-height: 1.45;
}

/* Toolbar */
.flagged-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.flagged-search {
  flex: 1 1 280px;
  min-width: 200px;
  max-width: min(100%, 640px);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #121826;
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
}

.flagged-search::placeholder {
  color: var(--color-text-muted);
}

.flagged-toolbar .stat {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* Table */
.flagged-table-wrap {
  width: 100%;
  overflow: auto;
  max-height: min(82vh, 1200px);
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(8, 10, 16, 0.6);
}

.flagged-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.flagged-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  padding: 10px 12px;
  background: #0f141d;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  color: #9fd6df;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.flagged-data-table thead th:hover {
  color: var(--color-electric-blue);
}

.flagged-data-table thead th .sort-ind {
  opacity: 0.5;
  font-size: 0.7rem;
  margin-left: 4px;
}

.flagged-data-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #d5dfe5;
  vertical-align: top;
  max-width: min(420px, 28vw);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-word;
}

@media (min-width: 1400px) {
  .flagged-data-table tbody td {
    max-width: min(520px, 24vw);
  }
}

.flagged-data-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.flagged-data-table tbody tr:hover td {
  background: rgba(0, 212, 255, 0.06);
}

.cell-copy {
  cursor: pointer;
  text-decoration: underline dotted rgba(0, 212, 255, 0.45);
  text-underline-offset: 3px;
}

.cell-copy:active {
  color: var(--color-electric-blue);
}

.flagged-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  padding: 12px 18px;
  border-radius: 10px;
  background: #152028;
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: #e0f7ff;
  font-size: 0.85rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.flagged-toast.visible {
  opacity: 1;
  pointer-events: auto;
}

.flagged-hidden {
  display: none !important;
}
