/* Kellerinventar – Packpapier-Etiketten als Erkennungszeichen */
.inv-body { margin-top: 4px; }
@media (min-width: 900px) { .topbar .status-pill { display: none; } }

.chip-count { font-size: .75rem; opacity: .65; font-weight: 700; }

/* Kisten-Etikett */
.box-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.box-link { text-decoration: none; color: inherit; display: block; border-radius: 10px; }
.kraft {
  --crate: var(--kraft);
  position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 132px; padding: 14px 14px 12px 16px;
  border-radius: 6px 10px 10px 6px; color: #3d2c12;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 2px, transparent 2px 7px),
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.25), transparent 60%),
    #e2c89c;
  box-shadow: inset 6px 0 0 var(--crate), 0 1px 0 rgba(61,44,18,.15), 0 4px 10px rgba(61,44,18,.08);
}
.box-link:hover .kraft { box-shadow: inset 6px 0 0 var(--crate), 0 0 0 2px var(--accent), 0 4px 10px rgba(61,44,18,.12); }
.kraft-hole { position: absolute; top: 12px; right: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.kraft-code {
  font-family: var(--font-stencil); font-stretch: condensed; font-weight: 800; font-size: 2.6rem; line-height: .95; letter-spacing: -.01em;
  color: #2b1e0a; font-variant-numeric: tabular-nums;
}
.kraft-name { font-weight: 700; font-size: .98rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kraft-meta { font-size: .78rem; opacity: .75; margin-top: auto; padding-top: 6px; border-top: 1px dashed rgba(61,44,18,.3); }
.kraft.big { min-height: 0; padding: 18px 20px 16px 24px; box-shadow: inset 8px 0 0 var(--crate), 0 4px 14px rgba(61,44,18,.1); }
.kraft.big .kraft-code { font-size: 4.2rem; }
.kraft.big .kraft-name { font-size: 1.25rem; -webkit-line-clamp: 3; }
.kraft.big .kraft-hole { width: 16px; height: 16px; top: 16px; right: 16px; }
:root[data-theme="dark"] .kraft, :root:not([data-theme="light"]) .kraft { color: #3d2c12; }

.mini-kraft {
  --crate: var(--kraft);
  display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 6px; border-radius: 6px; flex: none;
  background: #e2c89c; color: #2b1e0a; box-shadow: inset 4px 0 0 var(--crate);
  font-family: var(--font-stencil); font-stretch: condensed; font-weight: 800; font-size: 1.3rem;
}

.box-head { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 700px) { .box-head { grid-template-columns: minmax(260px, 380px) 1fr; align-items: start; } }
.box-facts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.box-note { white-space: pre-line; margin: 0; color: var(--muted); }

/* Fotos */
.photo-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.photo {
  position: relative; flex: none; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; border: 0; padding: 0;
  background: var(--surface-2); cursor: pointer;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--primary);
  border: 1.5px dashed var(--line); background: var(--surface); font-size: .8rem; font-weight: 650; }
.photo.add .icon { width: 26px; height: 26px; }
.photo-badge { position: absolute; right: 4px; bottom: 4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.55); color: #fff; }
.photo-badge .icon { width: 14px; height: 14px; }

/* Schnellerfassung */
.quick-add {
  display: flex; gap: 12px; padding: 12px; margin-bottom: 12px; border-radius: var(--radius);
  background: var(--surface); border: 1.5px solid var(--accent);
}
.quick-cam {
  flex: none; width: 76px; height: 76px; border-radius: 12px; border: 1.5px dashed var(--line); background: var(--surface-2);
  display: grid; place-items: center; color: var(--primary); cursor: pointer; overflow: hidden; padding: 0;
}
.quick-cam .icon { width: 30px; height: 30px; }
.quick-cam.has-photo { border-style: solid; border-color: var(--accent); }
.quick-cam img { width: 100%; height: 100%; object-fit: cover; }
.quick-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.quick-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.quick-row .btn { flex: 1; }
.qty { color: var(--muted); font-weight: 600; }

/* Gegenstand */
.item-where { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 18px; }
.where-box {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; flex: 1 1 260px;
}
a.where-box:hover { border-color: var(--accent); }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; }
.facts dd.pre { white-space: pre-line; }
.qty-inline { display: inline-flex; align-items: center; gap: 4px; }
.qty-inline strong { min-width: 32px; text-align: center; font-size: 1.15rem; }
.qty-inline .icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); font-size: 1.2rem; }
.move-list { max-height: 55vh; overflow: auto; }
.list-row[disabled] { opacity: .6; cursor: default; }

/* Etiketten */
.label-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; margin-top: 10px; }
.label-picks .btn { grid-column: 1 / -1; justify-self: start; margin-bottom: 10px; }
.label-sheet { display: grid; gap: 4mm; margin-top: 18px; grid-template-columns: repeat(2, 1fr); }
.label-sheet.size-s { grid-template-columns: repeat(3, 1fr); }
.label-sheet.size-l { grid-template-columns: 1fr; }
.print-label {
  display: flex; gap: 4mm; align-items: center; padding: 4mm; border: 1.5px solid #222; border-radius: 3mm; background: #fff; color: #000;
  break-inside: avoid; page-break-inside: avoid; min-height: 34mm;
}
.pl-qr { width: 26mm; flex: none; }
.pl-qr svg { width: 100%; height: auto; display: block; }
.pl-text { min-width: 0; }
.pl-code { font-family: var(--font-stencil); font-stretch: condensed; font-weight: 800; font-size: 30pt; line-height: 1; }
.pl-name { font-weight: 700; font-size: 12pt; line-height: 1.2; margin-top: 1mm; }
.pl-loc { font-size: 9pt; margin-top: 1mm; }
.pl-items { font-size: 7.5pt; margin-top: 1.5mm; color: #333; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.size-s .pl-qr { width: 18mm; } .size-s .pl-code { font-size: 20pt; } .size-s .pl-name { font-size: 9pt; } .size-s .pl-items { display: none; }
.size-l .pl-qr { width: 45mm; } .size-l .pl-code { font-size: 60pt; } .size-l .pl-name { font-size: 20pt; } .size-l .pl-loc { font-size: 13pt; } .size-l .pl-items { font-size: 10pt; }
@media print {
  @page { margin: 10mm; }
  .label-sheet { margin: 0; }
  .print-label { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
