/* Margen para todas las páginas */
html { min-height: 100%; }
body { min-height: 100%; }

/* Cambiar los colores de los enlaces del menú */
.color-enlace-menu { color: #ffffff !important;}

/* Fondo del menú */
.fondo-menu {
	height: 140px; 
	width: 100%; 
	position: absolute;
}

/* Menú lateral */
.menu-lateral {
	background-color: #ffffff;
	z-index: 999;
	position: fixed;
	top: 0;
	bottom: 0;
	box-sizing: border-box;
	width: 280px !important;
	padding: 20px 40px 20px 40px;
	overflow: auto;
}

/* Contenido */
@media (min-width: 960px) {
	.contenido {
		padding-left: 300px; /* 20px más que el width de .menu-lateral */
	}
}

/* Cambiar los estilos del select2 */
.select2-selection__rendered {
	line-height: 30px !important;
}
.select2-container .select2-selection--single {
	height: 30px !important;
	border: 1px solid #e5e5e5 !important;
	border-radius: 0px !important;
}
.select2-selection__arrow {
	height: 30px !important;
}

/* Cambiar los estilos del SumoSelect */
.SumoSelect {
	width: 100%;
}
.SumoSelect > .CaptionCont {
	border: 1px solid #e5e5e5;
}
.SumoSelect > .CaptionCont > label {
	visibility: hidden;
}
.SelectBox {
	padding: inherit;
}
.SumoSelect.open .search-txt {
	font-size: 1rem;
	padding: 4px 8px;
}










/* Tabla de los pedidos del día */
.tabla-pedido-dia-clientes {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: normal;
    max-height: 150px;
    overflow: visible;
    word-wrap: break-word;
    line-height: 1.2;
}

#tabla_pedido_dia {
    table-layout: auto !important; /* Cambiar a auto */
    width: auto !important; /* No forzar 100% */
    max-width: none !important;
}

/* Primera columna fija (PRODUCTO) */
#tabla_pedido_dia th:nth-child(1),
#tabla_pedido_dia td:nth-child(1) {
    position: sticky !important;
    left: 0 !important;
    background: white !important;
    z-index: 10 !important;
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    box-shadow: 2px 0 3px rgba(0,0,0,0.1) !important;
}

/* Segunda columna fija (STOCK) */
#tabla_pedido_dia th:nth-child(2),
#tabla_pedido_dia td:nth-child(2) {
    position: sticky !important;
    left: 200px !important;
    background: white !important;
    z-index: 10 !important;
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
}

/* Tercera columna fija (RESTANTE) */
#tabla_pedido_dia th:nth-child(3),
#tabla_pedido_dia td:nth-child(3) {
    position: sticky !important;
    left: 270px !important;
    background: white !important;
    z-index: 10 !important;
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    box-shadow: 2px 0 3px rgba(0,0,0,0.1) !important;
}

/* Resto de columnas (clientes) - ancho fijo */
#tabla_pedido_dia th:nth-child(n+4),
#tabla_pedido_dia td:nth-child(n+4) {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    text-align: center !important;
}

/* Headers en thead también necesitan z-index mayor */
#tabla_pedido_dia thead th:nth-child(1),
#tabla_pedido_dia thead th:nth-child(2),
#tabla_pedido_dia thead th:nth-child(3) {
    z-index: 20 !important;
}

/* Forzar que el contenedor NO se estire */
.uk-overflow-auto {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
}


