/* ─────────────────────────────────────────────────────────────────────
   Salud de Inventario — estilos del panel
   ───────────────────────────────────────────────────────────────────── */

#salud-table tbody tr { transition: background 0.15s; }
#salud-table tbody tr:hover { background: rgba(56, 189, 248, 0.05); cursor: pointer; }
#salud-table tbody tr.salud-detail-row:hover { background: rgba(15, 23, 42, 0.6); cursor: default; }
#salud-table tbody td { padding: 7px 8px; font-size: 12px; border-bottom: 1px solid rgba(30, 41, 59, 0.6); }

/* ABC badge */
.salud-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}
.salud-badge-A { background: rgba(52, 211, 153, 0.18); color: #34d399; }
.salud-badge-B { background: rgba(96, 165, 250, 0.18); color: #60a5fa; }
.salud-badge-C { background: rgba(168, 162, 158, 0.18); color: #d6d3d1; }
.salud-badge-ND { background: rgba(100, 116, 139, 0.18); color: #94a3b8; }

/* CV pill (variabilidad) */
.salud-cv-pill {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}
.salud-cv-low { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.salud-cv-med { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.salud-cv-high { background: rgba(248, 113, 113, 0.15); color: #f87171; }

/* Rotura bar */
.salud-rotura-bar {
    display: inline-block;
    width: 50px;
    height: 7px;
    background: rgba(51, 65, 85, 0.6);
    border-radius: 3px;
    position: relative;
    vertical-align: middle;
    overflow: hidden;
    margin-right: 6px;
}
.salud-rotura-fill { height: 100%; background: linear-gradient(90deg, #fbbf24, #f87171); border-radius: 3px; transition: width 0.3s; }
.salud-rotura-high .salud-rotura-fill { background: #f87171; }

/* Delta % */
.salud-delta-tag { font-weight: 600; }
.salud-delta-low { color: #94a3b8; }
.salud-delta-med { color: #fbbf24; }
.salud-delta-high { color: #f87171; }

/* Detail row (cuando se expande un SKU) */
.salud-detail-row { background: rgba(15, 23, 42, 0.6) !important; }
.salud-detail-row td { padding: 16px !important; }
.salud-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.salud-detail-section {
    background: rgba(30, 41, 59, 0.7);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #38bdf8;
}
.salud-detail-section h4 {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}
.salud-detail-section .salud-stat {
    display: flex;
    justify-content: space-between;
    margin: 3px 0;
    font-size: 12px;
    color: #94a3b8;
}
.salud-detail-section .salud-stat strong { color: #e2e8f0; }
.salud-detail-section.salud-reco {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(129, 140, 248, 0.08));
    border-left-color: #818cf8;
}

@media (max-width: 1100px) {
    .salud-detail-grid { grid-template-columns: 1fr; }
}
