/* ==========================================================================
   Loadvanta Core - Modern Freight Tech Design System (Phase 1)
   ========================================================================== */

:root {
  --bg-dark: #080c15;
  --bg-card: #111827;
  --bg-card-secondary: #1a2236;
  --bg-input: #0c121e;
  --border-color: #23304d;
  --border-focus: #3b82f6;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-subtle: #6b7280;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.25);

  --pass-bg: #064e3b;
  --pass-border: #059669;
  --pass-glow: rgba(16, 185, 129, 0.2);
  --pass-text: #34d399;
  --pass-badge-bg: #047857;

  --error-bg: #450a0a;
  --error-border: #dc2626;
  --error-glow: rgba(239, 68, 68, 0.25);
  --error-text: #f87171;
  --error-badge-bg: #b91c1c;

  --warn-bg: #451a03;
  --warn-border: #d97706;
  --warn-glow: rgba(217, 119, 6, 0.25);
  --warn-text: #fbbf24;
  --warn-badge-bg: #b45309;

  --neutral-bg: #1e293b;
  --neutral-border: #334155;
  --neutral-text: #94a3b8;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  padding: 20px;
  background-image: 
    radial-gradient(circle at 12% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(16, 185, 129, 0.06) 0%, transparent 45%);
}

.font-mono {
  font-family: 'JetBrains Mono', Consolas, Monaco, 'Courier New', monospace;
}

.hidden {
  display: none !important;
}

.app-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.header-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.header-tag {
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  padding: 2px 8px;
  border-radius: 9999px;
}

.header-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.system-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #34d399;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   Pipeline Visualizer Bar
   ========================================================================== */
.pipeline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  gap: 10px;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  flex: 1;
}

.pipeline-step.active {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.pipeline-step.active .step-num {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
}

.step-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.step-detail {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-left: auto;
}

.step-arrow {
  color: var(--text-subtle);
  font-size: 1.1rem;
  user-select: none;
}

.step-decision-pass {
  border-color: rgba(16, 185, 129, 0.35) !important;
  background: rgba(16, 185, 129, 0.08) !important;
}

.step-decision-pass .step-num {
  background: #059669 !important;
  color: #ffffff !important;
}

.step-decision-fail {
  border-color: rgba(239, 68, 68, 0.4) !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

.step-decision-fail .step-num {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Simulation & Test Suite Toolbar
   ========================================================================== */
.simulation-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-md);
}

.sim-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.sim-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.sim-icon {
  font-size: 1.2rem;
}

.demo-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.live-doc-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #93c5fd;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.data-source-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: 9999px;
}

.sim-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 1024px) {
  .sim-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sim-actions-grid {
    grid-template-columns: 1fr;
  }
}

/* Preset Buttons */
.btn-preset {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-preset:hover {
  transform: translateY(-1px);
}

.btn-preset-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-preset-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.btn-clean {
  border-color: rgba(16, 185, 129, 0.35);
}
.btn-clean .btn-preset-title { color: #6ee7b7; }
.btn-clean:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
}

.btn-error {
  border-color: rgba(239, 68, 68, 0.35);
}
.btn-error .btn-preset-title { color: #fca5a5; }
.btn-error:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: #ef4444;
}

.btn-warn {
  border-color: rgba(245, 158, 11, 0.35);
}
.btn-warn .btn-preset-title { color: #fde68a; }
.btn-warn:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: #f59e0b;
}

/* Demo Notice Alert Banner */
.demo-notice-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: #fde68a;
  font-size: 0.85rem;
  line-height: 1.4;
}

.demo-notice-banner svg {
  color: #f59e0b;
  flex-shrink: 0;
}

.demo-notice-banner strong {
  color: #ffffff;
}

/* Primary Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.btn-icon:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Workspace Grid & Panels
   ========================================================================== */
.workspace-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 992px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-step-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: #2563eb;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
}

.panel-header h2 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
}

.badge-subtle {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed #334155;
  border-radius: var(--radius-md);
  padding: 32px 18px;
  text-align: center;
  background: rgba(15, 22, 38, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.drop-zone:hover,
.drop-zone.drag-active {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.07);
}

.file-input-hidden {
  display: none;
}

.upload-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-card-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
}

.drop-main-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.drop-sub-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.browse-link {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: underline;
}

.supported-files-tag {
  font-size: 0.74rem;
  color: var(--text-subtle);
}

.supported-files-tag code {
  background: rgba(255, 255, 255, 0.06);
  color: #93c5fd;
  padding: 1px 5px;
  border-radius: 3px;
}

