/* ═════════════════════════════════════════════════════════════
   Inventarios — KPI + Alert Styles (matches Ventas design)
   ═════════════════════════════════════════════════════════════ */

/* ── KPI Summary Cards ── */
.inv-kpi-row {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.inv-kpi-row-4 { grid-template-columns: repeat(4, 1fr); }
.inv-kpi-row-3 { grid-template-columns: repeat(3, 1fr); }

.inv-kpi-card {
    position: relative;
    padding: 18px 20px;
    border-radius: 0.75rem;
    overflow: hidden;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inv-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.inv-kpi-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.7;
    z-index: 0;
    border-radius: inherit;
}

/* ── PT Color Variants ── */
.inv-kpi-pt-1::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 78, 59, 0.35) 50%, rgba(15, 23, 42, 0.5) 100%);
}
.inv-kpi-pt-2::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(29, 78, 216, 0.35) 50%, rgba(15, 23, 42, 0.5) 100%);
}
.inv-kpi-pt-3::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(127, 29, 29, 0.35) 50%, rgba(15, 23, 42, 0.5) 100%);
}
.inv-kpi-pt-4::before {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(120, 53, 15, 0.35) 50%, rgba(15, 23, 42, 0.5) 100%);
}

/* ── Plataformas Color Variants ── */
.inv-kpi-plat-1::before {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(88, 28, 135, 0.35) 50%, rgba(15, 23, 42, 0.5) 100%);
}
.inv-kpi-plat-2::before {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(154, 52, 18, 0.35) 50%, rgba(15, 23, 42, 0.5) 100%);
}
.inv-kpi-plat-3::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(29, 78, 216, 0.35) 50%, rgba(15, 23, 42, 0.5) 100%);
}
.inv-kpi-plat-4::before {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(22, 101, 52, 0.35) 50%, rgba(15, 23, 42, 0.5) 100%);
}

/* ── MP Color Variants ── */
.inv-kpi-mp-1::before {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(120, 53, 15, 0.35) 50%, rgba(15, 23, 42, 0.5) 100%);
}
.inv-kpi-mp-2::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(127, 29, 29, 0.35) 50%, rgba(15, 23, 42, 0.5) 100%);
}
.inv-kpi-mp-3::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(49, 46, 129, 0.35) 50%, rgba(15, 23, 42, 0.5) 100%);
}
.inv-kpi-mp-4::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 78, 59, 0.35) 50%, rgba(15, 23, 42, 0.5) 100%);
}

/* ── KPI Typography ── */
.inv-kpi-label {
    position: relative;
    z-index: 1;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
}

.inv-kpi-value {
    position: relative;
    z-index: 1;
    font-size: 1.6rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.1;
    font-family: 'Inter', 'JetBrains Mono', system-ui, sans-serif;
}

.inv-kpi-sub {
    position: relative;
    z-index: 1;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
}

.inv-kpi-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}

/* ── Alerts ── */
@keyframes inv-pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.inv-alerts-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.inv-alerts-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    animation: inv-pulse-dot 2s infinite;
}

.inv-alerts-title {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inv-alerts-count {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
}

.inv-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 140px;
    overflow-y: auto;
}

.inv-alert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.inv-alert-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.inv-alert-critical {
    border-left: 3px solid #ef4444;
    background: rgba(239, 68, 68, 0.04);
    color: #fca5a5;
}

.inv-alert-warning {
    border-left: 3px solid #f97316;
    background: rgba(249, 115, 22, 0.04);
    color: #fdba74;
}

.inv-alert-info {
    border-left: 3px solid #64748b;
    background: rgba(100, 116, 139, 0.04);
    color: #94a3b8;
}
