:root {
  --ink: #141e3c;
  --navy: #0a1628;
  --walnut: #141e3c;
  --stain: #3d4d6a;
  --oak: #c9a15b;
  --tape: #c9a15b;
  --kraft: #efe6d6;
  --slip: #f4efe4;
  --paper: #fbf7ef;
  --lane-a: #141e3c;
  --lane-b: #0068b4;
  --danger: #9f1d12;
  --ok: #1f7a4d;
  --muted: #6d6458;
  --line: rgba(20, 30, 60, 0.12);
  --shadow: 0 18px 50px rgba(7, 16, 30, 0.28);
  --cream: #f3ede0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(201, 161, 91, 0.12), transparent 55%),
    linear-gradient(180deg, #12203a 0%, #0a1628 48%, #07101c 100%);
  font-family: Figtree, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}
body.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--navy);
}
.login-shell {
  width: min(420px, 100%);
}
.login-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--cream);
}
.login-copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(42px, 6.2vw, 68px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}
.login-copy h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--oak);
}
.login-brands,
.brand-marks {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.login-brands {
  justify-content: center;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 161, 91, 0.45);
  width: 100%;
}
.login-brands-rule,
.brand-marks-rule {
  width: 1px;
  height: 28px;
  background: rgba(243, 237, 224, 0.28);
}
.mark-light {
  display: block;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(0.94);
}
.mark-cira { height: 42px; }
.mark-drs { height: 22px; }
.login-form {
  width: 100%;
  margin-top: 28px;
  text-align: left;
}
.login-copy .field {
  margin-bottom: 12px;
  color: var(--oak);
}
.login-copy .field input {
  background: rgba(243, 237, 224, 0.06);
  border: 1px solid rgba(243, 237, 224, 0.22);
  color: var(--cream);
}
.login-copy .field input:focus {
  outline: 1px solid var(--oak);
  border-color: var(--oak);
}
.login-copy .primary {
  width: 100%;
  margin-top: 8px;
  background: var(--oak);
  color: var(--navy);
}
.login-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #f4d4cf;
  color: var(--danger);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.desk {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 22px 48px;
}

.mast {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: end;
  color: var(--kraft);
  margin-bottom: 22px;
}
.brand-marks .mark-cira { height: 34px; }
.brand-marks .mark-drs { height: 18px; }
.stencil {
  font-family: "Archivo Black", sans-serif;
  font-size: 42px;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--tape);
  text-shadow: none;
}
.stencil.small { font-size: 18px; color: var(--stain); text-shadow: none; }
.tag { margin: 10px 0 0; color: var(--oak); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.counts {
  display: flex;
  gap: 18px;
  margin: 0;
}
.counts div {
  min-width: 72px;
  border-top: 3px solid var(--tape);
  padding-top: 6px;
}
.counts dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--oak); }
.counts dd { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 28px; color: var(--paper); }
.mast-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.board {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  min-height: 72vh;
}

.clip, .slip {
  background: var(--slip);
  border-radius: 2px 18px 10px 2px;
  box-shadow: var(--shadow);
}
.clip { display: flex; flex-direction: column; overflow: hidden; }
.clip-head, .slip { padding: 22px; }
.clip-head h1, .slip h1, .settings-card h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.clip-head p, .empty-desk, .hint, .settings-card p { color: var(--muted); margin: 0; }

