.inv-body{ background: var(--bg-alt); }
.inv-main{ max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }

.inv-badge{
  display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600;
  background: #fff; border: 1px solid var(--border); padding: .45rem .9rem; border-radius: 999px; color: var(--text-dim);
}
.dot{ display:inline-block; width:7px; height:7px; border-radius:50%; }
.dot--live{ background: #16a34a; box-shadow: 0 0 6px #16a34a; }

/* ===== HEAD ===== */
.inv-head{ display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.inv-head h1{ font-size: 1.9rem; margin-top: .3rem; }
.inv-head p{ color: var(--text-dim); margin-top: .4rem; max-width: 480px; }

/* ===== FLOW DIAGRAM ===== */
.flow{
  display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem; margin-bottom: 2rem; overflow-x: auto;
}
.flow__node{
  flex: 1; min-width: 160px; text-align: center; background: var(--bg-alt); border-radius: 12px;
  padding: 1.2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
.flow__icon{ font-size: 1.8rem; }
.flow__node h3{ font-size: .92rem; margin-top: .2rem; }
.flow__node p{ font-size: .75rem; color: var(--text-dim); }
.flow__status{ font-size: .72rem; font-weight: 700; margin-top: .3rem; }
.flow__status--ok{ color: #16a34a; }
.flow__arrow{ flex-shrink: 0; text-align: center; color: var(--blue); font-weight: 700; }
.flow__arrow span{ font-size: 1.3rem; display: block; }
.flow__arrow small{ color: var(--text-dim); font-weight: 500; font-size: .68rem; }

/* ===== STATS ===== */
.inv-stats{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2.2rem; }
.stat-card{
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem;
}
.stat-card__label{ font-size: .78rem; color: var(--text-dim); font-weight: 600; }
.stat-card__value{ font-size: 1.8rem; font-weight: 800; margin-top: .3rem; color: var(--text); }
.stat-card__value--blue{ color: var(--blue); }
.stat-card__value--red{ color: #dc2626; }

/* ===== TRANSFER ===== */
.transfer-card{
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem;
  margin-bottom: 2.5rem;
}
.transfer-card h2{ font-size: 1.2rem; margin-bottom: .4rem; }
.transfer-hint{ color: var(--text-dim); font-size: .85rem; margin-bottom: 1.4rem; max-width: 640px; }
.transfer-form{ display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.field{ display: flex; flex-direction: column; gap: .35rem; min-width: 180px; flex: 1; }
.field--qty{ min-width: 100px; flex: 0 0 110px; }
.field label{ font-size: .78rem; font-weight: 600; color: var(--text-dim); }
.field select, .field input{
  padding: .65rem .8rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-alt);
  font-size: .88rem; color: var(--text);
}
.field select:focus, .field input:focus{ outline: none; border-color: var(--blue); background: #fff; }
.transfer-msg{ margin-top: 1rem; font-size: .85rem; font-weight: 600; min-height: 1.2em; }
.transfer-msg.ok{ color: #16a34a; }
.transfer-msg.error{ color: #dc2626; }

/* ===== TABLE SECTIONS ===== */
.inv-table-section{ margin-bottom: 2.5rem; }
.inv-search{
  padding: .6rem 1rem; border-radius: 10px; border: 1px solid var(--border); background: #fff;
  font-size: .85rem; min-width: 220px;
}
.inv-search:focus{ outline: none; border-color: var(--blue); }
.table-wrap{
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto;
}
.inv-table{ width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 640px; }
.inv-table thead{ background: var(--bg-alt); }
.inv-table th{ text-align: left; padding: .85rem 1rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.inv-table td{ padding: .85rem 1rem; border-top: 1px solid var(--border); }
.inv-table tbody tr:hover{ background: var(--bg-alt); }
.sku{ font-family: monospace; color: var(--text-dim); font-size: .8rem; }
.stock-num{ font-weight: 700; }
.stock-low{ color: #dc2626; }
.status-pill{ font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.status-pill--ok{ background: #dcfce7; color: #16a34a; }
.status-pill--low{ background: #fee2e2; color: #dc2626; }
.log-empty{ text-align: center; color: var(--text-dim); padding: 1.5rem; }
.log-from{ color: var(--text-dim); }
.log-to{ color: var(--blue); font-weight: 600; }

@media (max-width: 900px){
  .inv-stats{ grid-template-columns: repeat(2, 1fr); }
  .flow{ flex-direction: column; }
  .flow__arrow span{ transform: rotate(90deg); }
}
@media (max-width: 560px){
  .inv-stats{ grid-template-columns: 1fr; }
}
