:root {
  color-scheme: light;
  --bg: #eef1f8;
  --bg-2: #e7ebf5;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e6e9f0;
  --line-strong: #d6dbe6;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-strong: #4f46e5;
  --accent-soft: #eef2ff;
  --ok: #10b981;
  --error: #e11d48;
  --error-bg: #fff1f3;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18), 0 2px 6px -2px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 18px 40px -14px rgba(79, 70, 229, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Decorative blurred blobs in the background */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-decor::before,
.bg-decor::after {
  content: "";
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.bg-decor::before {
  top: -14vw;
  right: -10vw;
  background: radial-gradient(circle at 30% 30%, #c7d2fe, transparent 70%);
}
.bg-decor::after {
  bottom: -18vw;
  left: -12vw;
  background: radial-gradient(circle at 60% 40%, #ddd6fe, transparent 70%);
}

.shell {
  width: min(1360px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 26px 0 40px;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

/* Поле токена доступа: все ручки /api/v1/* закрыты Bearer-токеном, без него интерфейс
   получает 401. Значение хранится только в localStorage браузера. */
.token-box {
  flex: 0 0 auto;
  /* На узком экране шапка переносится, и токен уезжает на свою строку — прижимаем вправо. */
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.token-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.token-box input {
  width: 190px;
  min-height: 38px;
  padding: 0 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--panel-soft);
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
}
.token-box input:focus {
  border-color: #6366f1;
}
.token-box input.invalid {
  border-color: #dc2626;
  background: #fef2f2;
}
/* Вторичная кнопка: глобальный button — градиентный акцент с тенью, в шапке он
   перетягивал бы внимание с переключателя типов документа. */
.token-save {
  min-height: 38px;
  padding: 0 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--panel-soft);
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  box-shadow: none;
  cursor: pointer;
}
.token-save:hover {
  color: var(--text);
  background: #e7ebf5;
  transform: none;
  filter: none;
}
.token-hint {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--muted);
  min-height: 14px;
}
.token-hint--error {
  color: #dc2626;
}
.token-hint--ok {
  color: #16a34a;
}

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

.brand-mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.brand-mark svg {
  width: 24px;
  height: 24px;
}

.eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 {
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--text);
}
h2 {
  font-size: 20px;
}

/* ---------- Layout ---------- */
.workspace {
  display: grid;
  grid-template-columns: minmax(400px, 0.92fr) minmax(500px, 1.08fr);
  align-items: start;
  gap: 18px;
}

.document-column,
.result-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.result-column {
  position: sticky;
  top: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* Панели — grid-элементы колонок: без min-width:0 длинное nowrap-содержимое
     (имя файла) раздувает панель шире трека, и она уезжает под соседнюю колонку. */
  min-width: 0;
}

/* ---------- Upload ---------- */
.upload-panel {
  padding: 16px;
}

.drop-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.drop-zone:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.drop-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.drop-zone input {
  display: none;
}

.upload-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.upload-icon svg {
  width: 20px;
  height: 20px;
}

.upload-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.upload-copy strong {
  font-size: 15px;
  font-weight: 700;
}

small,
.upload-copy small {
  color: var(--muted);
  font-size: 12.5px;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

/* Кнопка не сжимается и не выталкивается длинным именем файла — сокращается имя (ellipsis выше). */
.file-row button {
  flex: 0 0 auto;
}

/* ---------- Buttons ---------- */
button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 20px;
  background: var(--grad);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lift);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}
button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
button:active {
  transform: translateY(0);
}
button:disabled {
  background: #cbd2e0;
  color: #f8fafc;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Preview ---------- */
.preview-panel {
  height: calc(100vh - 268px);
  min-height: 380px;
  overflow: auto;
  padding: 10px;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    repeating-conic-gradient(#eef1f6 0% 25%, #f6f8fb 0% 50%) 0 0 / 22px 22px;
}
.preview {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted-2);
  font-size: 14px;
}
.preview img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.35);
}

.pdf-preview {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  /* Без ограничения длинное имя PDF растягивало заглушку шире панели (ellipsis ниже
     ссылается на ширину родителя — родитель должен быть ограничен). */
  max-width: 100%;
  min-width: 0;
}
.pdf-preview span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 122px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-lift);
}
.pdf-preview strong {
  font-size: 14px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Empty / Loading ---------- */
.empty-result {
  min-height: calc(100vh - 120px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
}
.empty-illustration {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #e0e7ff;
}
.empty-illustration svg {
  width: 30px;
  height: 30px;
}
.empty-result p {
  margin: 0;
  max-width: 360px;
  color: var(--muted);
  line-height: 1.5;
}

.loading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
}
.loading-copy {
  display: grid;
  gap: 5px;
  line-height: 1.45;
  min-width: 0;
}
.loading-copy strong {
  color: var(--text);
  font-size: 15px;
}
.loading-file {
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loading-status {
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Result ---------- */
.result {
  padding: 22px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.confidence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.result-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- Tabs (segmented) ---------- */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.doc-tabs {
  margin-bottom: 0;
  flex: 0 0 auto;
  gap: 6px;
  padding: 5px;
  background: var(--panel-soft);
  border: 1.5px solid var(--line-strong);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}
.doc-tabs .tab {
  min-width: 76px;
  min-height: 38px;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.doc-tabs .tab:hover {
  background: #e7ebf5;
  color: var(--text);
}
/* Активная вкладка переключателя — яркая заливка градиентом, белый текст: явный контраст. */
.doc-tabs .tab.active {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.doc-tabs .tab.active:hover {
  background: var(--grad);
  color: #fff;
  filter: brightness(1.04);
}
.tab {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: none;
}
.tab:hover {
  background: #eef1f7;
  color: var(--text);
  transform: none;
  filter: none;
}
.tab.active {
  background: var(--panel);
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
}

/* ---------- Fields table ---------- */
table {
  width: 100%;
  border-collapse: collapse;
}
tr {
  transition: background 0.12s ease;
}
tbody tr:hover,
table tr:hover {
  background: var(--panel-soft);
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
th {
  width: 42%;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
td {
  color: var(--text);
  font-weight: 600;
  font-feature-settings: "tnum" 1;
}
tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

pre {
  margin: 0;
  max-height: calc(100vh - 280px);
  overflow: auto;
  padding: 16px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- Alerts ---------- */
.error,
.warnings {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
}
.error {
  margin-top: 14px;
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #fecdd3;
}
.warnings {
  margin-bottom: 16px;
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid #fde68a;
  display: grid;
  gap: 6px;
}
.warnings div {
  position: relative;
  padding-left: 18px;
}
.warnings div::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0;
  width: 13px;
  height: 13px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--warning);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
}

/* Диагностика: логи ошибок за запрос (сбои VLM/Exist/доп. проходов). Отдельный красный блок. */
.diagnostics {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #fecdd3;
  display: grid;
  gap: 4px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}

/* Живой лог этапов задачи: роутер, RapidOCR, LLM, VLM, Exist. Виден и во время
   распознавания (под индикатором), и после — там же, но свёрнутым. */
.stage-log {
  padding: 12px 16px;
}
.stage-log > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
}
.stage-log > summary::-webkit-details-marker {
  display: none;
}
.stage-log > summary::before {
  content: "▸ ";
  color: var(--muted-2);
}
.stage-log[open] > summary::before {
  content: "▾ ";
}
.stage-log-lines {
  margin-top: 10px;
  max-height: 260px;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  display: grid;
  gap: 2px;
}
.stage-log-line {
  display: flex;
  gap: 10px;
  color: var(--muted);
}
.stage-log-time {
  flex: 0 0 auto;
  min-width: 48px;
  text-align: right;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
/* Отступы в сообщении значимы: перебор страниц и поворотов логируется с отбивкой. */
.stage-log-text {
  white-space: pre-wrap;
  word-break: break-word;
  min-width: 0;
}
.stage-log-line.level-warning {
  color: var(--warning);
}
.stage-log-line.level-error,
.stage-log-line.level-critical {
  color: var(--error);
}

/* Символ, в котором проходы OCR разошлись (uncertain_positions) — «проверь вручную». */
.uncertain-char {
  color: var(--error);
  background: var(--error-bg);
  border-radius: 3px;
  text-decoration: underline dotted;
  cursor: help;
}

.hidden {
  display: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .shell {
    width: min(100vw - 24px, 720px);
    padding: 18px 0 32px;
  }
  /* Переключатель типа документа не помещается рядом с заголовком — переносим
     на свою строку (иначе перекрывал заголовок: .tabs ниже получает width 100%).
     Селектор .tabs.doc-tabs — чтобы перебить правило .tabs (оно объявлено позже). */
  .topbar {
    flex-wrap: wrap;
  }
  .tabs.doc-tabs {
    order: 2;
    grid-template-columns: repeat(3, 1fr);
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .result-column {
    position: static;
  }
  .preview-panel {
    height: auto;
    min-height: 320px;
    max-height: 70vh;
  }
  .preview {
    min-height: 300px;
  }
  .empty-result {
    min-height: 260px;
  }
  .result {
    max-height: none;
  }
  .file-row {
    flex-direction: column;
    align-items: stretch;
  }
  button {
    width: 100%;
  }
  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 100%;
  }
  .tab {
    width: 100%;
    text-align: center;
  }
  th,
  td {
    display: block;
    width: 100%;
  }
  th {
    border-bottom: 0;
    padding-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px;
  }
  td {
    padding-top: 0;
  }
}

/* --- Режим «Пачка»: список файлов с вердиктами --- */
.batch-file-list {
  list-style: none;
  margin: 0;
  padding: 12px;
  width: 100%;
  font-size: 0.85rem;
  color: var(--muted);
}

.batch-file-list li {
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
  overflow-wrap: anywhere;
}

.batch-file-list li:last-child {
  border-bottom: none;
}

.batch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.batch-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}

.batch-name {
  font-weight: 600;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.batch-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.batch-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.batch-chip-doc {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.batch-chip-done {
  background: #ecfdf5;
  color: var(--ok);
}

.batch-chip-car {
  background: #f0f9ff;
  color: #0369a1;
}

.batch-chip-uncertain {
  background: var(--warning-bg);
  color: var(--warning);
}

.batch-chip-error {
  background: var(--error-bg);
  color: var(--error);
}

.batch-details {
  font-size: 0.8rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.batch-force {
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.batch-force:hover {
  border-color: var(--accent);
}

.batch-force:disabled {
  opacity: 0.5;
  cursor: default;
}

.batch-fields {
  width: 100%;
  font-size: 0.8rem;
}

.batch-fields summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 600;
}

.batch-fields table {
  width: 100%;
  margin-top: 6px;
  border-collapse: collapse;
}

.batch-fields th,
.batch-fields td {
  text-align: left;
  padding: 4px 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  vertical-align: top;
}

.batch-fields th {
  color: var(--muted);
  width: 45%;
}

/* Тумблеры пост-структурирования LLM (пустые/все поля → LLM) */
.llm-structure-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.llm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}
.llm-toggle input {
  accent-color: #6366f1;
  cursor: pointer;
  margin: 0;
}


/* Interactive Field Editing & Verification */
.field-edit-input {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-color, #f8fafc);
    font-size: 0.95rem;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.field-edit-input:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.field-edit-input:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.field-edit-input.edited {
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.1) !important;
    color: #fbbf24 !important;
}

.verification-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-verify-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: transform 0.1s ease, box-shadow 0.2s ease !important;
}

.btn-verify-confirm:hover {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

.btn-verify-reject {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.btn-verify-reject:hover {
    background: rgba(239, 68, 68, 0.3) !important;
}


/* High Contrast Editable Field Inputs */
.field-edit-input {
    width: 100% !important;
    background: rgba(15, 23, 42, 0.05) !important;
    border: 1px solid rgba(15, 23, 42, 0.18) !important;
    border-radius: 6px !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 6px 10px !important;
    transition: all 0.2s ease !important;
}

.field-edit-input:hover {
    background: rgba(15, 23, 42, 0.08) !important;
    border-color: #2563eb !important;
}

.field-edit-input:focus {
    background: #ffffff !important;
    border-color: #2563eb !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
}

.field-edit-input.edited {
    border-color: #d97706 !important;
    background: rgba(245, 158, 11, 0.18) !important;
    color: #78350f !important;
    font-weight: 700 !important;
}
