/* ==========================================================
   UlapInventory page — builds on styles.css and feature.css
   ========================================================== */

/* ---------- Hero mock ---------- */

.inv-hero {
  position: relative;
  width: 100%;
  max-width: 480px;
  justify-self: end;
  padding-bottom: 28px;
}

.onhand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}

.onhand b {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.onhand span {
  font-size: 13px;
  color: var(--muted);
}

.locs {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.locs li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.locs i {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left / var(--v) 100%, #f1f1f2;
}

.locs b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.toast {
  position: absolute;
  left: -20px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.35);
}

/* ---------- Tables in mocks ---------- */

.tbl {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.tbl th,
.tbl td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.tbl th + th,
.tbl td + td {
  padding-left: 12px;
}

.tbl th:first-child,
.tbl td:first-child {
  text-align: left;
}

.tbl th {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.tbl tfoot td {
  border-bottom: 0;
  font-weight: 600;
}

.tbl--je {
  margin-top: 8px;
}

.tbl--je td:first-child {
  color: var(--ink-2);
}

/* ---------- Transfer route ---------- */

.route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.route > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.route span:not(.route__arrow),
.route em {
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}

.route__arrow {
  font-size: 18px;
  color: var(--accent);
}

/* ---------- Product mock ---------- */

.prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prices span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 220px;
  color: var(--ink-2);
}

.prices b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.barcode {
  display: block;
  width: 140px;
  height: 26px;
  margin-bottom: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 5px,
    transparent 5px 8px,
    var(--ink) 8px 11px,
    transparent 11px 12px
  );
}

/* ---------- Serial numbers ---------- */

.sn {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.sn span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sn em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.sn b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.timeline-mini {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding-left: 26px;
}

.timeline-mini::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline-mini li {
  position: relative;
  display: flex;
  flex-direction: column;
}

.timeline-mini li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px #fff;
}

.timeline-mini span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Coverage ---------- */

.coverage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  margin-top: 56px;
}

.coverage__title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pills li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  background: #fff;
}

.reports {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.reports div {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
}

.reports dt {
  font-weight: 600;
  font-size: 15px;
}

.reports dd {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Customers ---------- */

.cases--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote--wide {
  max-width: 760px;
  margin-top: 64px;
}

.quote--wide blockquote {
  font-size: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .inv-hero {
    justify-self: center;
  }

  .coverage {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .cases--two {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  /* below the card instead of over its footer */
  .inv-hero {
    padding-bottom: 0;
  }

  .toast {
    position: static;
    margin: 10px 12px 0;
  }

  .tbl td + td {
    white-space: nowrap;
  }

  .mock__head {
    flex-wrap: wrap;
  }

  .locs li {
    grid-template-columns: 104px minmax(0, 1fr) 40px;
  }

  .reports {
    grid-template-columns: minmax(0, 1fr);
  }

  .route {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .route__arrow {
    transform: rotate(90deg);
    justify-self: start;
  }

  .tbl {
    font-size: 12px;
  }

  .quote--wide blockquote {
    font-size: 16.5px;
  }
}
