/* Estilos compartidos entre las pantallas de captura (Masiva, Ingreso, Acomodo, Control). */

.cs-input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px;
  border: 2px solid #e2e2e2;
  border-radius: 12px;
  font-size: 16px;
  font-family: poppins, Helvetica, sans-serif;
  background: #fff;
  transition: border-color 0.15s ease;
}

.cs-input:focus {
  outline: none;
  border-color: #d00b01;
}

.cs-input.cs-input-error {
  border-color: #d00b01;
  animation: csShake 0.4s ease;
}

.cs-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 30px;
  background: #d00b01;
  color: #fff;
  font-family: poppins, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(208, 11, 1, 0.3);
  transition: transform 0.1s ease, opacity 0.2s ease;
}

.cs-btn:active {
  transform: scale(0.97);
}

.cs-btn:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.cs-pop {
  animation: csPop 0.32s ease;
}

.cs-shake {
  animation: csShake 0.4s ease;
}

@keyframes csPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes csShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@keyframes csSpin {
  to { transform: rotate(360deg); }
}

/* Estallido de nieve al confirmar una accion */
.cs-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.cs-burst span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.95;
  animation: csBurst 0.5s ease-out forwards;
}

@keyframes csBurst {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--cs-dx), var(--cs-dy)) scale(0.3);
    opacity: 0;
  }
}

.cs-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px);
  background: #222;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.cs-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cs-toast.cs-toast-error {
  background: #a30800;
}

.cs-toast.cs-toast-success {
  background: #1d6b2a;
}

.cs-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.cs-card h3 {
  margin: 0 0 10px;
  color: #1d6b2a;
}

.cs-card.cs-card-error h3 {
  color: #a30800;
}

.cs-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  font-size: 14px;
}

.cs-card dt {
  font-weight: 700;
  color: #555;
}

.cs-card dd {
  margin: 0;
}
