
/* =====================================================================
   YEKFI v8.5.0 — INVENTORY CLOSED LOOP
   Purchase -> Ledger -> Stock -> Meal Consumption -> Reorder
   ===================================================================== */

body.yekfi-signature .nav-btn[data-view="stock"]{position:relative}
body.yekfi-signature .stock-nav-badge{
  position:absolute;top:3px;inset-inline-start:50%;transform:translateX(-18px);
  min-width:17px;height:17px;padding:0 4px;border-radius:99px;
  background:#B98728;color:#fff;font-size:8px;line-height:17px;text-align:center;
  box-shadow:0 2px 6px rgba(80,52,15,.22);z-index:3;
}
body.yekfi-signature .stock-nav-badge[hidden]{display:none!important}

body.yekfi-signature .purchase-confirm-head{
  display:flex;gap:12px;align-items:center;padding:13px;border-radius:17px;
  background:linear-gradient(145deg,#EEF2E7,#FBF6E9);border:1px solid var(--yi-line);margin-bottom:12px;
}
body.yekfi-signature .purchase-confirm-head>span{
  width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#31553A;color:#F5DF95;
}
body.yekfi-signature .purchase-confirm-head .ui-svg{width:22px;height:22px}
body.yekfi-signature .purchase-confirm-head small{display:block;font-size:9px;color:var(--yi-muted)}
body.yekfi-signature .purchase-confirm-head b{display:block;font-size:15px;color:var(--yi-deep);margin-top:2px}

body.yekfi-signature .purchase-plan-note{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px;
}
body.yekfi-signature .purchase-plan-note>span{
  padding:10px;border-radius:14px;background:#fff;border:1px solid var(--yi-line);
}
body.yekfi-signature .purchase-plan-note small{display:block;color:var(--yi-muted);font-size:8.5px}
body.yekfi-signature .purchase-plan-note b{display:block;color:var(--yi-deep);font-size:12px;margin-top:3px}

body.yekfi-signature .stock-food-row{
  grid-template-columns:46px minmax(0,1fr) auto!important;
}
body.yekfi-signature .stock-food-row.low{
  border-color:rgba(185,135,40,.34)!important;background:#FFFDF6!important;
}
body.yekfi-signature .stock-food-copy{
  border:0;background:transparent;text-align:right;min-width:0;padding:2px;
}
body.yekfi-signature .stock-food-state.soon{background:#F5E8C5;color:#805C1E}

body.yekfi-signature .stock-head-actions{display:flex;gap:5px;align-items:center}
body.yekfi-signature .stock-head-actions .sig-link{
  border:1px solid var(--yi-line);border-radius:99px;background:#fff;padding:6px 8px!important;font-size:8.5px!important;
}

body.yekfi-signature .stock-movement-actions{
  display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px;
}
body.yekfi-signature .stock-movement-actions button{
  min-height:40px;border:1px solid var(--yi-line);border-radius:12px;background:#fff;
  color:var(--yi-deep);font-size:9px;font-weight:800;
}
body.yekfi-signature .stock-movement-actions button:first-child{color:#8A4F32}

body.yekfi-signature .purchase-history-list,
body.yekfi-signature .inventory-ledger-list{display:grid;gap:7px}
body.yekfi-signature .purchase-history-row,
body.yekfi-signature .ledger-row{
  display:flex;justify-content:space-between;gap:10px;align-items:center;
  padding:10px 11px;border:1px solid var(--yi-line);border-radius:14px;background:#fff;
}
body.yekfi-signature .purchase-history-row b,
body.yekfi-signature .ledger-row b{display:block;color:var(--yi-ink);font-size:11.5px}
body.yekfi-signature .purchase-history-row small,
body.yekfi-signature .ledger-row small{display:block;color:var(--yi-muted);font-size:8.6px;margin-top:2px;line-height:1.35}
body.yekfi-signature .purchase-history-row strong{color:var(--yi-deep);font-size:11px}
body.yekfi-signature .ledger-row strong{font-size:10px;color:var(--yi-deep);white-space:nowrap}
body.yekfi-signature .ledger-row.consume strong,
body.yekfi-signature .ledger-row.waste strong,
body.yekfi-signature .ledger-row.return strong{color:#8A4F32}
body.yekfi-signature .ledger-row.purchase strong{color:#2F6940}

@media(max-width:380px){
  body.yekfi-signature .stock-movement-actions{grid-template-columns:1fr}
}
