:root {
  --bt-ink: #172033;
  --bt-muted: #667085;
  --bt-line: #d8dee8;
  --bt-bg: #f5f7fb;
  --bt-primary: #175cd3;
  --bt-success: #16833a;
  --bt-warning: #a15c07;
  --bt-danger: #b42318;
}

body {
  background: var(--bt-bg);
  color: var(--bt-ink);
}

.navbar-brand {
  letter-spacing: 0;
}

.surface,
.metric {
  background: #fff;
  border: 1px solid var(--bt-line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.metric {
  padding: 16px;
  min-height: 102px;
}

.metric-label {
  color: var(--bt-muted);
  font-size: 0.875rem;
}

.metric-value {
  margin-top: 8px;
  font-size: 1.7rem;
  font-weight: 700;
}

.table > :not(caption) > * > * {
  padding: 0.9rem;
}

.badge {
  border-radius: 999px;
  font-weight: 600;
}

.status-uploaded,
.status-processed {
  color: #1849a9;
  background: #eaf1ff;
}

.status-needs_review {
  color: var(--bt-warning);
  background: #fff4e5;
}

.status-approved {
  color: var(--bt-success);
  background: #e9f8ee;
}

.status-rejected,
.status-duplicate {
  color: var(--bt-danger);
  background: #ffeceb;
}

.login-shell {
  min-height: calc(100vh - 96px);
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid var(--bt-line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(16, 24, 40, 0.08);
}

.upload-panel {
  max-width: 680px;
}

.document-frame {
  height: 640px;
  overflow: hidden;
}

.document-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.ocr-text {
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 0.86rem;
  margin: 0;
}

.form-label {
  font-weight: 600;
}

.btn {
  border-radius: 6px;
}

@media (max-width: 991.98px) {
  .document-frame {
    height: 420px;
  }
}
