:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17241d;background:#f5f2e9}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input{font:inherit}header{background:#12372a;color:white;padding:calc(18px + env(safe-area-inset-top)) 18px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}header small{letter-spacing:.14em;opacity:.7;font-weight:700}h1{margin:3px 0 0;font-size:28px}main{max-width:780px;margin:auto;padding:16px}.primary,.secondary{border:0;border-radius:12px;padding:12px 16px;font-weight:750}.primary{background:#e9b949;color:#1b2c22}.secondary{background:#e5ebe6;color:#173a2b}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:22px}.summary div{background:white;border-radius:16px;padding:14px 9px;text-align:center;box-shadow:0 2px 12px #1835280d}.summary strong{font-size:29px;display:block}.summary span{display:block;font-size:12px;color:#68746d}.summary .warn strong{color:#bb6b00}.summary .bad strong{color:#b42e2e}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px}.toolbar h2{margin:0}.items{display:grid;gap:10px}.item{background:white;border-radius:16px;padding:13px;display:grid;grid-template-columns:58px 1fr;gap:12px;border-left:6px solid #4b8b69;box-shadow:0 2px 10px #1835280d}.item.soon{border-color:#e29422}.item.expired{border-color:#ca3d3d}.photo{width:58px;height:58px;border-radius:10px;background:#edf0ed;object-fit:contain}.item h3{margin:0 0 4px;font-size:17px}.meta{color:#68746d;font-size:14px}.status{font-weight:800;margin-top:5px}.soon .status{color:#b86700}.expired .status{color:#b42e2e}.actions{grid-column:1/-1;display:flex;gap:8px}.actions button{flex:1;border:0;border-radius:10px;padding:10px;font-weight:700}.consume{background:#d8eddf;color:#17452c}.delete{background:#f2e4e2;color:#8d2929;max-width:92px}.empty{text-align:center;padding:65px 10px;color:#68746d}.empty div{font-size:52px}.empty h2{color:#263a2e;margin-bottom:5px}.modal{position:fixed;inset:0;background:#0c1b15aa;z-index:10;display:flex;align-items:flex-end;justify-content:center}.hidden{display:none!important}.sheet{background:#f9f7f1;width:100%;max-width:640px;max-height:94vh;overflow:auto;border-radius:22px 22px 0 0;padding:18px 18px calc(20px + env(safe-area-inset-bottom))}.sheet-head{display:flex;align-items:center;justify-content:space-between}.sheet-head h2{margin:0 0 15px}.close{border:0;background:#e8ebe8;border-radius:50%;width:38px;height:38px;font-size:28px;line-height:30px}label{display:block;font-weight:700;margin:13px 0 0}input{width:100%;border:1px solid #ccd4ce;border-radius:12px;padding:13px;margin-top:6px;background:white;font-size:17px}.row{display:grid;grid-template-columns:2fr 1fr;gap:10px}.full{width:100%;margin-top:10px}.big{padding:15px;margin-top:20px}.lookup{min-height:20px;margin-top:8px;color:#53645a}.lookup.error{color:#a62e2e}#reader{overflow:hidden;border-radius:14px;background:#111}#scanHint{text-align:center}.toast{position:fixed;left:18px;right:18px;bottom:calc(20px + env(safe-area-inset-bottom));z-index:30;background:#163c2d;color:#fff;padding:14px;border-radius:12px;text-align:center;font-weight:700}@media(min-width:700px){.modal{align-items:center}.sheet{border-radius:22px}.summary div{padding:18px}.items{grid-template-columns:1fr 1fr}}

/* Výrazný počet kusov pri názve výrobku */
.item-quantity {
  display: inline-block;
  margin-left: 14px;
  color: #16a34a;
  font-size: 1.35em;
  font-weight: 800;
  white-space: nowrap;
}
