:root {
  color-scheme: light;
  --ink: #142b27;
  --muted: #5e6f6b;
  --green: #123c33;
  --green-dark: #0b2b24;
  --gold: #efd078;
  --line: #dce5e1;
  --canvas: #f2f6f5;
  --white: #fff;
  --danger: #a12b2b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1rem 2.5rem;
  background: white;
  border-bottom: 1px solid var(--line);
}
.subnav a {
  padding: 0.35rem 0;
  text-decoration: none;
  font-size: 0.95rem;
}
.subnav a[aria-current='page'] {
  border-bottom: 3px solid var(--green);
  font-weight: 700;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}
@media (max-width: 700px) {
  .sidebar {
    flex-wrap: wrap;
  }
  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .subnav {
    padding: 0.75rem 1rem;
  }
}
.source-comparison {
  background: var(--canvas);
  border-left: 3px solid var(--green);
  padding: 0.75rem;
  margin-top: 0.5rem;
  overflow-wrap: anywhere;
}
.check-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.check-label input {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  margin-top: 0.15rem;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2.25rem;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
h2 {
  font-size: 1.75rem;
  letter-spacing: -0.035em;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid #bd8000;
  outline-offset: 3px;
}
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 1.25rem 0 0.4rem;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #a8bab3;
  border-radius: 6px;
  padding: 0.75rem;
  background: white;
  color: var(--ink);
}
textarea {
  min-height: 110px;
  resize: vertical;
}
button,
.button {
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  background: white;
  color: var(--green);
  min-height: 46px;
}
button:hover,
.button:hover {
  background: #e4eee9;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: var(--green-dark);
}
.full {
  width: 100%;
  margin-top: 1.6rem;
  justify-content: space-between;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: #e2ece7;
  color: var(--green);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.brand-mark {
  background: var(--gold);
  color: var(--green-dark);
  padding: 0.45rem 0.6rem;
  border-radius: 5px;
  font-size: 1.25rem;
  letter-spacing: -0.08em;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-brand {
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  background: var(--green);
  color: white;
}
.login-brand h1 {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  max-width: 700px;
}
.login-brand .eyebrow {
  color: var(--gold);
}
.brand-copy {
  font-size: 1.1rem;
  max-width: 380px;
  color: #d6e6df;
}
.environment {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #d6e6df;
  margin: 0;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 3rem 2rem;
  background: #fff;
}
.login-card {
  width: 100%;
  max-width: 400px;
}
.login-card h2 {
  margin-bottom: 0.5rem;
}
.login-card .small {
  margin-top: 2rem;
}
.notice {
  border: 1px solid #c5dbc8;
  background: #eff9f0;
  border-radius: 6px;
  padding: 1rem;
  margin: 1.25rem 0;
}
.notice.error {
  color: #7f2525;
  background: #fff3f1;
  border-color: #edbbb3;
}
.standalone {
  max-width: 800px;
  padding: 4rem 2rem;
  margin: auto;
}
@media (max-width: 800px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 2rem;
    gap: 2rem;
  }
  .login-brand h1 {
    font-size: 2.2rem;
  }
  .brand-copy {
    margin-bottom: 0;
  }
  .login-brand .environment {
    display: none;
  }
  .login-panel {
    padding: 2rem;
  }
}
.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}
.sidebar {
  background: var(--green);
  color: white;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar .brand {
  color: white;
  text-decoration: none;
  margin-bottom: 2rem;
}
.nav-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #d1e0d9;
  margin-bottom: -0.75rem;
  padding: 0 0.75rem;
}
.sidebar nav a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  background: transparent;
  color: white;
  padding: 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}
