/* Verifier review queue — formal workspace (aligned with executor assignments) */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

.dashboard-main.vp-main {
  min-width: 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  --vp-bg: #f1f5f9;
  --vp-surface: var(--theme-white);
  --vp-ink: #0f172a;
  --vp-muted: #64748b;
  --vp-border: #e2e8f0;
  --vp-accent: var(--theme-red-bright);
  --vp-accent-deep: var(--theme-red);
  --vp-accent-soft: var(--theme-red-tint);
  --vp-hero-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --vp-hero-muted: #64748b;
  --vp-radius: 16px;
  --vp-font: 'IBM Plex Sans', system-ui, sans-serif;

  background: var(--vp-bg);
  gap: 0;
  padding: 0 0 32px;
  font-family: var(--vp-font);
}

.vp-shell {
  width: 100%;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  border-radius: 0;
  overflow: visible;
  border: none;
  box-shadow: none;
}

.vp-shell .qs-queue-summary {
  margin: 0 var(--app-page-pad-x, 24px) 18px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.vp-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px var(--app-page-pad-x, 28px) 22px;
  margin: 18px var(--app-page-pad-x, 24px);
  margin-top: 20px;
  background: var(--vp-hero-surface);
  border: 1px solid var(--vp-border);
  border-left: 4px solid var(--vp-accent);
  border-radius: var(--vp-radius);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06);
}

.vp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 200px at 100% 0%, rgba(220, 38, 38, 0.06), transparent 55%);
  pointer-events: none;
}

.vp-hero-text {
  min-width: 0;
  flex: 1 1 200px;
  position: relative;
  z-index: 1;
}

.vp-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vp-muted);
}

.vp-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--vp-ink);
  line-height: 1.2;
}

.vp-lede {
  margin: 0;
  max-width: 42ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--vp-hero-muted);
}

.vp-hero-aside {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-top: 4px;
  position: relative;
  z-index: 1;
}

.vp-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 72px;
  padding: 12px 18px;
  background: #f8fafc;
  border: 1px solid var(--vp-border);
  border-radius: 12px;
}

.vp-stat-value {
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--vp-ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.vp-stat-label {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--vp-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vp-btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  background: var(--vp-surface);
  border: 1px solid var(--vp-border);
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.vp-btn-refresh:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.vp-btn-review-queue {
  font-weight: 600;
  border-color: rgba(220, 38, 38, 0.35);
  background: linear-gradient(180deg, var(--theme-red-soft) 0%, var(--vp-surface) 100%);
  color: var(--theme-red-deep);
}

.vp-btn-review-queue:hover {
  border-color: var(--vp-accent);
  background: var(--theme-red-soft);
}

.vp-btn-refresh svg {
  color: var(--vp-accent-deep);
}

/* ── Toolbar ──────────────────────────────────────────────── */
.vp-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
  padding: 16px var(--app-page-pad-x, 22px);
  background: linear-gradient(180deg, var(--theme-gray-50) 0%, var(--theme-gray-100) 100%);
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--vp-border);
}

.vp-toolbar-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 20px;
}

.vp-view-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.vp-view-toggle-label {
  margin-bottom: 0;
}

.vp-view-toggle-inner {
  display: inline-flex;
  padding: 3px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  border: 1px solid var(--vp-border);
}

.vp-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--theme-gray-600);
  background: transparent;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}

.vp-view-btn:hover {
  color: var(--vp-ink);
  background: rgba(255, 255, 255, 0.65);
}

.vp-view-btn--active {
  color: var(--vp-ink);
  background: var(--vp-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vp-view-btn--active svg {
  color: var(--vp-accent-deep);
}

.vp-view-btn svg {
  flex-shrink: 0;
  color: var(--theme-gray-500);
}

.vp-view-btn--active .vp-view-btn-text {
  font-weight: 700;
}

.vp-label-quiet {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--vp-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.vp-entries-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.vp-entries-select {
  min-width: 88px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vp-ink);
  background: var(--vp-surface);
  border: 1px solid var(--vp-border);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.vp-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 400px;
}

.vp-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vp-muted);
  pointer-events: none;
  display: flex;
}

.vp-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px 11px 44px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--vp-ink);
  background: var(--vp-surface);
  border: 1px solid var(--vp-border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.vp-search-input::placeholder {
  color: var(--theme-gray-400);
}

.vp-search-input:focus {
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow: 0 0 0 3px var(--vp-accent-soft);
}

/* ── Error ────────────────────────────────────────────────── */
.vp-error {
  margin: 0;
  padding: 12px var(--app-page-pad-x, 22px);
  font-size: 0.875rem;
  background: var(--theme-red-soft);
  color: var(--theme-red-deep);
  border: none;
  border-bottom: 1px solid var(--theme-red-border);
}

/* ── Table ────────────────────────────────────────────────── */
.vp-table-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--vp-surface);
  border: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0;
  scrollbar-gutter: stable;
}

.vp-table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.vp-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--theme-gray-400);
  border-radius: 6px;
}

.vp-table-wrapper::-webkit-scrollbar-track {
  background: var(--theme-gray-50);
}

.vp-table-wrapper--cards {
  overflow-x: hidden;
  overflow-y: visible;
}

.vp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  /* Keep columns readable; horizontal scroll stays inside .vp-table-wrapper */
  min-width: 980px;
}

.vp-table thead {
  background: var(--theme-gray-100);
}

.vp-th {
  padding: 13px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--theme-gray-700);
  border-bottom: 2px solid var(--theme-gray-100);
  white-space: nowrap;
}

.vp-th--num {
  width: 48px;
  text-align: center;
}

.vp-th--capture {
  min-width: 168px;
}

.vp-th--action {
  width: 1%;
  padding-left: 8px;
  padding-right: 18px;
}

