.pagos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.pago-box {
  background: #f8f9fa;
  border: 1px solid #ddd;
  padding: 14px;
  border-radius: 8px;
  width: 250px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.05);
}
.pago-box.liquidado {
  background: #e8fff0;
  border-color: #48c774;
}
.pago-box h4 {
  margin-top: 0;
  font-size: 16px;
}
.pago-box small {
  font-size: 12px;
  color: #555;
}
.pago-box button {
  margin-top: 8px;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  min-width: 300px;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #10b981;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-weight: bold;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #dc2626;
}

.hidden {
  display: none;
}

.abrir-caja-btn {
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #22c55e;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

  .apertura-grid {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.apertura-col {
  flex: 1;
  min-width: 250px;
}

.apertura-titulo {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
}

.apertura-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fila-billete, .fila-moneda {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fila-billete img, .fila-moneda img {
  width: 60px;
  height: auto;
  border-radius: 4px;
}

.dinero-input {
  width: 80px;
  padding: 4px;
  font-size: 16px;
  text-align: center;
}

/* ── Alertas operativas ── */
.dash-alerts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dash-alert-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-left: 3px solid var(--alert-color, #6366f1);
  text-decoration: none; color: var(--text-primary, #1e293b);
  transition: box-shadow .15s, transform .15s;
  cursor: pointer;
}
.dash-alert-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); transform: translateY(-1px); }
.dash-alert-icon { font-size: 20px; flex-shrink: 0; }
.dash-alert-text { flex: 1; font-size: 13px; font-weight: 500; }
.dash-alert-arrow { font-size: 14px; color: var(--text-muted, #94a3b8); }

/* ── Mobile ── */
@media (max-width: 767px) {
  .pago-box { width: 100%; }
  .modal-content { max-width: 95vw !important; min-width: auto; }
  .apertura-col { min-width: auto; }
  .apertura-grid { gap: 16px; }
  .apertura-titulo { font-size: 15px; }
  .dash-alerts-grid { grid-template-columns: 1fr; }
}

