/* ═══════════════════════════════════════════════════════════════
   INVENTORY MOCKUPS — 5 maquettes pour la gestion d'inventaire projet
   Préfixés .inv1, .inv2, … pour isolation.
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 769px) {
  .app-container:has(#view-inventory-mockups.active) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .main-content:has(#view-inventory-mockups.active) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
  }
  .main-content > #view-inventory-mockups.active {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
}

.inv-mk-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #0b1020;
}

/* ── Nav (sélecteur de maquette) ── */
.inv-mk-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid #334155;
  color: #e2e8f0;
}
.inv-mk-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #475569;
  background: rgba(255,255,255,0.05);
  color: #cbd5e1;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}
.inv-mk-back:hover { background: rgba(255,255,255,0.1); color: #fff; }
.inv-mk-tabs { display: flex; gap: 0.35rem; flex: 1; justify-content: center; }
.inv-mk-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #334155;
  background: transparent;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
}
.inv-mk-tab:hover { background: rgba(99, 102, 241, 0.1); color: #e2e8f0; border-color: #6366f1; }
.inv-mk-tab.is-active {
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.inv-mk-tab__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  font-size: 0.7rem;
  font-weight: 700;
}
.inv-mk-tab.is-active .inv-mk-tab__num { background: rgba(255,255,255,0.3); }
.inv-mk-meta { font-size: 0.72rem; color: #64748b; font-family: 'SF Mono', monospace; }
.inv-mk-stage { flex: 1; min-height: 0; overflow: hidden; position: relative; }

@media (max-width: 768px) {
  .inv-mk-tabs { overflow-x: auto; flex: 1; justify-content: flex-start; }
  .inv-mk-tab { white-space: nowrap; flex-shrink: 0; }
  .inv-mk-meta { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 1 — PIPELINE KANBAN
   ═══════════════════════════════════════════════════════════════ */
.inv1 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  font-family: -apple-system, 'Inter', sans-serif;
  color: #0f172a;
  overflow: hidden;
}
.inv1__header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.inv1__crumb {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #64748b;
  font-weight: 600;
}
.inv1__header h1 { margin: 0.15rem 0 0; font-size: 1.15rem; font-weight: 700; }
.inv1__sub { font-size: 0.78rem; color: #64748b; margin-top: 0.15rem; }
.inv1__actions { display: flex; gap: 0.4rem; }
.inv1__btn {
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.inv1__btn:hover { background: #f8fafc; border-color: #94a3b8; }
.inv1__btn--primary { background: #10b981; color: #fff; border-color: #10b981; }
.inv1__btn--primary:hover { background: #059669; }

.inv1__summary {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
  padding: 0.85rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.inv1__sum {
  --c: #94a3b8;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--c);
  border-radius: 6px;
  background: #fafbfc;
}
.inv1__sum-h {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.inv1__sum-v { font-size: 1.35rem; font-weight: 700; color: var(--c); margin: 0.2rem 0 0.05rem; }
.inv1__sum-s { font-size: 0.7rem; color: #94a3b8; }
.inv1__sum--total { --c: #2563eb; }

.inv1__board {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
  padding: 0.85rem 1.25rem 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
}
.inv1__col {
  --c: #94a3b8;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--c);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 220px;
}
.inv1__col-h {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem 0.55rem;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 700;
}
.inv1__col-ic { font-size: 1.05rem; }
.inv1__col-l { flex: 1; font-size: 0.85rem; }
.inv1__col-c {
  background: var(--c);
  color: #fff;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}
.inv1__col-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scrollbar-width: thin;
}
.inv1__card {
  position: relative;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.6rem 0.65rem;
  cursor: pointer;
  transition: all 0.15s;
}
.inv1__card:hover {
  background: #fff;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15,23,42,0.08);
}
.inv1__card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
.inv1__card-img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: monospace;
}
.inv1__card-cat { font-size: 0.65rem; color: #64748b; }
.inv1__card-name {
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.inv1__card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}
.inv1__card-qty strong { color: #0f172a; font-weight: 700; }
.inv1__card-val { color: #2563eb; font-weight: 600; }
.inv1__card-actions {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  display: none;
  gap: 0.15rem;
}
.inv1__card:hover .inv1__card-actions { display: flex; }
.inv1__card-actions button {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  font-size: 0.75rem;
  color: #64748b;
}
.inv1__card-actions button:hover { background: #f1f5f9; color: #0f172a; }
.inv1__empty {
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: center;
  padding: 1rem 0;
  font-style: italic;
}
.inv1__add {
  width: 100%;
  padding: 0.45rem;
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  color: #64748b;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}
.inv1__add:hover { background: #fff; border-color: #94a3b8; color: #334155; }

@media (max-width: 1200px) {
  .inv1__summary { grid-template-columns: repeat(3, 1fr); }
  .inv1__board { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}
@media (max-width: 768px) {
  .inv1__summary { grid-template-columns: repeat(2, 1fr); }
  .inv1__board { grid-template-columns: 1fr; padding: 0.85rem 0.85rem 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 2 — TABLEAU ANALYTIQUE
   ═══════════════════════════════════════════════════════════════ */
.inv2 {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f3f4f6;
  font-family: -apple-system, 'Inter', sans-serif;
  color: #0f172a;
  overflow: hidden;
}
.inv2__top {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.inv2__crumb { font-size: 0.7rem; letter-spacing: 0.1em; color: #6b7280; font-weight: 600; }
.inv2__top h1 { margin: 0.15rem 0 0; font-size: 1.2rem; font-weight: 700; }
.inv2__top-actions { display: flex; gap: 0.4rem; }
.inv2__btn {
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}
.inv2__btn:hover { background: #f9fafb; }
.inv2__btn--primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.inv2__btn--primary:hover { background: #1d4ed8; }

.inv2__kpis {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 0.65rem;
  padding: 1rem 1.5rem;
}
.inv2__kpi {
  --c: #94a3b8;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  position: relative;
}
.inv2__kpi-l {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #6b7280;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.inv2__kpi-v {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0.25rem 0 0.1rem;
  color: var(--c);
}
.inv2__kpi--main .inv2__kpi-v { color: #2563eb; font-size: 1.9rem; }
.inv2__kpi-s { font-size: 0.72rem; color: #6b7280; }
.inv2__kpi-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 999px;
  margin-top: 0.4rem;
  overflow: hidden;
}
.inv2__kpi-bar span { display: block; height: 100%; }

.inv2__filters {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1.5rem 0.75rem;
}
.inv2__search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  flex: 1;
  max-width: 360px;
}
.inv2__search span { color: #9ca3af; }
.inv2__search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.88rem;
  background: transparent;
}
.inv2__chips { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.inv2__chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 0.78rem;
  cursor: pointer;
}
.inv2__chip:hover { background: #f9fafb; }
.inv2__chip.is-active { background: #0f172a; color: #fff; border-color: #0f172a; }

.inv2__table-wrap {
  flex: 1;
  overflow: auto;
  margin: 0 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.inv2__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.inv2__table thead th {
  position: sticky;
  top: 0;
  background: #fafbfc;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.6rem 0.65rem;
  text-align: left;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 1;
}
.inv2__th-status { text-align: center; }
.inv2__th-status span { font-weight: 600; }
.inv2__th-check { width: 36px; }
.inv2__table tbody td {
  padding: 0.6rem 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}
.inv2__table tbody tr { cursor: pointer; transition: background 0.1s; }
.inv2__table tbody tr:hover { background: #f9fafb; }
.inv2__product { display: flex; align-items: center; gap: 0.65rem; }
.inv2__product-img {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: monospace;
  flex-shrink: 0;
}
.inv2__product-name { font-weight: 600; line-height: 1.2; }
.inv2__product-sku { font-size: 0.7rem; color: #6b7280; font-family: monospace; margin-top: 0.1rem; }
.inv2__cat-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.72rem;
  font-weight: 500;
}
.inv2__td-status { text-align: center; }
.inv2__cell {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.82rem;
  min-width: 32px;
}
.inv2__cell-empty { color: #d1d5db; font-size: 1rem; }
.inv2__num { text-align: right; font-variant-numeric: tabular-nums; }
.inv2__val { color: #2563eb; }
.inv2__val-total { color: #2563eb; font-size: 0.95rem; }
.inv2__row-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  color: #6b7280;
}
.inv2__row-btn:hover { background: #f3f4f6; color: #0f172a; }
.inv2__table tfoot {
  position: sticky;
  bottom: 0;
  background: #fafbfc;
}
.inv2__table tfoot td {
  border-top: 2px solid #e5e7eb;
  font-size: 0.85rem;
  padding: 0.65rem;
}

@media (max-width: 1400px) {
  .inv2__kpis { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
  .inv2__kpis { grid-template-columns: 1fr; }
  .inv2__top { flex-direction: column; gap: 0.5rem; align-items: stretch; }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 3 — VUE PAR PRODUIT (Drill-down)
   ═══════════════════════════════════════════════════════════════ */
.inv3 {
  height: 100%;
  overflow-y: auto;
  background: #fafafa;
  font-family: -apple-system, 'Inter', sans-serif;
  color: #18181b;
}
.inv3__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e4e4e7;
  position: sticky;
  top: 0;
  z-index: 2;
}
.inv3__top h1 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.inv3__sub { font-size: 0.85rem; color: #71717a; margin-top: 0.1rem; }
.inv3__top-actions { display: flex; gap: 0.4rem; }
.inv3__btn {
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  border: 1px solid #d4d4d8;
  background: #fff;
  color: #18181b;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}
.inv3__btn--primary { background: #18181b; color: #fff; border-color: #18181b; }

.inv3__legend {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 0.65rem 1.5rem;
  background: #fafafa;
  border-bottom: 1px solid #e4e4e7;
  font-size: 0.78rem;
  color: #52525b;
}
.inv3__legend-item { display: flex; align-items: center; gap: 0.4rem; }
.inv3__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.inv3__list { padding: 1rem 1.5rem 3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.inv3__row {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.inv3__row[open] {
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  border-color: #a1a1aa;
}
.inv3__row-summary {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) 2fr auto 24px;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
}
.inv3__row-summary::-webkit-details-marker { display: none; }
.inv3__product { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.inv3__img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.inv3__product-info { min-width: 0; }
.inv3__product-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inv3__product-meta { font-size: 0.75rem; color: #71717a; font-family: monospace; margin-top: 0.1rem; }

.inv3__stack {
  display: flex;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #e4e4e7;
}
.inv3__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 18px;
  transition: filter 0.15s;
}
.inv3__seg:hover { filter: brightness(1.08); }

.inv3__totals { text-align: right; font-size: 0.88rem; }
.inv3__totals strong { display: block; font-weight: 700; font-size: 0.95rem; }
.inv3__val { color: #2563eb; font-weight: 600; font-size: 0.85rem; margin-top: 0.15rem; }

.inv3__caret { font-size: 0.85rem; color: #71717a; transition: transform 0.2s; }
.inv3__row[open] .inv3__caret { transform: rotate(180deg); }

.inv3__row-detail {
  background: #fafafa;
  border-top: 1px solid #e4e4e7;
  padding: 1rem;
}
.inv3__detail-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.inv3__detail-block {
  --c: #94a3b8;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-top: 3px solid var(--c);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
}
.inv3__detail-h {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  color: #52525b;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.inv3__detail-q {
  margin-left: auto;
  background: var(--c);
  color: #fff;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}
.inv3__detail-v { font-size: 0.95rem; font-weight: 700; color: #18181b; margin-bottom: 0.4rem; }
.inv3__detail-actions { display: flex; gap: 0.25rem; }
.inv3__detail-actions button {
  flex: 1;
  padding: 0.3rem;
  border-radius: 4px;
  border: 1px solid #d4d4d8;
  background: #fff;
  font-size: 0.72rem;
  cursor: pointer;
}
.inv3__detail-actions button:hover { background: #f4f4f5; }

.inv3__detail-history h4 {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #71717a;
  font-weight: 600;
}
.inv3__history-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0;
  font-size: 0.83rem;
}
.inv3__history-ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.inv3__history-meta { font-size: 0.72rem; color: #71717a; }

@media (max-width: 900px) {
  .inv3__row-summary { grid-template-columns: 1fr; gap: 0.55rem; }
  .inv3__stack { width: 100%; }
  .inv3__totals { text-align: left; }
  .inv3__detail-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 4 — CARTE CHANTIER
   ═══════════════════════════════════════════════════════════════ */
.inv4 {
  height: 100%;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #f3f4f6;
  font-family: -apple-system, 'Inter', sans-serif;
  color: #1f2937;
  overflow: hidden;
}
.inv4__sidebar {
  background: #fff;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
}
.inv4__sb-head {
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid #e5e7eb;
}
.inv4__sb-crumb {
  font-family: monospace;
  font-size: 0.72rem;
  color: #6366f1;
  letter-spacing: 0.05em;
}
.inv4__sb-head h1 { margin: 0.2rem 0 0; font-size: 1.02rem; font-weight: 700; line-height: 1.25; }

.inv4__sb-totals {
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #f9fafb, #fff);
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.inv4__sb-totals > div { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.82rem; }
.inv4__sb-totals span { color: #6b7280; }
.inv4__sb-totals strong { font-weight: 700; font-size: 0.95rem; color: #1f2937; }

.inv4__sb-section { padding: 0.85rem 0.8rem 0.65rem; border-bottom: 1px solid #f3f4f6; }
.inv4__sb-title {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.inv4__zones { display: flex; flex-direction: column; gap: 0.25rem; }
.inv4__zone {
  --c: #94a3b8;
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  font-size: 0.82rem;
}
.inv4__zone:hover { background: #f9fafb; border-color: var(--c); }
.inv4__zone-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.inv4__zone-count {
  background: var(--c);
  color: #fff;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.inv4__chk {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.4rem;
  font-size: 0.82rem;
  cursor: pointer;
}
.inv4__chk input { cursor: pointer; }
.inv4__chk:hover { background: #f9fafb; border-radius: 4px; }

.inv4__action {
  display: block;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.82rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  margin-top: 0.25rem;
}
.inv4__action:hover { background: #f9fafb; border-color: #94a3b8; }
.inv4__action--primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  text-align: center;
  font-weight: 600;
}
.inv4__action--primary:hover { background: #1d4ed8; }

.inv4__main {
  overflow-y: auto;
  padding: 1rem 1.25rem 1.5rem;
}
.inv4__plan {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.inv4__plan-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fafbfc;
  font-weight: 600;
  font-size: 0.9rem;
}
.inv4__plan-tools { display: flex; gap: 0.25rem; }
.inv4__plan-tools button {
  padding: 0.25rem 0.55rem;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}
.inv4__plan-tools .is-active { background: #2563eb; color: #fff; border-color: #2563eb; }
.inv4__svg { width: 100%; height: auto; display: block; padding: 0.6rem; }
.inv4__marker:hover circle { stroke: #2563eb; }

.inv4__items {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
}
.inv4__items-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.inv4__items-h h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.inv4__items-c { font-size: 0.78rem; color: #6b7280; }

.inv4__items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.65rem;
}
.inv4__item-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}
.inv4__item-card:hover {
  background: #fff;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15,23,42,0.08);
}
.inv4__item-h { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.55rem; }
.inv4__item-img {
  width: 32px; height: 32px;
  border-radius: 5px;
  color: #fff;
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inv4__item-name { font-weight: 600; font-size: 0.85rem; line-height: 1.25; }
.inv4__item-meta { font-size: 0.7rem; color: #6b7280; }
.inv4__item-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.inv4__item-stats > div {
  background: #fff;
  padding: 0.35rem 0.45rem;
  border-radius: 4px;
  text-align: center;
}
.inv4__item-stats span {
  display: block;
  font-size: 0.62rem;
  color: #6b7280;
  letter-spacing: 0.02em;
}
.inv4__item-stats strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

@media (max-width: 1100px) {
  .inv4 { grid-template-columns: 220px 1fr; }
}
@media (max-width: 768px) {
  .inv4 { grid-template-columns: 1fr; }
  .inv4__sidebar { max-height: 30vh; border-right: none; border-bottom: 1px solid #e5e7eb; }
}

/* ═══════════════════════════════════════════════════════════════
   MAQUETTE 5 — MOBILE / SCAN
   ═══════════════════════════════════════════════════════════════ */
.inv5 {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: #0f172a;
  font-family: -apple-system, 'Inter', sans-serif;
  overflow: auto;
  justify-content: center;
}
.inv5__phone {
  width: 100%;
  max-width: 420px;
  height: fit-content;
  background: #f8fafc;
  border-radius: 28px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 0 12px #1e293b, 0 0 0 14px #334155;
  overflow: hidden;
  margin: 0 auto;
}
.inv5__statusbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #fff;
}
.inv5__sb-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
.inv5__sb-title { flex: 1; text-align: center; min-width: 0; }
.inv5__sb-proj { font-family: monospace; font-size: 0.7rem; opacity: 0.8; }
.inv5__sb-name {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inv5__scan {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  text-align: center;
}
.inv5__scan-frame {
  position: relative;
  width: 80%;
  aspect-ratio: 1;
  margin: 0 auto;
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inv5__scan-corners span {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid #22d3ee;
}
.inv5__scan-corners span:nth-child(1) { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.inv5__scan-corners span:nth-child(2) { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.inv5__scan-corners span:nth-child(3) { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.inv5__scan-corners span:nth-child(4) { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.inv5__scan-line {
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
  box-shadow: 0 0 12px #22d3ee;
  animation: inv5-scan 2s ease-in-out infinite;
}
@keyframes inv5-scan {
  0%, 100% { transform: translateY(-60px); }
  50%      { transform: translateY(60px); }
}
.inv5__scan-icon { font-size: 2.5rem; opacity: 0.45; }
.inv5__scan-hint {
  font-size: 0.8rem;
  margin-top: 0.85rem;
  color: #94a3b8;
}
.inv5__scan-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.65rem;
}
.inv5__scan-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #475569;
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
  font-size: 0.78rem;
  cursor: pointer;
}
.inv5__scan-btn:hover { background: rgba(255,255,255,0.12); }

.inv5__card {
  background: #fff;
  margin: -0.85rem 0.85rem 0;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  overflow: hidden;
  position: relative;
}
.inv5__card-banner {
  padding: 0.85rem 1rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.inv5__card-personal-key {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.inv5__card-sku {
  font-size: 0.7rem;
  background: rgba(0,0,0,0.25);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.inv5__card-body { padding: 0.85rem 1rem 1rem; }
.inv5__card-name { margin: 0 0 0.15rem; font-size: 1rem; font-weight: 700; line-height: 1.25; }
.inv5__card-cat { font-size: 0.75rem; color: #6b7280; margin-bottom: 0.85rem; }

.inv5__bar {
  display: flex;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.65rem;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}
.inv5__bar-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 18px;
}
.inv5__totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.inv5__totals > div {
  background: #f9fafb;
  padding: 0.45rem;
  border-radius: 6px;
  text-align: center;
}
.inv5__totals span {
  display: block;
  font-size: 0.65rem;
  color: #6b7280;
}
.inv5__totals strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.inv5__qty-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.inv5__qty-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}
.inv5__qty-btn:hover { background: #f3f4f6; }
.inv5__qty-val {
  flex: 1;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0.55rem;
}

.inv5__quick-status {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.inv5__status-btn {
  --c: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.25rem;
  border-radius: 8px;
  border: 2px solid var(--c);
  background: #fff;
  color: var(--c);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.inv5__status-btn:hover, .inv5__status-btn:active {
  background: var(--c);
  color: #fff;
}
.inv5__status-ic { font-size: 1.2rem; }
.inv5__status-l { font-size: 0.62rem; font-weight: 600; text-align: center; line-height: 1.1; }

.inv5__main-cta {
  width: 100%;
  padding: 0.85rem;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16,185,129,0.4);
}
.inv5__main-cta:hover { background: #059669; }

.inv5__recent { padding: 0.85rem 1rem; background: #f8fafc; }
.inv5__recent-h {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.inv5__recent-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.55rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  font-size: 0.83rem;
}
.inv5__recent-row:last-child { border-bottom: none; }
.inv5__recent-row:hover { background: #f1f5f9; }
.inv5__recent-ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inv5__recent-meta { font-size: 0.72rem; color: #6b7280; }

.inv5__tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid #e5e7eb;
}
.inv5__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.4rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-family: inherit;
  cursor: pointer;
  font-size: 1.2rem;
}
.inv5__tab span { font-size: 0.65rem; font-weight: 600; }
.inv5__tab:hover { color: #2563eb; }
.inv5__tab.is-active { color: #2563eb; }
.inv5__tab.is-active span { color: #2563eb; }

.inv5__notes {
  background: #fff;
  padding: 1.25rem;
  border-radius: 12px;
  max-height: fit-content;
  position: sticky;
  top: 1rem;
  font-size: 0.88rem;
  color: #1f2937;
}
.inv5__notes h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.inv5__notes h3:not(:first-child) { margin-top: 1rem; }
.inv5__notes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.inv5__notes li {
  font-size: 0.83rem;
  color: #4b5563;
  padding-left: 1.5rem;
  position: relative;
}

@media (max-width: 1024px) {
  .inv5 { grid-template-columns: 1fr; }
  .inv5__notes { display: none; }
}
