/* MPDIRECTOR — stocks / Ozon FBO cluster cards alignment.
 * Isolated to the stocks page, does not affect supply planner or WB.
 * All clusters reserve the same space for inbound status, even if empty.
 */
#dashboard #stocksSection .stocks-product-card {
  display:grid!important;
  grid-template-columns:minmax(250px,310px) minmax(0,1fr)!important;
  gap:18px!important;
  align-items:start!important;
  padding:18px!important;
  border:1px solid #dfe7f2!important;
  border-radius:16px!important;
}
#dashboard #stocksSection .stocks-product-side {
  min-width:0!important;
  padding:0 18px 0 0!important;
  border-right:1px solid #e3eaf3!important;
  border-bottom:0!important;
}
#dashboard #stocksSection .stocks-product {
  min-width:0!important;
  display:flex!important;
  gap:11px!important;
  align-items:center!important;
  padding-bottom:13px!important;
  border-bottom:1px solid #e7edf5!important;
}
#dashboard #stocksSection .stocks-product-info {
  min-width:0!important;
  overflow:hidden!important;
}
#dashboard #stocksSection .stocks-product-info strong {
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  font-size:13px!important;
  line-height:1.4!important;
  color:#17334f!important;
}
#dashboard #stocksSection .stocks-product-info small {
  color:#667e9c!important;
  font-size:11px!important;
}
#dashboard #stocksSection .stocks-product-metrics {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  align-items:start!important;
  gap:13px 15px!important;
  margin:14px 0 0!important;
  padding:0!important;
  border:0!important;
}
#dashboard #stocksSection .stocks-product-metrics > div{
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
#dashboard #stocksSection .stocks-product-metrics > div span {
  font-size:11px!important;
  color:#5f7490!important;
  line-height:1.3!important;
}
#dashboard #stocksSection .stocks-product-metrics > div > b,
#dashboard #stocksSection .stocks-product-metrics > div > strong {
  font-size:22px!important;
  color:#183451!important;
  line-height:1.25!important;
}
#dashboard #stocksSection .stocks-product-metrics .stocks-total-recommendation {
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:5px!important;
  margin:13px 0 0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
}
#dashboard #stocksSection .stocks-product-metrics .stocks-cluster-count {
  text-align:left!important;
  justify-self:stretch!important;
}
#dashboard #stocksSection .stocks-active-supplies {
  margin-top:17px!important;
  padding:12px!important;
  border:1px solid #d4e4f7!important;
  border-radius:11px!important;
  background:#f6faff!important;
  min-width:0!important;
}
#dashboard #stocksSection .stocks-active-supplies-title {
  color:#294c72!important;
  font-size:12px!important;
  font-weight:800!important;
  margin:0 0 8px!important;
}
#dashboard #stocksSection .stocks-active-supply {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:7px!important;
  align-items:start!important;
  padding:10px 0!important;
  min-width:0!important;
}
#dashboard #stocksSection .stocks-active-supply>div {
  min-width:0!important;
  overflow-wrap:anywhere!important;
}
#dashboard #stocksSection .stocks-active-supply strong {
  color:#1b3656!important;
  font-size:12px!important;
  line-height:1.4!important;
}
#dashboard #stocksSection .stocks-active-supply small {
  color:#416488!important;
  font-size:11px!important;
  line-height:1.4!important;
}
#dashboard #stocksSection .stocks-active-supply .stocks-supply-status {
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  width:fit-content!important;
  max-width:100%!important;
  justify-self:start!important;
  padding:5px 9px!important;
  margin:0!important;
  border-radius:7px!important;
  font-size:10px!important;
  line-height:1.3!important;
  font-weight:750!important;
  color:#315c8d!important;
  background:#e6f1ff!important;
  text-align:left!important;
}
#dashboard #stocksSection .stocks-product-clusters {
  min-width:0!important;
  padding-top:0!important;
}
#dashboard #stocksSection .stocks-clusters-grid {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:9px!important;
  align-items:stretch!important;
}
#dashboard #stocksSection .stocks-cluster-item {
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-rows:24px 5px 15px 93px 22px 30px!important;
  align-content:start!important;
  gap:6px!important;
  min-width:0!important;
  min-height:224px!important;
  padding:12px 11px!important;
  border-radius:12px!important;
}
#dashboard #stocksSection .stocks-cluster-top {
  display:flex!important;
  min-width:0!important;
  min-height:0!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:6px!important;
}
#dashboard #stocksSection .stocks-cluster-top>span {
  font-size:11px!important;
  color:#426384!important;
  font-weight:700!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  min-width:0!important;
  overflow:hidden!important;
}
#dashboard #stocksSection .stocks-cluster-top>strong {
  color:#142f4d!important;
  font-size:17px!important;
  font-weight:850!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
