/* תוספות של אלמנט: מסך המלאי בקטגוריות ומשבצות, מונה תקרה, הצעת מחיר להדפסה */
a.kpi { color: inherit; text-decoration: none; }

/* קטגוריות */
.inv-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.inv-cats[hidden] { display: none; }
.inv-cat { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 12px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; color: var(--text); text-decoration: none; }
.inv-cat__img { display: block; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); margin-bottom: 8px; }
.inv-cat__img { position: relative; overflow: hidden; }
.inv-cat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.inv-cat b { padding: 0 12px; font-size: 16px; line-height: 1.3; }
.inv-cat small { padding: 0 12px; color: var(--muted); font-size: 13.5px; }
.inv-badge { position: absolute; top: 8px; inset-inline-start: 8px; font-style: normal; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--c-red); color: #fff; }
.inv-cats--small .inv-cat__img { aspect-ratio: 16 / 9; }

/* משבצות מוצרים */
.inv-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.inv-tile { display: flex; flex-direction: column; gap: 4px; padding: 0 0 10px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c-green); box-shadow: var(--shadow); overflow: hidden; color: var(--text); text-decoration: none; }
.inv-tile.inv-out { border-top-color: var(--c-red); }
.inv-tile.inv-soon { border-top-color: var(--c-yellow); }
.inv-tile.inv-off { border-top-color: var(--line); opacity: .75; }
.inv-tile__img { display: grid; place-items: center; aspect-ratio: 1; background: #fff; }
.inv-tile__img { position: relative; overflow: hidden; }
.inv-tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.inv-tile__img i { font-style: normal; font-size: 34px; font-weight: 800; color: var(--muted); }
.inv-tile__name { padding: 0 10px; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.inv-tile__num { display: flex; align-items: baseline; gap: 6px; padding: 0 10px; }
.inv-tile__num strong { font-size: 26px; font-weight: 800; line-height: 1; }
.inv-tile__num small { color: var(--muted); font-size: 13px; }
.inv-out .inv-tile__num strong { color: var(--c-red); }
.inv-tile__more { padding: 0 10px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
@media (min-width: 700px) { .inv-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .inv-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* מספרים בדף מוצר ולקוח */
.inv-detail { margin-top: 14px; }
.inv-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; margin-bottom: 10px; }
.inv-nums div { padding: 10px 4px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.inv-nums div.main { background: var(--accent); color: var(--on-accent); }
.inv-nums b { display: block; font-size: 20px; font-weight: 800; }
.inv-nums small { font-size: 12.5px; opacity: .8; }
.kit-can { display: inline-block; min-width: 44px; text-align: center; font-size: 22px; font-weight: 800; color: var(--c-green); }
.kit-can.zero { color: var(--c-red); }

/* מונה תקרת עוסק פטור */
.meter { height: 14px; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; margin: 6px 0 10px; }
.meter span { display: block; height: 100%; border-radius: 999px; background: var(--c-green); }
.meter--yellow span { background: var(--c-yellow); }
.meter--red span { background: var(--c-red); }

.item.is-sent { opacity: .6; }
.hol-count h3 { margin-top: 0; }
.ro-sup h3 { margin-top: 0; }
.ro-sup .stepper input { width: 64px; }

/* הצעת מחיר להדפסה */
.qp { background: #fff; color: #222; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 22px; display: grid; gap: 14px; }
.qp__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--accent); padding-bottom: 14px; }
.qp__head img { height: 70px; width: auto; }
.qp__head h1 { margin: 0; font-size: 28px; color: var(--accent); }
.qp__head p { margin: 2px 0 0; color: #666; }
.qp h2 { margin: 0; font-size: 22px; }
.qp__to { margin: 0; font-size: 17px; }
.qp__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qp__item { display: grid; gap: 6px; text-align: center; font-size: 14px; }
.qp__item img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #faf7f6; border-radius: 10px; }
.qp__sum { display: grid; gap: 6px; border-top: 1px solid #ddd; padding-top: 12px; }
.qp__sum div { display: flex; justify-content: space-between; font-size: 17px; }
.qp__sum .tot { font-size: 22px; font-weight: 800; color: var(--accent); }
.qp__note { margin: 0; color: #555; font-size: 15px; }
.qp__foot { text-align: center; color: #777; font-size: 14px; border-top: 1px solid #eee; padding-top: 12px; }
@media print {
  .no-print, .nav, .toast, .fab { display: none !important; }
  body, .app { background: #fff !important; padding: 0 !important; }
  .qp { border: 0; padding: 0; }
}
