/* 1. CONTROLES SUPERIORES */
.inventory-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background: white;
}

#inv-search {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

#inv-search:focus {
    border-color: var(--accent-color);
}

/* 2. DISEÑO DE LA TABLA VELKO */
.table-container {
    overflow-x: auto; /* Permite scroll horizontal si la tabla es muy ancha */
    padding: 0; /* Quitamos padding interno para que la tabla llegue a los bordes si queremos */
}

.velko-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.velko-table th {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding: 15px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 2px solid #edf2f7;
}

.velko-table td {
    padding: 15px;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
    vertical-align: middle;
}

/* Efecto cebra y hover */
.velko-table tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}

.velko-table tbody tr:hover {
    background-color: #f1f7ff;
}

/* 3. ELEMENTOS VISUALES (BADGES Y PILLS) */
.badge-cat {
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.status-ok {
    background-color: #c6f6d5;
    color: #22543d;
}

.status-low {
    background-color: #fed7d7;
    color: #822727;
}

/* 4. BOTONES DE ACCIÓN */
.btn-sec {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid #cbd5e0;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sec:hover {
    background-color: #f7fafc;
    border-color: #a0aec0;
}

.btn-del {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-del:hover {
    background-color: #fff5f5;
}