:root {
  color-scheme: light;
  font-family: "Segoe UI", Roboto, system-ui, sans-serif;
  color: #172235;
  background: #eef1f5;
  --muted: #556475;
  --navy: #111b2e;
  --blue: #22385d;
  --red: #ae1a25;
  --line: #dce2e9;
  --white: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.cloud-page { padding-top: 22px; }
.cloud-navigation { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.cloud-login-form, .cloud-staff-card { display: grid; gap: 12px; }
.cloud-login-form { max-width: 25rem; }
.cloud-login-form input, .cloud-staff-card input[type="email"] { padding: .6rem; border: 1px solid #b7c6d9; border-radius: 5px; }
.cloud-staff-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,19rem),1fr)); gap: 15px; }
.cloud-staff-card { padding: 18px; align-content: start; }
.cloud-staff-card h2 { margin: 0; overflow-wrap: anywhere; }
.cloud-staff-card fieldset { display: grid; gap: 6px; border: 1px solid #cfd7e2; border-radius: 5px; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid #4778b5; outline-offset: 3px; }
.frame { margin-inline: auto; width: min(1232px, calc(100% - 72px)); }
.topbar { background: #0b111d; border-bottom: 1px solid #263246; color: #e9edf4; }
.masthead { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 17px; }
.brand-filters { position: absolute; }
/* Key out the dark matte behind the supplied white-and-red wordmark. */
.brand-logo { display: block; max-width: 100%; height: auto; filter: url("#wordmark-on-navy"); }
.brand strong { border-left: 1px solid #46536a; padding-left: 16px; font-size: 13px; letter-spacing: .06em; }
.environment { color: #e4eaf2; display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 600;
  border: 1px solid #43506a; border-radius: 5px; padding: 8px 10px; white-space: nowrap; }
.environment span { width: 7px; height: 7px; border-radius: 50%; background: #80ace0; }
.hero { border-bottom: 3px solid #a71823; color: #fff; background:
  linear-gradient(135deg, transparent 68%, #51678513 68%, #51678513 77%, transparent 77%, transparent 83%, #91a7c21a 83%, #91a7c21a 85%, transparent 85%),
  linear-gradient(112deg, #131b29, #182740 62%, #22385d); }
.heading { min-height: 152px; padding-block: 27px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
h1 { font-family: Bahnschrift, "Segoe UI", sans-serif; font-size: clamp(39px, 5vw, 59px); line-height: 1; margin: 0 0 9px; font-weight: 700; letter-spacing: -.038em; }
.heading p { color: #ccd7e7; margin: 0; font-size: 14px; line-height: 1.45; }
.source-status { display: flex; gap: 10px; flex-wrap: wrap; }
.run { flex: 1 0 auto; border: 1px solid #7387a15e; border-left: 3px solid #789ed0; padding: 13px 15px; border-radius: 7px; background: #0e172890; }
.run-title { font-size: 12px; color: #cfdaea; font-weight: 600; margin-bottom: 5px; }
.run-note { margin-top: 5px; color: #cfdaea; font-size: 11px; }
.run-time { font-weight: 650; font-size: 15px; font-variant-numeric: tabular-nums; color: #fff; }
.workspace { padding-top: 15px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid #cfd7e2; margin-bottom: 18px; }
.tabs a { font-size: 14px; font-weight: 650; text-decoration: none; color: #49596e; padding: 13px 13px 12px; border-bottom: 3px solid transparent; }
.tabs a:hover { background: #e5ebf3; color: var(--navy); }
.tabs a[aria-current] { color: var(--navy); border-color: var(--red); background: #e1e8f2; border-radius: 6px 6px 0 0; }
.module { background: var(--white); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 2px 4px #17243808; }
.search-module { padding: 22px; margin-bottom: 18px; }
h2 { font-size: 19px; margin: 0; letter-spacing: -.024em; line-height: 1.25; font-weight: 700; }
#search-form { margin-top: 14px; display: flex; gap: 10px; }
.search-input { position: relative; flex: 1; }
.search-input span { width: 13px; height: 13px; border: 1.5px solid #51647b; border-radius: 50%; position: absolute; top: 14px; left: 15px; pointer-events: none; }
.search-input span::after { content: ""; position: absolute; width: 6px; border-top: 1.5px solid #51647b; transform: rotate(45deg); top: 11px; left: 9px; }
input, select { width: 100%; padding: 10px 12px; height: 43px; color: var(--navy); border: 1px solid #cdd6e0; border-radius: 6px; background: #f8fafd; }
.search-input input { padding-left: 39px; }
.primary, .secondary { font-size: 14px; font-weight: 650; padding: 9px 16px; border-radius: 6px; border: 1px solid transparent; white-space: nowrap; }
.primary { color: white; background: var(--red); }
.primary:hover { background: #89121b; }
.secondary { color: var(--blue); background: #edf2f8; border-color: #d6e0ee; }
.results { overflow: hidden; margin-bottom: 34px; }
.table-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; }
.table-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.table-heading div p { margin-top: 4px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
thead { background: #eef2f7; }
th { color: #435675; font-size: 12px; letter-spacing: .035em; font-weight: 700; white-space: nowrap; }
td, th { padding: 12px; vertical-align: top; border-top: 1px solid #e8ecf2; }
tbody tr:nth-child(even) { background: #fbfcfe; }
tbody tr:hover { background: #f1f6fc; }
td:first-child, th:first-child { padding-left: 22px; }
td:last-child, th:last-child { padding-right: 22px; }
td:nth-child(5) { white-space: nowrap; color: var(--muted); }
td strong { font-weight: 650; }
td a { color: #284d77; text-decoration-style: solid; text-decoration-color: #a6bbd3; text-underline-offset: 3px; }
td a:hover { text-decoration-color: #1e4674; color: #1e4674; }
.identifier, .numeric { font-variant-numeric: tabular-nums; }
.identifier { white-space: nowrap; }
.numeric { text-align: right; }
.stack { display: flex; gap: 5px; flex-direction: column; align-items: flex-start; }
.purchase-order { display: inline-flex; align-items: center; gap: 3px; }
.solid-order-link { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-block: -2px; border-radius: 5px; }
.solid-order-link:hover, .solid-order-link:focus-visible { background: #e4edf9; }
.solid-order-globe { position: relative; width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; }
.solid-order-globe::before, .solid-order-globe::after { content: ""; position: absolute; }
.solid-order-globe::before { inset: -1px 3px; border: 1px solid currentColor; border-radius: 50%; }
.solid-order-globe::after { inset: calc(50% - .5px) 0 auto; border-top: 1px solid currentColor; }
.pdf { border-radius: 5px; background: #e9f0f9; color: #2a527f; padding: 4px 7px; text-decoration: none; font-size: 12px; font-weight: 650; white-space: nowrap; }
.pdf:hover { background: #dde9f7; }
#pdf-preview { width: min(1120px, calc(100% - 48px)); height: calc(100dvh - 48px); max-width: none;
  max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: var(--navy);
  background: var(--white); box-shadow: 0 16px 50px #111b2e55; overflow: hidden; }
#pdf-preview[open] { display: flex; flex-direction: column; }
#pdf-preview::backdrop { background: #0b111db3; }
.pdf-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 12px 7px 18px; border-bottom: 1px solid var(--line); }
#pdf-preview-close { width: 34px; height: 34px; border: 0; border-radius: 5px; background: transparent;
  color: var(--blue); font-size: 24px; line-height: 1; }
#pdf-preview-close:hover { background: #e4edf9; }
#pdf-preview-frame { flex: 1; min-height: 0; width: 100%; border: 0; }
.unavailable { font-size: 12px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 36px 18px; }
.return-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 18px 0; }
.return-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.return-table .secondary { white-space: nowrap; }
.return-fields textarea, .return-dialog-form textarea {
  width: 100%; min-height: 70px; resize: vertical; padding: 10px 12px; color: var(--navy);
  border: 1px solid #cdd6e0; border-radius: 6px; background: #f8fafd; font: inherit;
}
.return-list-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; }
.return-list-header h2 { margin-bottom: 3px; }
.return-muted { font-size: 12px; color: var(--muted); }
.return-table { min-width: 900px; }
.return-table td { vertical-align: top; }
.return-table .return-row-actions { position: relative; padding-top: 34px; }
.return-delete { position: absolute; top: 6px; right: 12px; display: grid; place-items: center;
  width: 26px; height: 26px; border: 0; border-radius: 4px; padding: 0; background: transparent;
  color: var(--red); font-size: 20px; font-weight: 650; line-height: 1; }
.return-delete:hover { background: #f9e9e9; }
.return-table td:nth-child(5) { white-space: normal; }
.return-items { min-width: 160px; overflow-wrap: anywhere; }
.return-items .stack + .stack { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.return-table .return-wrap { overflow-wrap: anywhere; white-space: pre-wrap; max-width: 36ch; }
.return-table .return-state { display: inline-block; width: fit-content; padding: 3px 8px; border-radius: 12px;
  font-weight: 650; background: #e9eef4; color: #3c4a5c; }
.return-table .return-state.in_transit, .return-table .return-state.pickup { background: #e4eefb; color: #17487c; }
.return-table .return-state.delivered { background: #e4f2e9; color: #1b5736; }
.return-table .return-state.exception { background: #f9e9e5; color: #852e29; }
.return-dialog { width: min(480px, 90vw); border: 1px solid var(--line); border-radius: 9px; padding: 20px; }
.return-dialog::backdrop { background: #17243880; }
#return-delete-description { overflow-wrap: anywhere; }
#return-delete-status { color: var(--red); }
#return-delete-status:empty { display: none; }
#return-issue-options { margin-bottom: 14px; }
.return-item-options { min-width: 0; border: 1px solid var(--line); border-radius: 6px; margin: 0 0 14px; padding: 0 12px; }
.return-item-options legend { padding: 0 4px; font-size: 13px; font-weight: 650; }
#return-issue-item-list { max-height: 40vh; overflow-y: auto; }
.return-item-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; }
.return-item-option + .return-item-option { border-top: 1px solid var(--line); }
.return-item-option > label:first-child { display: flex; align-items: flex-start; gap: 10px; overflow-wrap: anywhere; }
.return-item-option input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); }
.return-item-option input[type="number"] { display: block; width: 74px; height: 34px; padding: 4px 6px; margin-top: 2px; }
#return-issue-item-message { color: var(--red); margin: 0 0 10px; }
#return-issue-item-message:empty { display: none; }
@media (max-width: 620px) {
  .return-list-header { flex-wrap: wrap; }
}
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 13px 22px; border-top: 1px solid var(--line); font-size: 13px; }
.coverage-controls { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 0 0 16px; }
.metrics { display: flex; flex-wrap: wrap; gap: 12px; }
.metric { text-align: left; background: var(--white); color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 13px 16px; min-width: 155px; font-size: 13px; }
.metric strong { display: block; font-size: 30px; line-height: 1.15; font-weight: 650;
  font-variant-numeric: tabular-nums; color: var(--navy); margin-top: 4px; }
button.metric:hover, .metric[aria-pressed="true"] { border-color: #9fb4cf; background: #e7effa; }
.metric-total { background: #e2eaf5; border-color: #c6d5e8; border-left: 3px solid var(--blue); }
.filters label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 13px; }
.pill { background: #f4edda; color: #695227; border-radius: 5px; padding: 4px 7px; white-space: nowrap; font-size: 12px; font-weight: 600; }
.pill.partial { background: #e4edf9; color: #2a507b; }
.pill.flag { background: #fbe7e8; color: #8b1d29; }
.pill.warning { background: #f4edda; color: #695227; }
.pill.hold-kind { background: #e8eef6; color: #35557d; }
.hold-reason { width: 44%; }
.cost-issue { min-width: 195px; }
.cost-issue .stack { gap: 6px; }
#cost-flags-body .numeric { color: inherit; white-space: nowrap; }
.cost-filters { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.cost-action { min-width: 146px; }
.cost-action select { height: 34px; padding: 5px 8px; font-size: 13px; }
.cost-action button { white-space: nowrap; }
.cost-action-feedback { display: flex; align-items: center; flex-wrap: wrap; column-gap: 8px;
  color: var(--muted); font-size: 13px; }
.cost-undo { padding: 4px 9px; font-size: 13px; }
.cost-action-feedback > :empty { display: none; }
.cost-action small { color: var(--muted); white-space: nowrap; }
.margin-filters { display: grid; grid-template-columns: 1fr minmax(215px, 1.3fr) .9fr 1fr; align-items: end; gap: 12px; width: min(100%, 705px); }
#margin-view .table-heading { padding-bottom: 14px; gap: 16px 24px; }
.margin-guide {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr 1fr;
  gap: 12px 20px;
  margin: 0 22px 16px;
  padding: 13px 16px;
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.45;
}
.margin-guide dt { margin-bottom: 3px; color: var(--blue); font-weight: 650; }
.margin-guide dd { margin: 0; color: var(--muted); }
#margin-free-stock { background: #eef2f7; font-weight: 650; }
.margin-estimate { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
#margin-view table { table-layout: fixed; min-width: 660px; }
#margin-view th, #margin-body td { padding-block: 10px; }
#margin-view th { white-space: normal; }
#margin-view th:nth-child(1) { width: 21%; }
#margin-view th:nth-child(2) { width: 17%; }
#margin-view th:nth-child(3), #margin-view th:nth-child(4) { width: 18%; }
#margin-view th:nth-child(5), #margin-view th:nth-child(6) { width: 13%; }
#margin-view :is(th, td):nth-child(2) { text-align: center; }
#margin-body .identifier { white-space: normal; overflow-wrap: anywhere; }
#margin-body .numeric { color: inherit; white-space: nowrap; }
#margin-body .negative { color: var(--red); }
.tabs { flex-wrap: wrap; row-gap: 0; }
.sr-only { clip-path: inset(50%); width: 1px; height: 1px; position: absolute; overflow: hidden; white-space: nowrap; }
@media (max-width: 1020px) {
  #margin-view .table-heading { flex-direction: column; align-items: stretch; }
  .margin-filters { width: 100%; }
}
@media (max-width: 850px) {
  .margin-filters { grid-template-columns: 1fr minmax(215px, 1fr); }
  .margin-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  #pdf-preview { width: calc(100% - 16px); height: calc(100dvh - 16px); }
  .frame { width: calc(100% - 30px); }
  .masthead { min-height: 60px; }
  .brand { gap: 8px; }
  .brand strong { padding-left: 8px; }
  .brand-logo { width: 130px; }
  .heading { align-items: flex-start; flex-direction: column; padding: 26px 0 16px; gap: 18px; }
  .source-status { align-self: stretch; }
  .coverage-controls { align-items: stretch; flex-direction: column; }
  .metric { min-width: 0; flex: 1; }
  .table-heading { align-items: flex-start; flex-wrap: wrap; }
  table { min-width: 625px; }
}
@media (max-width: 580px) {
  .margin-filters { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .brand strong { display: none; }
  .tabs a { padding-inline: 8px; font-size: 13px; }
}
