/* ═══════════════════════════════════════════════════════════
   ERP.COM.BO — inventario.css (Fase 2: Clean White SaaS Redesign)
   ═══════════════════════════════════════════════════════════ */

.page-inventario {
  background-color: #ffffff;
  color: var(--ink-800);
}

.inv-hero {
  position: relative;
  padding: calc(var(--nav-h) + 60px) 0 90px 0;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12), transparent 60%),
              radial-gradient(circle at 80% 60%, rgba(16, 185, 129, 0.08), transparent 50%),
              #ffffff;
  color: var(--ink-800);
  border-bottom: 1px solid var(--border-subtle);
}

.inv-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.inv-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--r-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #4f46e5;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.inv-hero__title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: var(--ink-800);
}

.inv-hero__title span {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Kardex Table Visual */
.kardex-card {
  background: #ffffff;
  border-radius: var(--r-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  padding: 32px;
  margin-top: 30px;
  overflow-x: auto;
}

.kardex-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.kardex-table th {
  background: #f8fafc;
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-700);
  border-bottom: 2px solid var(--border);
}

.kardex-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink-800);
}

/* Movement Visual Badges */
.badge-in {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-weight: 800;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-out {
  background: rgba(244, 63, 94, 0.15);
  color: #e11d48;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-weight: 800;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-balance {
  background: rgba(99, 102, 241, 0.15);
  color: #4f46e5;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-weight: 800;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Barcode & Tag Graphic Box */
.barcode-graphic-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

/* Alert Cards Grid */
.alerts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.alert-card {
  background: #ffffff;
  border-radius: var(--r-xl);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--dur-base) var(--ease-spring);
}

.alert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.alert-card--low { border-left: 5px solid #f59e0b; }
.alert-card--empty { border-left: 5px solid #ef4444; }
.alert-card--ok { border-left: 5px solid #10b981; }

.alert-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.alert-icon--low { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.alert-icon--empty { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.alert-icon--ok { background: rgba(16, 185, 129, 0.15); color: #059669; }

@media (max-width: 992px) {
  .inv-hero__grid { grid-template-columns: 1fr; }
  .alerts-grid { grid-template-columns: 1fr; }
}
