/* Vistorio Inventory, Store & Stock Control page */

/* ─── Hero ─── */
.inv-hero-title {
  margin: 0 0 1.25rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.inv-hero-title span {
  display: block;
  font-weight: 800;
  color: var(--ink);
}

.inv-hero-title span:nth-child(1) {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.inv-hero-title span:nth-child(2) {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  color: var(--red);
  font-weight: 700;
  margin-top: 0.35rem;
}

.inv-hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.inv-hero-pillars span {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  background: var(--red-soft);
  border-radius: 999px;
  color: var(--red);
}

.inv-hero-scene {
  position: relative;
  min-height: 420px;
}

.inv-warehouse {
  background: var(--ink);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  margin: 0 auto;
}

.inv-warehouse__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.inv-warehouse__head strong {
  font-size: 0.82rem;
  color: #fff;
}

.inv-warehouse__live {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.inv-warehouse__live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--success);
  animation: hp-pulse 1.5s ease infinite;
}

.inv-warehouse__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.inv-warehouse__kpi {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.65rem;
  text-align: center;
}

.inv-warehouse__kpi label {
  display: block;
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.15rem;
}

.inv-warehouse__kpi b {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
}

.inv-warehouse__kpi b.warn { color: var(--warn); }
.inv-warehouse__kpi b.alert { color: var(--danger); }
.inv-warehouse__kpi b.pos { color: var(--success); }

.inv-shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

.inv-shelf__bay {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}

.inv-shelf__bay b {
  display: block;
  font-size: 0.65rem;
  color: #fff;
  margin-top: 0.15rem;
}

.inv-shelf__bay--low { border-color: rgba(248,113,113,0.4); }

.inv-float {
  position: absolute;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  box-shadow: 0 12px 40px rgba(15,20,25,0.12);
  min-width: 125px;
  animation: hp-float-card 6s ease-in-out infinite;
}

.inv-float label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.inv-float strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.inv-float--1 { top: 0; left: -2%; }
.inv-float--2 { top: 20%; right: -3%; animation-delay: -1.5s; }
.inv-float--3 { bottom: 25%; left: -4%; animation-delay: -3s; }
.inv-float--4 { bottom: 5%; right: 0; animation-delay: -2s; }

@media (max-width: 1023px) {
  .inv-float { display: none; }
}

/* ─── Challenges ─── */
.inv-challenges {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
}

.inv-challenge {
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.inv-challenge:hover {
  transform: translateY(-3px);
  border-color: rgba(177,18,38,0.2);
}

.inv-challenge__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: rgba(177,18,38,0.08);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.inv-challenge h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.inv-resolve {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--ink);
  border-radius: 18px;
  text-align: center;
  color: #fff;
}

.inv-resolve p {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
}

.inv-resolve strong { color: var(--success); }

/* ─── Executive dashboard ─── */
.inv-exec-dash {
  background: var(--ink);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}

.inv-exec-dash__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.inv-exec-dash__head h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #fff;
}

.inv-exec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
  .inv-exec-grid { grid-template-columns: repeat(2, 1fr); }
}

.inv-exec-kpi {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.85rem;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.inv-exec-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(177,18,38,0.35);
}

.inv-exec-kpi label {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.42);
  margin-bottom: 0.25rem;
}

.inv-exec-kpi strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.inv-exec-kpi.warn strong { color: var(--warn); }
.inv-exec-kpi.alert strong { color: var(--danger); }
.inv-exec-kpi.pos strong { color: var(--success); }

.inv-health {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
}

.inv-health__ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--success) 0 88%, rgba(255,255,255,0.1) 88%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.inv-health__ring span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--success);
}

.inv-health p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.inv-health b { color: #fff; }

/* ─── Movement workflow ─── */
.inv-flow-wrap {
  overflow-x: auto;
  padding-bottom: 1rem;
}

.inv-flow {
  display: flex;
  min-width: max-content;
  gap: 0;
  padding: 1rem 0;
}

.inv-flow-step {
  flex: 0 0 115px;
  text-align: center;
  position: relative;
  padding: 0 0.3rem;
}

.inv-flow-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -0.15rem;
  top: 1.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--red);
}

.inv-flow-step__icon {
  width: 2.65rem;
  height: 2.65rem;
  margin: 0 auto 0.5rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
  animation: inv-flow-pulse 4s ease-in-out infinite;
}

.inv-flow-step:nth-child(2) .inv-flow-step__icon { animation-delay: -0.5s; }
.inv-flow-step:nth-child(4) .inv-flow-step__icon { animation-delay: -1s; }
.inv-flow-step:nth-child(6) .inv-flow-step__icon { animation-delay: -1.5s; }
.inv-flow-step:nth-child(8) .inv-flow-step__icon { animation-delay: -2s; }

@keyframes inv-flow-pulse {
  0%, 100% { border-color: var(--line); }
  50% { border-color: rgba(177,18,38,0.4); transform: scale(1.05); }
}

.inv-flow-step strong {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.3;
}

.inv-flow-step span {
  display: block;
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 0.2rem;
  line-height: 1.35;
}

/* ─── Store cards ─── */
.inv-stores {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.inv-store {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.inv-store:hover {
  transform: translateY(-3px);
  border-color: rgba(177,18,38,0.2);
}

.inv-store__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.inv-store h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.inv-store__badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  background: rgba(13,122,78,0.1);
  color: var(--success);
}

.inv-store__badge--warn {
  background: rgba(177,18,38,0.1);
  color: var(--red);
}

.inv-store__meta {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.inv-store__meta b { color: var(--ink); font-weight: 700; }

/* ─── Receiving workflow ─── */
.inv-receive-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .inv-receive-layout { grid-template-columns: 1fr 1.1fr; align-items: start; }
}

.inv-receive-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.inv-receive-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  position: relative;
}

