/* ═══════════════════════════════════════════════════════
   PARAGRAFT — Custom Design System
   Legal Document Automation Platform
   No frameworks. No templates. Built from scratch.
   ═══════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Brand */
  --brand-primary: #1a3a2a;
  --brand-secondary: #2d6a4f;
  --brand-accent: #40916c;
  --brand-light: #d8f3dc;
  --brand-gold: #c8a94e;

  /* Surfaces */
  --bg-app: #f8f9fb;
  --bg-sidebar: #335a45;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-hover: #f1f4f8;
  --bg-login-panel: #335a45;

  /* Text */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --text-inverse: #f9fafb;
  --text-link: #2d6a4f;

  /* Borders */
  --border-default: #e5e7eb;
  --border-input: #d1d5db;
  --border-focus: #40916c;

  /* Status */
  --color-green: #059669;
  --color-green-bg: #ecfdf5;
  --color-amber: #d97706;
  --color-amber-bg: #fffbeb;
  --color-red: #dc2626;
  --color-red-bg: #fef2f2;
  --color-blue: #2563eb;
  --color-blue-bg: #eff6ff;
  --color-purple: #7c3aed;
  --color-purple-bg: #f5f3ff;
  --color-gray: #6b7280;
  --color-gray-bg: #f3f4f6;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);

  /* Sidebar */
  --sidebar-width: 260px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); color: var(--text-primary); line-height: 1.55; background: var(--bg-app); }
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }


/* ═══════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════ */
.login-page { background: var(--bg-app); }

.login-layout {
  display: flex;
  min-height: 100vh;
}

.login-brand-panel {
  flex: 0 0 44%;
  background: var(--bg-login-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
}

.login-brand-inner { text-align: center; }

.login-logo { margin-bottom: var(--space-lg); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--brand-accent);
  color: white;
  font-weight: 800;
  font-size: 18px;
  border-radius: var(--radius-md);
  letter-spacing: -0.02em;
}

.brand-mark-lg {
  width: 72px;
  height: 72px;
  font-size: 32px;
  border-radius: var(--radius-lg);
}

.login-headline {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-inverse);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.login-headline .tm {
  font-size: 18px;
  font-weight: 400;
  vertical-align: super;
  margin-left: 2px;
  opacity: 0.6;
}

.login-tagline {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
}

.login-form-container {
  width: 100%;
  max-width: 380px;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.login-error {
  background: var(--color-red-bg);
  color: var(--color-red);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--space-md);
  border: 1px solid #fecaca;
}

.login-form { display: flex; flex-direction: column; gap: var(--space-md); }

.login-footer {
  margin-top: var(--space-xl);
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 768px) {
  .login-layout { flex-direction: column; }
  .login-brand-panel { flex: none; padding: var(--space-xl) var(--space-lg); }
  .login-headline { font-size: 28px; }
}


/* ═══════════════════════════════════════════════════════
   APP SHELL (Sidebar + Main)
   ═══════════════════════════════════════════════════════ */
.app-shell { background: var(--bg-app); }

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand {
  padding: var(--space-lg) var(--space-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-inverse);
  letter-spacing: -0.02em;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-md) var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.95);
  text-decoration: none;
}

.nav-item.active {
  background: var(--brand-accent);
  color: white;
}

.nav-icon { width: 20px; height: 20px; flex-shrink: 0; }

.sidebar-footer {
  padding: var(--space-md) var(--space-sm);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 4px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.user-info { display: flex; flex-direction: column; }

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.2;
}

.user-role {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.logout-link { color: rgba(255,255,255,0.4); font-size: 13px; }
.logout-link:hover { color: rgba(255,255,255,0.8); }


/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: var(--space-xl) var(--space-xl);
  max-width: 1200px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
}

.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}


/* ═══════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════ */

/* ── Flash Messages ── */
.flash-container { margin-bottom: var(--space-lg); }

.flash-message {
  background: var(--color-blue-bg);
  color: var(--color-blue);
  border: 1px solid #bfdbfe;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stats-grid-2 { grid-template-columns: repeat(2, 1fr); }
.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-value-sm { font-size: 18px; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
}

.card-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-body { padding: var(--space-md) var(--space-lg) var(--space-lg); }

.card-form { padding: var(--space-lg); }

/* ── Tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 10px var(--space-lg);
  border-bottom: 1px solid var(--border-default);
  background: #fafbfc;
}

.data-table td {
  padding: 14px var(--space-lg);
  border-bottom: 1px solid var(--border-default);
  font-size: 14px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td { background: var(--bg-hover); }

.cell-primary { color: var(--text-primary); font-weight: 600; }
.cell-bold { font-weight: 700; color: var(--text-primary); }
.cell-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.cell-empty { text-align: center; color: var(--text-muted); padding: var(--space-xl) !important; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-green { background: var(--color-green-bg); color: var(--color-green); }
.badge-amber { background: var(--color-amber-bg); color: var(--color-amber); }
.badge-red { background: var(--color-red-bg); color: var(--color-red); }
.badge-blue { background: var(--color-blue-bg); color: var(--color-blue); }
.badge-purple { background: var(--color-purple-bg); color: var(--color-purple); }
.badge-gray { background: var(--color-gray-bg); color: var(--color-gray); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

.btn-primary:hover {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-full { width: 100%; }

.link {
  color: var(--text-link);
  font-weight: 500;
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.link:hover { text-decoration: underline; }

/* ── Forms ── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field-full { grid-column: 1 / -1; }

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-input);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.12);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field input[readonly] {
  background: var(--bg-hover);
  cursor: not-allowed;
}

.form-field textarea { resize: vertical; min-height: 80px; }

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.form-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-default);
}

/* ── View Toggle ── */
.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  padding: 3px;
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .main-content { padding: var(--space-lg) var(--space-md); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
}


/* ═══════════════════════════════════════════════════════
   GENERATION FLOW COMPONENTS
   ═══════════════════════════════════════════════════════ */

/* ── Template Selection Grid ── */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
  padding: 0 var(--space-lg) var(--space-lg);
}

