/* DL Stock — design system
   Tokens and shared presentation only. Do not encode business rules here. */

:root {
  --blue: #2563EB;
  --blue-d: #1D4ED8;
  --navy: #0F172A;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;
  --green: #16A34A;
  --green-bg: #DCFCE7;
  --red: #DC2626;
  --red-bg: #FEE2E2;
  --amber: #D97706;
  --amber-bg: #FEF3C7;
  --blue-bg: #DBEAFE;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --radius-sm: 12px;
  --radius-lg: 16px;
  --touch: 44px;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --cond: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Aliases used by older rules / floor screens */
  --paper: var(--bg);
  --paper-2: var(--card);
  --nav: var(--navy);
  --nav-2: #1E293B;
  --nav-text: #F8FAFC;
  --copper: var(--blue);
  --copper-d: var(--blue-d);
}

[hidden] { display: none !important; }
html {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a.btn, .dock-item, .chip, .nav a.item, .nav-button {
  touch-action: manipulation;
}
img { max-width: 100%; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--navy); color: white; padding: 0.5rem 0.8rem;
  border-radius: 10px;
}
.skip:focus { top: 0.5rem; z-index: 5; }

.banner {
  background: var(--navy);
  color: #E2E8F0;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  padding: 0.5rem 1rem;
  padding-top: calc(0.5rem + env(safe-area-inset-top));
  text-align: center;
}
.app { min-height: 100vh; min-height: 100dvh; }
.frame {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 2rem);
  min-height: calc(100dvh - 2rem);
}
.nav-toggle, .nav-button { display: none; }