#dashboard #stocksSection .stocks-cluster-bar {
  height:5px!important;
  margin:0!important;
}
#dashboard #stocksSection .stocks-cluster-item>small {
  display:block!important;
  font-size:10px!important;
  color:#587493!important;
  line-height:1.3!important;
  margin:0!important;
}
#dashboard #stocksSection .stocks-cluster-incoming-slot {
  display:block!important;
  min-width:0!important;
  min-height:0!important;
  max-height:93px!important;
  height:93px!important;
  padding:0!important;
  margin:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#bbd5ef transparent;
}
#dashboard #stocksSection .stocks-cluster-incoming {
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
  max-height:none!important;
  padding:8px 9px!important;
  margin:0!important;
  background:rgba(255,255,255,.78)!important;
  border:1px solid #bcd9f6!important;
  border-radius:8px!important;
  overflow:visible!important;
}
#dashboard #stocksSection .stocks-cluster-incoming-total {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:5px 7px!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
}
#dashboard #stocksSection .stocks-cluster-incoming-total > span:first-child {
  grid-column:1!important;
  grid-row:1!important;
  color:#386a9e!important;
  font-size:10px!important;
  line-height:1.3!important;
}
#dashboard #stocksSection .stocks-cluster-incoming-total > strong {
  grid-column:2!important;
  grid-row:1!important;
  justify-self:end!important;
  white-space:nowrap!important;
  font-size:12px!important;
  line-height:1.3!important;
  font-weight:850!important;
  color:#175fa5!important;
}
#dashboard #stocksSection .stocks-cluster-incoming-state {
  grid-column:1/-1!important;
  grid-row:2!important;
  width:max-content!important;
  max-width:100%!important;
  justify-self:start!important;
  display:block!important;
  white-space:nowrap!important;
  text-align:left!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  padding:4px 6px!important;
  font-size:10px!important;
  line-height:1.3!important;
  color:#295e96!important;
  background:#e9f4ff!important;
  border:1px solid #bdd7f1!important;
  border-radius:6px!important;
}
#dashboard #stocksSection .stocks-cluster-incoming-row {
  margin:3px 0 0!important;
  padding:5px 0 0!important;
  min-width:0!important;
}
#dashboard #stocksSection .stocks-cluster-incoming-dates > span {
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:3px 7px!important;
  font-size:10px!important;
}
#dashboard #stocksSection .stocks-cluster-incoming-dates > span > b {
  color:#466a92!important;
  font-size:10px!important;
}
#dashboard #stocksSection .stocks-cluster-incoming-dates > span > strong{
  color:#215e9f!important;
  font-size:10px!important;
}
#dashboard #stocksSection .stocks-cluster-last-sale {
  font-size:10px!important;
  line-height:1.35!important;
  color:#667f9e!important;
  margin-top:4px!important;
}
#dashboard #stocksSection .stocks-cluster-sales {
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  min-width:0!important;
  white-space:nowrap!important;
  gap:5px!important;
  min-height:0!important;
  margin:0!important;
  padding-top:5px!important;
  border-top:1px solid #dce6f1!important;
  font-size:10px!important;
  line-height:1.25!important;
  color:#5b7491!important;
}
#dashboard #stocksSection .stocks-cluster-sales>b{
  font-size:10px!important;
  font-weight:800!important;
  color:#385a7e!important;
}
#dashboard #stocksSection .stocks-supply-recommendation {
  min-width:0!important;
  min-height:30px!important;
  margin:0!important;
  padding:6px 8px!important;
  align-self:end!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:5px!important;
  border-radius:7px!important;
}
#dashboard #stocksSection .stocks-supply-recommendation span{
  font-size:10px!important;
  font-weight:800!important;
  color:#167b3b!important;
}
#dashboard #stocksSection .stocks-supply-recommendation strong{
  color:#0d8348!important;
  font-size:12px!important;
  white-space:nowrap!important;
}
#dashboard #stocksSection .stocks-supply-recommendation.need span,
#dashboard #stocksSection .stocks-supply-recommendation.need strong{
  color:#b35e25!important;
}
@media(max-width:1380px){
  #dashboard #stocksSection .stocks-product-card {
    grid-template-columns:minmax(235px,280px) minmax(0,1fr)!important;
    gap:15px!important;
  }
  #dashboard #stocksSection .stocks-clusters-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:1050px){
  #dashboard #stocksSection .stocks-product-card{
    grid-template-columns:minmax(0,1fr)!important;
  }
  #dashboard #stocksSection .stocks-product-side {
    padding:0 0 14px!important;
    border-right:0!important;
    border-bottom:1px solid #e4ebf4!important;
  }
  #dashboard #stocksSection .stocks-clusters-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:700px){
  #dashboard #stocksSection .stocks-clusters-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #dashboard #stocksSection .stocks-product-card{padding:12px!important}
  #dashboard #stocksSection .stocks-cluster-item{padding:10px 8px!important}
}
@media(max-width:420px){
  #dashboard #stocksSection .stocks-clusters-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  #dashboard #stocksSection .stocks-active-supply .stocks-supply-status{
    -webkit-line-clamp:3!important;
  }
}