.template-option {
  cursor: pointer;
  display: block;
}

.template-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.template-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--space-lg) var(--space-md);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.15s ease;
  background: var(--bg-card);
}

.template-card:hover {
  border-color: var(--brand-accent);
  background: #f0faf4;
}

.template-option input:checked + .template-card {
  border-color: var(--brand-accent);
  background: var(--brand-light);
  box-shadow: 0 0 0 1px var(--brand-accent);
}

.template-icon {
  width: 40px;
  height: 40px;
  color: var(--brand-accent);
}

.template-icon svg {
  width: 100%;
  height: 100%;
}

.template-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.template-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.select-all-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

.select-all-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-accent);
}

/* ── Generate Actions ── */
.generate-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

/* ── Results List ── */
.results-list {
  padding: 0 var(--space-lg) var(--space-lg);
}

.result-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-default);
}

.result-item:last-child { border-bottom: none; }

.result-icon {
  width: 36px;
  height: 36px;
  color: var(--brand-accent);
  flex-shrink: 0;
}

.result-icon svg { width: 100%; height: 100%; }

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

.result-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.result-filename {
  font-size: 12px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── Search Bar ── */
.search-bar {
  margin-bottom: var(--space-lg);
}

.search-form {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.search-input {
  flex: 1;
  max-width: 400px;
  padding: 10px 16px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.12);
}

.search-results-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-lg);
}

.pagination-info {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Form Sections ── */
.form-section-label {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-default);
  margin-top: var(--space-sm);
}

.required { color: var(--color-red); }
.text-muted { color: var(--text-muted); }


/* ═══════════════════════════════════════════════════════
   PHASE 3 — ADMIN COMPONENTS
   ═══════════════════════════════════════════════════════ */

/* ── Token Badges ── */
.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.token-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
}

.token-covered {
  background: var(--color-green-bg);
  color: var(--color-green);
}

.token-uncovered {
  background: var(--color-amber-bg);
  color: var(--color-amber);
}

/* ── File Input ── */
.file-input {
  padding: 10px;
  border: 2px dashed var(--border-input);
  border-radius: var(--radius-md);
  width: 100%;
  cursor: pointer;
  background: var(--bg-hover);
  transition: border-color 0.15s ease;
}

.file-input:hover { border-color: var(--brand-accent); }

/* ── Checkbox Label ── */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding-top: 24px;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-accent);
}

/* ── Filter Select ── */
.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  font-size: 13px;
  background: var(--bg-input);
  outline: none;
  cursor: pointer;
}

/* ── Audit Details ── */
.cell-details {
  max-width: 300px;
}

.detail-tag {
  display: inline-block;
  padding: 2px 6px;
  background: var(--bg-hover);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  margin: 1px 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* ═══════════════════════════════════════════════════════
   LOGO STYLES
   ═══════════════════════════════════════════════════════ */
.login-logo-img {
  max-width: 400px;
  height: auto;
}

.sidebar-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
}


/* ═══════════════════════════════════════════════════════
   SMART REQUIRED FIELDS
   ═══════════════════════════════════════════════════════ */
.required-indicator {
  color: var(--color-red);
  font-weight: 700;
  font-size: 15px;
  margin-left: 2px;
}

.field-needed {
  position: relative;
}

.field-needed label {
  color: var(--text-primary);
  font-weight: 700;
}

.field-needed input,
.field-needed textarea,
.field-needed select {
  border-color: var(--brand-accent);
  background: #f7fcf9;
}

.needed-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}


/* ── Firm Logo & Branding ── */
.firm-name-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.firm-logo-inline {
  height: 64px;
  width: auto;
  max-width: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.firm-logo-inline.firm-logo-sm {
  height: 44px;
  max-width: 44px;
}

/* Sidebar firm branding — below Paragraft logo */
.sidebar-firm-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 4px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 4px;
}

.sidebar-firm-logo {
  height: 24px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

.sidebar-firm-name {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ═══════════════════════════════════════════════════════
   UPLOAD FINAL DOCUMENT
   ═══════════════════════════════════════════════════════ */
.upload-final-section {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border-default);
}

.upload-final-form {
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.upload-final-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.upload-file-field {
  flex: 0 0 auto;
}

.upload-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.upload-icon {
  width: 16px;
  height: 16px;
  color: var(--brand-accent);
}

.upload-notes-field {
  flex: 1;
  min-width: 200px;
}

.upload-notes-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.upload-notes-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.12);
}

.upload-notes-input::placeholder {
  color: var(--text-muted);
}

.result-icon-final {
  color: var(--color-green);
}

.result-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}


/* ═══════════════════════════════════════════════════════
   CLICKABLE TABLE ROWS
   ═══════════════════════════════════════════════════════ */
.data-table tr[style*="cursor:pointer"]:hover td {
  background: var(--brand-light);
}

/* ═══════════════════════════════════════════════════════
   PDF PREVIEW BUTTON (matches existing btn-ghost btn-sm)
   ═══════════════════════════════════════════════════════ */
.result-actions .btn svg {
  flex-shrink: 0;
}
