:root {
  --bg:#f5f6f8;
  --ink:#182638;
  --muted:#6b7787;
  --line:#e5e9ef;
  --blue:#3659e3;
  --nav:#152335;
  --radius:14px;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
a {
  color:var(--blue);
  text-decoration:none;
}
a:hover {
  text-decoration:underline;
}
button,input,select,textarea {
  font:inherit;
}
button,a.button {
  cursor:pointer;
}
h1,h2,p {
  margin-top:0;
}
h1 {
  font-size:32px;
  line-height:1.2;
  letter-spacing:-1px;
  margin-bottom:10px;
}
h2 {
  font-size:18px;
  letter-spacing:-.3px;
}
small {
  display:block;
  color:var(--muted);
  font-size:12px;
}
.muted,.helper {
  color:var(--muted);
}
.helper {
  font-size:12px;
  margin-top:18px;
}
.sidebar {
  width:225px;
  position:fixed;
  inset:0 auto 0 0;
  background:var(--nav);
  padding:34px 20px;
  color:#e8edf6;
  display:flex;
  flex-direction:column;
}
/* The tile is the "A" of the wordmark: its stroke ends sit on the text baseline. */
.brand {
  --tile:1.42em;
  display:inline-flex;
  align-items:baseline;
  gap:0.07em;
  color:white;
  font-size:28px;
  font-weight:750;
  letter-spacing:-0.02em;
}
.brand:hover {
  text-decoration:none;
}
.brand-mark {
  width:var(--tile);
  height:var(--tile);
  position:relative;
  top:calc(var(--tile) * 5.4 / 32);
  flex:none;
}
.sidebar-label {
  font-size:10px;
  letter-spacing:1.6px;
  color:#94a5bb;
  margin:45px 10px 16px;
}
.nav-link {
  display:flex;
  gap:13px;
  color:#e5eafb;
  padding:11px 14px;
  border-radius:8px;
  margin-bottom:7px;
}
.nav-link:hover {
  background:#26394f;
  text-decoration:none;
}
.nav-link span {
  font-size:18px;
}
.sidebar-bottom {
  margin-top:auto;
  border-top:1px solid #314054;
  padding:22px 0 8px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11px;
}
.sidebar-bottom small {
  color:#9babbe;
}
.avatar {
  display:flex;
  align-items:center;
  justify-content:center;
  background:#314660;
  width:33px;
  height:33px;
  border-radius:50%;
  flex-shrink:0;
}
.logout button {
  border:0;
  background:none;
  color:#9babbe;
  padding:8px 0;
}
.workspace {
  margin-left:225px;
}
.topbar {
  height:76px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 40px;
  font-size:13px;
}
main {
  max-width:1600px;
  margin:auto;
  padding:38px 40px 20px;
}
footer {
  padding:20px 40px;
  color:var(--muted);
  font-size:11px;
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:30px;
}
.page-heading p {
  margin-bottom:0;
}
.eyebrow {
  font-size:10px;
  font-weight:750;
  letter-spacing:1.7px;
  color:var(--blue);
  margin-bottom:12px!important;
}
.card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  margin-bottom:24px;
  overflow:hidden;
  box-shadow:0 2px 4px #18263803;
}
.padded {
  padding:26px;
}
.card-header {
  padding:20px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  border-bottom:1px solid var(--line);
}
.card-header h2 {
  margin:0;
}
.button {
  border:1px solid transparent;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  padding:11px 17px;
  border-radius:8px;
  font-weight:600;
  font-size:13px;
  gap:8px;
  white-space:nowrap;
}
.button:hover {
  text-decoration:none;
  filter:brightness(.97);
}
.primary {
  background:var(--blue);
  color:#fff;
}
.secondary {
  background:#fff;
  color:var(--ink);
  border-color:#d5dce6;
}
.button:disabled {
  opacity:.5;
}
.pill {
  font-size:11px;
  font-weight:650;
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:6px;
  white-space:nowrap;
}
.neutral,.received {
  color:#5c687a;
  background:#eef1f6;
}
.review {
  color:#9d6916;
  background:#fff4d9;
}
.processing {
  color:#3659b7;
  background:#eef1ff;
}
.approved,.exported,.imported {
  color:#267259;
  background:#e7f5ee;
}
.failed,.rejected {
  color:#a13946;
  background:#fff0f0;
}
.table-scroll {
  overflow-x:auto;
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
}
th {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.9px;
  color:var(--muted);
  background:#fafbfd;
}
th,td {
  padding:17px 22px;
  border-bottom:1px solid #eff1f4;
}
tbody tr:last-child td {
  border-bottom:none;
}
.order-link {
  color:var(--ink);
  font-weight:650;
}
.empty {
  text-align:center;
  padding:65px 20px;
}
.empty-icon {
  display:inline-flex;
  background:#eef1ff;
  color:var(--blue);
  font-size:35px;
  border-radius:16px;
  padding:3px 19px;
  margin-bottom:20px;
}
.empty p {
  max-width:400px;
  margin:0 auto 24px;
}
.two-columns {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:24px;
}
.review-columns {
  display:grid;
  grid-template-columns:minmax(240px,.85fr) minmax(400px,1.4fr);
  gap:24px;
  align-items:start;
}
.source-card {
  position:sticky;
  top:20px;
}
.source-text {
  padding:24px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-height:620px;
  overflow-y:auto;
  font-size:13px;
  margin:0;
  background:#fcfcfd;
}
.fields-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 16px;
}
label {
  display:block;
  font-size:12px;
  font-weight:600;
  margin-bottom:7px;
}
input:not([type=checkbox]):not([type=hidden]),textarea,select {
  display:block;
  width:100%;
  padding:10px 12px;
  border:1px solid #d9dfe8;
  border-radius:7px;
  background:#fff;
  color:var(--ink);
}
input:focus,textarea:focus,select:focus {
  outline:2px solid #aab8ff;
  outline-offset:1px;
}
input[type=checkbox] {
  width:16px;
  height:16px;
  accent-color:var(--blue);
  vertical-align:middle;
  margin:0 6px 0 0;
}
.checkbox {
  font-weight:400;
}
.line-form {
  border:1px solid var(--line);
  padding:15px 18px;
  border-radius:9px;
  margin:14px 0;
}
.line-form legend {
  font-size:11px;
  font-weight:700;
  padding:0 6px;
  color:var(--muted);
}
.line-form p {
  margin-bottom:12px;
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.notice {
  padding:16px 20px;
  border:1px solid #d6e0fc;
  background:#edf2ff;
  color:#334e8b;
  border-radius:10px;
  margin-bottom:24px;
}
.notice p:last-child {
  margin-bottom:0;
}
.processing-notice {
  display:flex;
  align-items:center;
  gap:16px;
}
.processing-notice p {
  margin:4px 0 0;
}
.spinner {
  display:inline-block;
  flex-shrink:0;
  width:1em;
  height:1em;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  animation:spinner-turn .85s linear infinite;
}
.spinner[hidden] {
  display:none;
}
.spinner-large {
  width:28px;
  height:28px;
  border-width:3px;
}
@keyframes spinner-turn {
  to {
    transform:rotate(360deg);
  }
}
@media(prefers-reduced-motion:reduce) {
  .spinner {
    animation:none;
  }
}
.warning {
  background:#fff9eb;
  border-color:#efdfb9;
  color:#805c22;
}
.warning a {
  color:inherit;
}
.error {
  background:#fff1f1;
  border-color:#eec9ce;
  color:#a13946;
}
.success {
  background:#eaf6ee;
  border-color:#c8e5d2;
  color:#276a45;
}
.errorlist,.error-text {
  color:#a13946;
}
.progress {
  display:flex;
  list-style:none;
  padding:20px 16px;
  background:white;
  border:1px solid var(--line);
  border-radius:12px;
  gap:8px;
  margin-bottom:24px;
}
.progress li {
  flex:1;
  font-size:11px;
  font-weight:600;
  position:relative;
}
.progress a {
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
}
.step-number {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  width:24px;
  height:24px;
  background:#f0f2f5;
  color:#7f8b9c;
  flex-shrink:0;
}
.complete .step-number {
  background:#e3f2eb;
  color:#29805d;
}
.current .step-number {
  background:var(--blue);
  color:white;
}
.current a {
  color:var(--ink);
}
.back-link {
  display:block;
  margin-bottom:12px;
  font-size:12px;
}
.approval-panel {
  display:flex;
  justify-content:space-between;
  gap:22px;
  align-items:center;
}
.actions {
  display:flex;
  flex-direction:column;
  gap:14px;
}
.actions form p {
  margin:0;
}
details {
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:18px;
}
summary {
  cursor:pointer;
  font-size:12px;
  font-weight:600;
}
.evidence {
  padding:14px 0;
  border-bottom:1px solid var(--line);
  font-size:12px;
}
.evidence p {
  margin:5px 0;
}
blockquote {
  margin:6px 0;
  padding:8px 12px;
  border-left:2px solid #cad4e5;
  color:var(--muted);
  white-space:pre-wrap;
}
.history {
  padding:0;
  list-style:none;
}
.history li {
  display:flex;
  gap:12px;
  padding:12px 0;
}
.history-dot {
  height:9px;
  width:9px;
  border-radius:50%;
  background:#aab8cf;
  margin-top:8px;
  flex-shrink:0;
}
.history p {
  margin:4px 0 0;
  color:var(--muted);
  font-size:12px;
}
.login-card {
  max-width:440px;
  margin:60px auto;
  padding:35px;
}
pre {
  font:12px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  background:#f4f6fa;
  border-radius:7px;
  padding:14px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}
@media(max-width:1100px) {
  .sidebar {
    width:190px;
  }
  .workspace {
    margin-left:190px;
  }
  main {
    padding:24px;
  }
  .topbar {
    padding:0 24px;
  }
  .review-columns {
    grid-template-columns:1fr;
  }
  .source-card {
    position:static;
  }
  .source-text {
    max-height:300px;
  }
  .progress {
    overflow-x:auto;
  }
  .progress li {
    min-width:110px;
  }
}
@media(max-width:700px) {
  .sidebar {
    position:static;
    width:100%;
    padding:14px 20px;
  }
  .brand {
    font-size:25px;
  }
  .sidebar nav {
    display:flex;
    gap:14px;
  }
  .sidebar-label,.sidebar-bottom,.logout {
    display:none;
  }
  .nav-link {
    margin:6px 0 0;
    padding:5px 0;
    font-size:12px;
  }
  .workspace {
    margin:0;
  }
  .topbar {
    height:56px;
    font-size:11px;
  }
  .topbar .pill {
    display:none;
  }
  main {
    padding:22px 16px;
  }
  .page-heading {
    align-items:flex-start;
    flex-direction:column;
  }
  h1 {
    font-size:27px;
  }
  .two-columns,.fields-grid {
    grid-template-columns:1fr;
  }
  .padded {
    padding:20px;
  }
  .approval-panel {
    align-items:flex-start;
    flex-direction:column;
  }
  th,td {
    padding:12px;
  }
  footer {
    padding:20px 16px;
  }
  .progress {
    padding:15px;
  }
  .card-header {
    padding:17px;
  }
  .source-text {
    padding:18px;
  }
}
