:root{--bg:#0e1116;--panel:#161b22;--muted:#232b36;--text:#dfe6ef;--acc:#4ade80;--danger:#ef4444}
*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font:15px system-ui}
.app{max-width:1100px;margin:0 auto;padding:12px;display:flex;flex-direction:column;min-height:100dvh}
.header{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 12px;background:var(--panel);border-radius:14px}
.tabs{display:flex;gap:8px;flex-wrap:wrap}.tab{padding:8px 12px;border-radius:999px;background:var(--muted);border:1px solid transparent;color:#cdd6e1;cursor:pointer}
.tab.active{background:var(--acc);color:#09110c}.main{margin-top:12px;display:grid;gap:12px}
.card{background:var(--panel);border:1px solid #1f2630;border-radius:14px;padding:14px}
.row{display:flex;gap:12px;flex-wrap:wrap}
.input,select,button,textarea{border-radius:12px;border:1px solid #2a3442;background:#0f141a;color:var(--text);padding:10px 12px}
button.primary{background:var(--acc);border-color:transparent;font-weight:600}button.ghost{background:transparent;border-color:#2a3442}
.small{font-size:12px;color:#9aa7b7}.notice{padding:10px 12px;border:1px dashed #2a3442;border-radius:12px;background:#0b0f14}
#video{width:100%;max-height:30dvh;border-radius:12px;background:#000}.img80{width:48px;height:48px;border-radius:10px;object-fit:cover;border:1px solid #252f3c}
table{width:100%;border-collapse:collapse}th,td{padding:8px 10px;border-bottom:1px solid #222a36}th{background:#141a22;text-align:left}
.status-open{color:#f59e0b}.status-ordered{color:#60a5fa}.status-done{color:#22c55e}
/* Wareneingang Layout */
#view-inbound .inb-flex{
  display:grid;
  grid-template-columns: 340px 1fr; /* links schmal, rechts groß */
  gap:16px;
  align-items:start;
}

/* Video kompakt */
#view-inbound #inb-video{
  width:100%;
  max-height:220px;
  background:#000;
  border:1px solid var(--muted, #2b2f36);
  border-radius:10px;
  object-fit:cover;
}

/* Manuelle Eingabe unter dem Video */
#view-inbound .inb-left .row{
  margin-top:8px;
}

/* Ergebnis groß & gut lesbar */
#view-inbound #inb-result{
  min-height:240px;
  padding:12px;
  border:1px solid var(--muted, #2b2f36);
  border-radius:10px;
  background:#0f1216; /* dunkel */
  overflow:auto;
}

/* etwas größere Bilder/Typo im Ergebnis */
#view-inbound #inb-result .img80{
  width:96px; height:96px; border-radius:8px;
}
#view-inbound #inb-result .item-title{
  font-weight:700; font-size:18px; line-height:1.2;
}

/* Auf schmalen Screens untereinander */
@media (max-width: 900px){
  #view-inbound .inb-flex{ grid-template-columns: 1fr; }
  #view-inbound #inb-result{ min-height:200px; }
}
/* Wareneingang: 2-Spalten – links schmaler, rechts groß */
#view-inbound .inb-flex{
  display:grid;
  grid-template-columns: 280px 1fr; /* vorher 340px -> mehr Platz für Ergebnis */
  gap:16px;
  align-items:start;
}

/* Kompakteres Video links */
#view-inbound #inb-video{
  width:100%;
  max-height:200px;        /* etwas kleiner */
  background:#000;
  border:1px solid var(--muted, #2b2f36);
  border-radius:10px;
  object-fit:cover;
}

/* Großzügiges Ergebnisfeld rechts */
#view-inbound #inb-result{
  min-height:200px;        /* größer als bisher */
  padding:16px;
  border:1px solid var(--muted, #2b2f36);
  border-radius:12px;
  background:#0f1216;
  overflow:auto;
}

/* Karte im Ergebnis: Layout + Typo */
#view-inbound #inb-result .inb-card{
  display:flex;
  gap:18px;
  align-items:flex-start;
}

#view-inbound #inb-result .inb-thumb{
  width:120px;             /* größeres Bild */
  height:120px;
  border-radius:10px;
  object-fit:cover;
}

#view-inbound #inb-result .inb-title{
  font-weight:800;
  font-size:20px;          /* größerer Titel */
  line-height:1.2;
  margin-bottom:2px;
}

#view-inbound #inb-result .inb-meta{
  font-size:14px;          /* größerer Lauftext */
  opacity:.9;
}

/* Kompakte Controls: kleinere Notiz + Button */
#view-inbound #inb-result .inb-qty{
  width:90px;
  padding:6px 8px;
  font-size:14px;
}

#view-inbound #inb-result .inb-note{
  font-size:12px;          /* kleiner */
  padding:4px 6px;         /* schmaler */
  height:28px;             /* kompakter */
}

#view-inbound #inb-result .inb-btn{
  font-size:12px;          /* kleiner Button-Text */
  padding:6px 10px;        /* kompakter */
  line-height:1;
}

@media (max-width: 900px){
  #view-inbound .inb-flex{ grid-template-columns: 1fr; }
  #view-inbound #inb-result{ min-height:260px; }
}

/* 2-Spalten-Layout für Artikel-Form */
.form2col{
  display:grid;
  grid-template-columns: 1.2fr 1fr; /* links breiter */
  gap:20px;
}
.form2col .col{ display:flex; flex-direction:column; gap:12px; }

.field{ display:block; }
.field.two{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.field.three{ display:grid; grid-template-columns: repeat(3,1fr); gap:12px; }

.preview-wrap{ display:flex; align-items:flex-end; }
.row.end{ justify-content:flex-start; gap:8px; margin-top:10px; }

/* Kleiner auf schmalen Screens */
@media (max-width: 900px){
  .form2col{ grid-template-columns: 1fr; }
  .field.two, .field.three{ grid-template-columns: 1fr; }
}
/* ===== Artikel-Form (übersichtlich) ===== */
.form-layout{
  display:grid;
  grid-template-columns: 1.15fr 0.9fr; /* links etwas breiter */
  gap:18px;
}

.form-layout .col{ display:flex; flex-direction:column; gap:14px; }

.group{
  border:1px solid var(--muted, #2b2f36);
  background:#0f1216;
  border-radius:12px;
  padding:14px;
}
.group-title{
  font-weight:700; font-size:14px;
  color:#cbd5e1; margin-bottom:10px;
}

.field{ display:flex; flex-direction:column; gap:6px; }
.align-end{ display:flex; align-items:flex-end; }
.row.no-gap{ display:flex; gap:8px; }
.preview{ width:80px; height:80px; border-radius:10px; object-fit:cover; }

.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }

/* Sticky Savebar rechts – Buttons bleiben im Blick */
.savebar{
  position:sticky; bottom:0;
  display:flex; align-items:center; gap:8px;
  padding-top:6px; background:transparent;
}

/* Responsive */
@media (max-width:1000px){
  .form-layout{ grid-template-columns: 1fr; }
  .grid-2, .grid-3{ grid-template-columns: 1fr; }
  .savebar{ position:static; }
}
.inb-thumb{
  width:120px; height:120px;      /* Anzeigegröße in CSS-Pixeln */
  object-fit:cover; border-radius:10px;
}

footer{margin-top:auto;color:#7f8b99;opacity:.8;padding:16px;text-align:center}