
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: #f8f9fa;
	font-family: 'Roboto', sans-serif;
}
.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
	background-color: #ffffff;
	border-bottom: 1px solid #e0e0e0;
	position: relative;
	z-index: 1000; /* Asegura que la cabecera esté por encima del menú desplegable */
}
/* Sidebar default styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #f8f9fa;
    transition: left 0.3s ease;
    z-index: 1000;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px; /* Tamaño de fuente fijo */
    color: #818181;
    display: block;
    transition: color 0.3s; /* Solo cambiar el color al hacer hover */
}

.sidebar a:hover {
    color: #f1f1f1;
}

.menu-header {
    font-size: 15px;
    font-weight: bold;
    padding: 5px 0;
    text-align: center;
    border-bottom: 1px solid #ccc;
    color: #333;
}

.sidebar .submenu-item {
    display: flex;
    align-items: center;
    padding: 8px 20px; /* Ajusta el padding para una alineación uniforme */
    color: #555; /* Color del texto, ajusta según el menú principal */
    font-size: 16px; /* Tamaño de fuente */
    text-decoration: none;
}

.sidebar .submenu-item i {
    width: 20px; /* Ancho fijo para todos los íconos */
    text-align: center; /* Centra el ícono dentro de su espacio */
    margin-right: 10px; /* Espacio entre el ícono y el texto */
    font-size: 16px; /* Tamaño del ícono */
    color: #FFC107; /* Color del ícono */
}

.sidebar.submenu-item:hover {
    background-color: #f0f0f0; /* Color de fondo al pasar el mouse */
    color: #333; /* Color de texto al pasar el mouse */
}

.sidebar .submenu-item i:hover {
    color: #333; /* Color del ícono al pasar el mouse */
}

/* Estilo del botón de colapso */
.toggle-button {
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
    color: #333;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

/* Show sidebar when menu-toggle is clicked */
.sidebar.show {
    left: 0;
}

.overlay.show {
    opacity: 1;
    pointer-events: auto; /* Permitir interacciones cuando está visible */
}
.navbar {
    flex: 1;
}
.menu {
    position: relative;
}
.header .menu-left,
.header .menu-right {
	display: flex;
	align-items: center;
}
.header .menu-right {
	justify-content: flex-end;
}
.header .title {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	font-size: 1.2rem;
}
.header .title img {
	max-height: 30px;
	margin-right: 10px;
}
.container {
	padding-top: 20px;
	padding-bottom: 70px; /* Espacio para la barra de navegación */
}
.main-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px 0;
}
.main-content .item {
	flex: 1 1 calc(50% - 40px);
	margin: 10px;
	padding: 20px;
	text-align: center;
	background-color: transparent; /* Cambiado a transparente */
	border: none; /* Eliminado el borde */
	border-radius: 10px;
}
.main-content .item img {
	max-height: 100px;
	margin-bottom: 10px;
}
/* Nueva clase específica para el formulario */
.formulario-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Cambiado de center a flex-start */
    flex-direction: column;
    margin-top: 20px; /* Ajusta según sea necesario */
    width: 100%; /* Ocupa todo el ancho del contenedor */
}

.formulario-content {
    width: 100%;
    max-width: 500px; /* Puedes ajustar este valor según sea necesario */
}
.footer {
	text-align: right;
	padding: 10px 20px;
	background-color: #ffffff;
	border-top: 1px solid #e0e0e0;
}

.footer img {
	max-height: 40px;
}
.dropdown-menu-right {
    position: absolute;
    right: 0;
    top: 30px;
    display: none;
    z-index: 999; /* Asegura que el menú desplegable esté debajo de la cabecera */
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    width: 200px;
    /* Añadir sombra para mejor visibilidad */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.dropdown-menu-right.show {
	display: block;
}
.dropdown-menu-right a {
	display: block;
	padding: 10px 20px;
	text-decoration: none;
	color: #333333;
}
.dropdown-menu-right a:hover {
	background-color: #f0f0f0;
}

.form-group label {
	color: #333; /* Asegúrate de que el color no sea el mismo que el fondo */
	font-size: 16px;
}

.form-control {
	margin-bottom: 15px;
}	

/* Nuevos estilos para Material Design */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}
.table th, .table td {
    vertical-align: middle;
}
.table thead th {
    background-color: #007bff;
    color: #fff;
}
.table tbody tr:hover {
    background-color: #f1f1f1;
}	
/* Ajuste para el botón "Volver" */
.back-arrow a {
    color: #007bff;
}

/* Estilo para los botones */
.form-group.text-right {
    margin-bottom: 20px;
}

/* Ajuste para los botones "Buscar" y "Cancelar" */
.form-group.text-right .btn {
    margin-left: 10px;
}

/* Tamaño de fuente para el texto del botón "En falta" */
.btn-sm {
    font-size: 12px;
}
.grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 20px;
}
.grid-item {
	background-color: #e0f0ff;
	border-radius: 10px;
	text-align: center;
	padding: 10px;
	transition: background-color 0.3s;
}
.grid-item:hover {
	background-color: #d0e0ff;
}
.grid-item i {
	font-size: 24px;
	margin-bottom: 5px;
}
/* Espacio entre el formulario y la tabla de resultados */
#resultados {
    margin-top: 20px;
}
/* Media query to always show sidebar on larger screens */
@media (min-width: 992px) {
    .sidebar {
        left: 0;
    }

    .overlay {
        display: none;
    }

    .main-content {
        margin-left: 250px; /* Adjust margin for main content */
    }
    
    .menu {
        display: block; /* Asegura que el contenedor del menú esté visible */
    }
}

/* Only show overlay on small screens */
@media (max-width: 992px) {
    .overlay.show {
        display: block;
    }
}

/* Ajusta el tamaño de la primera imagen */
.app-logo {
    max-width: 60%; /* Reducimos el tamaño a 30% */
    height: auto;
    margin-bottom: 20px; /* Margen inferior para separar de las otras secciones */
    margin-top: 40px; /* Añade más espacio encima del logo */
}

/* Ajusta el tamaño de las imágenes de los pedidos */
.row .col-6 img {
    max-width: 80%; /* Tamaño ajustado para las imágenes de los botones de pedidos */
    height: auto;
}

  
