﻿
        body {
            background: #f4f5f8;
            font-family: sans-serif;
            margin: 0;
        }

.inventory-table {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 12px;
    gap: 4px;
    flex: 1;
    transition: 0.2s;
}

    .nav-item .icon {
        font-size: 20px;
    }

    .nav-item.active {
        color: #2563eb;
        font-weight: 600;
    }

    .nav-item:hover {
        color: #2563eb;
    }

/* HEADER */

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 50px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: bold;
    color: #6b7280;
}

/* FILAS */

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 50px;
    align-items: center;
    background: white;
    border-radius: 18px;
    padding: 14px 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* PRODUCTO */

.product-name {
    font-weight: 600;
    color: #111827;
}

/* STOCK */

.stock {
    font-weight: 500;
    color: #374151;
}

/* ESTADOS */

.status {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

    .status.crítico {
        background: #fee2e2;
        color: #dc2626;
    }

    .status.disponible {
        background: #dcfce7;
        color: #16a34a;
    }

    .status.bajo {
        background: #fef3c7;
        color: #d97706;
    }

/* BOTON EDITAR */

.edit-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
    transition: 0.2s;
}

    .edit-btn:hover {
        background: #e5e7eb;
    }

        .inventory-container {
            padding: 16px;
            padding-bottom: 90px;
        }

        .top-bar {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .search-input {
            flex: 1;
            border: none;
            border-radius: 12px;
            padding: 14px;
            background: white;
        }

        .filter-btn {
            border: none;
            border-radius: 12px;
            padding: 14px;
            background: #2563eb;
            color: white;
        }

        .category-tabs {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            margin-bottom: 15px;
        }

        .tab {
            border: none;
            border-radius: 20px;
            padding: 10px 16px;
            background: white;
        }

            .tab.active {
                background: #2563eb;
                color: white;
            }

        .alert-box {
            background: #ffe4e6;
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 20px;
        }

        .product-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .product-card {
            background: white;
            border-radius: 18px;
            padding: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .product-header {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .category {
            color: #666;
            margin: 5px 0;
        }

        .stock-row {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .status {
            padding: 4px 10px;
            border-radius: 30px;
            font-size: 12px;
        }

            .status.crítico {
                background: #fecaca;
                color: #b91c1c;
            }

            .status.disponible {
                background: #dcfce7;
                color: #166534;
            }

        .edit-btn {
            border: none;
            background: #f3f4f6;
            border-radius: 12px;
            padding: 10px;
        }

        .floating-btn {
            position: fixed;
            right: 20px;
            bottom: 80px;
            width: 60px;
            height: 60px;
            border: none;
            border-radius: 50%;
            background: #2563eb;
            color: white;
            font-size: 28px;
        }
        
        