.vp-td {
  padding: 14px 14px;
  color: var(--theme-gray-600);
  border-bottom: 1px solid var(--theme-gray-100);
  vertical-align: middle;
  line-height: 1.45;
}

.vp-td--num {
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--theme-gray-400);
  font-size: 0.85rem;
}

.vp-td--mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.vp-td--capture {
  font-size: 0.875rem;
  white-space: nowrap;
  color: var(--theme-black);
}

.vp-td--verifier-note {
  max-width: 220px;
  font-size: 0.8125rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--theme-gray-700);
}

.vp-card-verifier-note {
  font-size: 0.875rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.vp-td--action {
  text-align: right;
}

.vp-muted {
  color: var(--theme-gray-400);
}

.vp-row:hover .vp-td {
  background: rgba(220, 38, 38, 0.04);
}

.vp-row:last-child .vp-td {
  border-bottom: none;
}

.vp-cell-title {
  font-weight: 600;
  color: var(--vp-ink);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* People */
.vp-person {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.vp-person-name {
  font-weight: 600;
  color: var(--vp-ink);
}

.vp-person-id {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--vp-muted);
}

.vp-person-id--solo {
  font-size: 0.875rem;
}

.vp-empty {
  text-align: center;
  color: var(--theme-gray-400);
  padding: 56px var(--app-page-pad-x, 24px) !important;
  font-size: 0.95rem;
}

/* Loading */
.vp-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 64px var(--app-page-pad-x, 20px);
  color: var(--vp-muted);
  font-size: 0.95rem;
}

.vp-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--theme-gray-100);
  border-top-color: var(--vp-accent-deep);
  border-radius: 50%;
  animation: vp-spin 0.75s linear infinite;
}

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

/* Status pills */
.vp-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vp-pill--success {
  background: var(--theme-gray-50);
  color: var(--theme-gray-900);
}
.vp-pill--info {
  background: var(--theme-white);
  color: var(--theme-gray-600);
}
.vp-pill--warning {
  background: var(--theme-gray-50);
  color: var(--theme-black);
}
.vp-pill--verification {
  background: var(--theme-red-soft);
  color: var(--theme-red-deep);
}
.vp-pill--return {
  background: var(--theme-red-soft);
  color: var(--theme-red-deep);
}
.vp-pill--neutral {
  background: var(--theme-gray-50);
  color: var(--theme-gray-600);
}

/* Action */
.vp-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--theme-white);
  background: linear-gradient(135deg, var(--theme-red-bright) 0%, var(--theme-red) 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.vp-action-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.vp-action-label {
  display: inline;
}

.vp-action-btn--full {
  width: 100%;
  justify-content: center;
}

/* Card grid view */
.vp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  padding: 20px var(--app-page-pad-x, 22px) 22px;
  box-sizing: border-box;
}

.vp-assessment-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, var(--theme-white) 0%, var(--theme-gray-50) 100%);
  border: none;
  border-radius: 14px;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.06),
    0 8px 24px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.15s;
}

.vp-assessment-card:hover {
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.08),
    0 16px 40px rgba(15, 23, 42, 0.08);
}

.vp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.vp-card-num {
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--theme-gray-400);
}

.vp-card-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vp-ink);
  line-height: 1.35;
  word-break: break-word;
}

.vp-card-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.vp-card-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.85rem;
  line-height: 1.4;
}

.vp-card-row dt {
  margin: 0;
  font-weight: 600;
  color: var(--vp-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vp-card-row dd {
  margin: 0;
  color: var(--theme-gray-600);
  min-width: 0;
}

.vp-card-mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.vp-card-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--theme-gray-100);
}

.vp-card-empty {
  padding: 56px var(--app-page-pad-x, 24px);
  text-align: center;
  color: var(--theme-gray-400);
  font-size: 0.95rem;
}

/* Footer */
.vp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  padding: 14px var(--app-page-pad-x, 22px);
  background: linear-gradient(180deg, var(--theme-gray-50) 0%, var(--theme-gray-100) 100%);
  border: none;
  border-top: 1px solid var(--vp-border);
  border-radius: 0;
}

.vp-footer-meta {
  font-size: 0.875rem;
  color: var(--vp-muted);
  font-weight: 500;
}

.vp-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vp-page-btn {
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--vp-border);
  border-radius: 999px;
  background: var(--vp-surface);
  color: var(--theme-gray-600);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  min-width: 40px;
}

.vp-page-btn:hover:not(:disabled) {
  background: var(--vp-accent);
  color: var(--theme-white);
  border-color: var(--vp-accent);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.vp-page-btn--active {
  background: var(--vp-accent);
  color: var(--theme-white);
  border-color: var(--vp-accent);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.vp-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.vp-page-ellipsis {
  font-size: 0.85rem;
  color: var(--vp-muted);
  padding: 0 4px;
}

@media (max-width: 640px) {
  .dashboard-main.vp-main {
    padding: 0 0 24px;
  }

  .vp-hero {
    padding: 20px var(--app-page-pad-x, 18px) 18px;
  }

  .vp-title {
    font-size: 1.35rem;
  }

  .vp-hero-aside {
    width: 100%;
    justify-content: space-between;
  }

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

  .vp-toolbar-cluster {
    flex-direction: column;
    align-items: stretch;
  }

  .vp-view-toggle-inner {
    width: 100%;
    justify-content: stretch;
  }

  .vp-view-btn {
    flex: 1;
    justify-content: center;
  }

  .vp-search-wrap {
    max-width: none;
  }

  .vp-action-label {
    display: none;
  }

  .vp-action-btn {
    padding: 10px;
    border-radius: 10px;
  }

  .vp-card-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .vp-card-row dt {
    margin-bottom: 2px;
  }
}
