/* =======================================================
   ERP Page — erp.css
   Estilos específicos para la demo del ERP
   (complements style.css + crm.css)
   ======================================================= */

/* ── ERP Demo Layout ── */
.erp-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  margin-top: 30px;
  align-items: stretch;
}

.erp-panel {
  background: #fff;
  border: 1px solid #ede9ff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.erp-panel-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

/* ── Trigger Side ── */
.trigger-panel {
  background: #faf9ff;
  border-style: dashed;
  border-width: 2px;
}

.erp-event-card {
  background: #fff;
  border: 1px solid #7b69ff;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 16px;
  box-shadow: 0 10px 20px rgba(123, 105, 255, 0.15);
  position: relative;
  z-index: 2;
}

.erp-event-icon {
  font-size: 2rem;
}

.erp-event-info h4 {
  font-size: 1rem;
  color: #0d0d12;
  margin-bottom: 4px;
}

.erp-event-info p {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

.erp-flow-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  margin-top: 20px;
  color: #7b69ff;
}

.erp-flow-arrows i {
  font-size: 2rem;
  animation: floatDown 2s infinite ease-in-out;
}

.erp-flow-text {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

@keyframes floatDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ── Reaction Side ── */
.reaction-panel {
  justify-content: center;
}

.erp-reaction-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.erp-reaction-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #fdfcff;
  border: 1px solid #f0ecff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.erp-reaction-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ccc;
  border-radius: 4px 0 0 4px;
}

.erp-reaction-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.erp-reaction-item:nth-child(1)::before { background: #27c93f; } /* Finance */
.erp-reaction-item:nth-child(2)::before { background: #ffbd2e; } /* Inventory */
.erp-reaction-item:nth-child(3)::before { background: #ff5f56; } /* Purchasing */

.reaction-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.reaction-content strong {
  display: block;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 4px;
}

.reaction-content p {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.4;
  margin-bottom: 8px;
}

.reaction-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}

.reaction-status.success { background: #e8faf0; color: #1a7a40; }
.reaction-status.warning { background: #fff5e6; color: #cc7700; }

/* ── Responsive ── */
@media (max-width: 800px) {
  .erp-demo-grid {
    grid-template-columns: 1fr;
  }
  .erp-flow-arrows {
    min-height: 80px;
  }
}
