.order-main {
  padding-top: 60px;
}
.order-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 42px;
}
.order-intro .eyebrow {
  margin-bottom: 20px;
}
.order-intro h1 {
  font-size: clamp(36px, 4.3vw, 55px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  margin-bottom: 0;
}
.order-intro h1 span {
  color: var(--blue);
}
.order-intro > div + div p {
  font-size: 14px;
  color: var(--muted);
  max-width: 430px;
  margin-bottom: 12px;
}
.order-intro .order-promise {
  font-size: 11px;
  color: #45613f;
  margin-bottom: 0;
}
.order-setup {
  display: flex;
  gap: 24px;
  align-items: end;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}
.order-setup label {
  font-size: 11px;
  font-weight: 600;
  flex: 0 1 230px;
}
.order-setup input,
.order-setup select {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 43px;
  background: #fff;
  border: 1px solid #bac8c9;
  border-radius: 0;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--ink);
}
.order-reset-actions {
  display: flex;
  gap: 25px;
  margin-left: auto;
  padding-bottom: 10px;
}
.small-action {
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.small-action:disabled {
  color: var(--muted);
  text-decoration: none;
}
.order-mode-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  font-size: 11px;
  color: var(--muted);
}
.data-badge {
  padding: 5px 11px;
  background: var(--soft);
  font-size: 10px;
  color: #395344;
  font-weight: 600;
}
.order-input-help {
  font-size: 12px;
  color: var(--muted);
  margin: 17px 0 23px;
  max-width: 820px;
}
.order-sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.source-panel {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 23px 18px 18px;
}
.source-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 20px;
}
.source-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 9px;
  color: var(--muted);
}
.source-heading h2 {
  font-size: 24px;
  margin: 0;
}
.source-count {
  white-space: nowrap;
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 2px;
}
.order-input-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}
.order-input-table th {
  font-weight: 500;
  font-size: 9px;
  text-align: left;
  padding: 0 4px 8px;
  color: var(--muted);
}
.order-input-table th:nth-child(1) {
  width: 11%;
}
.order-input-table th:nth-child(2) {
  width: 22%;
}
.order-input-table th:nth-child(3) {
  width: 16%;
}
.order-input-table th:nth-child(4) {
  width: 18%;
}
.order-input-table th:nth-child(5) {
  width: 27%;
}
.order-input-table th:nth-child(6) {
  width: 6%;
}
.order-input-table td {
  padding: 3px;
  vertical-align: middle;
}
.order-input-table input {
  background: #fbfcfa;
  border: 1px solid #c5d0cb;
  border-radius: 0;
  width: 100%;
  min-height: 40px;
  font-size: 11px;
  color: var(--ink);
  padding: 7px 5px;
}
.order-input-table input[aria-invalid="true"] {
  border-color: #a84228;
  background: #fff6ef;
}
.order-input-table input:focus {
  background: #fff;
}
.order-input-table label {
  display: block;
}
.order-input-table label > span {
  display: none;
}
.remove-line {
  display: block;
  font-size: 19px;
  line-height: 1;
  padding: 8px 2px;
  background: none;
  border: 0;
  color: #63747c;
}
.source-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.source-actions > span {
  font-size: 9px;
  color: var(--muted);
}
.spreadsheet-import {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.spreadsheet-import summary,
.order-context summary {
  cursor: pointer;
  font-weight: 600;
}
.spreadsheet-import p {
  color: var(--muted);
  margin: 13px 0 10px;
}
.spreadsheet-import code {
  display: block;
  font-size: 9px;
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}
.spreadsheet-import textarea,
[data-copy-fallback] textarea {
  display: block;
  resize: vertical;
  width: 100%;
  border: 1px solid #bac8c9;
  padding: 10px;
  font:
    11px/1.7 ui-monospace,
    monospace;
  margin-bottom: 8px;
  background: #fbfcfa;
  border-radius: 0;
}
.compare-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin: 26px 0 45px;
}
.compare-actions .button {
  min-height: 52px;
  font-size: 13px;
}
.compare-actions .text-link {
  font-size: 11px;
}
.compare-actions p {
  margin: 0 0 0 auto;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}