.filters { display: flex; gap: 6px; padding: 0 18px 12px; flex-wrap: wrap; }
.search {
  margin: 0 18px 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
}
.connect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 8px;
}
.connect div {
  background: var(--paper);
  padding: 10px 12px;
}
.connect dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.connect dd { margin: 4px 0 0; font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.history-page { margin-top: 4px; }
.inventory-page { margin-top: 4px; }
.inventory-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  min-height: 72vh;
}
.inventory-clip, .inventory-detail {
  background: var(--slip);
  border-radius: 2px 18px 10px 2px;
  box-shadow: var(--shadow);
}
.inventory-clip { padding-bottom: 16px; }
.inventory-list {
  list-style: none;
  margin: 0;
  padding: 0 10px 12px;
  max-height: 58vh;
  overflow: auto;
}
.inventory-list li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.inventory-list li.active { background: var(--paper); }
.inventory-list img, .inv-ph {
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--line);
}
.inv-ph { display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.inventory-list .sku { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--muted); }
.inventory-list .qty {
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
  font-weight: 600;
}
.inventory-list .qty.low { color: var(--danger); }
.inventory-detail { padding: 22px 24px 28px; }
.inv-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: start;
}
.inv-hero img, .inv-hero .inv-ph {
  width: 180px;
  height: 180px;
}
.inv-hero h2 { margin: 0 0 6px; font-size: 28px; line-height: 1.1; }
.inv-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.inv-stats div { background: var(--paper); padding: 10px 12px; }
.inv-stats dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.inv-stats dd { margin: 4px 0 0; font-family: "IBM Plex Mono", monospace; font-size: 22px; }
.inv-chart { width: 100%; height: 240px; display: block; background: var(--paper); }
.inv-chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.inventory-menu { display: flex; gap: 8px; padding: 8px 18px 0; margin: 0; }
@media (max-width: 900px) {
  .inventory-shell, .inv-hero, .inv-stats { grid-template-columns: 1fr; }
}
.history-sub { margin: 28px 0 6px; font-size: 15px; }
.history-card { max-width: 1120px; }
.history-card menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 0;
  padding: 0;
}
.history-search { margin: 0 0 12px; width: 100%; max-width: 420px; }
.history-table-wrap { overflow: auto; margin: 4px 0 0; }
.history-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.history-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.history-table td, .history-table th { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.history-table .path { font-family: "IBM Plex Mono", monospace; font-size: 12px; word-break: break-all; color: var(--muted); }
.history-table .file { font-family: "IBM Plex Mono", monospace; font-size: 12px; }
.history-table .when { font-family: "IBM Plex Mono", monospace; font-size: 12px; white-space: nowrap; }
.order-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-family: "IBM Plex Mono", monospace;
  color: var(--stain);
  cursor: pointer;
  text-decoration: underline;
}
.status-pill {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  background: var(--kraft);
}
.status-pill.uploaded { background: #d5ead9; color: var(--ok); }
.status-pill.local_only { background: var(--kraft); }
.status-pill.failed { background: #f4d4cf; color: var(--danger); }
.status-pill.order_too_late, .status-pill.address_too_late,
.status-pill.order_review_required, .status-pill.order_check_failed { background: #f4d4cf; color: var(--danger); }
.history-error { display: block; margin-top: 4px; color: var(--danger); font-size: 12px; }
.label-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12px; }
.lane .label-list li,
.label-list li {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  grid-template-columns: none;
  padding: 12px 0 6px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.label-head {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.label-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.label-copy b {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.label-provider {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  line-height: 1.3;
}
.label-tracking {
  display: block;
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
  color: var(--stain);
}
a.label-tracking { text-decoration: underline; }
.label-links {
  grid-column: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.carrier-mark {
  width: 72px;
  height: 40px;
  padding: 4px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.carrier-logo {
  display: block;
  max-width: 100%;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.order-shipping {
  margin: 0 0 16px 18px;
  padding: 10px 12px;
  background: #d5ead9;
  color: var(--ok);
}
.order-shipping span {
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.order-shipping strong { display: block; color: var(--ink); font-size: 18px; margin-top: 2px; }
.order-shipping em { font-style: normal; color: var(--ink); font-size: 13px; margin-left: 8px; }
.order-shipping small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.order-shipping.missing { background: #f4d4cf; color: var(--danger); }
.lane-shipping {
  margin: 10px 0 0;
  padding: 8px 10px;
  background: #d5ead9;
  color: var(--ink);
  font-size: 13px;
}
.lane-shipping b { color: var(--ok); }
#label-rates { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 46vh; overflow: auto; }
dialog#label-dialog { max-width: 840px; }
.label-method {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #d5ead9;
  color: var(--ok);
  font-size: 14px;
}
.label-method strong { display: block; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.label-method span { color: var(--ink); font-size: 13px; margin-left: 6px; }
.label-method em { display: block; font-style: normal; color: var(--muted); font-size: 12px; margin-top: 4px; }
.label-method.missing { background: #f4d4cf; color: var(--danger); }
.rate-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.rate-card.match { border-color: var(--ok); box-shadow: inset 3px 0 0 var(--ok); }
.rate-logo {
  width: 80px;
  height: 44px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
}
.rate-logo .carrier-logo { max-height: 32px; }
.rate-title { margin: 0; font-size: 15px; font-weight: 700; }
.rate-meta { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.rate-match {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 7px;
  background: #d5ead9;
  color: var(--ok);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rate-buy-col { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rate-price { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 18px; }
.rate-price span { font-size: 11px; color: var(--muted); }
.rate-price.muted { font-size: 12px; font-family: inherit; color: var(--muted); }
.rate-was { margin-left: 6px; color: var(--muted); text-decoration: line-through; font-size: 12px; }
.ticket.sent, .ticket.prepared { border-left-color: var(--ok); }
.chip, .ghost, .primary, .lane-action {
  font-family: Figtree, sans-serif;
  border: 0;
  cursor: pointer;
}
.chip {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--stain);
}
.chip.active { background: var(--walnut); color: var(--tape); border-color: var(--walnut); }
.tickets { list-style: none; margin: 0; padding: 0 8px 16px; overflow: auto; }
.ticket {
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: 0;
  border-left: 5px solid var(--oak);
  margin: 0 0 8px;
  padding: 12px 12px 12px 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.ticket.mixed { border-left-color: var(--tape); }
.ticket.blocked { border-left-color: var(--danger); }
.ticket.active { outline: 2px solid var(--walnut); }
.ticket b { display: block; font-family: "IBM Plex Mono", monospace; font-size: 16px; }
.ticket small { color: var(--muted); }
.flags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.flag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  background: var(--kraft);
}

.slip { min-height: 640px; position: relative; }
.slip::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 14px;
  background: repeating-linear-gradient(
    180deg,
    #d24a3a 0 10px,
    transparent 10px 22px
  );
  opacity: 0.35;
}
.empty-desk { padding: 80px 24px; text-align: center; font-size: 18px; }

.slip-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-left: 18px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 16px;
  margin-bottom: 18px;
}
.meta { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); }
.meta strong { color: var(--ink); font-weight: 500; }

.lanes {
  display: grid;
  grid-template-columns: 1fr 10px 1fr;
  gap: 0;
  min-height: 360px;
  padding-left: 12px;
}
.lanes.one {
  grid-template-columns: 1fr;
  min-height: 0;
}
.tape {
  background:
    repeating-linear-gradient(
      180deg,
      var(--tape) 0 18px,
      #141e3c 18px 22px
    );
  box-shadow: 0 0 0 1px #a8874a inset;
}
.lane {
  background: var(--paper);
  padding: 16px;
  min-width: 0;
}
.lane.a { box-shadow: inset 0 0 0 2px var(--lane-a); }
.lane.b { box-shadow: inset 0 0 0 2px var(--lane-b); }
.lane.empty { opacity: 0.55; }
.lane h2 {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lane.a h2 { color: var(--lane-a); }
.lane.b h2 { color: var(--lane-b); }
.lane ol { list-style: none; margin: 12px 0; padding: 0; }
.lane li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.qty {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
}
.sku { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); }
.lane-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.primary, .lane-action {
  background: var(--walnut);
  color: var(--cream);
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 12px;
}
.ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  padding: 9px 12px;
  font-size: 13px;
}
a.ghost {
  display: inline-block;
  text-decoration: none;
  line-height: inherit;
}
.mast-actions .ghost { color: var(--kraft); border-color: rgba(232, 220, 200, 0.35); }
.pill {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  padding: 6px 8px;
  background: rgba(240, 196, 0, 0.15);
  color: var(--tape);
}
.blocked-banner {
  margin: 0 0 16px 18px;
  padding: 10px 12px;
  background: #f4d4cf;
  color: var(--danger);
}
.export-all { margin: 18px 0 0 18px; }

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 720px;
  width: calc(100% - 32px);
}
dialog::backdrop { background: rgba(22, 17, 12, 0.72); }
.settings-card {
  background: var(--slip);
  padding: 24px;
  box-shadow: var(--shadow);
}
.wh-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.7fr 1fr auto;
  gap: 8px;
  margin: 10px 0;
  align-items: center;
}
.wh-row select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
}
.fo-panel { margin: 0 0 16px 18px; }
.fo-panel h2 {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.fo-panel ol { list-style: none; margin: 0; padding: 0; }
.fo-panel li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.slip-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0 18px; }
.split-hint { margin: 0 0 12px 18px; }
.wh-row input, .wh-row label {
  font: inherit;
}
.wh-row input[type="text"] {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--walnut);
  color: var(--tape);
  padding: 12px 16px;
  box-shadow: var(--shadow);
}

.settings-page { margin-top: 4px; }
.connect-card { max-width: 860px; }
.connect-card fieldset {
  border: 1px solid var(--line);
  margin: 18px 0 0;
  padding: 14px 14px 16px;
}
.connect-card legend {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stain);
  padding: 0 6px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field.wide { grid-column: 1 / -1; }
.field.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--ink);
}
.field input[type="text"],
.field input[type="password"],
.field input[type="url"],
.field input[type="number"],
.field select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.secret-hint {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ok);
}
.secret-hint.missing { color: var(--muted); }
.connect-card menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 0;
  padding: 0;
}

@media (max-width: 980px) {
  .mast, .board, .lanes, .wh-row, .field-grid, .rate-card { grid-template-columns: 1fr; }
  .tape { height: 10px; background: repeating-linear-gradient(90deg, var(--tape) 0 18px, #141e3c 18px 22px); }
  .slip { min-height: auto; }
}
.packing-slip {
  position: absolute;
  left: -12000px;
  top: 0;
  width: 831px;
}
@media print {
  body.print-slip * { box-shadow: none !important; }
  body.print-slip .desk > *:not(.packing-slip) { display: none !important; }
  body.print-slip .packing-slip {
    display: block !important;
    position: static;
    left: auto;
    width: auto;
  }
  body.print-slip {
    background: #fff;
    color: #000;
  }
}

.ps-wrapper {
  width: 831px;
  margin: auto;
  padding: 4em;
  font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #000;
  background: #fff;
}
.ps-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}
.ps-header p { margin: 0; }
.ps-shop-title { flex: 6; font-size: 1.9em; }
.ps-upper { text-transform: uppercase; }
.ps-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 1.2em;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.ps-logos img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}
.ps-footer .ps-logo-cira {
  display: block;
  height: 48px;
  width: auto;
  max-width: 180px;
  margin: 0.4em auto 0;
  object-fit: contain;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.ps-thumb img {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.ps-order-title { flex: 4; }
.ps-addresses {
  width: 100%;
  display: inline-block;
  margin: 2em 0;
}
.ps-address-detail { margin: 0.7em 0 0; line-height: 1.5; }
.ps-subtitle { font-weight: 700; margin: 0; font-size: 0.85em; text-transform: uppercase; }
.ps-right { text-align: right; }
.ps-ship { float: left; min-width: 18em; max-width: 50%; }
.ps-bill { padding-left: 20em; min-width: 18em; }
.ps-order { padding: 0 0.7em; }
.ps-order-head { display: inline-block; width: 100%; margin-top: 1.4em; }
.ps-order-head-left { float: left; }
.ps-order-head-right { float: right; }
.ps-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 1.4em 0;
  page-break-inside: avoid;
}
.ps-line-img { margin-right: 1.4em; min-width: 58px; }
.ps-thumb {
  position: relative;
  width: 58px;
  height: 58px;
  background: #fafbfc;
  border: 1px solid rgba(195, 207, 216, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ps-thumb img { max-width: 100%; max-height: 100%; display: block; }
.ps-line-desc { flex: 7; }
.ps-line-desc p { margin: 0; line-height: 1.5; }
.ps-line-desc span { display: block; }
.ps-line-qty { flex: 3; }
.ps-missing { margin: 1.4em 0; padding: 0 0.7em; }
.ps-notes { margin-top: 2em; }
.ps-notes p { margin-bottom: 0; }
.ps-notes .ps-notes-details { margin-top: 0.7em; }
.ps-footer {
  margin-top: 2em;
  text-align: center;
  line-height: 1.5;
}
.ps-footer p { margin: 0 0 1.4em; }
.ps-wrapper hr {
  height: 0.14em;
  border: none;
  background-color: #000;
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