.nav {
  background: var(--navy);
  color: var(--nav-text);
  padding: 1.25rem 0.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.2rem 0.45rem 0.6rem;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.mark {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  background: var(--blue);
  color: white;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  border-radius: 12px;
}
.brand strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  font-weight: 800;
}
.brand span { color: #94A3B8; font-size: 0.78rem; font-weight: 500; }
.nav a.item {
  display: block;
  color: #CBD5E1;
  text-decoration: none;
  padding: 0.62rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  min-height: var(--touch);
}
.nav a.item:hover, .nav a.item.is-active {
  background: rgba(37, 99, 235, 0.18);
  color: #FFFFFF;
  text-decoration: none;
}
.nav a.item.is-active {
  background: var(--blue);
  color: #FFFFFF;
}
.nav-foot {
  margin-top: auto;
  padding: 0.9rem 0.7rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.who { font-weight: 600; }
.role { color: #93C5FD; font-size: 0.82rem; margin-top: 0.1rem; }
.linkish, .logout button, .nav-foot button {
  background: none; border: 0; color: #E2E8F0; padding: 0;
  font-weight: 600; cursor: pointer; text-decoration: underline;
  min-height: var(--touch);
}
.nav-foot form { margin: 0.2rem 0 0; }

.main {
  padding: 1.35rem 1.5rem 3rem;
  max-width: 1180px;
}
.scan {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  margin-bottom: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.scan label {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.scan input {
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 1rem;
  outline: none;
  min-height: 2.4rem;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin: 0.4rem 0 1.1rem;
}
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}
h1 { font-size: 1.85rem; line-height: 1.15; }
h2 { font-size: 1.15rem; margin-bottom: 0.7rem; letter-spacing: -0.02em; }
h3 { font-size: 1rem; }
.lede { color: var(--muted); margin: 0.4rem 0 0; max-width: 42rem; line-height: 1.5; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-bottom: 1rem; }
.stat, .card, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}
.stat { padding: 1rem 1.05rem; }
.stat b {
  display: block;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--muted); font-size: 0.84rem; display: block; margin-top: 0.35rem; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0.9rem; }
.card { padding: 1.05rem 1.15rem 1.15rem; }
.stack { display: grid; gap: 0.9rem; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
td { padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.num, .qty { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
code, .mono { font-family: var(--mono); font-size: 0.92em; }

.pill {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #F1F5F9;
  color: var(--ink);
}
.pill.ok, .pill.APROVADA, .pill.APROVADO, .pill.success, .pill.CONFIRMADA, .pill.FECHADA, .pill.FECHADO, .pill.EXPEDIDO, .pill.PRONTO {
  background: var(--green-bg); color: var(--green);
}
.pill.warn, .pill.SUBMETIDA, .pill.PENDENTE, .pill.REJEITADA, .pill.RESERVADO, .pill.EM_PREPARACAO, .pill.PARCIALMENTE_EXPEDIDO, .pill.EM_DEVOLUCAO {
  background: var(--amber-bg); color: var(--amber);
}
.pill.bad, .pill.denied, .pill.error, .pill.REJEITADO {
  background: var(--red-bg); color: var(--red);
}
.pill.demo { background: var(--blue-bg); color: var(--blue-d); }

.btn, button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: white;
  border: 0;
  padding: 0.7rem 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  min-height: var(--touch);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--blue-d); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.secondary {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.secondary:hover { background: #F1F5F9; }
.btn.ghost {
  background: transparent;
  color: var(--nav-text);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #B91C1C; }
.btn:disabled, .tick-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
form.inline { display: inline; }

.messages { display: grid; gap: 0.45rem; margin-bottom: 0.8rem; }
.message {
  padding: 0.8rem 0.95rem;
  background: var(--blue-bg);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
}
.message.error { background: var(--red-bg); border-color: var(--red); }
.message.success { background: var(--green-bg); border-color: var(--green); }
.message.warning, .message.info { background: var(--amber-bg); border-color: var(--amber); }
.action-notice { margin: 0.75rem 0 1rem; }

.form { display: grid; gap: 0.85rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1rem; }
.field { display: grid; gap: 0.28rem; }
.field.wide, .span-2 { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; }
.control, .check { width: 100%; }
.control {
  background: white;
  border: 1px solid var(--line);
  padding: 0.68rem 0.75rem;
  min-height: var(--touch);
  font-size: 1rem;
  border-radius: 12px;
}
textarea.control { min-height: 6rem; resize: vertical; }
.control:focus {
  outline: 2px solid rgba(37, 99, 235, 0.28);
  border-color: var(--blue);
}
.help, .field-error, .form-error { margin: 0; font-size: 0.84rem; }
.help { color: var(--muted); }
.destination-address {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 400;
  color: var(--muted);
}
.field-error, .form-error { color: var(--red); }
.check { width: auto; }
.checks { display: flex; gap: 0.5rem; align-items: center; min-height: var(--touch); }

.empty {
  padding: 1.2rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  background: #F8FAFC;
  border-radius: var(--radius);
}
.hint { margin-top: 0.45rem; font-size: 0.92rem; }
.meta { color: var(--muted); font-size: 0.9rem; }
.split { display: flex; justify-content: space-between; gap: 0.8rem; align-items: baseline; }
.pager { display: flex; gap: 0.8rem; align-items: center; margin-top: 0.8rem; min-height: var(--touch); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.filters .control { width: auto; min-width: 10rem; }
dl.facts { display: grid; grid-template-columns: 10rem 1fr; gap: 0.35rem 0.8rem; margin: 0; }
dl.facts dt { color: var(--muted); }
.tree { list-style: none; padding-left: 1rem; margin: 0.2rem 0; }
.tree > li { margin: 0.18rem 0; }

.login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.login-story {
  padding: 3rem;
  background: var(--navy);
  color: var(--nav-text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story h1 {
  font-size: 3.4rem;
  letter-spacing: -0.05em;
}
.login-story .mark { margin-bottom: 1rem; }
.login-card {
  display: grid;
  align-content: center;
  padding: 2.2rem;
  background: var(--bg);
}
.login-card .form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}
.login-card .btn { width: 100%; }
.demo-accounts { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.demo-accounts td { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0.4rem 0.4rem 0.4rem 0; }
details.payload { margin-top: 0.2rem; }
details.payload pre {
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  background: #F1F5F9;
  padding: 0.7rem;
  border-radius: 12px;
}
.product-hero { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: start; }
.product-hero img, .ph {
  width: 140px; height: 140px;
  object-fit: cover;
  background: #F1F5F9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.read-choices { display: grid; gap: 0.8rem; }
.read-choice { width: 100%; min-height: 4.2rem; font-size: 1.15rem; }
.read-choice-secondary { min-height: 3rem; font-size: 1rem; }
.read-choices.is-reading .read-choice { pointer-events: none; opacity: 0.55; }
.read-status {
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--amber-bg);
  border-left: 4px solid var(--amber);
  font-weight: 700;
  border-radius: 12px;
}
.label-preview {
  display: block; width: 100%; height: auto; margin: 0.6rem 0;
  background: white; border: 1px solid var(--line); border-radius: 12px;
}

.tick-form { display: grid; gap: 0.7rem; max-width: 40rem; }
.tick-head { display: grid; gap: 0.5rem; }
.tick-head .meta { margin: 0; }
.tick-where { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: center; font-weight: 700; }
.tick-all {
  justify-self: start;
  background: none;
  border: 0;
  padding: 0.45rem 0;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  min-height: var(--touch);
}
.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tick-row {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  align-items: center;
  min-height: 3.6rem;
  border-bottom: 1px solid var(--line);
  touch-action: pan-y;
  transition: background 0.15s, opacity 0.15s;
}
.tick-row:last-child { border-bottom: 0; }
.tick-row.is-off { background: #F8FAFC; }
.tick-row.is-off .tick-name, .tick-row.is-off .tick-qty { opacity: 0.45; text-decoration: line-through; }
.tick-box { display: grid; place-items: center; align-self: stretch; cursor: pointer; min-width: var(--touch); }
.tick-box input { width: 1.35rem; height: 1.35rem; accent-color: var(--green); margin: 0; }
.tick-main {
  display: grid; gap: 0.1rem; text-align: left; align-self: stretch; align-content: center;
  background: none; border: 0; padding: 0.55rem 0.4rem; cursor: pointer; min-width: 0;
}
.tick-name { font-weight: 600; font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere; }
.tick-qty {
  padding: 0 1rem 0 0.4rem;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: var(--touch);
  min-height: var(--touch);
}
.tick-qty.is-doubt { color: var(--amber); }
.tick-note { color: var(--amber); font-size: 0.82rem; font-weight: 700; }
.tick-fields { display: none; }
.has-js .tick-row.is-editing .tick-fields,
.tick-form:not(.has-js) .tick-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 6.5rem;
  gap: 0.5rem;
  align-items: center;
  padding: 0 0.8rem 0.8rem 3.4rem;
}
.tick-fields .tick-note { grid-column: 1 / -1; }
.associate-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.45rem;
  padding: 0 0.8rem 0.8rem 3.4rem;
}
.associate-box .btn { min-height: 48px; width: 100%; }
.has-js .tick-row.is-editing .tick-qty { visibility: hidden; }
.tick-qty-input { text-align: right; font-family: var(--mono); }
.tick-add {
  min-height: 3.2rem;
  border: 1px dashed #CBD5E1;
  background: #FFFFFF;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius);
}
.tick-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem 0 calc(0.6rem + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 22%);
}
.tick-summary { margin: 0; line-height: 1.25; }
.tick-summary strong { font-size: 1.55rem; letter-spacing: -0.03em; }
.tick-confirm { min-height: 3.4rem; padding: 0 1.4rem; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; border: 0; margin: 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  background: white;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--navy); color: white; border-color: var(--navy); }
.chip:has(input:focus-visible) { outline: 2px solid var(--blue); }
.message { transition: opacity 0.4s; }
.message.is-leaving { opacity: 0; }
.dock { display: none; }

/* Floor screens keep the capture metaphor, now on the shared palette. */
body.floor {
  --floor: #0F172A;
  --floor-2: #1E293B;
  --cream: #F8FAFC;
  --mist: #94A3B8;
  --glow: rgba(37, 99, 235, 0.35);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}
body.floor .app { background: var(--bg); }
body.floor .main { padding-top: 0.6rem; color: var(--ink); }
body.floor .scan + .meta,
body.floor .banner { display: none; }
body.receive-flow .scan,
body.receive-flow .scan + .meta,
body.receive-flow .dock-item[href="#leitura"] { display: none; }
body.receive-flow .read-title {
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-transform: none;
}
body.receive-flow .tick-block {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}
body.receive-flow .noise-list {
  max-height: 16rem;
  overflow: auto;
}
body.receive-flow .noise-list .btn {
  min-height: 2.75rem;
}
body.receive-flow .ignore-line,
body.receive-flow .ignore-row {
  grid-column: 1 / -1;
}
body.receive-flow .ignore-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  margin: 0.15rem 0 0;
}
body.receive-flow .ignore-row {
  min-height: 2.75rem;
  margin-bottom: 0.35rem;
}
body.receive-flow .tick-row.is-ignored {
  opacity: 0.72;
}
body.receive-flow {
  --receive-bar-space: 18rem;
}
body.receive-flow .receive-block,
body.receive-flow .tick-row,
body.receive-flow .qty-line,
body.receive-flow .organize-flow .control,
body.receive-flow .tick-qty-input,
body.receive-flow .suggest-card,
body.receive-flow .suggest-card .btn,
body.receive-flow .associate-box,
body.receive-flow .associate-box .btn,
body.receive-flow .associate-box input,
body.receive-flow .review-tools input,
body.receive-flow .quantity-box,
body.receive-flow .quantity-box input {
  scroll-margin-top: 0.75rem;
  scroll-margin-bottom: calc(var(--receive-bar-space, 18rem) + 0.75rem);
}
body.receive-flow .tick-bar,
body.receive-flow .organize-submit {
  background: #ffffff;
  box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.08);
}
body.floor .scan {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  transform: translateY(-110%);
  transition: transform 0.3s ease;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border: 0;
  box-shadow: none;
  color: var(--cream);
  border-radius: 0 0 16px 16px;
}
body.floor .scan.is-open { transform: none; }
body.floor .scan input { color: var(--cream); }
body.floor .nav-button {
  background: var(--navy);
  color: white;
  border: 0;
  border-radius: 12px;
}
body.floor h1 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-size: clamp(1.9rem, 7vw, 2.6rem);
}
body.floor .lede, body.floor .meta { color: var(--muted); }
body.floor .floor-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 800;
}
body.floor .control {
  background: #FFFFFF;
  border-color: var(--line);
  color: var(--ink);
  border-radius: 12px;
}
body.floor .message { border-radius: 12px; }

.finder { display: grid; gap: 1rem; min-height: calc(100dvh - 8.5rem); }
.finder-stage {
  position: relative;
  flex: 1;
  display: grid;
  align-content: end;
  gap: 0.7rem;
  min-height: 28rem;
  padding: 2rem 1.3rem 2.2rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.04), transparent 30%),
    radial-gradient(circle at 50% 38%, rgba(37, 99, 235, 0.18), transparent 42%),
    var(--navy);
  overflow: hidden;
  color: var(--cream);
}
.finder-stage .lede { color: #94A3B8; max-width: 16rem; }
.finder-corner {
  position: absolute; width: 2.2rem; height: 2.2rem;
  border: 2px solid rgba(248, 250, 252, 0.5);
}
.finder-corner.is-tl { top: 1.1rem; left: 1.1rem; border-right: 0; border-bottom: 0; }
.finder-corner.is-tr { top: 1.1rem; right: 1.1rem; border-left: 0; border-bottom: 0; }
.finder-corner.is-bl { bottom: 1.1rem; left: 1.1rem; border-right: 0; border-top: 0; }
.finder-corner.is-br { bottom: 1.1rem; right: 1.1rem; border-left: 0; border-top: 0; }
.finder-stage h1, .finder-stage .lede, .finder-stage .finder-kicker { position: relative; z-index: 1; }
.finder-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93C5FD;
  font-weight: 800;
}
.shutter {
  position: relative; z-index: 1;
  width: 5.6rem; height: 5.6rem; margin: 1.4rem auto 0;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: transparent;
  font-size: 0;
  box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.22), 0 18px 40px rgba(0, 0, 0, 0.28);
  animation: shutter-breathe 2.8s ease-in-out infinite;
  cursor: pointer;
}
.shutter::after {
  content: "";
  width: 2.1rem; height: 2.1rem; border-radius: 999px;
  background: #F8FAFC;
}
.finder-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.ghost-tool {
  display: grid; place-items: center;
  min-height: var(--touch);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
body.floor .read-status {
  background: var(--amber-bg);
  border: 0;
  border-radius: 12px;
  color: #92400E;
  text-align: center;
}
body.floor .read-choices.is-reading .finder-stage::before {
  content: "";
  position: absolute; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, #93C5FD, transparent);
  animation: scan-line 1.4s linear infinite;
  z-index: 2;
}
body.floor .read-choices.is-reading .shutter { animation: none; opacity: 0.45; pointer-events: none; }

body.floor .tick-form { max-width: 28rem; gap: 0.95rem; }
body.floor .tick-head { gap: 0.35rem; }
body.floor .tick-all { color: var(--blue); padding: 0.55rem 0; }
body.floor .tick-list {
  display: grid; gap: 0.7rem;
  background: transparent; border: 0;
}
body.floor .tick-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.15rem 0.55rem;
  min-height: 5.2rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  animation: tile-in 0.35s ease both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
body.floor .tick-row.is-on {
  border-color: #BFDBFE;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12), var(--shadow);
}
body.floor .tick-row.is-off { background: #F8FAFC; box-shadow: none; }
body.floor .tick-row.is-off .tick-name,
body.floor .tick-row.is-off .tick-qty { opacity: 0.38; text-decoration: none; }
body.floor .tick-row.is-pop { transform: scale(0.985); }
body.floor .tick-box { width: 2.2rem; }
body.floor .tick-box input {
  width: 1.35rem; height: 1.35rem;
  accent-color: var(--blue);
}
body.floor .tick-main { padding: 0.2rem 0; color: inherit; }
body.floor .tick-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
body.floor .tick-qty {
  background: none; border: 0; color: inherit; cursor: pointer;
  min-width: 3.4rem; padding: 0;
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
body.floor .tick-qty.is-doubt { color: var(--amber); animation: doubt 1.6s ease-in-out infinite; }
body.floor .tick-note { color: var(--amber); }
body.floor .has-js .tick-row.is-editing .tick-fields,
body.floor .tick-form:not(.has-js) .tick-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 5.8rem;
  padding: 0.2rem 0 0.15rem;
}
body.floor .has-js .tick-row.is-editing .tick-qty { visibility: hidden; }
body.floor .tick-add {
  min-height: 3.4rem;
  border-radius: var(--radius);
  border: 1px dashed #CBD5E1;
  background: var(--card);
  color: var(--ink);
}
body.floor .tick-bar { background: linear-gradient(transparent, var(--bg) 26%); }
body.floor .tick-summary strong {
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}
body.floor .tick-confirm {
  min-height: 3.6rem;
  border-radius: 999px;
  padding: 0 1.6rem;
  background: var(--blue);
  box-shadow: 0 10px 24px var(--glow);
}
body.floor .tick-where { color: var(--ink); }
body.floor .chip {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
  border-radius: 999px;
}
body.floor .chip:has(input:checked) {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

@keyframes tile-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shutter-breathe {
  0%, 100% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.18), 0 18px 40px rgba(0, 0, 0, 0.28); }
  50% { box-shadow: 0 0 0 16px rgba(37, 99, 235, 0.3), 0 18px 40px rgba(0, 0, 0, 0.28); }
}
@keyframes scan-line {
  from { top: 18%; }
  to { top: 78%; }
}
@keyframes doubt {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.shelf-card {
  background: white;
  border: 1px solid var(--line);
  padding: 1rem 1rem 0.6rem;
  margin-bottom: 0.9rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.shelf-kicker {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.shelf-code {
  margin: 0.15rem 0 0.4rem;
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 700;
}
.shelf-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
  font-size: 1.15rem;
}
.shelf-row strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.shelf-card .actions { margin: 0.4rem 0 0.6rem; }

/* Reusable primitives for later phases. Unused markup is fine; keep names stable. */
.result-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.6rem 1.2rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.result-hero .result-mark {
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green);
  font-weight: 800;
}
.result-hero .result-count {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.result-hero .result-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
}
.result-hero .lede { margin-top: 0.35rem; }
.status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.status-chip {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}
.status-chip b { font-size: 1.2rem; letter-spacing: -0.03em; }
.status-chip span { color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.status-chip.is-ok { background: var(--green-bg); border-color: transparent; }
.status-chip.is-ok b { color: var(--green); }
.status-chip.is-fix { background: var(--red-bg); border-color: transparent; }
.status-chip.is-fix b { color: var(--red); }
.status-chip.is-review { background: var(--amber-bg); border-color: transparent; }
.status-chip.is-review b { color: var(--amber); }
.filter-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}
.filter-tab {
  flex: 0 0 auto;
  min-height: var(--touch);
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 700;
  cursor: pointer;
}
.filter-tab.is-active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.item-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.8rem;
  align-items: center;
  padding: 0.95rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-height: 4.4rem;
}
.putaway-meter { height: 0.55rem; background: var(--line); border-radius: 999px; overflow: hidden; margin: 0.35rem 0 0.8rem; }
.putaway-meter span { display: block; height: 100%; background: var(--green); }
.putaway-filters { display: flex; gap: 0.4rem; overflow-x: auto; margin: 0.7rem 0; }
.putaway-rows { display: grid; gap: 0.7rem; }
.putaway-card { display: block; }
.putaway-choice { display: grid; gap: 0.55rem; margin-top: 0.75rem; }
.putaway-choice h3 { margin: 0; font-size: 1rem; }
.putaway-choice .btn { width: 100%; }
.organize-flow .btn { width: 100%; }
.organize-flow .actions { display: grid; }
.organize-flow .quiet-link {
  display: inline-block;
  margin: 0.35rem 0 0.8rem;
  font-weight: 700;
}
.organize-flow .qty-list { display: grid; gap: 0.45rem; margin: 0.4rem 0 0.8rem; }
.organize-flow .qty-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 6.2rem;
  gap: 0.65rem;
  align-items: center;
  min-height: 44px;
}
.organize-flow .organize-split { margin: 0.2rem 0 0.4rem; }
.organize-flow .organize-split summary {
  min-height: 3rem;
  display: flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}
