/*venta nueva*/

.panels {
  background: #ecf0f3;
  height: 100hv;
  border: 1px solid #0b1020;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.cont-header {
  margin-left: -14px;
  margin-right: -14px;
  margin-top: -15px;
  margin-bottom: 24px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 2px solid #062a56;
}
.cards {
  grid-column: span 3;
  background: #fff;
  border: 2px solid #062a56;
  border-radius: 18px;
  position: relative; /* importante */
  --card-padding: 14px;
  padding: var(--card-padding);
  box-sizing: border-box;
}
.btns {
  padding: 8px 16px;
  border-radius: 15px;
  border: none;
  background: #0c4594;
  color: #fff;
  font-weight: 600;
  transition: all 0.2s;
}
.btns1 {
  padding: 8px 16px;
  border-radius: 12px;
  border: none;
  background: #062a56;
  color: #facd32;
  font-weight: 600;
  transition: all 0.2s;
}
.btns2 {
  padding: 6px 12px;
  border-radius: 10px;
  padding: 6px;
  border: none;
  background: #062a56;
  color: #fff;
  font-weight: 600;
  transition: all 0.2s;
}
.espcio_envio {
  display: none;
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e6e9f2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  position: relative;
}

/* Efecto hover suave */
.espcio_envio:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Línea decorativa superior */
.espcio_envio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #062a56, #0c4594);
}
.card-envio {
  display: none;
  margin-top: 20px;
  padding: 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e3e8f2;
  box-shadow: 0 8px 24px rgba(6, 42, 86, 0.08);
  transition: all 0.25s ease;
  position: relative;
}

/* Línea superior decorativa elegante */
.card-envio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #062a56, #0c4594);
}

/* Hover elegante */
.card-envio:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(6, 42, 86, 0.12);
}

.envio-options {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.envio-card {
  flex: 1;
  min-width: 180px;
  cursor: pointer;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e3e8f2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  align-items: center;
}
.envio-card input {
  display: none;
}

/* Contenido */
.envio-content {
  display: flex;
  flex-direction: column;
}

.envio-title {
  font-weight: 700;
  color: #062a56;
  font-size: 15px;
}

.envio-desc {
  font-size: 13px;
  color: #6c757d;
  margin-top: 4px;
}
/* Hover */
.envio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(6, 42, 86, 0.12);
}

/* Estado seleccionado */
.envio-card input:checked + .envio-content {
  position: relative;
}

.envio-card input:checked + .envio-content::before {
  content: "✓";
  position: absolute;
  top: -10px;
  right: -10px;
  background: #062a56;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estado seleccionado elegante */
.envio-card:has(input:checked) {
  border: 1px solid rgba(6, 42, 86, 0.25);
  background: linear-gradient(145deg, #ffffff, #f0f4ff);
  box-shadow:
    0 8px 24px rgba(6, 42, 86, 0.1),
    0 0 0 3px rgba(79, 70, 229, 0.12);
  transform: translateY(-2px);
}
.mutedr {
  margin-left: -14px;
  margin-right: -14px;
  margin-top: -15px;
  margin-bottom: 24px; /* ← clave: espacio abajo */
  padding: 12px 14px;
  background: #062a56;
  color: #ecf0f3;
  font-weight: 700;
  border-radius: 17px 17px 0 0;
}

input {
  padding: 8px 12px;
  border: 1.5px solid #062a56;
  border-radius: 8px;
  background: transparent;
  box-sizing: border-box;
}
.btn-buscar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #062a56;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-buscar:hover {
  background: #0c4594;
}

.btn-buscar svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.kpi-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #f1f5f9;
}

.kpi-label {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
}

.kpi-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.highlight .kpi-value {
  color: #2563eb;
}

table th,
table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

table th {
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
}

.btn.primary:hover {
  background: #1d4ed8;
}

.btn-exportar-sheets {
  background: #00c853;
  border: none;
  padding: 8px 10px;
  color: white;
  font-weight: 300;
  font-size: 14px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-exportar-sheets:hover {
  transform: translateY(-2px);
}

.btn-enviando {
  background: linear-gradient(135deg, #ff9800, #ff5722);
}

.btn-exito {
  background: linear-gradient(135deg, #2196f3, #1565c0);
}

.btn-error {
  background: linear-gradient(135deg, #e53935, #b71c1c);
}
/*bton cerrar*/
/* =========================
   BOTÓN CLOSE PREMIUM
   ========================= */
.btn-premium-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  background: #062a56;
  color: #ffffff;

  border: none;
  border-radius: 12px;

  cursor: pointer;

  box-shadow:
    0 4px 12px rgba(6, 42, 86, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

  transition: all 0.25s ease;
}

.btn-premium-close svg {
  transition: transform 0.25s ease;
}

/* HOVER */
.btn-premium-close:hover {
  background: #0a3a75;
  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(6, 42, 86, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-premium-close:hover svg {
  transform: rotate(90deg) scale(1.1);
}

/* CLICK */
.btn-premium-close:active {
  transform: scale(0.95);
  box-shadow: 0 3px 8px rgba(6, 42, 86, 0.3);
}
.dots span {
  animation: blink 1.4s infinite both;
  opacity: 0;
}
.dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(222, 51, 51, 0.3);
  border-top: 3px solid #b70909;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn-nuevo-ingreso {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  background: #062a56;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.btn-nuevo-ingreso .icon {
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.25s ease;
}

/* hover elegante */
.btn-nuevo-ingreso:hover {
  background: #0a3c79;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* animación del + */
.btn-nuevo-ingreso:hover .icon {
  transform: rotate(90deg) scale(1.2);
}

/* efecto al hacer click */
.btn-nuevo-ingreso:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
/* Animación */
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Estado deshabilitado opcional */
.btn-delete:disabled {
  opacity: 0.7;
  cursor: wait;
}
