:root {
  --bg: #e6eaee;
  --paper: #f7f9fb;
  --ink: #141414;
  --muted: #5a6168;
  --navy: #0a0a0a;
  --navy-2: #1a1a1a;
  --teal: #00b0cc;
  --teal-bright: #00bdd8;
  --teal-soft: #d7f4f8;
  --header-teal: #0b9aaf;
  --header-teal-2: #0a8fa6;
  --header-ink: #075968;
  --silver: #d8d8d8;
  --out: #c4120a;
  --out-bg: #ffc4bc;
  --in: #0d8a32;
  --in-bg: #9de3b3;
  --low: #b45309;
  --low-bg: #fff3d6;
  --ok: #157a3d;
  --ok-bg: #e5f6eb;
  --line: #cfd6db;
  --shadow: 0 2px 8px rgba(10,10,10,.08);
  --radius: 14px;
  --tap: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.4;
  min-height: 100dvh;
  padding-bottom: 32px;
}
a { color: var(--teal); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.hidden { display: none !important; }

.top {
  background: linear-gradient(180deg, var(--header-teal) 0%, var(--header-teal-2) 100%);
  color: #fff;
  padding: 10px 16px 0;
  padding-top: max(10px, env(safe-area-inset-top));
  position: sticky; top: 0; z-index: 20;
  box-shadow: none;
  border-bottom: 1px solid rgba(0, 32, 38, .32);
}
.brand {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.brand-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #fff; text-decoration: none; min-height: 48px;
}
.brand-logo { display: none; }
.brand-text {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; line-height: 1.15;
}
.brand-name {
  font-weight: 600; font-size: 20px; letter-spacing: .01em; color: #fff;
}
.brand .sub {
  color: rgba(255,255,255,.7); font-size: 12px; font-weight: 400;
}
.tabs {
  display: flex; gap: 4px;
  margin: 8px -16px 0;
  padding: 5px 10px;
  background: rgba(0,0,0,.12);
}
.tabs a {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 44px; text-align: center;
  color: rgba(255,255,255,.62); text-decoration: none;
  padding: 8px 6px; font-weight: 600; font-size: 15px;
  border-radius: 999px;
}
.tabs a.on {
  color: #fff;
  background: rgba(255,255,255,.2);
}
.tabs em {
  display: inline-block; background: #fff; color: var(--header-ink);
  font-style: normal; font-size: 12px; font-weight: 700;
  padding: 1px 6px; border-radius: 99px; margin-left: 2px;
}
.top-switch {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 56px;
}
.top-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .02em;
  white-space: nowrap;
  pointer-events: none;
}
.top-app {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.15;
  padding: 10px 2px;
  max-width: 36%;
  z-index: 1;
}
.top-app.left { text-align: left; }
.top-app.right { text-align: right; }
.top-app.on { color: #fff; }
.top-app:hover { color: #fff; text-decoration: none; }
.top-station {
  margin: 0 0 4px;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: 14px;
  font-weight: 600;
}
.lang-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 0 0 8px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .04em;
}
.lang-btn.on {
  color: #fff;
  background: rgba(255,255,255,.2);
}
.lang-btn:hover { color: #fff; text-decoration: none; }
.lang-bar {
  color: rgba(255,255,255,.4);
  font-weight: 800;
  padding: 0 4px;
}
@media (min-width: 480px) {
  .top-app { font-size: 20px; }
  .top-brand { font-size: 26px; }
}

main { padding: 16px; max-width: 720px; margin: 0 auto; }
.page-labels main { max-width: 900px; }

.mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode {
  height: 72px; border: 0; border-radius: 12px; font-size: 28px; font-weight: 800;
  letter-spacing: .06em; cursor: pointer;
}
.mode.out { background: #f08b82; color: #6b0c08; }
.mode.in { background: #5dcb86; color: #064d1c; }
.mode.on { color: #fff; box-shadow: none; }
.mode.out.on { background: #c4120a; }
.mode.in.on { background: #0d8a32; }
.mode-row.compact .mode {
  height: 56px; font-size: 22px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mode-row.compact .mode input { width: 22px; height: 22px; }
.mode-hint { text-align: center; margin: 10px 0 18px; color: var(--muted); }

.scan-card, .id-card, .search-card, .confirm, .list-head, .item-page {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.reader {
  width: 100%; min-height: 220px; background: #111; border-radius: 10px; overflow: hidden;
}
.reader video { width: 100% !important; height: 100%; min-height: 220px; object-fit: cover; display: block; background: #111; }
.hint, .muted { color: var(--muted); font-size: 15px; }
.cam-actions { display: flex; gap: 8px; margin-top: 10px; }

label, .qty-label { display: block; font-weight: 700; margin-bottom: 6px; }
.id-row { display: flex; align-items: stretch; gap: 8px; }
.prefix {
  display: flex; align-items: center; font-weight: 800; font-size: 22px;
  padding: 0 8px; color: var(--navy);
}
.id-input, .search, input[type="search"], input[type="number"], input[type="text"],
input[type="password"],
input[type="date"] {
  width: 100%; height: var(--tap); font-size: 22px; padding: 8px 12px;
  border: 2px solid #9aa4ab; border-radius: 10px; background: #fff;
}
.id-input:focus, .search:focus, input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,176,204,.28);
}
.id-input { font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

.keypad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px;
}
.keypad button {
  height: 58px; font-size: 24px; font-weight: 700; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer;
}
.keypad button.go { background: var(--navy); color: #fff; border-color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 0 16px; border-radius: 10px;
  border: 0; font-size: 18px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn.go, .btn.submit { background: var(--navy); color: #fff; width: 100%; }
.btn.submit { font-size: 22px; min-height: 64px; }
body.action-out .btn.submit { background: var(--out); }
body.action-in .btn.submit { background: var(--in); }
.btn.ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.id-row .btn.go { width: auto; min-width: 80px; }

.results { margin-top: 8px; }
.results a, .results a.result-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit; min-height: 88px;
}
.results a strong { display: block; }
.results a small { color: var(--muted); }
.results .result-body { flex: 1; min-width: 0; }

.confirm h2 { margin: 4px 0 6px; font-size: 26px; }
.confirm .eyebrow { font-weight: 800; letter-spacing: .08em; margin: 0; }
body.action-out .confirm .eyebrow { color: var(--out); }
body.action-in .confirm .eyebrow { color: var(--in); }
.confirm .meta, .color-line { font-size: 20px; margin: 0 0 8px; }
.onhand { font-size: 20px; }
.onhand.big { font-size: 28px; }
.onhand.big strong { font-size: 40px; }
.id-line { font-weight: 800; letter-spacing: .04em; color: var(--navy); }

.stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.stepper input { text-align: center; font-weight: 800; max-width: 120px; }
.step {
  width: 64px; height: 64px; font-size: 36px; border-radius: 12px;
  border: 2px solid var(--navy); background: #fff; cursor: pointer; line-height: 1;
}

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  vertical-align: middle;
}
.badge.out, .chip.out.on { background: var(--out-bg); color: var(--out); }
.badge.low, .chip.low.on { background: var(--low-bg); color: var(--low); }
.badge.ok, .chip.ok.on { background: var(--ok-bg); color: var(--ok); }
.badge.no_min { background: #eee; color: #555; }

.err { color: var(--out); font-weight: 700; background: var(--out-bg); padding: 10px; border-radius: 8px; }
.toast {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  background: var(--navy); color: #fff; padding: 14px 16px;
  border-radius: 12px; text-align: center; font-weight: 700; z-index: 30;
}

.stats { text-align: center; color: var(--muted); font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit;
  font-size: 15px; font-weight: 700;
}
.chip.on { background: var(--teal); color: #042026; border-color: var(--teal); }

.list-search { display: flex; gap: 8px; margin: 10px 0; }
.list-search input { flex: 1; }

.item-list { list-style: none; padding: 0; margin: 0; }
.item-list li { margin-bottom: 8px; }
.item-list a {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; text-decoration: none; color: inherit; min-height: 72px;
}
.item-list .qty {
  min-width: 52px; text-align: center; font-size: 20px; padding: 8px 6px;
}
.item-list .body strong { display: block; font-size: 18px; }
.item-list .body em { display: block; font-style: normal; color: var(--muted); }
.item-list .body small { color: #6a7278; }
.item-list .empty { padding: 20px; text-align: center; color: var(--muted); }

.id-huge {
  font-size: 42px; font-weight: 800; letter-spacing: .06em; margin: 0 0 4px; color: var(--navy);
}
.item-page h1 { margin: 0 0 6px; font-size: 26px; }
.facts { display: grid; gap: 8px; }
.facts div { display: grid; grid-template-columns: 80px 1fr; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.notes {
  white-space: pre-wrap; background: #eef2f5; padding: 10px; border-radius: 8px;
  font-size: 14px; overflow-x: auto;
}
.moves { list-style: none; padding: 0; }
.moves li {
  display: grid; grid-template-columns: 70px 50px 70px 1fr; gap: 8px;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px;
}
.act { font-weight: 800; text-transform: uppercase; }
.act.out { color: var(--out); }
.act.in { color: var(--in); }
.act.adjust { color: var(--low); }
.adjust { margin: 16px 0; }
.adjust form { display: grid; gap: 10px; margin-top: 10px; }

.label-sheet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 700px) {
  .label-sheet { grid-template-columns: repeat(3, 1fr); }
}
.label {
  border: 1.5px solid #111;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 160px;
  break-inside: avoid;
  page-break-inside: avoid;
}
.label .qr { flex: 0 0 110px; }
.label .qr img, .label .qr svg { width: 110px; height: 110px; display: block; }
.label .lid {
  font-size: 26px; font-weight: 800; letter-spacing: .04em; margin: 0 0 4px; line-height: 1;
}
.label .lname { font-size: 13px; font-weight: 700; margin: 0 0 2px; line-height: 1.2; }
.label .lcolor, .label .lsku { font-size: 11px; margin: 0; color: #333; word-break: break-word; }

@media print {
  .top, .no-print, .tabs, header { display: none !important; }
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  .label-sheet { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .label { min-height: 2.35in; box-shadow: none; }
  @page { size: letter; margin: 0; }
}


.login-card { text-align: center; padding: 22px 18px 20px; }
.login-brand { margin-bottom: 14px; }
.login-logo {
  display: block; margin: 0 auto 8px; height: 96px; width: auto;
  max-width: 260px; object-fit: contain;
  background: #0a0a0a; border-radius: 10px; padding: 8px 14px;
}
.login-tag {
  margin: 0; color: var(--teal); font-size: 15px; font-style: italic; font-weight: 600;
}
.login-card h1 { margin-top: 8px; }
.login-card .btn.submit {
  width: 100%; margin-top: 12px;
  background: var(--teal); color: #042026;
}
.login-card .btn.submit:focus,
.login-card .btn.submit:hover { background: var(--teal-bright); }

.btn:focus-visible, .mode:focus-visible, .step:focus-visible, .keypad button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.qty-field span { display: block; font-weight: 700; margin-bottom: 6px; text-align: left; }
/* ---- glass piece tracking (side system, /p/) ---- */

.p-inv-link { color: var(--teal); text-decoration: none; font-weight: 700; }
.p-inv-link:hover { text-decoration: underline; }

.p-hub-stations { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.p-hub-stations li { margin: 0; }
.p-hub-note {
  color: var(--muted); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 8px 2px 0;
}
.p-station-btn {
  display: flex; align-items: center; justify-content: flex-start;
  min-height: 68px; border-radius: 16px; font-size: 22px; font-weight: 800;
  text-decoration: none; margin: 0; border: 0; width: 100%; cursor: pointer;
  letter-spacing: .02em; background: var(--navy); color: #fff; padding: 12px 16px;
  gap: 12px;
}
.p-station-btn .p-num {
  color: var(--teal); font-variant-numeric: tabular-nums; min-width: 1.4em; text-align: right;
}
.p-station-btn .p-sname { flex: 1; text-align: left; }
.p-station-btn .p-count {
  font-size: 14px; font-weight: 700; color: #042026;
  background: var(--teal); border-radius: 99px; min-width: 28px;
  text-align: center; padding: 3px 8px;
}
.p-station-btn.line { background: #111c22; }
.p-station-btn.oven { background: #1a2c38; }
.p-station-btn.finish { background: #157a3d; }
.p-station-btn.extra { background: #2a2a2a; }
.p-station-btn.in { background: var(--in); color: #fff; justify-content: center; }
.p-station-btn.out { background: var(--out); color: #fff; justify-content: center; }
.p-hub-links { display: grid; gap: 10px; margin: 18px 0; }
.p-how { margin-top: 18px; }
.p-station-banner { text-align: center; margin: 0 0 14px; }
.p-station-banner .eyebrow {
  font-size: 28px; font-weight: 800; letter-spacing: .04em; margin: 0 0 4px;
  color: var(--teal);
}
.p-station-banner.in .eyebrow { color: var(--teal); }
.p-station-banner.out .eyebrow { color: var(--out); }
.p-id-input { letter-spacing: .06em; text-transform: uppercase; }
.badge.never { background: #eee; color: #555; }
.badge.in { background: var(--in-bg); color: var(--in); }
.ok-banner { background: var(--in-bg); color: var(--in); padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.p-facts { grid-template-columns: 1fr; }
.p-facts div { grid-template-columns: 72px 1fr; }
.p-move-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 20px; }
.p-move-actions .p-station-btn { margin: 0; min-height: 80px; font-size: 26px; }
.p-trail {
  font-size: 16px; font-weight: 700; line-height: 1.5;
  background: var(--paper); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px;
}
.p-trail-arrow { color: var(--teal); padding: 0 6px; font-weight: 800; }
.p-trail-stop { white-space: nowrap; }
.p-moves { list-style: none; padding: 0; }
.p-moves li {
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px;
}
.p-moves .act { font-weight: 800; }
.p-item-list .badge { min-width: 92px; text-align: center; font-size: 12px; }

.page-p-labels main { max-width: none; }
.p-avery-page {
  position: relative;
  width: 8.5in;
  height: 11in;
  background: #fff;
  margin: 0 auto 24px;
  box-shadow: var(--shadow);
}
.p-avery-label {
  position: absolute;
  width: 1in;
  height: 1in;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.04in 0.02in 0;
  background: #fff;
  color: #000;
}
.p-avery-label .p-qr {
  width: 0.72in;
  height: 0.72in;
  flex: 0 0 0.72in;
}
.p-avery-label .p-qr img,
.p-avery-label .p-qr canvas,
.p-avery-label .p-qr table {
  width: 0.72in !important;
  height: 0.72in !important;
}
.p-lid {
  font-size: 7.5pt;
  font-weight: 800;
  margin: 1px 0 0;
  line-height: 1;
  letter-spacing: .02em;
  color: #000;
}
.p-ljob {
  font-size: 5.5pt;
  margin: 0;
  line-height: 1.05;
  color: #111;
  max-width: 0.95in;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.p-avery-empty {
  background: transparent;
}
@media screen {
  .p-avery-empty {
    outline: 1px dashed rgba(90, 97, 104, .35);
  }
}

.p-start-form { margin: 14px 0 8px; max-width: 420px; }
.p-start-row { display: flex; gap: 8px; align-items: stretch; }
.p-start-row input[type="number"] {
  flex: 0 0 120px; width: 120px; text-align: center; font-weight: 800;
}
.p-start-row .btn.go { width: auto; min-width: 88px; }
.p-slot-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-width: 420px;
  margin: 10px 0 16px;
}
.p-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}
.p-slot.used { opacity: .38; background: #eef1f4; }
.p-slot.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  opacity: 1;
}

@media print {
  .page-p-labels .top,
  .page-p-labels .no-print,
  .page-p-labels .tabs,
  .page-p-labels header,
  .page-p-labels .p-start-form,
  .page-p-labels .p-slot-grid { display: none !important; }
  .page-p-labels,
  .page-p-labels body,
  body.page-p-labels { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  .page-p-labels main,
  body.page-p-labels main { max-width: none; padding: 0; margin: 0; }
  .p-avery-page {
    margin: 0;
    box-shadow: none;
    width: 8.5in;
    height: 11in;
    page-break-after: always;
    break-after: page;
  }
  .p-avery-page:last-of-type {
    page-break-after: auto;
    break-after: auto;
  }
  .p-avery-empty {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  @page { size: letter; margin: 0; }
}

/* ---- tap-to-move station picker ---- */
.p-station-pick { margin: 0; }
.p-station-select {
  width: 100%;
  min-height: 56px;
  font-size: 18px;
  font-weight: 800;
  padding: 0 12px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  line-height: 1.2;
}
.p-station-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,176,204,.28);
}
.p-station-pick.big { margin: 8px 0 16px; }
.p-station-pick.big .p-station-select {
  min-height: 64px;
  font-size: 22px;
}

.p-board { list-style: none; padding: 0; margin: 0 0 18px; }
.p-board .empty { padding: 20px; text-align: center; color: var(--muted); }
.p-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.p-row-main {
  display: block;
  text-decoration: none;
  color: inherit;
  min-height: 48px;
}
.p-row-main strong { display: block; font-size: 20px; }
.p-row-main em { display: block; font-style: normal; color: var(--muted); }
.p-row-main small { color: #6a7278; }
.p-folder .p-row-main {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.p-folder .p-row-main strong {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-folder .p-row-main strong:before {
  content: "";
  width: 28px;
  height: 20px;
  border-radius: 3px 3px 2px 2px;
  background: #e3b45a;
  box-shadow: 0 -5px 0 -2px #c8943a;
  flex: 0 0 auto;
}
.p-folder .p-row-main em {
  padding-left: 38px;
  font-size: 16px;
}
.p-folder { position: relative; }
.p-folder-ids {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.p-group-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 8px;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.p-group-h .p-count {
  font-size: 13px;
  font-weight: 800;
  color: #042026;
  background: var(--teal);
  border-radius: 99px;
  min-width: 28px;
  text-align: center;
  padding: 2px 8px;
  letter-spacing: 0;
  text-transform: none;
}
.p-scan-more { margin-top: 20px; }
.p-scan-more summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.p-scan-more summary::-webkit-details-marker { display: none; }
.p-scan-more summary::after {
  content: "▾";
  margin-left: 8px;
  color: var(--teal);
}
@media (min-width: 560px) {
  .p-row {
    grid-template-columns: 1fr minmax(180px, 42%);
    align-items: center;
  }
}


/* ---- select + delete pieces ---- */
body.has-p-delete-bar {
  padding-bottom: calc(210px + env(safe-area-inset-bottom));
}
.p-row {
  grid-template-columns: 52px 1fr;
  align-items: center;
}
.p-row .p-station-pick { grid-column: 2; }
.p-check {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 56px;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}
.p-check input[type="checkbox"] {
  width: 28px;
  height: 28px;
  margin: 0;
  accent-color: var(--teal);
  flex: 0 0 28px;
}
.p-delete-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: grid;
  gap: 8px;
  background: var(--paper);
  border-top: 2px solid var(--line);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(10,10,10,.12);
}
.p-delete-bar .p-bulk-select {
  width: 100%;
  min-height: 48px;
  font-size: 18px;
}
.p-delete-bar .p-bulk-select:disabled {
  opacity: .38;
}
.p-delete-bar .btn.danger {
  width: 100%;
  min-height: 48px;
  font-size: 20px;
}
.p-station-now { margin-top: 24px; }
.p-station-now .p-row,
.p-station-now-row {
  grid-template-columns: 1fr;
}
.btn.danger {
  background: var(--out);
  color: #fff;
}
.btn.danger:disabled {
  opacity: .38;
  cursor: not-allowed;
}
.p-delete-one { margin: 0 0 18px; }
.p-delete-one .btn.danger { width: 100%; }
@media (min-width: 560px) {
  .p-row {
    grid-template-columns: 52px 1fr minmax(180px, 42%);
    align-items: center;
  }
  .p-row .p-station-pick { grid-column: auto; }
}
@media print {
  .p-check, .p-delete-bar, .p-delete-one { display: none !important; }
}

.p-trash-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.p-trash-bar .btn {
  width: 100%;
  min-height: 56px;
  font-size: 18px;
}
.p-trash-row {
  grid-template-columns: 52px 1fr;
  align-items: center;
}
.p-restore-one { grid-column: 2; margin: 0; }
.p-restore-one .btn { width: 100%; min-height: 48px; }
.p-piece .p-delete-one .btn.go { width: 100%; }
@media (min-width: 560px) {
  .p-trash-row {
    grid-template-columns: 52px 1fr minmax(140px, 28%);
  }
  .p-restore-one { grid-column: auto; }
}
@media print {
  .p-restore-one, .p-trash-bar { display: none !important; }
}

.list-search .btn.go { width: auto; min-width: 88px; flex: 0 0 auto; }
.p-search { margin: 10px 0 14px; }
.p-search input[type="search"] { min-height: 56px; font-size: 22px; }
.p-required {
  font-size: 28px;
  font-weight: 800;
  margin: 4px 0 12px;
  color: var(--navy);
  letter-spacing: .01em;
}
.p-when { font-weight: 800; color: var(--navy); }
.p-row[hidden], [data-p-group][hidden], .p-search-empty[hidden] { display: none !important; }
.p-search-empty { margin: 8px 0 12px; }

.p-date-edit { margin: 4px 0 12px; }
.p-date-edit > summary {
  list-style: none;
  cursor: pointer;
}
.p-date-edit > summary::-webkit-details-marker { display: none; }
.p-date-tap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.p-date-tap::after {
  content: "✎";
  font-size: 16px;
  font-weight: 600;
  opacity: .4;
  text-decoration: none;
}
.p-date-locked {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--teal-soft);
  padding: 2px 8px;
  border-radius: 999px;
  text-decoration: none;
}
.p-date-form {
  margin-top: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.p-date-form .qty-field { margin-bottom: 12px; }
.p-date-form input[type="date"] {
  width: 100%;
  min-height: var(--tap);
  font-size: 22px;
}

/* ---- list tab: select all (append-only) ---- */
.p-select-all-wrap { margin: 0 0 12px; }
.p-select-all {
  width: 100%;
  min-height: 48px;
  font-size: 18px;
  font-weight: 800;
}
@media print {
  .p-select-all-wrap { display: none !important; }
}

/* ---- glass scan tab (append-only) ---- */
.tabs-6 a { font-size: 12px; padding: 8px 1px; }
.page-p-cam .p-cam-move {
  width: 100%;
  min-height: 64px;
  font-size: 22px;
  margin: 12px 0 14px;
}
.page-p-cam .confirm label { margin-top: 10px; }
.page-p-cam .confirm .btn.ghost { width: 100%; margin-top: 8px; }

/* ---- reprint QR from any live piece ---- */
.p-delete-bar .p-print-qr {
  width: 100%;
  min-height: 48px;
  font-size: 20px;
}
.p-delete-bar .p-print-qr.is-off,
.p-delete-bar .p-print-qr[aria-disabled="true"] {
  opacity: .38;
  pointer-events: none;
}
.p-hub-links .p-print-qr-one {
  width: 100%;
  min-height: 56px;
  font-size: 22px;
}


/* ---- hardware item photos ---- */
.item-photo {
  margin: 8px 0 12px;
  background: #eef2f5;
  border-radius: 12px;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-photo img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}
.item-photo-ph {
  color: var(--muted);
  font-weight: 700;
  padding: 48px 16px;
  text-align: center;
}
.photo-form { margin: 0 0 16px; }
.photo-pick {
  position: relative;
  width: 100%;
  min-height: 64px;
  cursor: pointer;
}
.photo-pick input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.confirm-photo-wrap { margin: 0 0 10px; }
.confirm-photo {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #eef2f5;
  border-radius: 10px;
  display: block;
}
.list-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f5;
  flex: 0 0 72px;
}
.list-thumb-empty { box-shadow: inset 0 0 0 1px var(--line); }

/* Shop drawing stamp (piece QR on DataCons PDF pages) */
.p-draw-drop {
  margin: 12px 0 16px;
  padding: 18px 12px;
  border: 2px dashed var(--line, #c5ced6);
  border-radius: 12px;
  text-align: center;
  background: #f7fafb;
}
.p-draw-drop.on { border-color: #0b9aaf; background: #e7f6f8; }
.p-draw-drop-title { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.p-draw-drop .p-draw-actions { justify-content: center; }
.p-draw-file { display: block; margin: 10px 0; font-weight: 600; }
.p-draw-file input, .p-draw-file select { display: block; margin-top: 4px; width: 100%; max-width: 28rem; font-weight: 500; }
.p-draw-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.p-draw-card { margin: 16px 0 24px; }
.p-draw-sheet {
  position: relative;
  width: 8.5in;
  height: 11in;
  background: #fff;
  color: #000;
  overflow: hidden;
  box-shadow: 0 0 0 1px #ccc;
}
.p-draw-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0.5in;
  bottom: 0;
  width: auto;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.p-draw-center {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-size: 42pt;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  color: #000;
  background: #fff;
  padding: 0.06in 0.14in;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.p-draw-center.empty { display: none; }
.p-draw-name {
  position: absolute;
  top: 0.28in;
  bottom: 0.28in;
  right: 0.04in;
  width: 0.42in;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}
.p-draw-name span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 28pt;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  color: #000;
  background: transparent;
  padding: 0;
  white-space: nowrap;
  max-height: 100%;
}
.p-draw-name.empty { display: none; }
.p-draw-stamp {
  position: absolute;
  left: 0.03in;
  bottom: 0.03in;
  width: 2.18in;
  background: #fff;
  padding: 0.03in 0.03in 0.02in;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 40;
  box-sizing: border-box;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.p-draw-stamp:active { cursor: grabbing; }
.p-draw-stamp.empty { display: none; }
.p-draw-stamp-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 2;
  cursor: grab;
  user-select: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  color: #0b9aaf;
  padding: 2px;
}
.p-draw-stamp-handle:active { cursor: grabbing; }
.p-draw-stamp-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  z-index: 3;
  cursor: nwse-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.p-draw-stamp-resize::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 10px;
  height: 10px;
  border-right: 3px solid #0b9aaf;
  border-bottom: 3px solid #0b9aaf;
  border-radius: 1px;
  opacity: 0.95;
  pointer-events: none;
}
.p-draw-stamp .p-qr { width: 2.07in; height: 2.07in; position: relative; z-index: 1; }
.p-draw-stamp .p-qr img,
.p-draw-stamp .p-qr canvas,
.p-draw-stamp .p-qr table {
  width: 2.07in !important;
  height: 2.07in !important;
}
.p-draw-id {
  margin: 4px 0 0;
  font-size: 13pt;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  color: #000;
  text-align: center;
}
.p-draw-wo {
  margin: 2px 0 0;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.1;
  color: #000;
  text-align: center;
}
.p-draw-wo.empty { display: none; }
.p-draw-meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.p-draw-meta select { min-width: 16rem; }
@media print {
  @page { size: letter; margin: 0.25in; }
  .page-p-drawings .top,
  .page-p-drawings .no-print,
  .page-p-drawings .tabs,
  .page-p-drawings header { display: none !important; }
  .page-p-drawings,
  body.page-p-drawings { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  body.page-p-drawings main { max-width: none; padding: 0; margin: 0; }
  .p-draw-card { margin: 0; }
  .p-draw-sheet {
    box-shadow: none;
    page-break-after: always;
    break-after: page;
  }
  .p-draw-card:last-child .p-draw-sheet {
    page-break-after: auto;
    break-after: auto;
  }
}

.p-draw-note {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: stretch;
  gap: 4px;
  max-width: 90%;
  width: max-content;
  transform: translate(-8%, -30%);
}
.p-draw-note-handle {
  cursor: grab;
  user-select: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  padding: 4px 2px 0;
  color: #0b9aaf;
  align-self: flex-start;
}
.p-draw-note-handle:active { cursor: grabbing; }
.p-draw-note-text {
  min-width: 1.4in;
  min-height: 1.15em;
  width: max-content;
  font-size: 18pt;
  font-weight: 800;
  color: #000;
  background: rgba(255,255,255,.92);
  padding: 0.05in 0.1in;
  line-height: 1.15;
  outline: 2px dashed #0b9aaf;
  white-space: nowrap;
}
.p-draw-note-resize {
  width: 14px;
  flex: 0 0 14px;
  align-self: stretch;
  cursor: ew-resize;
  position: relative;
  user-select: none;
  touch-action: none;
}
.p-draw-note-resize::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 5px;
  width: 4px;
  border-radius: 2px;
  background: #0b9aaf;
  opacity: 0.9;
}
.p-draw-note-sized .p-draw-note-text {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  white-space: nowrap;
  overflow: hidden;
}
.p-draw-note-wrap .p-draw-note-text {
  white-space: pre-wrap;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  max-height: 9.2em;
  text-overflow: ellipsis;
}
.p-draw-note-multi .p-draw-note-text {
  white-space: pre-wrap;
}
.p-draw-note-tools {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: flex-start;
}
.p-draw-note-sz,
.p-draw-note-rot,
.p-draw-note-x {
  border: 0;
  background: #111;
  color: #fff;
  min-width: 28px;
  height: 22px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
}
.p-draw-note-rot { font-size: 11px; letter-spacing: 0; min-width: 32px; }
.p-draw-note-x { min-width: 22px; padding: 0; }
.p-draw-note.empty .p-draw-note-text { outline-style: dotted; }
@media print {
  .p-draw-note-handle,
  .p-draw-note-tools,
  .p-draw-note-resize,
  .p-draw-note-x { display: none !important; }
  .p-draw-note.empty { display: none !important; }
  .p-draw-note-text {
    outline: none;
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .p-draw-note {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Ink overlay + draw toolbar + movable dim overlays */
.p-draw-ink {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
.p-draw-inking .p-draw-ink {
  pointer-events: auto;
  cursor: crosshair;
}
.p-draw-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.p-draw-tool,
.p-draw-tool-clear {
  border: 1px solid #c5ced6;
  background: #fff;
  color: #111;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.p-draw-tool.on {
  background: #0b9aaf;
  border-color: #0b9aaf;
  color: #fff;
}
.p-draw-tool-clear { background: #f3f5f7; }
.p-draw-tool-undo {
  border: 1px solid #c5ced6;
  background: #fff;
  color: #111;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.p-draw-tool-undo:disabled {
  opacity: 0.45;
  cursor: default;
}
/* Legacy cover class disabled — no rectangular white plaques */
.p-draw-dim-cover { display: none !important; }
.p-draw-dim {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 3px;
  transform-origin: left bottom;
  cursor: grab;
  user-select: none;
  max-width: 40%;
}
.p-draw-dim:active { cursor: grabbing; }
.p-draw-dim-handle {
  cursor: grab;
  user-select: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  color: #0b9aaf;
  padding: 2px 0;
}
.p-draw-dim-text {
  font-weight: 800;
  color: #000;
  background: transparent;
  padding: 0;
  line-height: 1.05;
  white-space: nowrap;
  box-shadow: none;
  /* tight white silhouette around glyphs only */
  -webkit-text-stroke: 0.06em #fff;
  paint-order: stroke fill;
  text-shadow:
    -1px 0 0 #fff,
     1px 0 0 #fff,
     0 -1px 0 #fff,
     0 1px 0 #fff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
@media print {
  .p-draw-dim-handle { display: none !important; }
  .p-draw-dim-text {
    box-shadow: none;
    background: transparent;
    -webkit-text-stroke: 0.06em #fff;
    paint-order: stroke fill;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .p-draw-ink {
    pointer-events: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .p-draw-stamp {
    z-index: 40 !important;
  }
  .p-draw-stamp-handle,
  .p-draw-stamp-resize { display: none !important; }
}

.p-import {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.p-import .btn.submit { width: 100%; }
.p-import-picks { margin: 10px 0 8px; }
.p-import-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.p-import-actions .btn { min-height: 44px; }
.p-import-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.p-import-list li { border-bottom: 1px solid var(--line); }
.p-import-list li:last-child { border-bottom: 0; }
.p-import-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  font-size: 17px;
}
.p-import-list input { width: 22px; height: 22px; flex: 0 0 auto; }
.p-import-text { display: block; margin: 10px 0 8px; }
.p-import-text span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.p-import-text input {
  width: 100%;
  min-height: 44px;
  font-size: 18px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

#move-day-wrap { margin: 10px 0 12px; }
#move-day-wrap label { display: block; font-weight: 800; margin: 0 0 6px; }
#move-day-wrap .p-station-select { width: 100%; min-height: 48px; font-size: 18px; }

.p-due-soon { margin: 0 0 14px; }
.p-due-soon .btn { width: 100%; min-height: 52px; font-size: 20px; font-weight: 800; }
.p-due-soon.hot .btn { background: #c2410c; border-color: #c2410c; color: #fff; }
.chip.due-soon.hot { background: #c2410c; border-color: #c2410c; color: #fff; }
.p-due-station { font-weight: 800; color: var(--navy); }

.p-date-scope {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p-date-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  font-size: 16px;
}
.p-date-choice input { width: 20px; height: 20px; flex: 0 0 auto; }


/* ---- DYMO 30256 work-order / job labels (4.0in x 2.3125in, one-up) ---- */
.page-p-wo-labels main { max-width: none; }
.wo-lookup-form { margin: 14px 0 10px; max-width: 520px; }
.wo-lookup-row { display: flex; gap: 8px; align-items: stretch; }
.wo-num-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 72px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.wo-lookup-row .btn.go { width: auto; min-width: 140px; font-size: 18px; }
.wo-not-found {
  background: var(--out-bg);
  color: var(--out);
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 12px;
}
.wo-dymo-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 16px 0 18px;
  align-items: flex-start;
}
.wo-dymo-page {
  width: 4in;
  height: 2.3125in;
  max-width: 100%;
  background: #fff;
  color: #000;
  overflow: hidden;
  box-sizing: border-box;
  page: wo-dymo;
}
@media screen {
  .wo-dymo-page {
    box-shadow: var(--shadow);
    outline: 1px solid rgba(90, 97, 104, .28);
  }
}
.wo-label-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  padding: 0.16in 0.2in;
  color: #000;
  text-align: left;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wo-label-num {
  font-size: 26pt;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 0.1in;
  letter-spacing: .01em;
  color: #000;
}
.wo-label-desc {
  font-size: 12pt;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: #000;
  overflow-wrap: anywhere;
  word-break: break-word;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
.wo-label-desc-cont {
  flex: 1 1 auto;
}
.wo-job-cont-inner {
  justify-content: flex-start;
}
.wo-job-cont-inner .wo-cbs {
  margin-top: auto;
}
.wo-break-actions {
  margin: 8px 0 12px;
}
.wo-break-label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
.wo-break-row {
  flex-wrap: wrap;
}
.wo-break-meta {
  min-width: 7em;
}
.wo-job-cont .wo-label-desc-cont {
  font-size: 12pt;
  margin: 0;
}
.wo-job-cont .wo-label-desc {
  /* continuation uses full body under WO# */
}
.wo-dymo-page.wo-dymo-skip,
.wo-dymo-page[hidden] {
  display: none !important;
}
.wo-split-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.wo-split-opt input {
  width: 18px;
  height: 18px;
}
.wo-count-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 10px 0 8px;
  max-width: 640px;
}
.wo-count-label { font-weight: 700; }
.wo-count-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.wo-count-btn {
  min-width: 44px;
  padding: 8px 12px;
  font-weight: 700;
}
.wo-count-btn.on {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}
.wo-break-panel {
  margin: 12px 0 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(90, 97, 104, .08);
  max-width: 640px;
}
.wo-break-panel[hidden] { display: none !important; }
.wo-break-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 6px 0 8px;
}
.wo-break-row input[type="range"] {
  flex: 1 1 auto;
  min-width: 0;
}
.wo-break-panel textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 4.5em;
  margin: 0 0 10px;
  font: inherit;
}
.wo-label-addr {
  width: 100%;
  text-align: right;
}
.wo-label-street {
  font-size: 14pt;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.08in;
  color: #000;
  text-align: right;
}
.wo-label-city,
.wo-label-phone {
  font-size: 13pt;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.06in;
  color: #000;
  text-align: right;
}
.wo-cbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.14in 0.28in;
  margin-top: auto;
  align-self: flex-start;
  text-align: left;
}
.wo-cbs-right {
  align-self: flex-end;
  justify-content: flex-end;
  width: 100%;
  text-align: right;
}
.wo-cb {
  display: inline-flex;
  align-items: center;
  gap: 0.12in;
  color: #000;
  font-size: 13pt;
  font-weight: 700;
  line-height: 1;
}
.wo-cb-box {
  display: inline-block;
  width: 12pt;
  height: 12pt;
  border: 1.75pt solid #000;
  background: #fff;
  color: #000;
  box-sizing: border-box;
  flex: 0 0 12pt;
  position: relative;
}
.wo-cb-box::before,
.wo-cb-box::after,
.wo-cb.on .wo-cb-box::before,
.wo-cb.on .wo-cb-box::after { content: none; display: none; }
.wo-cb-mark,
.wo-cb.on .wo-cb-mark { display: none !important; }
.wo-cb-word { color: #000; }
.wo-thanks {
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.wo-thanks-heading {
  font-size: 22pt;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.14in;
  color: #000;
  text-align: center;
}
.wo-thanks-name {
  font-size: 16pt;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.1in;
  color: #000;
  text-align: center;
}
.wo-thanks-street,
.wo-thanks-city {
  font-size: 13pt;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.06in;
  color: #000;
  text-align: center;
}


@media print {
  .page-p-wo-labels .top,
  .page-p-wo-labels .no-print,
  .page-p-wo-labels .tabs,
  .page-p-wo-labels header,
  .page-p-wo-labels .wo-lookup-form,
  .page-p-wo-labels .list-head { display: none !important; }
  .page-p-wo-labels,
  .page-p-wo-labels body,
  body.page-p-wo-labels { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  .page-p-wo-labels main,
  body.page-p-wo-labels main { max-width: none; padding: 0; margin: 0; }
  .wo-dymo-wrap {
    display: block;
    margin: 0;
    gap: 0;
  }
  .wo-dymo-page {
    margin: 0;
    box-shadow: none;
    outline: none;
    width: 4in;
    height: 2.3125in;
    max-width: none;
    page-break-after: always;
    break-after: page;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .wo-dymo-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  .wo-dymo-page.wo-dymo-skip,
  .wo-dymo-page[hidden] {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
  .wo-label-inner,
  .wo-label-num,
  .wo-label-desc,
  .wo-label-addr,
  .wo-label-street,
  .wo-label-city,
  .wo-label-phone,
  .wo-thanks-heading,
  .wo-thanks-name,
  .wo-thanks-street,
  .wo-thanks-city,
  .wo-cb,
  .wo-cb-box,
  .wo-cb-word { color: #000 !important; }
  .wo-cb-box {
    border-color: #000 !important;
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .wo-cb-mark,
  .wo-cb.on .wo-cb-mark { display: none !important; }
  @page { size: 4in 2.3125in; margin: 0; }
  @page wo-dymo { size: 4in 2.3125in; margin: 0; }
}

.wo-print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.wo-print-actions .btn.submit { width: auto; min-width: 200px; }
.wo-print-dialog {
  width: auto;
  min-height: 44px;
  font-size: 15px;
  padding: 8px 14px;
}
.wo-print-status {
  margin: 8px 0 0;
  font-weight: 700;
}
.wo-print-status.ok { color: var(--in); }
.wo-print-status.err { color: var(--out); }


.wo-edit-section {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted, #5a6168);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.wo-edit-section:first-child { margin-top: 0; }
.wo-edit-fields {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin: 12px 0 10px;
}
.wo-edit-fields label {
  font-weight: 700;
  margin-top: 4px;
}
.wo-edit-fields input[type="text"] {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