.organize-flow .organize-all { order: -1; min-height: 3.5rem; background: var(--navy); color: #fff; border: 0; }
.organize-flow .qty-line span { font-weight: 700; line-height: 1.25; }
.organize-flow .qty-line .control { text-align: right; min-height: 44px; }
.organize-submit {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: grid;
  gap: 0.45rem;
  padding-top: 0.7rem;
  background: linear-gradient(transparent, var(--card) 28%);
}
@media (max-width: 980px) {
  .organize-submit { bottom: 5.2rem; }
}
.putaway-card .putaway-parts { list-style: none; margin: 0.45rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.putaway-card .putaway-parts li { display: flex; justify-content: space-between; gap: 0.6rem; align-items: center; }
.putaway-assigned { color: var(--green); font-weight: 700; margin: 0.2rem 0 0.45rem; }
.item-card.is-ok { box-shadow: inset 3px 0 0 var(--green); }
.item-card.is-fix { box-shadow: inset 3px 0 0 var(--red); background: #FFF7F7; }
.item-card.is-review { box-shadow: inset 3px 0 0 var(--amber); }
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 40;
}
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 41;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg);
}
.qty-stepper {
  display: grid;
  grid-template-columns: var(--touch) 1fr var(--touch);
  gap: 0.4rem;
  align-items: center;
}
.qty-stepper button {
  width: var(--touch);
  height: var(--touch);
  border: 1px solid var(--line);
  background: #F8FAFC;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .stats, .grid-2, .fields, .login-wrap, .product-hero { grid-template-columns: 1fr; }
  .frame { grid-template-columns: 1fr; }
  .nav-button { display: none; }
  .nav { display: none; }
  h1 { font-size: 1.7rem; }
  .login-story { padding: 1.6rem; }
  .login-story h1 { font-size: 2.6rem; }
  .main {
    padding: 1rem 1rem calc(5.6rem + env(safe-area-inset-bottom));
    padding-left: calc(1rem + env(safe-area-inset-left));
    padding-right: calc(1rem + env(safe-area-inset-right));
  }
  .dock {
    position: fixed;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
    z-index: 10;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 0.3rem 0.25rem calc(0.25rem + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-lg);
  }
  .dock-item {
    display: grid;
    justify-items: center;
    gap: 0.05rem;
    padding: 0.55rem 0 0.5rem;
    color: #94A3B8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-radius: 14px;
    min-height: var(--touch);
  }
  .dock-item:hover { text-decoration: none; }
  .dock-item.is-active {
    color: #FFFFFF;
    background: rgba(37, 99, 235, 0.28);
  }
  .dock-sign { font-size: 1.15rem; line-height: 1.1; }
  .tick-bar { bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .tick-form { max-width: none; }
  body.floor .main { padding: 0.4rem 1rem calc(6.4rem + env(safe-area-inset-bottom)); }
  body.receive-flow .tick-bar,
  body.receive-flow .organize-submit {
    position: fixed;
    left: 0.7rem;
    right: 0.7rem;
    bottom: calc(4.7rem + env(safe-area-inset-bottom));
    z-index: 8;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 0.7rem;
  }
  body.receive-flow:has(.tick-bar, .organize-submit) .main {
    padding-bottom: calc(var(--receive-bar-space, 18rem) + 1.5rem + env(safe-area-inset-bottom));
  }
  body.receive-flow .tick-form {
    padding-bottom: calc(var(--receive-bar-space, 18rem) + 1.5rem + env(safe-area-inset-bottom));
  }
  body.floor.receive-flow .tick-form[data-receipt-review].has-js .tick-row.is-sheet .tick-fields {
    bottom: var(--receive-sheet-bottom, 10rem);
    z-index: 70;
  }
  body.floor .finder { min-height: calc(100dvh - 7.2rem); }
  body.floor .finder-stage { min-height: calc(100dvh - 13.5rem); }
}

@media (min-width: 981px) {
  .dock { display: none !important; }
  .nav {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: auto;
  }
  body.floor .tick-form[data-receipt-review] { max-width: 40rem; }
}

.nav-label {
  margin: 0.85rem 0.75rem 0.2rem;
  color: #94A3B8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-close { display: none; }
.more-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.more-backdrop { display: none; }

.sheet-done { display: none; }
.tick-row.is-sheet .sheet-done { display: inline-flex; width: 100%; }
.tick-form:not([data-receipt-review]) .state-pill { display: none !important; }
.qty-stepper button {
  font-size: 1.25rem;
}
.tick-fields .help,
.tick-fields .sheet-done,
.tick-fields .qty-stepper { grid-column: 1 / -1; }
.qty-stepper { max-width: 16rem; }
.has-js .tick-row.is-editing .tick-fields,
.tick-form:not(.has-js) .tick-fields,
body.floor .has-js .tick-row.is-editing .tick-fields,
body.floor .tick-form:not(.has-js) .tick-fields {
  grid-template-columns: 1fr minmax(9.5rem, 12rem);
}

.state-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 1.5rem;
  height: auto;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: normal;
  line-height: 1.25;
}
body.receive-v4 .tick-main .state-pill {
  display: block;
  width: auto;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.tick-row.is-ok .state-pill { background: var(--green-bg); color: var(--green); }
.tick-row.is-fix .state-pill { background: var(--red-bg); color: var(--red); }
.tick-row.is-review .state-pill,
.tick-row.is-pending .state-pill { background: var(--amber-bg); color: #92400E; }
.rv4-analysis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.8rem;
  margin: 0.7rem 0;
}
.rv4-batch {
  display: grid;
  gap: 0.4rem;
  margin: 0.8rem 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.rv4-batch h2,
.rv4-batch p { margin: 0; }
.rv4-batch { scroll-margin-bottom: 14rem; }
body.receive-v4 form.rv4-batch-open[data-batch-ready] .tick-summary,
body.receive-v4 form.rv4-batch-open[data-batch-ready] .rv4-partial,
body.receive-v4 form.rv4-batch-open[data-batch-ready] .tick-block,
body.receive-v4 form.rv4-batch-open[data-batch-ready] [data-fix-next],
body.receive-v4 form.rv4-batch-open[data-batch-ready] .tick-confirm {
  display: none;
}
.rv4-batch .btn { width: 100%; min-height: 3rem; }
.rv4-proposal-fields { display: grid; gap: 0.45rem; margin-top: 0.45rem; }
.rv4-proposal-fields select.control {
  width: 100%;
  min-height: 3rem;
  font-size: 16px;
}
body.receive-v4 .tick-bar { grid-template-columns: 1fr; }
body.receive-v4 .tick-bar .btn,
body.receive-v4 .tick-bar .tick-confirm { width: 100%; min-height: 3.2rem; }
.rv4-analysis p { margin: 0; font-size: 0.95rem; }
.rv4-ficha { display: grid; gap: 0.2rem; margin: 0 0 0.6rem; }
.rv4-ficha p { margin: 0; }
.rv4-actions,
.rv4-remove {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 0.45rem;
  touch-action: manipulation;
}
.rv4-remove { grid-template-columns: 1fr; }
.rv4-actions .btn,
.rv4-remove .btn { min-height: 3rem; width: 100%; }
.rv4-actions [data-save] { display: none; }
.tick-row[data-editing="1"] .rv4-actions [data-edit-open] { display: none; }
.tick-row[data-editing="1"] .rv4-actions [data-save] { display: inline-flex; }
.tick-row.is-removing .rv4-actions { display: none; }
.tick-row.is-removing .rv4-remove { display: grid; }
body.receive-v4 .rv4-ignore,
body.receive-v4 .fix-edit,
body.receive-v4 .ignore-line { display: none !important; }
body.receive-v4 .tick-row.is-sheet:not([data-editing="1"]) .associate-box,
body.receive-v4 .tick-row.is-sheet:not([data-editing="1"]) .rv4-swap,
body.receive-v4 .tick-row.is-sheet:not([data-editing="1"]) .sheet-qty,
body.receive-v4 .tick-row.is-sheet:not([data-editing="1"]) .quantity-box,
body.receive-v4 .tick-row.is-sheet:not([data-editing="1"]) input[name^="name-"],
body.receive-v4 .tick-row.is-sheet:not([data-editing="1"]) input[name^="unit-"],
body.receive-v4 .tick-row.is-sheet:not([data-editing="1"]) label.meta,
body.receive-v4 .tick-row.is-sheet:not([data-editing="1"]) .tick-fields > .tick-note,
body.receive-v4 .tick-row.is-sheet:not([data-editing="1"]) .help { display: none; }
@media (max-width: 980px) {
  body.receive-v4 .tick-row.is-sheet .rv4-actions,
  body.receive-v4 .tick-row.is-sheet .rv4-remove {
    position: static;
    margin-top: 0.75rem;
    scroll-margin-bottom: calc(var(--receive-bar-space, 12rem) + 0.75rem + env(safe-area-inset-bottom));
  }
}
.rv4-ignore,
.rv4-swap { grid-column: 1 / -1; }
.rv4-swap summary {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
  cursor: pointer;
}
.rv4-ignore summary {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
  cursor: pointer;
}
.rv4-ignore .btn { width: 100%; min-height: 2.75rem; margin-top: 0.4rem; }
body.receive-v4 form[data-receipt-review] > .status-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.receive-v4 form[data-receipt-review] .status-chip span { overflow-wrap: anywhere; }
.rv4-partial { display: flex; align-items: flex-start; gap: 0.55rem; min-height: 2.75rem; }
.tick-row.is-fix .tick-note { color: var(--red); }
body.floor .tick-row.is-fix {
  border-color: #FECACA;
  background: #FFF7F7;
}
body.floor .tick-row.is-review {
  border-color: #FDE68A;
  background: #FFFBEB;
}
body.floor .tick-row.is-ok { border-color: #BBF7D0; }
.tick-form[data-receipt-review] .tick-row.is-fix { order: 1; }
.tick-form[data-receipt-review] .tick-row.is-review { order: 2; }
.tick-form[data-receipt-review] .tick-row.is-ok { order: 3; }
.tick-form[data-receipt-review] .tick-row.is-new { order: 4; }
body.floor .tick-row.is-sheet {
  position: relative;
  z-index: 70;
  animation: none;
}

.review-tools { display: grid; gap: 0.55rem; }
.final-panel { display: grid; gap: 0.8rem; }
.final-panel[hidden] { display: none; }
.result-title {
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}
.final-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.final-line {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  min-height: 3.2rem;
  padding: 0.75rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.final-line.is-fix { box-shadow: inset 3px 0 0 var(--red); }
.final-line.is-review { box-shadow: inset 3px 0 0 var(--amber); }
.final-line.is-ok { box-shadow: inset 3px 0 0 var(--green); }
.final-line small {
  color: var(--muted);
  font-size: 0.78rem;
}
.qty-inline {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2.75rem 3.4rem 2.75rem;
  align-items: center;
  justify-items: center;
  gap: 0.15rem;
}
.qty-inline button[data-qty-step] {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 3;
}
.qty-figure {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1;
}
.qty-figure.is-doubt { color: var(--amber); }
.tick-form[data-receipt-review].has-js .tick-row:not(.is-sheet) .tick-fields {
  display: none !important;
}
.tick-form[data-receipt-review] .fix-edit { display: none; }
.tick-form[data-receipt-review] .tick-row.is-fix .qty-inline { display: none; }
.tick-form[data-receipt-review] .tick-row.is-fix .fix-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 5.6rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  z-index: 3;
}
.sheet-qty {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  gap: 0.5rem;
  align-items: center;
}
.sheet-qty .tick-qty-input {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  min-height: 3.2rem;
}
.tick-form[data-receipt-review] .is-sheet .sheet-done { width: 100%; }
.tick-form[data-receipt-review].has-js .tick-row.is-editing .tick-qty,
body.floor .tick-form[data-receipt-review].has-js .tick-row.is-editing .tick-qty {
  visibility: visible;
}
.tick-loc {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.25rem;
  padding: 0.2rem 0.15rem 0.45rem;
}
.tick-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0.15rem;
  line-height: 1.35;
}
.tick-check input {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  margin-top: 0.05rem;
  accent-color: var(--ink);
}
.tick-loc > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.final-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.final-line small { grid-column: 1 / -1; }

body.floor .tick-form[data-receipt-review].has-js .tick-row:not(.is-sheet) .tick-fields {
  display: none;
}
body.floor .tick-form[data-receipt-review].has-js .tick-row.is-sheet .tick-fields {
  display: grid;
  grid-template-columns: 1fr;
  position: static;
  padding: 0.2rem 0 0.15rem;
}
.tick-form.is-final > .result-hero,
.tick-form.is-final > .status-row,
.tick-form.is-final > .review-tools,
.tick-form.is-final > .tick-head,
.tick-form.is-final > .tick-list,
.tick-form.is-final > .tick-add,
.tick-form.is-final > [data-filter-empty] { display: none; }
.tick-form.is-final .final-panel { display: grid; }
.tick-form.is-final .tick-confirm {
  min-height: 3.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 980px) {
  .scan { grid-template-columns: 1fr; }
  .scan .btn { width: 100%; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head .actions, .page-head .btn { width: 100%; }
  .filters .control, .filters .btn { width: 100%; min-width: 0; }
  .form.card .btn { width: 100%; }
  .order-prepare button[type="submit"].btn {
    position: sticky;
    bottom: 5.4rem;
    z-index: 4;
    width: 100%;
  }
  .more-toggle:checked ~ .more-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(15, 23, 42, 0.45);
  }
  .more-toggle:checked ~ .frame .nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    max-height: min(78dvh, 36rem);
    overflow: auto;
    border-radius: 20px 20px 0 0;
    padding-bottom: calc(5.4rem + env(safe-area-inset-bottom));
  }
  .more-toggle:checked ~ .dock .dock-more {
    color: #fff;
    background: rgba(37, 99, 235, 0.28);
  }
  .nav a.nav-primary { display: none; }
  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    min-height: var(--touch);
    margin: 0 0.4rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-weight: 700;
  }
  .dock { z-index: 50; }
  .table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .table-wrap table,
  .table-wrap tbody { display: grid; gap: 0.7rem; }
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .table-wrap tr {
    display: grid;
    gap: 0.15rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow);
  }
  .table-wrap td {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: baseline;
    border: 0;
    padding: 0.28rem 0;
  }
  .table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .table-wrap td:first-child {
    font-weight: 700;
    font-size: 1.02rem;
    padding-bottom: 0.35rem;
  }
  .table-wrap td:first-child::before { content: none; }
  .table-wrap td a { min-height: var(--touch); display: inline-flex; align-items: center; }
  body.floor .tick-form[data-receipt-review].has-js .tick-row.is-sheet .tick-fields {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(5.4rem + env(safe-area-inset-bottom));
    z-index: 60;
    margin: 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: var(--shadow-lg);
  }
  .sheet-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 55;
    border: 0;
    background: rgba(15, 23, 42, 0.45);
  }
  .tick-form.is-final .tick-bar { grid-template-columns: 1fr; }
  .tick-form.is-final .tick-confirm { width: 100%; }
}