/* File Info Banner */
.file-info-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-secondary);
  border: 1px solid #334155;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.file-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: #3b82f6;
  color: #ffffff;
  padding: 4px 7px;
  border-radius: 4px;
}

.file-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.file-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Available Samples Card */
.available-samples-card {
  background: rgba(26, 34, 54, 0.6);
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.samples-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 8px;
}

.samples-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-muted);
}

.samples-list code {
  background: rgba(0, 0, 0, 0.4);
  color: #e2e8f0;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

/* ==========================================================================
   Confidence & Validation Card
   ========================================================================== */
.confidence-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quality-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quality-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.quality-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid transparent;
  letter-spacing: 0.03em;
}

.quality-readable {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.quality-partial {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
  border-color: rgba(217, 119, 6, 0.4);
}

.quality-scanned {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.quality-empty {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border-color: rgba(100, 116, 139, 0.4);
}

.quality-unsupported {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.confidence-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.confidence-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.confidence-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  padding: 2px 8px;
  border-radius: 9999px;
}

.threshold-tag {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

/* Category Badge in Line Items */
.line-cat-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-right: 6px;
}

.cat-base {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.cat-fuel {
  background: rgba(6, 182, 212, 0.2);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.cat-accessorial {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.cat-deduction {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.page-tag {
  font-size: 0.65rem;
  color: #60a5fa;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(59, 130, 246, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
}

/* Primary Validation Card States */
.validation-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.validation-card.neutral-state {
  background: var(--bg-card-secondary);
  border: 1.5px solid var(--border-color);
}

.validation-card.pass-state {
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.45) 0%, rgba(6, 78, 59, 0.2) 100%);
  border: 1.5px solid var(--pass-border);
  box-shadow: 0 0 20px var(--pass-glow);
}

.validation-card.fail-state {
  background: linear-gradient(180deg, rgba(69, 10, 10, 0.55) 0%, rgba(69, 10, 10, 0.25) 100%);
  border: 1.5px solid var(--error-border);
  box-shadow: 0 0 24px var(--error-glow);
}

.validation-card.warn-state {
  background: linear-gradient(180deg, rgba(69, 26, 3, 0.55) 0%, rgba(69, 26, 3, 0.25) 100%);
  border: 1.5px solid var(--warn-border);
  box-shadow: 0 0 24px var(--warn-glow);
}

.validation-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.audit-badge.neutral {
  background: #334155;
  color: #f1f5f9;
}

.audit-badge.pass {
  background: var(--pass-badge-bg);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.45);
}

.audit-badge.fail {
  background: var(--error-badge-bg);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(220, 38, 38, 0.5);
}

.audit-badge.warn {
  background: var(--warn-badge-bg);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(217, 119, 6, 0.5);
}

.status-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.audit-explanation {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.45;
  font-weight: 500;
}

/* Math Breakdown Row */
.math-breakdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.math-equation {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.math-op {
  color: var(--text-subtle);
  font-weight: 600;
}

.math-sum {
  color: #60a5fa;
  font-weight: 700;
}

.math-vs {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 6px;
}

.math-stated {
  color: #ffffff;
  font-weight: 700;
}

.delta-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

.delta-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.delta-match {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.delta-error {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

/* Guardrail Rules Checklist */
.guardrail-checklist {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.checklist-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rule-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.rule-icon {
  font-weight: 800;
  font-size: 0.95rem;
  width: 18px;
  display: inline-flex;
  justify-content: center;
}

.rule-neutral .rule-icon { color: var(--text-subtle); }
.rule-neutral .rule-text { color: var(--text-muted); }

.rule-pass .rule-icon { color: #34d399; }
.rule-pass .rule-text { color: var(--text-main); }

.rule-fail .rule-icon { color: #f87171; }
.rule-fail .rule-text { color: #fca5a5; font-weight: 600; }

/* Processing Card */
.processing-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #3b82f6;
  border-radius: var(--radius-md);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.spinner-ring {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}

.processing-text h3 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.processing-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Extraction Cards & Source Evidence
   ========================================================================== */
.extraction-card {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.evidence-header-tag {
  font-size: 0.7rem;
  color: #60a5fa;
  font-family: 'JetBrains Mono', monospace;
  text-transform: none;
}

.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.field-item-full {
  grid-column: 1 / -1;
}

.field-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.pill-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-subtle);
}

.pill-pass {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.pill-fail {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.field-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.field-missing {
  color: #f87171 !important;
  font-style: italic;
}

.evidence-snippet {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  border-left: 2px solid #3b82f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rates Table */
.rates-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.rate-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rate-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.evidence-snippet-inline {
  font-size: 0.7rem;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

.rate-amount {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.rate-row-divider {
  border-top: 1px dashed var(--border-color);
  margin-top: 4px;
  padding-top: 8px;
}

.rate-name-subtle {
  font-size: 0.84rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.calc-subtle-hint {
  font-size: 0.7rem;
  color: #3b82f6;
}

.rate-amount-subtle {
  font-size: 0.98rem;
  font-weight: 700;
  color: #60a5fa;
}

.rate-row-total {
  border-top: 1px solid #334155;
  padding-top: 10px;
  margin-top: 4px;
}

.rate-name-total {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
}

.rate-amount-total {
  font-size: 1.35rem;
  font-weight: 800;
  color: #38bdf8;
}

/* Itemized Accessorial Line Items */
.accessorials-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 4px 0;
}

.accessorials-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.accessorial-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.accessorial-item-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.accessorial-name {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
}

.rate-amount-deduction {
  color: #f87171 !important;
}

.rate-amount-positive {
  color: #e2e8f0;
}

.fuel-status-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-family: 'JetBrains Mono', monospace;
  display: inline-block;
  vertical-align: middle;
}

.fuel-explicit {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.fuel-missing {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Raw Text Preview */
.raw-preview-details {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.raw-preview-summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.raw-preview-summary:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

.toggle-hint {
  font-size: 0.74rem;
  color: var(--text-subtle);
  font-weight: 400;
}

.raw-preview-box {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  background: #090d16;
  max-height: 220px;
  overflow-y: auto;
}

.raw-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #cbd5e1;
  white-space: pre-wrap;
  line-height: 1.5;
}

/* Footer */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  font-size: 0.8rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--border-color);
}

.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Milestone 2B: Local OCR & Scanned Document Pipeline Additions
   ========================================================================== */

/* OCR Progress Card */
.ocr-progress-card {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  animation: fadeIn 0.2s ease;
}

.ocr-progress-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.ocr-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.ocr-status-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
}

.ocr-status-sub {
  margin: 2px 0 0 0;
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.ocr-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.ocr-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* OCR Quality Badges */
.quality-badges-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ocr-quality-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}

.badge-ocr-text-layer {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-ocr-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-ocr-partial {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-ocr-failed, .badge-ocr-unreadable {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-ocr-unsupported {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

/* Legend Dots */
.dot-text-layer { background: #3b82f6; }
.dot-ocr-success { background: #10b981; }
.dot-ocr-partial { background: #f59e0b; }
.dot-ocr-failed { background: #ef4444; }
.dot-unsupported { background: #a855f7; }

.highlight-demo {
  border-color: rgba(59, 130, 246, 0.5) !important;
  color: #93c5fd !important;
  background: rgba(59, 130, 246, 0.1) !important;
}
.highlight-demo:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: #3b82f6 !important;
}


/* ==========================================================================
   Milestone 2C: Asynchronous Batch Processing Queue
   ========================================================================== */
.batch-queue-panel {
  margin-top: 16px;
}

.batch-progress-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.batch-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.batch-progress-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.batch-percent {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: #38bdf8;
}

.batch-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.batch-status-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}
.batch-status-pill.idle { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.batch-status-pill.running { background: rgba(56, 189, 248, 0.2); color: #38bdf8; animation: pulse 1.5s infinite; }
.batch-status-pill.paused { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.batch-status-pill.completed { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.batch-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.batch-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.batch-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.b-stat {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  text-align: center;
}

.b-stat-num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.b-stat-lbl {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.text-amber { color: #fbbf24 !important; }
.text-blue { color: #60a5fa !important; }
.text-green { color: #34d399 !important; }
.text-red { color: #f87171 !important; }

.batch-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.btn-tool {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-tool:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.batch-queue-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.queue-empty-msg {
  text-align: center;
  padding: 24px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
}

.queue-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.queue-item:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(99, 102, 241, 0.4);
}
.queue-item.active-job {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.queue-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.queue-item-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.badge-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.badge-status.queued { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.badge-status.processing { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.badge-status.completed { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-status.human_review { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-status.failed { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.badge-status.cancelled { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

.queue-item-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.queue-item-bar {
  margin-top: 6px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.queue-item-bar-inner {
  height: 100%;
  background: #38bdf8;
  border-radius: 999px;
  transition: width 0.2s;
}

.highlight-batch {
  border-color: rgba(16, 185, 129, 0.5) !important;
  color: #6ee7b7 !important;
  background: rgba(16, 185, 129, 0.1) !important;
}
.highlight-batch:hover {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: #10b981 !important;
}

/* ==========================================================================
   Milestone 2D: Structured Export & Integration Layer Styles
   ========================================================================== */

.export-panel {
  border-color: rgba(99, 102, 241, 0.35);
  position: relative;
}

.export-status-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.export-status-pill.pending {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
.export-status-pill.ready {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.export-status-pill.blocked {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.export-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.export-gate-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  transition: all 0.2s ease;
}
.export-gate-notice .notice-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
.export-gate-notice.pending {
  border-color: var(--border-color);
  color: var(--text-muted);
}
.export-gate-notice.ready {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
}
.export-gate-notice.ready strong {
  color: #34d399;
}
.export-gate-notice.blocked {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}
.export-gate-notice.blocked strong {
  color: #f87171;
}

.export-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #2563eb;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.btn-export:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.btn-export.secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-export.secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-export:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-tool-accent {
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
}
.btn-tool-accent:hover {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: #38bdf8 !important;
}

/* Webhook & EDI Inspection Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.hidden {
  display: none !important;
}

.modal-dialog {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}
.modal-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}
.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-code {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #7dd3fc;
  max-height: 52vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.copy-success-badge {
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 600;
  margin-right: auto;
}
.copy-success-badge.hidden {
  display: none !important;
}

/* ==========================================================================
   Milestone 2E: Human Review Resolution & Correction Styles
   ========================================================================== */

.human-review-panel {
  border-color: rgba(239, 68, 68, 0.35);
  position: relative;
  transition: border-color 0.3s ease;
}
.human-review-panel.state-editing {
  border-color: rgba(251, 191, 36, 0.45);
}
.human-review-panel.state-passed {
  border-color: rgba(16, 185, 129, 0.45);
}

.review-status-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.review-status-pill.pending {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
.review-status-pill.review {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.review-status-pill.editing {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.review-status-pill.passed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.human-review-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-flagged-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.flagged-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f87171;
  font-size: 0.85rem;
}
.flagged-reasons-list {
  margin: 8px 0 0 0;
  padding-left: 20px;
  color: #fca5a5;
  font-size: 0.8rem;
  line-height: 1.5;
}

.review-evidence-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.evidence-box-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #60a5fa;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}
.evidence-snippet-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: #cbd5e1;
  margin-top: 4px;
  line-height: 1.4;
}

.correction-form-wrapper {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.correction-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.form-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.04em;
}
.unverified-pill {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.correction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.corr-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.corr-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.req-star {
  color: #f87171;
}
.corr-input {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 7px 10px;
  color: #ffffff;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}
.corr-input:focus {
  border-color: #38bdf8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}
.corr-financial {
  background: rgba(30, 41, 59, 0.25);
  padding: 6px;
  border-radius: 4px;
}
.highlight-corr {
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}
.font-bold {
  font-weight: 700;
}

.revalidation-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.btn-revalidate {
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.btn-revalidate:hover:not(:disabled) {
  background: #047857;
  transform: translateY(-1px);
}
.btn-revalidate:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
  transform: none !important;
}

.revalidate-feedback {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}
.revalidate-feedback.pass {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
}
.revalidate-feedback.fail {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}

.before-after-section {
  margin-top: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}
.before-after-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px 0;
}
.before-after-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}
.before-after-table th {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}
.before-after-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}
.before-after-table .val-orig {
  color: #f87171;
  text-decoration: line-through;
}
.before-after-table .val-corr {
  color: #34d399;
  font-weight: 600;
}


/* ==========================================================================
   Milestone 2F: Outbound Integration, Reliable Transmission & Delivery Audit
   ========================================================================== */
.outbound-panel {
  border-left: 3px solid #8b5cf6;
}

.outbound-status-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.outbound-status-pill.pending { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.outbound-status-pill.ready { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.outbound-status-pill.blocked { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.outbound-status-pill.sending { background: rgba(56, 189, 248, 0.2); color: #38bdf8; animation: pulse 1.5s infinite; }
.outbound-status-pill.sent { background: rgba(16, 185, 129, 0.25); color: #10b981; border: 1px solid #10b981; }
.outbound-status-pill.retry { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.outbound-status-pill.failed { background: rgba(239, 68, 68, 0.25); color: #ef4444; border: 1px solid #ef4444; }

.outbound-gate-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.outbound-gate-notice.pending {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}
.outbound-gate-notice.ready {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}
.outbound-gate-notice.blocked {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.outbound-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
  background: rgba(15, 23, 42, 0.4);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.outbound-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.outbound-detail-item.full-width {
  grid-column: 1 / -1;
}
.detail-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
}
.detail-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-main);
  font-weight: 600;
}
.idempotency-key-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: #38bdf8;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  word-break: break-all;
  display: inline-block;
}

.outbound-actions-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.btn-outbound {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-outbound:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.btn-outbound:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.btn-outbound-primary {
  background: #7c3aed;
  border-color: #8b5cf6;
  color: #ffffff;
}
.btn-outbound-primary:hover:not(:disabled) {
  background: #6d28d9;
  border-color: #7c3aed;
}

.transmission-audit-section {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}
.audit-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px 0;
}
.transmission-audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}
.transmission-audit-table th {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}
.transmission-audit-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

/* ==========================================================================
   Milestone 2G: Secure Outbound Relay Configuration
   ========================================================================== */
.relay-config-subpanel {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.relay-config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.relay-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.relay-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}
.relay-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.relay-dot.online {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}
.relay-dot.offline {
  background: #94a3b8;
}
.relay-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}
.relay-badge.connected {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.relay-badge.offline {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.btn-relay-small {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-relay-small:hover {
  background: rgba(139, 92, 246, 0.3);
  color: #ffffff;
}
.relay-config-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.relay-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
}
.relay-form-row label {
  min-width: 170px;
  color: var(--text-muted);
  font-weight: 600;
}
.relay-select, .relay-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-family: 'JetBrains Mono', monospace;
}
.relay-select:focus, .relay-input:focus {
  border-color: #8b5cf6;
  outline: none;
}
.relay-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 6px 10px;
  background: rgba(139, 92, 246, 0.08);
  border-radius: 4px;
  border-left: 2px solid #8b5cf6;
  font-size: 0.7rem;
  color: #c4b5fd;
  line-height: 1.4;
}
.relay-lock-icon {
  font-size: 0.85rem;
}


/* ==========================================================================
   Pilot Operations & Customer Conversion (Milestone 3C)
   ========================================================================== */

.pilot-mode-banner {
  transition: all 0.3s ease;
}

.btn-pilot-action {
  transition: transform 0.15s ease, filter 0.15s ease, background 0.2s ease;
  outline: none;
}

.btn-pilot-action:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-pilot-action:active {
  transform: translateY(0);
}

.btn-pilot-action.secondary {
  border: 1px solid #475569;
}

.btn-pilot-action.secondary:hover {
  background: #475569 !important;
  color: #f8fafc !important;
}

.badge-pilot-active {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  border: 1px solid #059669;
}

.badge-pilot-inactive {
  background: rgba(148, 163, 184, 0.2) !important;
  color: #94a3b8 !important;
  border: 1px solid #475569;
}

.badge-pilot-expired {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #f87171 !important;
  border: 1px solid #dc2626;
}

.badge-pilot-completed {
  background: rgba(99, 102, 241, 0.25) !important;
  color: #a5b4fc !important;
  border: 1px solid #6366f1;
}


/* ==========================================================================
   Loadvanta Core - Red-Team Product Excellence & Streamlined Operator UX
   ========================================================================== */

/* Mode Switcher Tabs */
.view-mode-tabs {
  display: flex;
  gap: 10px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 4px;
}

.view-mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.view-mode-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.view-mode-tab.active {
  background: var(--bg-card-secondary);
  color: #60a5fa;
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.view-mode-tab .tab-icon {
  font-size: 16px;
}

.view-mode-tab .tab-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.view-mode-tab.active .tab-badge {
  background: rgba(59, 130, 246, 0.3);
  color: #bfdbfe;
  border-color: #60a5fa;
}

.kbd-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #334155;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1;
}

/* Explicit Arithmetic Equation Proof Card */
.math-equation-proof {
  margin: 16px 0;
  padding: 16px;
  background: #090e17;
  border: 1px solid #1e293b;
  border-left: 4px solid #3b82f6;
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.equation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.equation-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.equation-tolerance {
  font-size: 11px;
  color: #94a3b8;
}

.equation-content {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.6;
}

.eq-placeholder {
  color: #64748b;
  font-style: italic;
}

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

.eq-formula {
  background: rgba(30, 41, 59, 0.5);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #1e293b;
  word-break: break-word;
}

.eq-term strong {
  color: #38bdf8;
}

.eq-equals {
  color: #94a3b8;
  font-weight: bold;
  margin: 0 4px;
}

.eq-calc {
  color: #38bdf8;
  font-weight: 700;
}

.eq-comparison {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 6px;
}

.eq-comparison.passed {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.eq-comparison.failed {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.eq-compare-symbol {
  font-size: 16px;
  font-weight: 800;
}

.eq-comparison.passed .eq-compare-symbol {
  color: #34d399;
}

.eq-comparison.failed .eq-compare-symbol {
  color: #f87171;
}

.eq-stated strong {
  color: #f8fafc;
}

.eq-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.eq-status-badge.pass {
  background: #064e3b;
  color: #34d399;
  border: 1px solid #059669;
}

.eq-status-badge.fail {
  background: #450a0a;
  color: #f87171;
  border: 1px solid #dc2626;
}

.eq-action-note {
  font-size: 11px;
  color: #fca5a5;
  font-style: italic;
}

/* Quick Resolve Discrepancy Button */
.btn-quick-resolve {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border: 1px solid #f59e0b;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease;
}

.btn-quick-resolve:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.4);
}

.btn-quick-resolve:active {
  transform: translateY(0);
}

.btn-quick-resolve .kbd-hint {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fef3c7;
}

/* Focused Highlight Animation for Exception Resolution */
@keyframes highlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.highlight-target {
  animation: highlightPulse 1.8s infinite;
  border-color: #f59e0b !important;
}

/* View Mode Responsive Adjustments */
body.mode-batch .batch-queue-panel {
  border-color: #0284c7;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.2);
}

body.mode-pilot .pilot-mode-banner {
  border-color: #34d399 !important;
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.3) !important;
}


/* ==========================================================================
   Loadvanta Core - Customer Experience "Why Wasn't It Always Like This?"
   ========================================================================== */

/* Mode-Driven Workspace Decluttering */
body.mode-single #pilotModeBanner {
  display: none !important;
}

body.mode-batch #customerDemoBanner,
body.mode-batch #pilotModeBanner {
  display: none !important;
}

body.mode-pilot #customerDemoBanner {
  display: none !important;
}

body.mode-pilot #pilotModeBanner {
  display: flex !important;
}

/* 1-Click Clipboard Row Copy Button */
.btn-copy-tms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: 1px solid #34d399;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-copy-tms:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-copy-tms.copied {
  background: #047857 !important;
  border-color: #6ee7b7 !important;
  color: #d1fae5 !important;
}

/* 1-Click Discrepancy Resolution Chips */
.btn-res-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-res-chip.match {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #059669;
}

.btn-res-chip.match:hover {
  background: rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.btn-res-chip.accessorial {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid #0284c7;
}

.btn-res-chip.accessorial:hover {
  background: rgba(14, 165, 233, 0.35);
  transform: translateY(-1px);
}

.btn-res-chip.manual {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid #d97706;
}

.btn-res-chip.manual:hover {
  background: rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

/* Batch Queue Filter Toolbar */
.batch-filter-toolbar {
  display: flex;
  gap: 6px;
}

.batch-filter-pill {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: #111827;
  border: 1px solid #1f2937;
  color: #9ca3af;
  transition: all 0.2s ease;
  text-align: center;
}

.batch-filter-pill:hover {
  background: #1f2937;
  color: #f3f4f6;
}

.batch-filter-pill.active {
  background: #1e293b;
  border-color: #3b82f6;
  color: #60a5fa;
}

.batch-filter-pill.attention.active {
  border-color: #ef4444;
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

.batch-filter-pill.ready.active {
  border-color: #10b981;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
}

/* Duplicate Load Shield Toast */
.duplicate-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  background: #0f172a;
  border: 1px solid #f59e0b;
  border-left: 5px solid #f59e0b;
  border-radius: 8px;
  padding: 12px 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 450px;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.duplicate-toast .dup-toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.duplicate-toast .dup-icon {
  font-size: 22px;
}

.duplicate-toast strong {
  color: #f8fafc;
  font-size: 13px;
  display: block;
}

.duplicate-toast span {
  color: #cbd5e1;
  font-size: 12px;
}

.duplicate-toast .btn-toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
}

.duplicate-toast .btn-toast-close:hover {
  color: #f8fafc;
}
