/* ReceiveScan — sector-radar / Dodai product family */

@import url("../dodai-product-theme.css");

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #d8d8d8;
  color: var(--sr-ink);
  font-family: var(--sr-font);
}

.stage {
  max-width: 1100px;
  margin: 1rem auto;
  padding: 0 0.75rem 1.25rem;
}

.window {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: #f0f0f0;
  border: 1px solid var(--sr-border);
  border-bottom: 0;
  border-radius: 0.55rem 0.55rem 0 0;
}

.traffic {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: #c0c0c0;
}

.traffic:nth-child(1) { background: #e57373; }
.traffic:nth-child(2) { background: #facc15; }
.traffic:nth-child(3) { background: #81c784; }

.window-title {
  margin-left: 0.5rem;
  color: var(--sr-muted);
  font-size: 0.78rem;
}

.board {
  background: var(--sr-bg);
  border: 1px solid var(--sr-border);
  border-radius: 0 0 0.55rem 0.55rem;
  padding: 1.15rem 1.25rem 1.35rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.board-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sr-brand);
}

.board-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  color: var(--sr-muted);
  max-width: 36rem;
  font-size: 0.95rem;
}

.family-chip {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  background: var(--sr-accent-soft);
  border: 1px solid var(--sr-border);
  border-left: 3px solid var(--sr-accent);
}

.steps {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}

.steps li {
  background: #fff;
  border: 1px solid var(--sr-border);
  border-radius: 4px;
  padding: 0.55rem 0.45rem;
  font-size: 0.78rem;
  color: var(--sr-muted);
  text-align: center;
}

.steps li strong {
  display: block;
  color: var(--sr-ink);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.steps li.on {
  background: var(--sr-accent-soft);
  border-top: 2px solid var(--sr-accent);
  color: var(--sr-ink);
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: 18rem 1fr;
  gap: 1.25rem;
  align-items: start;
}

.phone {
  background: #111;
  border-radius: 1.4rem;
  padding: 0.65rem 0.55rem 0.85rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 18rem;
  box-sizing: border-box;
  overflow: hidden;
}

.phone-notch {
  width: 5.5rem;
  height: 0.55rem;
  background: #2a2a2a;
  border-radius: 999px;
  margin: 0.15rem auto 0.55rem;
}

.phone-screen {
  background: var(--sr-bg);
  border-radius: 0.85rem;
  padding: 0.75rem 0.65rem 0.85rem;
  min-height: 32rem;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.7rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.app-firm {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--sr-muted);
}

.scan-box { margin-bottom: 0.75rem; }

.viewfinder {
  position: relative;
  height: 8.5rem;
  background: #1e1e1e;
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.corner {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--sr-accent);
}

.corner.tl { top: 0.55rem; left: 0.55rem; border-right: 0; border-bottom: 0; }
.corner.tr { top: 0.55rem; right: 0.55rem; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 0.55rem; left: 0.55rem; border-right: 0; border-top: 0; }
.corner.br { bottom: 0.55rem; right: 0.55rem; border-left: 0; border-top: 0; }

.laser {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--sr-brand);
  top: 52%;
  opacity: 0.9;
  z-index: 2;
}

.barcode {
  width: 78%;
  max-width: 11.5rem;
  height: auto;
  z-index: 1;
  opacity: 0.95;
}

.sku-name {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.qty-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sr-muted);
  margin-bottom: 0.35rem;
}

.qty-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 2rem;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.qty-row > * {
  min-width: 0;
  max-width: 100%;
}

.qty-btn {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--sr-border-strong);
  border-radius: 5px;
  background: linear-gradient(180deg, #f8f8f8 0%, #e2e2e2 100%);
  font-size: 1rem;
  font-weight: 700;
  cursor: default;
  padding: 0.4rem 0;
  box-sizing: border-box;
  line-height: 1;
}

.qty-row input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--sr-border-strong);
  border-radius: 5px;
  text-align: center;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.4rem 0.15rem;
  background: #fff;
  box-sizing: border-box;
}

.cta-save,
.cta-post {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 5px;
  font: inherit;
  font-weight: 600;
  padding: 0.65rem 0.5rem;
  cursor: default;
}

.cta-save {
  border: 1px solid var(--sr-border-strong);
  background: linear-gradient(180deg, #f8f8f8 0%, #e2e2e2 100%);
  color: var(--sr-ink);
  margin-bottom: 0.85rem;
}

.cta-post {
  border: 1px solid var(--sr-brand);
  background: var(--sr-brand);
  color: #fff;
  margin-top: 0.65rem;
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.list-head h2 {
  margin: 0;
  font-size: 0.85rem;
}

.list-head span {
  font-size: 0.72rem;
  color: var(--sr-muted);
}

.lines {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--sr-border);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.lines li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  font-size: 0.8rem;
  border-bottom: 1px solid #e8e8e8;
}

.lines li:last-child { border-bottom: 0; }

.lines li.fresh {
  background: var(--sr-accent-soft);
  border-left: 3px solid var(--sr-accent);
}

.side-panels {
  display: grid;
  gap: 0.85rem;
}

.panel {
  background: #fff;
  border: 1px solid var(--sr-border);
  border-radius: 4px;
  padding: 0.95rem 1rem;
}

.panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.panel p {
  margin: 0 0 0.75rem;
  color: var(--sr-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.panel th {
  text-align: left;
  color: var(--sr-muted);
  font-weight: 600;
  padding: 0.4rem 0.3rem;
  border-bottom: 1px solid var(--sr-border);
  background: var(--sr-bg-2);
}

.panel td {
  padding: 0.45rem 0.3rem;
  border-bottom: 1px solid #e8e8e8;
  font-variant-numeric: tabular-nums;
}

.panel td.up {
  color: var(--sr-ok);
  font-weight: 700;
}

.panel.tip {
  border-left: 3px solid var(--sr-accent);
  background: var(--sr-accent-soft);
}

.panel.tip ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--sr-ink);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; justify-items: center; }
  .steps { grid-template-columns: 1fr 1fr; }
  .board-head { flex-direction: column; }
}
