:root {
  --bg: #0d1117;
  --panel: #151c27;
  --panel-soft: #1c2533;
  --border: rgba(124, 152, 182, 0.18);
  --text: #edf3fb;
  --muted: #92a2b7;
  --green: #43d665;
  --green-soft: rgba(67, 214, 101, 0.14);
  --red: #ff6a6a;
  --red-soft: rgba(255, 106, 106, 0.14);
  --amber: #ffca4d;
  --amber-soft: rgba(255, 202, 77, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(67, 214, 101, 0.14), transparent 28%),
    linear-gradient(160deg, #091017 0%, #0d1117 45%, #111827 100%);
  color: var(--text);
}

.hidden {
  display: none !important;
}

.loginScreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.loginCard {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(21, 28, 39, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.loginTitle {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.loginLede {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.loginForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.loginField {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loginButton {
  width: 100%;
  margin-top: 6px;
}

.shell {
  width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.topNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(124, 152, 182, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 24, 34, 0.96), rgba(12, 19, 28, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(67, 214, 101, 0.05),
    0 18px 42px rgba(0, 0, 0, 0.22);
}

.brandLockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brandHomeButton {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brandLogo {
  width: auto;
  height: 42px;
  max-width: 100%;
  display: block;
}

.brandMeta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brandTitle {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}

.brandHomeButton:focus-visible {
  outline: 2px solid rgba(141, 185, 255, 0.75);
  outline-offset: 6px;
  border-radius: 14px;
}

.topNavActions {
  margin-left: auto;
}

.hero {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
}

.backButton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.backButtonIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(124, 152, 182, 0.12);
  box-shadow: inset 0 0 0 1px rgba(124, 152, 182, 0.18);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

#heroTitle {
  font-size: clamp(1.7rem, 3.1vw, 2.8rem);
}

.lede {
  margin: 12px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.summary.isHidden {
  display: none;
}

.summaryFilterInput {
  min-height: 38px;
  border: 1px solid rgba(124, 152, 182, 0.2);
  border-radius: 12px;
  background: rgba(12, 18, 26, 0.96);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  color-scheme: dark;
}

.summaryFilterInput[type="date"],
.filterInput[type="date"] {
  padding-right: 42px;
}

.dateInputWrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dateInputWrap .summaryFilterInput,
.dateInputWrap .filterInput {
  width: 100%;
  padding-right: 46px;
}

.summaryFilterInput::-webkit-calendar-picker-indicator,
.filterInput::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 0;
  height: 0;
}

.datePickerButton {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  z-index: 1;
}

.datePickerButton svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.datePickerButton:disabled {
  cursor: not-allowed;
}

.datePickerButton:focus-visible {
  outline: 2px solid rgba(141, 185, 255, 0.75);
  outline-offset: 2px;
  border-radius: 6px;
}

.totalsDateField {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.totalsDateFieldLabel {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.totalsDateFieldLabelSpacer {
  visibility: hidden;
}

.metric,
.panel {
  border: 1px solid var(--border);
  background: rgba(21, 28, 39, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 22px;
}

.metric {
  padding: 14px 16px;
}

.metric.metricCompact {
  padding: 6px 10px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.metricLabel {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.metric strong {
  font-size: 1.45rem;
}

.metric.metricCompact .metricLabel {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.metric.metricCompact strong {
  font-size: 1.2rem;
  line-height: 1;
  white-space: nowrap;
}

.totalsMetric {
  grid-column: span 2;
}

.totalsMetricHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.totalsMetricTitle {
  display: block;
  font-size: 1.1rem;
}

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

.totalsMetricBody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.totalsMetricRow {
  padding: 10px 12px;
  border: 1px solid rgba(124, 152, 182, 0.14);
  border-radius: 16px;
  background: rgba(12, 18, 26, 0.42);
}

.totalsMetricRowLabel {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.totalsMetricRowValue {
  display: block;
  font-size: 1.3rem;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

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

.priceBadge {
  min-width: 170px;
  padding: 12px 16px;
  border: 1px solid rgba(67, 214, 101, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 30, 24, 0.96), rgba(12, 23, 18, 0.96));
  box-shadow: inset 0 0 0 1px rgba(67, 214, 101, 0.06);
}

.priceBadgeLabel {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.priceBadgeValue {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.1;
}

.panel {
  padding: 18px;
}

.filters {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(124, 152, 182, 0.12);
  border-radius: 18px;
  background: rgba(12, 18, 26, 0.52);
}

.filtersGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.filterField {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filterField.isHidden {
  display: none;
}

.filterLabel {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filterInput {
  min-height: 42px;
  border: 1px solid rgba(124, 152, 182, 0.2);
  border-radius: 12px;
  background: rgba(9, 15, 22, 0.96);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  color-scheme: dark;
}

.filtersActions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.filtersButtons {
  display: flex;
  align-items: flex-start;
  /* justify-content: center; */
  gap: 12px;
  /* grid-column: 2; */
}

.filtersUtilityActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  grid-column: 3;
  flex-wrap: wrap;
}

.autoRefreshField {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 148px;
}

.autoRefreshFieldHeader {
  min-width: 164px;
}

.autoRefreshFieldHeader .filterLabel {
  font-size: 0.72rem;
}

.autoRefreshSelect {
  min-height: 42px;
}

.filterCount {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
  text-align: center;
  grid-column: 1 / -1;
}

.filterButton {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #43d665, #1fa34e);
  color: #07110a;
}

.filterButton.filterButtonGhost {
  background: rgba(124, 152, 182, 0.12);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(124, 152, 182, 0.18);
}

.filterButtonDownload {
  justify-self: auto;
}

.bulkActionsBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid rgba(124, 152, 182, 0.12);
  border-radius: 18px;
  background: rgba(12, 18, 26, 0.52);
}

.bulkSelectionCount {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

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

.refreshButton,
.verifyButton,
.rejectButton {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.refreshButton,
.verifyButton {
  background: linear-gradient(135deg, #43d665, #1fa34e);
  color: #07110a;
}

.refreshButton.activeViewButton {
  background: linear-gradient(135deg, #edf3fb, #b9c8d8);
  color: #07110a;
  box-shadow: inset 0 0 0 1px rgba(7, 17, 10, 0.08);
}

.insightsButton {
  position: relative;
  overflow: hidden;
  min-width: 128px;
  padding-inline: 18px 20px;
  background: linear-gradient(135deg, rgba(18, 31, 50, 0.98), rgba(10, 18, 31, 0.98));
  color: #dfe9f8;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 0 0 1px rgba(110, 164, 255, 0.24),
    0 10px 20px rgba(4, 10, 18, 0.2);
}

.insightsButton::before {
  content: "";
  display: inline-flex;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 999px;
  background: #7bc4ff;
  box-shadow:
    0 0 0 5px rgba(123, 196, 255, 0.14),
    0 0 18px rgba(123, 196, 255, 0.28);
  vertical-align: middle;
}

.insightsButton::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%);
  pointer-events: none;
}

.insightsButton.activeViewButton {
  background: linear-gradient(135deg, #88c7ff, #4ea1ff);
  color: #06111d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 14px 28px rgba(44, 114, 201, 0.32);
}

.insightsButton.activeViewButton::before {
  background: #ffffff;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.18),
    0 0 20px rgba(255, 255, 255, 0.34);
}

.rejectButton {
  background: linear-gradient(135deg, #ff8d6b, #ff5d6e);
  color: white;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.message {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-weight: 600;
}

.message.hidden {
  display: none;
}

.message.success {
  background: var(--green-soft);
  color: #8ff0a6;
}

.message.error {
  background: var(--red-soft);
  color: #ffb3b3;
}

.message.info {
  background: rgba(124, 152, 182, 0.14);
  color: #dce7f8;
}

.loadingOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 12, 18, 0.72);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.loadingOverlay.hidden {
  display: none;
}

.confirmOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 12, 18, 0.72);
  backdrop-filter: blur(8px);
  z-index: 1100;
}

.confirmOverlay.hidden {
  display: none;
}

.confirmDialog {
  width: min(440px, 100%);
  padding: 26px 28px;
  border-radius: 24px;
  border: 1px solid rgba(67, 214, 101, 0.18);
  background: linear-gradient(180deg, rgba(21, 28, 39, 0.98), rgba(14, 22, 31, 0.98));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.confirmTitle {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 800;
}

.confirmMessage {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.confirmActions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.confirmActions .filterButton,
.confirmActions .verifyButton {
  min-width: 160px;
  min-height: 54px;
  padding: 14px 24px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.loadingCard {
  min-width: 260px;
  padding: 28px 32px;
  border-radius: 24px;
  border: 1px solid rgba(67, 214, 101, 0.18);
  background: linear-gradient(180deg, rgba(21, 28, 39, 0.96), rgba(14, 22, 31, 0.96));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
  text-align: center;
}

.loadingSpinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 4px solid rgba(67, 214, 101, 0.16);
  border-top-color: var(--green);
  animation: adminSpin 0.9s linear infinite;
}

.loadingText {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@keyframes adminSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.tableWrap {
  overflow: hidden;
  border: 1px solid rgba(124, 152, 182, 0.12);
  border-radius: 28px;
  background: rgba(21, 28, 39, 0.92);
  padding: 0 12px;
}

.insightsSection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.insightCard {
  padding: 18px 20px;
  border: 1px solid rgba(124, 152, 182, 0.14);
  border-radius: 20px;
  background: rgba(12, 18, 26, 0.58);
}

.insightCardDetail {
  display: flex;
  flex-direction: column;
}

.insightLabel {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insightValue {
  display: block;
  color: var(--text);
  font-size: 2rem;
  line-height: 1.1;
}

.insightMeta {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  word-break: break-all;
}

.insightDetailList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.insightDetailRow {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.insightDetailKey {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insightDetailValue {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.2;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.selectColumn {
  width: 40px;
}

th,
td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(124, 152, 182, 0.12);
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

th:last-child,
td:last-child {
  width: 210px;
  min-width: 210px;
  padding-right: 10px;
  overflow: visible;
  text-overflow: clip;
}

.queueCell {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
  word-break: break-word;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

a {
  color: #8db9ff;
}

.tableCheckboxLabel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.tableCheckboxCell {
  width: 40px;
  min-width: 40px;
}

.tableCheckbox {
  width: 14px;
  height: 14px;
  accent-color: var(--green);
  cursor: pointer;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.74rem;
  font-weight: 700;
}

.pill {
  background: rgba(124, 152, 182, 0.14);
  text-transform: uppercase;
}

.badge.valid {
  background: var(--green-soft);
  color: #8ff0a6;
}

.badge.invalid {
  background: var(--red-soft);
  color: #ffb3b3;
}

.badge.unchecked {
  background: var(--amber-soft);
  color: #ffe08a;
}

.validationCell {
  width: 1%;
}

.validationCell .badge {
  padding: 4px 6px;
}

.rowActions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.rowActions .verifyButton,
.rowActions .rejectButton {
  flex: 1 1 0;
  min-width: 92px;
  padding: 10px 10px;
  font-size: 0.88rem;
}

.actionStatus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(67, 214, 101, 0.14);
  color: #8ff0a6;
  font-size: 0.85rem;
  font-weight: 700;
}

.actionStatus.rejected,
.actionStatus.failed {
  background: rgba(141, 141, 141, 0.16);
  color: #bdbdbd;
}

.actionStatus.verified {
  background: rgba(141, 185, 255, 0.14);
  color: #b7d5ff;
}

.actionStatus.processing {
  background: rgba(255, 202, 77, 0.14);
  color: #ffe08a;
}

.emptyState {
  text-align: center;
  color: var(--muted);
  padding: 36px 12px;
}

@media (max-width: 900px) {
  .shell {
    width: min(100vw - 20px, 1400px);
    padding-top: 20px;
  }

  .topNav {
    flex-direction: column;
    align-items: stretch;
  }

  .topNavActions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  .totalsMetric {
    grid-column: span 1;
  }

  .totalsMetricHeader {
    flex-direction: column;
    align-items: stretch;
  }

  .totalsMetricFilters {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .totalsMetricBody {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .filtersGrid {
    grid-template-columns: 1fr;
  }

  .filtersActions {
    grid-template-columns: 1fr;
  }

  .filtersButtons {
    grid-column: 1;
    flex-direction: column;
    align-items: stretch;
  }

  .filtersUtilityActions {
    grid-column: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
  }

  .filterButtonDownload {
    grid-column: 1;
    justify-self: stretch;
  }

  .bulkActionsBar,
  .bulkActionsButtons {
    flex-direction: column;
    align-items: stretch;
  }

  .insightsSection {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brandLockup {
    width: 100%;
    justify-content: center;
  }

  .brandLogo {
    height: 36px;
  }

  .brandMeta {
    align-items: flex-start;
  }

  .brandTitle {
    white-space: normal;
  }

  .topNavActions {
    justify-content: center;
  }
}
