/* ================================================================
   Warenausgang — Abschlussdialog und Fortschrittsbalken
   (js/modules/warenausgang/abschluss.js)
   ================================================================ */

.wa-abschluss-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;                 /* über Lade-Overlay (9999) und Modals */
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease-out;
}

.wa-abschluss {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 26px 28px 22px;
}

.wa-abschluss h3 {
  margin: 0 0 16px;
  font-size: 20px;
  color: #1e293b;
}

.wa-abschluss-zahlen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.wa-abschluss-zahlen > div {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #64748b;
}

.wa-zahl {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
}

.wa-abschluss-liste {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 14px;
  color: #334155;
  line-height: 1.7;
}

.wa-abschluss-block {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.wa-abschluss-wahl {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  color: #1e293b;
  line-height: 1.4;
}

/* style.css zwingt input/button auf 100 % Breite und 15px Rand */
.wa-abschluss-wahl input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: #4f46e5;
}

.wa-abschluss-wahl small {
  color: #64748b;
  font-size: 12.5px;
}

.wa-leergut {
  margin-top: 12px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
  display: grid;
  gap: 6px;
}

.wa-leergut-zeile {
  display: grid;
  grid-template-columns: 78px 1fr 84px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: #334155;
}

.wa-leergut-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #94a3b8;
}

.wa-leergut-zeile input {
  width: 100%;
  margin: 0;
  padding: 6px 8px;
  font-size: 14px;
  text-align: right;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.wa-abschluss-hinweis {
  background: #eef2ff;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #3730a3;
  margin-bottom: 10px;
}

.wa-abschluss-aktionen {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.wa-abschluss-aktionen .btn {
  margin: 0;
}

/* ---- Fortschritt ---- */

.wa-fortschritt {
  max-width: 460px;
  text-align: center;
}

.wa-fortschritt-balken {
  height: 14px;
  border-radius: 7px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 6px 0 10px;
}

.wa-fortschritt-balken > div {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: 7px;
  transition: width 0.3s ease;
}

.wa-fortschritt-schritt {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.wa-fortschritt-text {
  font-size: 14px;
  color: #1e293b;
  min-height: 20px;
}

/* ---- Ergebnis ---- */

.wa-ergebnis-text {
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.6;
  color: #1e293b;
  background: #f8fafc;
  border-left: 4px solid #16a34a;
  border-radius: 8px;
  padding: 12px 14px;
}

.wa-ergebnis--warnung .wa-ergebnis-text {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

@media (max-width: 480px) {
  .wa-abschluss { padding: 20px 16px 16px; }
  .wa-leergut-zeile { grid-template-columns: 1fr 72px; }
  .wa-leergut-code { display: none; }
}
