
/* V437Y - Inventory Intelligence */
.v437y-inventory-health,
.v437y-action-center,
.v437y-charts,
.v437y-forecast{
  margin-bottom:12px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--card);
}
.v437y-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:11px;
}
.v437y-section-head>div>span{
  display:block;
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  color:var(--muted-foreground);
}
.v437y-section-head h2,
.v437y-section-head h3{
  margin:3px 0 0;
  font-size:13px;
}
.v437y-section-head>small{
  max-width:420px;
  text-align:right;
  font-size:8.5px;
  color:var(--muted-foreground);
}
.v437y-health-kpis{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.v437y-health-kpis article,
.v437y-action-grid article{
  min-height:94px;
  padding:11px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--background);
}
.v437y-health-kpis span,
.v437y-action-grid span{
  display:block;
  font-size:8px;
  font-weight:750;
  color:var(--muted-foreground);
}
.v437y-health-kpis b,
.v437y-action-grid b{
  display:block;
  margin-top:6px;
  font-size:18px;
  line-height:1.05;
  font-variant-numeric:tabular-nums;
}
.v437y-health-kpis small,
.v437y-action-grid small{
  display:block;
  margin-top:6px;
  font-size:7.5px;
  line-height:1.35;
  color:var(--muted-foreground);
}
.v437y-action-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.v437y-action-grid article{
  position:relative;
  overflow:hidden;
}
.v437y-action-grid article:after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:3px;
}
.v437y-action-grid .danger:after{background:#dc2626}
.v437y-action-grid .warning:after{background:#f59e0b}
.v437y-action-grid .slow:after{background:#64748b}
.v437y-action-grid .high:after{background:#7c3aed}
.v437y-action-grid .audit:after{background:#2563eb}

.v437y-chart-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.v437y-chart-card{
  min-width:0;
  padding:11px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--background);
}
.v437y-chart-card.wide{
  grid-column:1/-1;
}
.v437y-chart-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:5px;
}
.v437y-chart-head h4{
  margin:0;
  font-size:10.5px;
}
.v437y-chart-head small{
  font-size:7.8px;
  color:var(--muted-foreground);
}

.v437y-forecast-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.v437y-forecast-grid>article{
  min-width:0;
  padding:11px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--background);
}
.v437y-forecast-grid h4{
  margin:0 0 8px;
  font-size:10.5px;
}
.v437y-forecast-list{
  display:flex;
  flex-direction:column;
}
.v437y-forecast-list>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:44px;
  padding:7px 0;
  border-bottom:1px solid var(--border);
}
.v437y-forecast-list>div:last-child{
  border-bottom:0;
}
.v437y-forecast-list>div>div{
  min-width:0;
}
.v437y-forecast-list strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:8.8px;
}
.v437y-forecast-list small{
  display:block;
  margin-top:2px;
  font-size:7.4px;
  color:var(--muted-foreground);
}
.v437y-forecast-list b{
  flex:none;
  font-size:9px;
  font-variant-numeric:tabular-nums;
}
.v437y-empty{
  margin:0;
  padding:12px 0;
  font-size:8.5px;
  color:var(--muted-foreground);
}

@media(max-width:1100px){
  .v437y-health-kpis,
  .v437y-action-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .v437y-inventory-health,
  .v437y-action-center,
  .v437y-charts,
  .v437y-forecast{
    margin-bottom:9px;
    padding:10px;
    border-radius:10px;
  }
  .v437y-section-head{
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    margin-bottom:8px;
  }
  .v437y-section-head>small{
    text-align:left;
    font-size:7.5px;
  }
  .v437y-section-head h2,
  .v437y-section-head h3{
    font-size:11px;
  }
  .v437y-health-kpis,
  .v437y-action-grid{
    grid-template-columns:1fr 1fr;
    gap:6px;
  }
  .v437y-health-kpis article,
  .v437y-action-grid article{
    min-height:84px;
    padding:9px;
  }
  .v437y-health-kpis article:last-child:nth-child(odd),
  .v437y-action-grid article:last-child:nth-child(odd){
    grid-column:1/-1;
  }
  .v437y-health-kpis b,
  .v437y-action-grid b{
    font-size:15px;
  }
  .v437y-chart-grid,
  .v437y-forecast-grid{
    grid-template-columns:1fr;
    gap:7px;
  }
  .v437y-chart-card.wide{
    grid-column:auto;
  }
  .v437y-chart-card{
    padding:8px;
  }
  .v437y-chart-head h4{font-size:9.5px}
  .v437y-chart-head small{font-size:7px}
  .v437y-chart-card .recharts-responsive-container{
    height:215px!important;
    min-height:215px!important;
  }
  .v437y-forecast-grid>article{
    padding:9px;
  }
}
@media(max-width:390px){
  .v437y-health-kpis,
  .v437y-action-grid{
    grid-template-columns:1fr;
  }
  .v437y-health-kpis article:last-child:nth-child(odd),
  .v437y-action-grid article:last-child:nth-child(odd){
    grid-column:auto;
  }
}
