:root {
  --ef-primary: 99 102 241;
  --ef-accent: 236 72 153;
  --ef-success: 34 197 94;
  --ef-warn: 249 115 22;
  --ef-danger: 239 68 68;
  --ef-surface: 255 255 255;
  --ef-muted: 100 116 139;
}

.navlink {
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  color: rgb(71 85 105);
  transition: background-color 120ms ease, color 120ms ease;
}
.navlink:hover {
  color: rgb(99 102 241);
  background: rgba(99, 102, 241, 0.08);
}

.card {
  border-radius: 1.25rem;
  border: 1px solid rgb(226 232 240);
  background: white;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
}
.card-premium {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgb(226 232 240);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}
.confidence-high { background: rgba(34, 197, 94, 0.12); color: rgb(22 163 74); border-color: rgb(134 239 172); }
.confidence-mid  { background: rgba(249, 115, 22, 0.12); color: rgb(194 65 12); border-color: rgb(253 186 116); }
.confidence-low  { background: rgba(239, 68, 68, 0.12); color: rgb(185 28 28); border-color: rgb(252 165 165); }

/* Fields where OCR/AI has doubt – review before submit */
.input.ocr-doubt,
select.ocr-doubt,
textarea.ocr-doubt {
  border-color: rgb(245 158 11);
  background: rgba(245, 158, 11, 0.06);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25);
}
.input.ocr-doubt:focus,
select.ocr-doubt:focus,
textarea.ocr-doubt:focus {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4);
}
.ocr-doubt-label::after {
  content: " · Review";
  font-size: 0.7em;
  font-weight: 600;
  color: rgb(180 83 9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgb(226 232 240);
  background: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(51 65 85);
  transition: background-color 120ms ease, color 120ms ease;
}
.btn:hover {
  background: rgb(248 250 252);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgb(99 102 241) 0%, rgb(129 140 248) 100%);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  border: none;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.35);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 0.625rem;
}

.input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgb(226 232 240);
  background: white;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
}
.input:focus {
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.35);
}

.label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(51 65 85);
}

.kpi {
  border-radius: 1rem;
  border: 1px solid rgb(226 232 240);
  background: white;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.kpi-label {
  font-size: 0.875rem;
  color: rgb(71 85 105);
}

.kpi-value {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.link {
  color: rgb(15 23 42);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link:hover {
  color: rgb(51 65 85);
}

.table {
  min-width: 100%;
  font-size: 0.875rem;
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgb(100 116 139);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgb(226 232 240);
  background: rgb(248 250 252);
}

.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgb(226 232 240);
  vertical-align: top;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgb(226 232 240);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(51 65 85);
  background: white;
}

.pill-status {
  background: rgb(248 250 252);
}

.pill-low {
  background: rgb(236 253 245);
  color: rgb(6 95 70);
  border-color: rgb(167 243 208);
}

.pill-medium {
  background: rgb(255 251 235);
  color: rgb(146 64 14);
  border-color: rgb(253 230 138);
}

.pill-high {
  background: rgb(254 242 242);
  color: rgb(153 27 27);
  border-color: rgb(254 202 202);
}

.field-label {
  font-size: 0.75rem;
  color: rgb(100 116 139);
}

.field-value {
  margin-top: 0.25rem;
  font-weight: 600;
}