.inv-receive-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1rem;
  top: 2.4rem;
  height: calc(100% - 0.25rem);
  width: 2px;
  background: var(--line);
}

.inv-receive-step__dot {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  z-index: 1;
}

.inv-receive-step strong { font-size: 0.85rem; }

.inv-receive-ui {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.inv-receive-ui__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.inv-receive-ui__head strong { font-size: 0.85rem; }

.inv-receive-ui__scan {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--page);
  border: 1px dashed var(--line);
  color: var(--muted);
}

.inv-receive-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}

.inv-receive-row:last-child { border-bottom: none; }

.inv-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
}

.inv-badge--ok { background: rgba(13,122,78,0.1); color: var(--success); }
.inv-badge--wait { background: rgba(180,83,9,0.1); color: #b45309; }

/* ─── Issues & transfers ─── */
.inv-transfer-hub {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .inv-transfer-hub { grid-template-columns: 1fr 1.2fr; }
}

.inv-hub-diagram {
  position: relative;
  aspect-ratio: 1;
  max-width: 360px;
  margin: 0 auto;
}

.inv-hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  padding: 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.inv-hub-center strong {
  display: block;
  font-size: 0.85rem;
}

.inv-hub-center span {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.55);
}

.inv-hub-node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0.45rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.inv-hub-node--1 { top: 8%; left: 50%; }
.inv-hub-node--2 { top: 28%; left: 88%; }
.inv-hub-node--3 { top: 72%; left: 88%; }
.inv-hub-node--4 { top: 92%; left: 50%; }
.inv-hub-node--5 { top: 72%; left: 12%; }
.inv-hub-node--6 { top: 28%; left: 12%; }
.inv-hub-node--7 { top: 50%; left: 95%; }

.inv-transfer-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.inv-transfer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
}

.inv-transfer-row:last-child { border-bottom: none; }

/* ─── Low stock alerts ─── */
.inv-alerts {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.inv-alert {
  display: flex;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.inv-alert--urgent {
  border-color: rgba(177,18,38,0.25);
  background: rgba(177,18,38,0.04);
}

.inv-alert__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: rgba(177,18,38,0.1);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.inv-alert p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.inv-alert small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--red);
  margin-top: 0.35rem;
}

/* ─── Analytics charts ─── */
.inv-analytics {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .inv-analytics { grid-template-columns: 1.4fr 1fr; }
}

.inv-chart-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.inv-chart-panel h4 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.inv-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 120px;
}

.inv-bar {
  flex: 1;
  background: var(--red);
  border-radius: 6px 6px 0 0;
  animation: hp-bar-grow 1s var(--ease) backwards;
}

.inv-bar:nth-child(1) { height: 50%; animation-delay: 0.05s; }
.inv-bar:nth-child(2) { height: 65%; animation-delay: 0.1s; }
.inv-bar:nth-child(3) { height: 58%; animation-delay: 0.15s; }
.inv-bar:nth-child(4) { height: 78%; animation-delay: 0.2s; }
.inv-bar:nth-child(5) { height: 72%; animation-delay: 0.25s; }
.inv-bar:nth-child(6) { height: 85%; animation-delay: 0.3s; }

.inv-rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.inv-rank-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.inv-rank-row .track {
  flex: 1;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.inv-rank-row .fill {
  height: 100%;
  background: var(--red);
  border-radius: 999px;
}

.inv-features {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}

.inv-feat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

.inv-feat::before {
  content: '✓';
  color: var(--red);
  font-weight: 800;
  font-size: 0.7rem;
}

/* ─── Audit tools ─── */
.inv-audit-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.inv-audit-card {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.inv-audit-card__icon {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.inv-audit-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.inv-audit-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Mobile ─── */
.inv-mobile-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .inv-mobile-layout { grid-template-columns: 1fr 1fr; }
}

.inv-phones {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.inv-phone {
  width: 190px;
  background: var(--ink);
  border-radius: 26px;
  padding: 0.6rem;
  box-shadow: 0 24px 48px rgba(15,20,25,0.2);
}

.inv-phone--2 {
  width: 210px;
  transform: translateY(-16px);
}

.inv-phone__screen {
  background: #f8f9fb;
  border-radius: 20px;
  min-height: 340px;
  overflow: hidden;
}

.inv-phone__header {
  padding: 0.65rem 0.85rem;
  background: var(--ink);
  color: #fff;
}

.inv-phone__header strong {
  display: block;
  font-size: 0.72rem;
}

.inv-phone__header span {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.55);
}

.inv-phone__body { padding: 0.75rem; }

.inv-phone__row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
}

/* ─── Insights ─── */
.inv-insights {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.inv-insight {
  display: flex;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.inv-insight__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.inv-insight__dot--up { background: var(--success); }
.inv-insight__dot--warn { background: #b45309; }
.inv-insight__dot--info { background: var(--red); }

.inv-insight p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

/* ─── Benefits ─── */
.inv-benefits {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.inv-benefit {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s var(--ease);
}

.inv-benefit:hover { transform: translateY(-4px); }

.inv-benefit__icon {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.inv-benefit h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.inv-benefit p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Layout helpers ─── */
.inv-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.inv-band--warm {
  background: var(--page-muted);
}

.inv-final {
  background: var(--ink);
  color: #fff;
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
}

.inv-final .hp-h2 { color: #fff; }
.inv-final .hp-lede { color: rgba(255,255,255,0.7); }

.inv-final .mk-btn-xl--outline {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