.sidebar nav a[aria-current='page'],
.sidebar nav a:hover {
  background: #285046;
}
.sidebar nav {
  display: grid;
  gap: 0.5rem;
}
.pagination,
.form-actions {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.form-actions {
  padding: 1.5rem 0;
}
.form-actions p {
  flex-basis: 100%;
  margin-bottom: 0;
}
.intake-line {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 1rem 1rem;
  margin: 1.5rem 0;
}
.intake-line legend {
  font-weight: 700;
  padding: 0 0.5rem;
}
.line-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.extra-lines summary,
.history summary {
  cursor: pointer;
  padding: 0.75rem 0;
  font-weight: 700;
}
.source-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 1rem;
}
.receipt-line {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}
.receipt-line h3 {
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.receipt-line p {
  margin-top: 1rem;
}
.issue-list {
  background: #fff1ca;
  color: #755111;
  padding: 1rem 1rem 1rem 2.5rem;
}
.page-heading h1 {
  overflow-wrap: anywhere;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 5rem;
}
.sidebar-bottom p {
  font-size: 0.8rem;
  color: #d1e0d9;
  margin-top: 0.5rem;
}
.workspace-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 1rem 2.5rem;
  font-size: 0.875rem;
}
.account {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  text-align: right;
}
.account small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}
.quiet {
  background: transparent;
  border-color: transparent;
  font-size: 0.875rem;
  padding: 0.5rem;
}
.content {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.page-heading h1 {
  margin-bottom: 0.75rem;
}
.page-heading p {
  margin-bottom: 0.5rem;
}
.page-heading form {
  flex-shrink: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.stats section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}
.stats span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}
.stats strong {
  display: block;
  font-size: 2.5rem;
  letter-spacing: -0.05em;
  line-height: 1.3;
  margin: 0.25rem 0;
}
.stats small {
  color: var(--muted);
  font-size: 0.8rem;
}
.catalog-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}
.filters {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.filters .search {
  flex: 1;
  min-width: 200px;
}
.filters label {
  margin-top: 0;
  font-size: 0.875rem;
}
.table-meta {
  padding: 0.75rem 1.5rem;
  background: #f7faf8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.table-scroll {
  overflow: auto;
}
.contact-comparison {
  table-layout: fixed;
  min-width: 42rem;
}
.contact-comparison th,
.contact-comparison td {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.contact-comparison th[scope='row'] {
  border-top: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.85rem 1.25rem;
  white-space: nowrap;
}
td {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
tbody tr:hover {
  background: #fafcfb;
}
.code {
  font-family: ui-monospace, monospace;
  font-weight: 600;
  text-decoration: none;
}
.description {
  min-width: 210px;
}
.description small {
  display: block;
  margin-top: 0.25rem;
}
.badge {
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 0.875rem;
  display: inline-block;
  white-space: nowrap;
}
.pending {
  color: #755111;
  background: #fff1ca;
}
.reviewed {
  color: #205733;
  background: #e5f3e8;
}
.neutral {
  color: #46544e;
  background: #e8eeeb;
}
.row-action {
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
}
.empty {
  padding: 4rem 2rem;
  text-align: center;
}
.empty-symbol {
  font-size: 2rem;
  color: var(--green);
}
.empty h2 {
  font-size: 1.4rem;
  margin: 0.5rem 0;
}
.bottom-note {
  margin: 1.25rem 0.25rem 0;
  max-width: 850px;
}
.footer {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 1.25rem 2.5rem;
  border-top: 1px solid var(--line);
}
.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.panel {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.panel h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
dl {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0;
}
dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
}
dd {
  margin-left: 0;
  overflow-wrap: anywhere;
}
.history {
  margin-top: 1.5rem;
}
.history ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.history li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.history li:last-child {
  border: 0;
  padding-bottom: 0;
}
.history li div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.history li p {
  margin: 0.4rem 0 0;
}
.visually-hidden,
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  position: fixed;
  inset: 1rem auto auto 1rem;
  width: auto;
  height: auto;
  clip-path: none;
  background: white;
  padding: 1rem;
  z-index: 10;
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .content {
    padding: 1.5rem;
  }
  .topbar {
    padding: 1rem 1.5rem;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}
@media (max-width: 700px) {
  .line-values {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding: 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  .sidebar .brand {
    margin: 0;
  }
  .sidebar .brand > span:last-child,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav a {
    font-size: 0.875rem;
    padding: 0.6rem;
  }
  .topbar {
    padding: 0.75rem 1rem;
  }
  .topbar > span {
    display: none;
  }
  .account {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }
  .content {
    padding: 1.5rem 1rem;
  }
  .stats {
    gap: 0.5rem;
  }
  .stats section {
    padding: 1rem 0.7rem;
  }
  .stats small {
    display: none;
  }
  .stats strong {
    font-size: 2rem;
  }
  .stats span {
    font-size: 0.875rem;
  }
  .filters {
    padding: 1rem;
  }
  .filters > div {
    width: 100%;
  }
  .table-meta {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 1rem;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    padding: 1rem;
  }
}
.packing-print {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  color: #15251c;
}
.packing-print section {
  margin: 2rem 0;
}
@media print {
  @page {
    size: A4;
    margin: 15mm;
  }
  .no-print {
    display: none !important;
  }
  .packing-print {
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: 10pt;
  }
  .packing-print h1 {
    font-size: 20pt;
  }
  .packing-print h2 {
    font-size: 13pt;
  }
  .packing-print tr,
  .packing-print header {
    break-inside: avoid;
  }
  .packing-print thead {
    display: table-header-group;
  }
}