.qr-reader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 0.8rem;
  padding-bottom: calc(0.8rem + env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.72);
}
.qr-reader[hidden] { display: none; }
.qr-reader-card {
  width: min(100%, 28rem);
  background: white;
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}
.qr-reader-stage {
  position: relative;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  min-height: 220px;
  aspect-ratio: 3 / 4;
}
.qr-reader-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qr-reader-frame {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 18%;
  bottom: 18%;
  border: 3px solid white;
  border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.28);
}
.qr-reader-actions { display: grid; gap: 0.5rem; }
.qr-reader-actions .btn { width: 100%; min-height: 48px; }


/* Percurso de arrumação: uma decisão por ecrã, com áreas de toque amplas. */
.box-arrange { max-width: 42rem; margin-inline: auto; }
.box-arrange .card { margin-block: 1rem; }
.box-arrange .form { display: grid; gap: 1rem; }
.box-arrange .btn, .box-arrange .control { min-height: 48px; }
.box-arrange .mono { overflow-wrap: anywhere; }

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.action-tile {
  display: grid;
  align-content: end;
  gap: 0.2rem;
  min-height: 7.2rem;
  padding: 1rem;
  background: var(--navy);
  color: white;
  border-radius: 18px;
  text-decoration: none;
}
.action-tile:hover { text-decoration: none; color: white; }
.action-tile span {
  color: #93C5FD;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.action-tile .tile-mark { color: white; font-size: 1.4rem; letter-spacing: 0; text-transform: none; }
.task-pills { display: grid; gap: 0.45rem; margin-bottom: 0.9rem; }
.task-pills a {
  display: block; min-height: 44px; padding: 0.7rem 0.9rem; background: var(--amber-bg);
  color: #92400E; border-radius: 12px; font-weight: 700; text-decoration: none;
}
.place-pick { display: grid; gap: 0.45rem; margin: 0.8rem 0 1rem; }
.place-pick label {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  gap: 0.15rem;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.place-pick label[hidden] { display: none !important; }
.place-pick label:has(input:checked) { border-color: var(--blue); background: var(--blue-bg); }
.suggest-panel { margin: 0.55rem 0 0.9rem; }
.product-suggest { margin: 0; }
.suggest-hit {
  display: grid;
  gap: 0.12rem;
  width: 100%;
  text-align: left;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.suggest-hit:hover,
.suggest-hit:focus-visible {
  border-color: var(--blue);
  background: var(--blue-bg);
  outline: none;
}
.suggest-hit .mono { color: var(--muted, #64748B); font-size: 0.86em; }
.place-pick input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.action-tile strong {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.task-list { display: grid; gap: 0.65rem; }
.task-card {
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  min-height: 4.4rem;
}
a.task-card:hover { text-decoration: none; border-color: #93C5FD; }
.task-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dock-alert { background: var(--amber-bg); border-color: var(--amber); border-left: 4px solid var(--amber); }
.dock-alert h2 { margin-top: 0; }
.dock-alert .task-kicker { color: #92400E; }
.task-card strong { font-size: 1.02rem; }
.task-card span:last-child { color: var(--muted); font-size: 0.92rem; }
.flow-steps { margin: 0 0 1rem; }
.flow-steps ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow-steps li {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}
.flow-steps li span {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-size: 0.82rem;
}
.flow-steps li.is-current { color: var(--blue-d); }
.flow-steps li.is-current span {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.flow-steps li.is-done { color: var(--green); }
.flow-steps li.is-done span {
  background: var(--green-bg);
  color: var(--green);
  border-color: transparent;
}
.admin-banner { margin-bottom: 0.9rem; }
.guide-due { border-left: 4px solid #B45309; margin-bottom: 0.9rem; }
.guide-done { border-left: 4px solid #15803D; margin-bottom: 0.9rem; }
.guide-done .btn { min-height: 56px; font-size: 1.05rem; }
.nav-more summary { cursor: pointer; padding: 0.7rem 0.9rem; min-height: 44px; color: var(--muted); font-weight: 600; }
.nav-more[open] summary { color: var(--ink); }
.event-box, .event-pick { margin-bottom: 0.9rem; border-left: 4px solid var(--ink); }
.event-box h2, .event-pick h2 { margin-top: 0.1rem; }
.event-box form, .event-pick form { margin-top: 0.6rem; }
.backup-status { margin-bottom: 0.9rem; border-left: 4px solid var(--green); }
.backup-status h2 { margin-top: 0; }
.backup-status.aviso { background: var(--amber-bg); border-color: var(--amber); }
.backup-status.erro { background: var(--red-bg); border-color: var(--red); }
.finder-tools .ghost-tool { text-align: center; text-decoration: none; }
.finder-tools .ghost-tool:nth-child(3) { grid-column: 1 / -1; }
a.ghost-tool:hover { text-decoration: none; }

@media (max-width: 980px) {
  .scan {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
    padding: 0.7rem 0.75rem;
  }
  .scan input { grid-column: 1 / -1; min-width: 0; }
  .scan .btn { width: 100%; min-height: 44px; }
  .main { padding-top: 0.75rem; }
  .experience-operador .page-head { margin-bottom: 0.7rem; }
  .experience-operador .lede { margin-top: 0.25rem; }
}

/* Ecrã da fila, só leitura, para o monitor vertical do armazém.
   As três secções ficam uma por baixo da outra e partilham a altura. */
body.board-tv {
  background: #0B1220;
  height: 100dvh;
  overflow: hidden;
}
body.board-tv .banner,
body.board-tv .nav,
body.board-tv .dock,
body.board-tv .more-toggle,
body.board-tv .more-backdrop,
body.board-tv .scan,
body.board-tv .main > .meta,
body.board-tv .messages,
body.board-tv .skip { display: none !important; }
body.board-tv .app,
body.board-tv .frame,
body.board-tv .main,
body.board-tv #conteudo {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
body.board-tv .frame { display: block; }
body.board-tv .main {
  padding: 0;
  max-width: none;
  width: 100%;
}
body.board-tv #conteudo { padding: 0; }
.tv-board {
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1rem clamp(0.85rem, 2.4vw, 1.6rem) 0.75rem;
  color: #F8FAFC;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(37, 99, 235, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(217, 119, 6, 0.16), transparent 50%),
    #0B1220;
}
.tv-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
  flex: 0 0 auto;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(248, 250, 252, 0.12);
}
.tv-brand {
  margin: 0;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #93C5FD;
  text-transform: uppercase;
}
.tv-head h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.55rem, 3.4vh, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #F8FAFC;
}
.tv-meta { text-align: right; }
.tv-clock {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.45rem, 3.6vh, 2.3rem);
  font-weight: 600;
  line-height: 1;
}
.tv-date, .tv-count {
  margin: 0.25rem 0 0;
  color: #94A3B8;
  font-size: 0.95rem;
}
.tv-columns {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.tv-col {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0.7rem 0.8rem 0.75rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.tv-col-novo { box-shadow: inset 0 3px 0 #2563EB; }
.tv-col-prep { box-shadow: inset 0 3px 0 #16A34A; }
.tv-col-done { box-shadow: inset 0 3px 0 #64748B; }
.tv-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(248, 250, 252, 0.1);
}
.tv-col-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vh, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #F8FAFC;
}
.tv-col-count {
  flex: 0 0 auto;
  min-width: 1.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.18);
  color: #E2E8F0;
}
.tv-col-novo .tv-col-count { background: rgba(37, 99, 235, 0.28); color: #BFDBFE; }
.tv-col-prep .tv-col-count { background: rgba(22, 163, 74, 0.28); color: #BBF7D0; }
.tv-col-done .tv-col-count { background: rgba(100, 116, 139, 0.35); color: #CBD5E1; }
.tv-col-empty {
  margin: 1.2rem 0.2rem;
  color: #64748B;
  font-size: 0.95rem;
}
.tv-queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.tv-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 0.75rem;
  align-items: start;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.tv-row.is-next {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.35);
}
.tv-row.is-urgent {
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.22), rgba(15, 23, 42, 0.72) 42%);
  border-color: rgba(245, 158, 11, 0.55);
}
.tv-row.is-claimed:not(.is-urgent) {
  border-color: rgba(34, 197, 94, 0.35);
}
.tv-row.is-done {
  opacity: 0.88;
  border-color: rgba(100, 116, 139, 0.28);
}
.tv-pos {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(148, 163, 184, 0.16);
  color: #E2E8F0;
}
.tv-row.is-next .tv-pos { background: var(--blue); color: white; }
.tv-row.is-urgent .tv-pos { background: var(--amber); color: #0F172A; }
.tv-main h2 {
  margin: 0.2rem 0 0.1rem;
  font-size: clamp(1.15rem, 2.4vh, 1.7rem);
  letter-spacing: -0.02em;
  color: #F8FAFC;
  line-height: 1.25;
}
.tv-sub {
  margin: 0;
  color: #94A3B8;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  line-height: 1.35;
}
.tv-operator {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: #E2E8F0;
}
.tv-sub .mono { color: #CBD5E1; }
.tv-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tv-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(148, 163, 184, 0.18);
  color: #E2E8F0;
}
.tv-pill.urgent { background: #F59E0B; color: #0F172A; }
.tv-pill.next { background: #2563EB; color: white; }
.tv-pill.claimed { background: #16A34A; color: white; }
.tv-pill.wait { background: rgba(148, 163, 184, 0.22); }
.tv-pill.status { font-weight: 600; color: #CBD5E1; }
.tv-pill.done { background: rgba(100, 116, 139, 0.35); color: #E2E8F0; }
.tv-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex: 0 0 auto;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  color: #64748B;
  font-size: 0.9rem;
}
.tv-foot a { color: #93C5FD; }
/* Ecrã vertical: Novo, Em preparação e Concluído empilhados, um terço da altura cada. */

body.prep-screen .scan,
body.return-screen .scan,
body.delivery-screen .scan,
body.prep-screen .scan + p.meta,
body.return-screen .scan + p.meta,
body.delivery-screen .scan + p.meta { display: none; }
body.return-screen .checklist-item .btn,
body.delivery-screen .btn { width: 100%; }
body.delivery-screen .checklist-item label,
body.delivery-screen .checklist-item .control { grid-column: 1 / -1; }
body.delivery-screen input[type="file"].control { min-height: 48px; padding: 0.7rem; }
.delivery-photo {
  display: block;
  width: 100%;
  max-height: 24rem;
  object-fit: contain;
  margin-top: 0.8rem;
  border-radius: 12px;
  background: #0F172A;
}
body.prep-screen .prep-hero h1 { margin-bottom: 0.15rem; letter-spacing: -0.02em; }
.prep-meter {
  height: 0.45rem;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: #E2E8F0;
  overflow: hidden;
}
.prep-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563EB, #0F766E);
}
.prep-dest { padding-bottom: 1rem; }
.prep-actions { display: grid; grid-template-columns: 1fr; gap: 0.55rem; margin-top: 0.85rem; }
.prep-actions > * { min-width: 0; }
.prep-actions .btn, .prep-actions summary.btn {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  min-height: 3.1rem;
  border-radius: 14px;
}
.prep-now {
  display: flex;
  align-items: center;
  margin: 0.95rem 0 0.55rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: white;
}
.prep-now.is-box { background: #0F172A; }
.prep-now.is-loose { background: #0F766E; }
.prep-details summary { list-style: none; cursor: pointer; }
.prep-details summary::-webkit-details-marker { display: none; }
.prep-details form { margin-top: 0.6rem; }
.ticket-checklist .checklist {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.checklist-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.35rem 0.7rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
a.checklist-item { color: inherit; text-decoration: none; }
a.checklist-item::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #94A3B8;
  border-bottom: 2px solid #94A3B8;
  transform: rotate(-45deg);
  justify-self: end;
}
.checklist-item.is-open {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.checklist-item form,
.checklist-item .prep-actions,
.checklist-item .meta {
  grid-column: 1 / -1;
  margin: 0;
}
.prep-qty {
  font-size: 1.85rem;
  font-weight: 700;
  text-align: center;
  min-height: 3.5rem;
  letter-spacing: -0.03em;
}
#preparado .btn.secondary.is-current {
  background: #0F172A;
  color: white;
  border-color: #0F172A;
}
.prep-done {
  margin: 0.4rem 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
}
.checklist-item.is-expedido,
.checklist-item.is-visto {
  border-color: color-mix(in srgb, var(--green) 35%, var(--line));
  background: var(--green-bg);
}
.checklist-item.is-parcial {
  border-color: color-mix(in srgb, var(--amber) 40%, var(--line));
  background: var(--amber-bg);
}
.checklist-item.is-falta {
  border-color: color-mix(in srgb, var(--red) 25%, var(--line));
}
.checklist-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.7rem;
  height: 2.7rem;
  padding: 0 0.45rem;
  border-radius: 10px;
  background: #DBEAFE;
  color: #1D4ED8;
  font-family: var(--mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.checklist-name { font-weight: 650; }
.prep-chip {
  display: inline-flex;
  margin: 0.8rem 0 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--blue-bg);
  color: var(--blue-d);
  font-weight: 700;
}
.prep-chip.is-loose { background: var(--green-bg); color: #166534; }
.prep-confirm {
  margin-top: 0.9rem;
  padding: 0.9rem;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue-bg);
}
.prep-dock {
  position: sticky;
  bottom: 0.75rem;
  z-index: 6;
  margin-top: 1rem;
  padding: 0.55rem 0.6rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}
.prep-hint {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}
.prep-hint a { font-weight: 700; }
.prep-dock-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  align-items: stretch;
}
.prep-dock-row > form { margin: 0; }
.prep-dock-btn {
  width: 100%;
  min-height: var(--touch);
  padding: 0.35rem 0.3rem;
  font-size: 0.78rem;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
}
.prep-read-form {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.55rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.prep-read-form[hidden] { display: none; }
body.prep-screen {
  scroll-padding-bottom: calc(var(--prep-dock-space, 13rem) + env(safe-area-inset-bottom));
}
#checklist, #preparado, #confirmar, #caixa-lida,
.prep-qty, .checklist-item.is-open, .message {
  scroll-margin-top: 0.75rem;
  scroll-margin-bottom: calc(var(--prep-dock-space, 13rem) + 0.75rem);
}
@media (max-width: 980px) {
  body.prep-screen .main {
    padding-bottom: calc(var(--prep-dock-space, 13rem) + env(safe-area-inset-bottom));
  }
  body.prep-screen .order-prepare button[type="submit"].btn,
  body.prep-screen .order-prepare a.btn {
    position: static;
    bottom: auto;
  }
  .prep-dock {
    position: fixed;
    left: 0.7rem;
    right: 0.7rem;
    bottom: calc(4.7rem + env(safe-area-inset-bottom));
    z-index: 8;
  }
}

.checklist-id,
.tick-id,
.catalog-name,
.suggest-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.tick-id { align-items: flex-start; }
.tick-id .tick-main { flex: 1; min-width: 0; }
.suggest-row .suggest-hit { flex: 1; }
a.checklist-name { color: inherit; text-decoration: none; }
.photo-thumb,
.photo-ph {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #F1F5F9;
  overflow: hidden;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb.is-hero,
.photo-ph.is-hero { width: 140px; height: 140px; border-radius: var(--radius); }
.photo-dialog {
  z-index: 80;
  border: 0;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
}
.photo-dialog::backdrop { background: rgba(15, 23, 42, 0.72); }
.photo-dialog-card {
  background: #fff;
  border-radius: 16px;
  padding: 0.85rem;
  display: grid;
  gap: 0.45rem;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
}
.photo-dialog img {
  width: 100%;
  max-height: 70dvh;
  object-fit: contain;
  background: #F1F5F9;
}
.photo-dialog-close { justify-self: end; }

.alias-block { margin-top: 0.9rem; }
.alias-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.alias-title { margin: 0; font-weight: 700; }
.alias-actions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0.5rem; }
.alias-block > .actions .btn,
.alias-actions .btn,
.form.alias-block .btn { width: 100%; }
.alias-history { list-style: none; padding: 0; margin: 0; }
.alias-history li { padding: 0.45rem 0; border-top: 1px solid var(--line); }
.pill.off, .pill.RECUSADO { background: var(--red-bg); color: var(--red); }
.quantity-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.45rem;
  margin: 0 0.8rem 0.8rem 3.4rem;
}
.suggest-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.35rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.suggest-card h2 { margin: 0; font-size: 1.15rem; }
.suggest-card .btn { width: 100%; }
.suggest-pick {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: center;
  padding-top: 0.45rem;
}
.suggest-pick .btn { grid-column: 1 / -1; }
.message.ok { background: var(--green-bg); color: var(--green); }

/* Receber Mercadoria v4. O desenho aprovado: fundo claro, um passo, uma ação. */
body.receive-v4 {
  --rv4-bg: #f6f8fc;
  --rv4-ink: #10192d;
  --rv4-muted: #66758a;
  --rv4-line: #dfe5ef;
  --rv4-blue: #2563eb;
  --rv4-hero: #eaf1ff;
  --rv4-hero-line: #c6d8ff;
  background: var(--rv4-bg);
  color: var(--rv4-ink);
}
body.receive-v4 .app,
body.receive-v4 .main { background: var(--rv4-bg); }
body.receive-v4 h1 {
  margin: 0;
  color: var(--rv4-ink);
  font-size: 1.56rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
body.receive-v4 .lede { color: var(--rv4-muted); font-size: 0.95rem; }
.rv4-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.1rem;
  margin: 0 -1rem 0.35rem;
  padding: 0.2rem 1rem 0.55rem;
  border-bottom: 1px solid var(--rv4-line);
  background: #fff;
}
.rv4-top a,
.rv4-top label {
  color: var(--rv4-ink);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.rv4-top label {
  color: var(--rv4-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
body.receive-v4 .flow-steps { margin: 0.85rem 0 1.1rem; }
body.receive-v4 .flow-steps ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.receive-v4 .flow-steps li {
  display: grid;
  justify-items: start;
  gap: 0.28rem;
  color: var(--rv4-muted);
  font-weight: 500;
  text-align: left;
}
body.receive-v4 .flow-steps i {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #dee5ef;
}
body.receive-v4 .flow-steps li span,
body.receive-v4 .flow-steps li.is-current span,
body.receive-v4 .flow-steps li.is-done span {
  width: auto;
  height: auto;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--rv4-muted);
  font-size: 0.72rem;
  font-weight: 500;
}
body.receive-v4 .flow-steps .is-current i,
body.receive-v4 .flow-steps .is-done i { background: var(--rv4-blue); }
body.receive-v4 .flow-steps li.is-current span {
  color: var(--rv4-blue);
  font-weight: 650;
  background: transparent;
}
.rv4 { display: grid; gap: 0.75rem; padding-bottom: 7.5rem; }
.rv4-kicker {
  margin: 0;
  color: var(--rv4-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rv4-hero,
.rv4-card,
.rv4-choice {
  border: 1px solid var(--rv4-line);
  border-radius: 15px;
  background: #fff;
}
.rv4-hero {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.55rem 1.1rem;
  border-color: var(--rv4-hero-line);
  background: var(--rv4-hero);
  text-align: center;
  cursor: pointer;
}
.rv4-lens { color: var(--rv4-blue); font-size: 2.4rem; line-height: 1; }
.rv4-hero strong { font-size: 1.12rem; }
.rv4-hero span,
.rv4-card p,
.rv4-choice small { color: var(--rv4-muted); font-size: 0.88rem; }
.rv4-card { display: grid; gap: 0.25rem; padding: 0.9rem 1rem; }
.rv4-card strong,
.rv4-choice strong { color: var(--rv4-ink); }
.rv4-tips { margin: 0.35rem 0 0; padding-left: 1.1rem; color: var(--rv4-muted); }
.rv4-choice {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  box-sizing: border-box;
  max-width: 100%;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-height: 4.5rem;
  padding: 0.85rem;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.rv4-choice:hover { text-decoration: none; }
.rv4-choice span { display: grid; }
.rv4-ico {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.6rem;
  border-radius: 12px;
  background: #f1f4f8;
  color: var(--rv4-ink);
  font-weight: 650;
}
.rv4-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rv4-line);
  background: #fff;
}
.rv4-primary {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  border-radius: 11px;
  background: var(--rv4-blue);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}
.rv4-dock p { margin: 0; color: var(--rv4-muted); font-size: 0.72rem; text-align: center; }
.rv4-whole {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  border: 1px solid var(--rv4-line);
  border-radius: 11px;
  background: #fff;
  color: var(--rv4-ink);
  font-weight: 650;
  cursor: pointer;
}
.rv4-crop {
  display: grid;
  gap: 0.7rem;
  max-width: 100%;
  overflow: hidden;
}
.rv4-crop[hidden],
.rv4-choice[hidden],
[data-read-start][hidden] { display: none; }
html:has(body.receive-v4.is-cropping),
body.receive-v4.is-cropping {
  overflow: hidden;
  overscroll-behavior: none;
}
.rv4-crop-stage {
  position: relative;
  height: max(16rem, calc(100dvh - 24rem - env(safe-area-inset-bottom)));
  overflow: hidden;
  border-radius: 15px;
  background: #10192d;
  touch-action: none;
}
.rv4-crop-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.rv4-crop-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.rv4-crop-tools button {
  min-height: 2.75rem;
  border: 1px solid var(--rv4-line);
  border-radius: 11px;
  background: #fff;
  color: var(--rv4-ink);
  font-weight: 650;
  cursor: pointer;
}
body.receive-v4 form.is-cropping { overflow-x: hidden; }
body.receive-v4 form.is-reading [data-read-crop] button { opacity: 0.7; }
.rv4-choices { display: grid; gap: 0.75rem; }
.rv4-quiet {
  border: 1px solid var(--rv4-line);
  border-radius: 15px;
  background: #fff;
  padding: 0.2rem 0.9rem 0.8rem;
}
.rv4-quiet summary {
  min-height: 2.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 650;
}
body.receive-v4.receive-flow .tick-form,
body.receive-v4.receive-flow .main {
  padding-bottom: calc(var(--receive-bar-space, 12rem) + 1rem + env(safe-area-inset-bottom));
}
body.receive-v4.receive-flow {
  scroll-padding-bottom: calc(var(--receive-bar-space, 12rem) + 0.75rem + env(safe-area-inset-bottom));
}
body.receive-v4 form.rv4-summary .tick-summary,
body.receive-v4 form.rv4-focus .tick-summary,
body.receive-v4 form.is-final .tick-summary,
body.receive-v4 form.rv4-summary .tick-row .tick-note,
body.receive-v4 form.rv4-summary .fix-edit,
body.receive-v4 form.rv4-focus .fix-edit,
body.receive-v4 form.rv4-summary .qty-inline button,
body.receive-v4 form.rv4-focus .qty-inline,
body.receive-v4 form.rv4-focus .tick-box,
body.receive-v4 form.rv4-focus .tick-confirm,
body.receive-v4 form.rv4-focus .tick-bar .rv4-partial,
body.receive-v4 form.rv4-focus .tick-bar .tick-block {
  display: none;
}
body.receive-v4 form.rv4-summary .tick-main,
body.receive-v4 form.rv4-focus .tick-main {
  display: grid;
  gap: 0.2rem;
  justify-items: start;
}
body.receive-v4 form.rv4-focus .tick-row.is-focus .tick-main .tick-note,
body.receive-v4 form.rv4-focus .tick-row.is-focus .rv4-qty-story,
body.receive-v4 form.rv4-focus .tick-row.is-focus .rv4-card-qty {
  display: none;
}
body.receive-v4 form.rv4-focus .tick-row.is-focus {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0.75rem;
}
body.receive-v4 form.rv4-focus .tick-row.is-focus .tick-fields,
body.receive-v4 form.rv4-focus .tick-row.is-focus .suggest-card,
body.receive-v4 form.rv4-focus .tick-row.is-focus .associate-box,
body.receive-v4 form.rv4-focus .tick-row.is-focus .quantity-box,
body.receive-v4 form.rv4-focus .tick-row.is-focus .rv4-qty-story {
  grid-column: 1 / -1;
}
@media (max-width: 980px) {
  body.receive-v4.floor .tick-form[data-receipt-review].has-js.rv4-focus .tick-row.is-sheet .tick-fields {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
}
body.receive-v4 form.rv4-summary .suggest-card,
body.receive-v4 form.rv4-summary .associate-box,
body.receive-v4 form.rv4-summary .quantity-box,
body.receive-v4 form.rv4-summary .rv4-qty-story,
body.receive-v4 form.rv4-summary .ignore-line,
body.receive-v4 form.rv4-summary .ignore-row,
body.receive-v4 form.rv4-summary .suggest-panel,
body.receive-v4 form.rv4-summary .tick-all,
body.receive-v4 form.rv4-summary .tick-box,
body.receive-v4 form.rv4-summary .result-mark {
  display: none;
}
body.receive-v4 form.rv4-summary .review-tools {
  display: grid;
  gap: 0.55rem;
}
body.receive-v4 form.rv4-focus > .rv4-doc,
body.receive-v4 form.is-final > .rv4-doc,
body.receive-v4 form.is-final > .rv4-review-photo {
  display: none;
}
body.receive-v4 form.rv4-focus .tick-row:not(.is-focus),
body.receive-v4 form.rv4-focus > .result-hero,
body.receive-v4 form.rv4-focus > .status-row,
body.receive-v4 form.rv4-focus > .review-tools,
body.receive-v4 form.rv4-focus > .tick-head,
body.receive-v4 form.rv4-focus > .tick-add,
body.receive-v4 form.is-final > [data-rows],
body.receive-v4 form.is-final > .result-hero,
body.receive-v4 form.is-final > .status-row,
body.receive-v4 form.is-final > .tick-head,
body.receive-v4 form.is-final > .rv4-quiet,
body.receive-v4 form.is-final > .tick-add,
body.receive-v4 form.is-final > .review-tools {
  display: none;
}
body.receive-v4 .rv4-card-qty {
  color: var(--rv4-muted);
  font-size: 0.82rem;
}
body.receive-v4 .rv4-doc,
body.receive-v4 .rv4-review-photo {
  margin: 0 0 0.8rem;
  max-width: 100%;
}
body.receive-v4 .rv4-doc {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rv4-line);
  border-radius: 15px;
  background: #fff;
}
body.receive-v4 .rv4-doc h2 { margin: 0; font-size: 1rem; }
body.receive-v4 .rv4-field { display: grid; gap: 0.25rem; font-weight: 650; scroll-margin-bottom: 8rem; }
body.receive-v4 .rv4-field .control { font-weight: 500; }
body.receive-v4 .rv4-review-photo img {
  display: block;
  width: 100%;
  max-height: 11rem;
  object-fit: contain;
  border-radius: 12px;
  background: #10192d;
}
body.receive-v4 .rv4-review-photo figcaption {
  margin-top: 0.35rem;
  color: var(--rv4-muted);
  font-size: 0.85rem;
}
body.receive-v4 .rv4-revisit {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 2.75rem;
}
body.receive-v4 form.rv4-focus .rv4-revisit,
body.receive-v4 form.is-final .rv4-revisit {
  display: none;
}
body.receive-v4 .rv4-qty-story {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rv4-line);
  border-radius: 15px;
  background: #fff;
}
body.receive-v4 .rv4-qty-story p { margin: 0; color: var(--rv4-muted); }
body.receive-v4 .rv4-qty-story strong { font-size: 1.35rem; }
body.receive-v4 .tick-list { display: flex; flex-direction: column; gap: 0.7rem; }
body.receive-v4 .tick-row.is-ok { order: 2; }
body.receive-v4 .tick-row.is-fix,
body.receive-v4 .tick-row.is-review,
body.receive-v4 .tick-row[data-unknown="1"] { order: 0; }
body.receive-v4 .tick-row {
  border-radius: 15px;
  box-shadow: none;
}
body.receive-v4 .pick-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
body.receive-v4 .pick-tools button {
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--rv4-line);
  border-radius: 11px;
  background: #fff;
  color: var(--rv4-ink);
  font-weight: 650;
}
body.receive-v4 .pick-box {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
}
body.receive-v4 .pick-box input {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
  accent-color: var(--green);
}
body.receive-v4 .pick-bar {
  display: grid;
  gap: 0.45rem;
}
body.receive-v4 .pick-bar[hidden],
body.receive-v4 form.rv4-focus .pick-bar,
body.receive-v4 form.rv4-focus .pick-tools,
body.receive-v4 form.rv4-focus .pick-box {
  display: none;
}
body.receive-v4 .pick-actions,
body.receive-v4 [data-pick-confirm] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}
body.receive-v4 .fill-panel {
  display: grid;
  gap: 0.7rem;
  margin: 0.8rem 0 1rem;
  padding: 0.9rem;
  border: 1px solid var(--rv4-line);
  border-radius: 16px;
  background: #fff;
}
body.receive-v4 .fill-panel[hidden] {
  display: none;
}
body.receive-v4 .fill-panel .btn,
body.receive-v4 .fill-panel .control {
  width: 100%;
  min-height: 3.2rem;
}
body.receive-v4 [data-pick-confirm] {
  grid-template-columns: 1fr;
}
body.receive-v4 [data-pick-confirm] p {
  margin: 0;
}
body.receive-v4 .suggest-card,
body.receive-v4 .quantity-box {
  grid-column: 1 / -1;
  border: 1px solid var(--rv4-line);
  border-radius: 15px;
  background: #fff;
}
body.receive-v4 form.is-final.tick-form {
  padding-bottom: 1.5rem;
}
body.receive-v4 form.is-final .tick-bar {
  position: static;
  margin-top: 0.8rem;
  padding: 0;
  border: 0;
  background: transparent;
}
body.receive-v4 form.rv4-focus .tick-row.is-sheet,
body.receive-v4 form.rv4-focus .tick-row.is-focus {
  z-index: 1;
}
body.receive-v4 .tick-bar,
body.receive-v4 .organize-submit {
  z-index: 80;
}
body.receive-v4 .tick-bar,
body.receive-v4 .organize-submit {
  left: 0;
  right: 0;
  bottom: 0;
  border: 0;
  border-top: 1px solid var(--rv4-line);
  border-radius: 0;
  box-shadow: none;
  padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
}
.rv4-known {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--rv4-ink);
  font-size: 0.82rem;
  font-weight: 650;
}
.rv4-known .photo-thumb,
.rv4-known .photo-thumb img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
}
.rv4-doc-qty { grid-column: 1 / -1; margin: 0; color: var(--rv4-muted); font-size: 0.85rem; }
@media (max-width: 980px) {
  body.receive-v4 .dock { display: none; }
  body.receive-v4 .main { padding-bottom: calc(7.2rem + env(safe-area-inset-bottom)); }
  body.receive-v4 .nav { display: none; }
  body.receive-v4 .more-toggle:checked ~ .frame .nav {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 40;
    width: min(22rem, 88vw);
    overflow: auto;
    background: #fff;
  }
}

.tap-review .result-hero,
.tap-review .rv4-analysis,
.tap-review .status-row,
.tap-review .review-tools,
.tap-review .rv4-doc,
.tap-review .tick-head,
.tap-review .pick-box,
.tap-review .tick-box,
.tap-review .tick-id,
.tap-review .rv4-revisit,
.tap-review .suggest-card,
.tap-review .associate-box,
.tap-review .rv4-qty-story,
.tap-review .quantity-box,
.tap-review .rv4-doc-qty,
.tap-review .qty-inline,
.tap-review .ignore-line,
.tap-review .fix-edit,
.tap-review .tick-fields,
.tap-review .tick-add,
.tap-review .fill-panel,
.tap-review .pick-bar,
.tap-review .tick-summary,
.tap-review .rv4-partial,
.tap-review .rv4-approve,
.tap-review [data-batch-confirm],
.tap-review .tick-confirm,
.tap-review [data-undo-remove],
.tap-review [data-rv4-back],
.tap-review [data-fix-next],
.tap-review .rv4-batch,
.tap-review .action-notice,
.tap-review .message.warning,
.tap-review .tick-block {
  display: none !important;
}
.tap-review.needs-doc .rv4-doc { display: block; }
.tap-top { padding: 0.1rem 0.2rem 0; }
.tap-top p { margin: 0; color: var(--muted); font-size: 0.8rem; }
body.floor .tap-review .tap-top h1 { margin: 0; font-size: 1.35rem; letter-spacing: -0.03em; }
.tap-review .tick-list { gap: 0.4rem; }
body.floor .tap-review .tick-row {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.tap-face {
  display: grid;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.tap-name { margin: 0; font-size: 0.95rem; font-weight: 700; line-height: 1.2; }
.tap-ready {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 12px;
  background: var(--green-bg);
}
.tap-ready .tap-name { flex: 1; }
.tap-ready b { font-size: 1rem; }
.tap-ready span:last-child { color: var(--green); font-weight: 700; }
.tap-qty { display: grid; grid-template-columns: 2.75rem 1fr 2.75rem; align-items: center; }
.tap-qty button, .tap-btn, .tap-enter {
  min-height: 2.75rem;
  border-radius: 10px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font: 700 0.95rem/1.1 Inter, "Segoe UI", sans-serif;
}
.tap-qty b { text-align: center; font-size: 1.35rem; }
.tap-qty button, .tap-ghost {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.tap-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; }
.tap-actions.tap-stack { grid-template-columns: 1fr; }
.tap-enter { width: 100%; }
.tap-enter:disabled { background: var(--line); color: var(--muted); }
.tap-review .tick-bar { padding-bottom: calc(0.8rem + env(safe-area-inset-bottom)); }

/* Casca do escritório. Não chega ao operador nem aos ecrãs de chão. */
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) h1 {
  font-size: 1.5rem;
  line-height: 1.2;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .page-head {
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .lede {
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.4;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .card,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .stat,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .panel,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .scan,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .table-wrap {
  border-radius: 8px;
  box-shadow: none;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .card,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .stat {
  padding: 16px;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .stats,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .grid-2,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .stack {
  gap: 16px;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .stats {
  margin-bottom: 16px;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .scan {
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 16px;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .filters {
  gap: 8px;
  margin-bottom: 16px;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) table {
  font-size: 0.875rem;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) th,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) td {
  padding: 8px 12px;
  vertical-align: middle;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) th {
  font-size: 0.6875rem;
  background: var(--card);
}

@media (min-width: 981px) {
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .main {
    max-width: none;
    padding: 24px 32px 48px;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .nav {
    padding: 16px 12px;
    gap: 8px;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .nav-label {
    margin: 16px 12px 4px;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .nav a.item {
    display: flex;
    align-items: center;
    height: 32px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    background: transparent;
    box-shadow: none;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .nav a.item.is-active {
    background: var(--blue);
    color: #fff;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .nav-foot {
    padding: 16px 8px 0;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .linkish,
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .nav-foot button {
    min-height: 32px;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .btn {
    min-height: 32px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 0.875rem;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .control:not(textarea) {
    min-height: 32px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .table-wrap {
    max-height: calc(100dvh - 16rem);
    overflow: auto;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--card);
    box-shadow: inset 0 -1px 0 var(--line);
  }
}

.office-home { display: grid; gap: 16px; }
.office-home .office-section {
  margin: 8px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.office-home .stats { gap: 8px; margin: 0; }
.office-home .stat { padding: 12px 16px; }
.office-home .stat b { font-size: 1.5rem; }
.office-home .card { margin: 0; }
.office-home .grid-2 { gap: 16px; }
.office-home .office-attention { display: grid; gap: 8px; }
.office-home .office-attention:empty { display: none; }
.office-home .guide-due,
.office-home .dock-alert,
.office-home .office-attention .backup-status {
  border-left: 3px solid var(--amber);
  background: #fff;
  box-shadow: none;
}
.office-home .dock-alert .lede,
.office-home .office-decide .lede { display: none; }
.office-home .office-decide {
  border-left: 3px solid var(--blue);
  background: #fff;
}
.office-home .grid-2.office-decide { border-left: 0; background: transparent; }
.office-home .grid-2.office-decide > .card { border-left: 3px solid var(--blue); }
.office-home .dock-alert h2,
.office-home .office-decide h2 { font-size: 1rem; margin-bottom: 8px; }
.office-home .task-list { gap: 8px; }
.office-home .task-card { padding: 8px 12px; }

:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .cell-clip {
  max-width: 28rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .catalog-name .cell-clip {
  flex: 1;
  min-width: 0;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .catalog-name .photo-thumb,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .catalog-name .photo-ph {
  width: 24px;
  height: 24px;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .mono {
  white-space: nowrap;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list tbody tr:hover {
  background: #F8FAFC;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .empty {
  margin: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .pager {
  gap: 16px;
  margin-top: 8px;
}

@media (min-width: 981px) {
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .filters {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) 14rem 11rem;
    align-items: center;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .filters .control {
    width: 100%;
    min-width: 0;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .filters.ledger-filters {
    grid-template-columns: minmax(14rem, 1.5fr) 12rem 10.5rem 10.5rem auto;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .filters.ledger-filters .btn {
    width: auto;
  }
}

.office-col,
.office-aside { display: none; }
@media (max-width: 980px) {
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list td.office-col {
    display: flex;
  }
}
@media (min-width: 981px) {
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list th.office-col,
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list td.office-col {
    display: table-cell;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .office-aside {
  display: block;
  max-width: 22rem;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.75rem;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .cell-when,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .cell-type {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .pill.RASCUNHO {
  background: var(--amber-bg);
  color: var(--amber);
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .state-mark {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #F1F5F9;
  color: var(--ink);
  white-space: nowrap;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .state-mark.EM_ARMAZEM {
  background: var(--green-bg);
  color: var(--green);
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .state-mark.PENDENTE,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .state-mark.EM_PREPARACAO,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .state-mark.EM_CONFERENCIA {
  background: var(--amber-bg);
  color: var(--amber);
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .state-mark.EM_EVENTO {
  background: var(--blue-bg);
  color: var(--blue-d);
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-list .state-mark.FORA {
  color: var(--muted);
}

:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-sheet {
  gap: 16px;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-sheet.sheet-product {
  display: flex;
  flex-direction: column;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-product .sheet-id { order: 1; margin: 0; }
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-product .sheet-note { order: 2; margin: 0; }
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-product .sheet-kpis { order: 3; margin: 0; }
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-product .sheet-main { order: 4; }
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-product .sheet-assets { order: 5; }
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-product .sheet-history { order: 6; }
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-product .sheet-extra { order: 7; margin: 0; }
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-product .product-hero {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-product .photo-thumb.is-hero,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-product .photo-ph.is-hero,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-product .product-hero img {
  width: 72px;
  height: 72px;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-product .product-hero .mono {
  font-weight: 700;
  letter-spacing: 0.02em;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-sheet .cell-clip {
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-sheet .cell-when,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-sheet .cell-type {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-box .shelf-card {
  margin: 0;
  box-shadow: none;
  border-radius: 8px;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-box .shelf-code {
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-box .shelf-row {
  font-size: 0.875rem;
  padding: 8px 0;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-box .shelf-row strong {
  font-size: 1rem;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-box .label-preview {
  max-height: 220px;
  object-fit: contain;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-box .page-head .mono {
  display: none;
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-box .box-state.is-EM_ARMAZEM {
  background: var(--green-bg);
  color: var(--green);
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-box .box-state.is-PENDENTE,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-box .box-state.is-EM_PREPARACAO,
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-box .box-state.is-EM_CONFERENCIA {
  background: var(--amber-bg);
  color: var(--amber);
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-box .box-state.is-EM_EVENTO {
  background: var(--blue-bg);
  color: var(--blue-d);
}
:is(
  body.experience-admin,
  body.experience-gestor,
  body.experience-consulta,
  body.experience-requisitante
):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-box .box-state.is-FORA {
  color: var(--muted);
}

@media (min-width: 981px) {
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .office-sheet.sheet-box {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-box > .shelf-card {
    grid-column: 1;
    grid-row: 1 / -1;
    position: sticky;
    top: 16px;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-box > :not(.shelf-card) {
    grid-column: 2;
    min-width: 0;
  }
  :is(
    body.experience-admin,
    body.experience-gestor,
    body.experience-consulta,
    body.experience-requisitante
  ):not(.floor):not(.receive-flow):not(.prep-screen):not(.delivery-screen):not(.return-screen):not(.board-tv):not(.shell-ops) .sheet-product .sheet-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