.order-errors,
.order-notice {
  padding: 20px 24px;
  background: #fff1e6;
  border-left: 3px solid #a84228;
  margin-top: 20px;
  font-size: 13px;
}
.order-errors h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.order-errors ul {
  margin: 0;
  padding-left: 18px;
}
.order-results {
  scroll-margin-top: 120px;
  border-top: 2px solid var(--ink);
  padding-top: 26px;
  outline: none;
}
.results-heading-row {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.results-heading-row .eyebrow {
  margin-bottom: 12px;
  font-size: 10px;
}
.results-heading-row h2 {
  font-size: 34px;
  margin: 0;
}
.comparison-status {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  max-width: 310px;
}
.result-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 30px;
  background: #e6eee0;
  gap: 20px;
  margin-bottom: 23px;
}
.result-totals strong {
  font-size: 35px;
  line-height: 1.2;
  display: block;
  letter-spacing: -0.04em;
}
.result-totals span {
  font-size: 11px;
}
.result-totals.is-review {
  background: #f3eadb;
}
.findings-table-wrap {
  overflow: auto;
}
.findings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.findings-table th {
  text-align: left;
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid #abb9b8;
  padding: 8px 12px 12px;
}
.findings-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.findings-table th:first-child {
  width: 22%;
}
.findings-table th:nth-child(2) {
  width: 36%;
}
.findings-table small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.finding-label {
  color: #86502c;
  font-weight: 600;
}
.finding-match {
  color: #42613d;
}
.results-scope,
.pending-comparison {
  color: var(--muted);
  font-size: 11px;
  margin: 20px 0;
  max-width: 850px;
}
.pending-comparison {
  padding: 24px;
  background: var(--soft);
  max-width: none;
  font-size: 13px;
}
.report-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.report-actions .button {
  font-size: 12px;
  padding: 12px 18px;
}
.report-actions > span {
  color: var(--muted);
  font-size: 11px;
}
[data-copy-fallback] label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
.order-context {
  border-top: 1px solid var(--line);
  margin-top: 75px;
  padding: 55px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.order-context .eyebrow {
  font-size: 10px;
  margin-bottom: 20px;
}
.order-context h2 {
  font-size: 34px;
  margin-bottom: 20px;
}
.order-context p {
  font-size: 13px;
  color: var(--muted);
}
.order-context .text-link {
  font-size: 12px;
}
.order-context details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  font-size: 13px;
}
.order-context details:first-child {
  padding-top: 0;
}
.order-context details p {
  margin: 14px 0;
  font-size: 12px;
}
.order-footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-block: 25px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .order-sources {
    grid-template-columns: 1fr;
  }
  .order-input-table input {
    font-size: 13px;
  }
  .order-input-table th {
    font-size: 11px;
  }
  .order-intro {
    gap: 40px;
  }
  .order-context {
    gap: 50px;
  }
}
@media screen and (max-width: 700px) {
  .order-check-page .header-inner {
    min-height: 83px;
  }
  .back-to-site {
    font-size: 10px;
    max-width: 95px;
    text-align: right;
  }
  .order-main {
    padding-top: 36px;
  }
  .order-intro {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 30px;
  }
  .order-intro h1 {
    font-size: 42px;
  }
  .order-intro .eyebrow {
    font-size: 9px;
  }
  .order-setup {
    flex-wrap: wrap;
    gap: 16px;
  }
  .order-setup label {
    flex: 1 1 140px;
  }
  .order-reset-actions {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .order-mode-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .source-panel {
    padding: 20px 16px;
  }
  .source-heading h2 {
    font-size: 25px;
  }
  .order-input-table,
  .order-input-table tbody {
    display: block;
  }
  .order-input-table thead {
    display: none;
  }
  .order-input-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }
  .order-input-table td {
    display: block;
    padding: 0;
  }
  .order-input-table label > span {
    display: block;
    font-size: 10px;
    margin-bottom: 5px;
    color: var(--muted);
  }
  .order-input-table input {
    min-height: 43px;
    padding: 9px;
  }
  .order-input-table td:last-child {
    display: flex;
    align-items: end;
    justify-content: end;
  }
  .remove-line {
    font-size: 24px;
    padding: 9px;
  }
  .compare-actions {
    gap: 20px;
    margin-bottom: 35px;
  }
  .compare-actions .button {
    width: 100%;
    justify-content: space-between;
  }
  .compare-actions p {
    width: 100%;
    margin: 0;
  }
  .results-heading-row {
    display: block;
  }
  .results-heading-row h2 {
    font-size: 30px;
  }
  .comparison-status {
    margin-top: 12px;
  }
  .result-totals {
    padding: 20px 16px;
    gap: 10px;
  }
  .result-totals strong {
    font-size: 28px;
  }
  .result-totals span {
    font-size: 9px;
  }
  .findings-table,
  .findings-table tbody {
    display: block;
    font-size: 12px;
  }
  .findings-table thead {
    display: none;
  }
  .findings-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 18px;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }
  .findings-table td {
    border: 0;
    padding: 0;
  }
  .findings-table td:first-child,
  .findings-table td:nth-child(2) {
    grid-column: 1 / -1;
  }
  .findings-table td:first-child {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .findings-table td:first-child::before {
    content: "Line";
    font-size: 10px;
    color: var(--muted);
  }
  .findings-table td:nth-child(3)::before,
  .findings-table td:nth-child(4)::before {
    display: block;
    font-size: 9px;
    color: var(--muted);
    margin-bottom: 3px;
  }
  .findings-table td:nth-child(3)::before {
    content: "Purchase order";
  }
  .findings-table td:nth-child(4)::before {
    content: "Acknowledged";
  }
  .report-actions {
    gap: 20px;
  }
  .order-context {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 45px;
    padding: 40px 0;
  }
  .order-context h2 {
    font-size: 31px;
  }
  .order-footer {
    flex-direction: column;
    gap: 8px;
  }
}
@media print {
  .site-header,
  .order-intro,
  .order-setup,
  .order-mode-bar,
  .order-input-help,
  #order-comparison,
  .report-actions,
  [data-copy-fallback],
  .order-context,
  .order-footer,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
    font-size: 11px;
  }
  .container.order-main {
    width: 100%;
    padding: 0;
  }
  .order-results {
    border: 0;
    padding: 0;
  }
  .order-results::before {
    content: "NEXT LEVEL SOFTWARE SOLUTIONS / SUPPLIER ACKNOWLEDGEMENT CHECK";
    display: block;
    font-size: 9px;
    margin-bottom: 20px;
  }
  .results-heading-row {
    display: block;
  }
  .comparison-status {
    max-width: none;
    margin-top: 10px;
  }
  .findings-table {
    min-width: 0;
  }
  tr {
    break-inside: avoid;
  }
  .result-totals {
    background: none;
    padding-inline: 0;
  }
  @page {
    margin: 16mm;
  }
}
