.float{
	position:fixed;
	width:60px;
	height:60px;
	bottom:40px;
	right:40px;
	background-color:#25d366;
	color:#FFF;
	border-radius:50px;
	text-align:center;
  font-size:30px;
	box-shadow: 2px 2px 3px #999;
  z-index:100;
}

/* Sidebar logo sizing to match icon area */
.sidebar-logo {
    height: 42px; /* bigger than the previous 32px */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

@media (min-width: 1200px) {
    .sidebar-logo {
        height: 48px;
    }
}

/* Topbar banner styling */
.topbar-banner {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
}
.topbar-banner img {
    width: 100%;
    max-width: 100%;
    height: 200px; /* banner visible height inside topbar */
    max-height: 200px; /* keep a consistent banner frame */
    object-fit: fill; /* stretch to fill the frame */
    object-position: center;
    border-radius: 4px;
}

.topbar-banner .carousel,
.topbar-banner .carousel-inner,
.topbar-banner .carousel-item {
    width: 100%;
}

/* Make the topbar taller to accommodate a bigger banner */
.topbar {
    min-height: 200px;
}

@media (max-width: 576px) {
    .topbar {
        min-height: 140px;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .topbar-banner {
        padding: 0 0.5rem;
    }

    .topbar-banner img {
        height: 140px;
        max-height: 140px;
    }
}

@media (min-width: 1400px) {
    .topbar-banner img {
        height: 200px;
    }
}
.float:hover {
	text-decoration: none;
	color: #FFF;
  background-color:#1ab152;
    
    animation: shake 1s;

 
  animation-iteration-count: infinite;
}

.my-float{
	margin-top:16px;
}

/* Prevenir overflow horizontal en toda la aplicación */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Asegurar que todos los selects respeten el ancho del contenedor */
select.form-control {
    max-width: 100%;
    box-sizing: border-box;
}

/* Estilos específicos para móviles */
@media (max-width: 576px) {
    /* Prevenir que cualquier elemento cause scroll horizontal */
    * {
        max-width: 100%;
    }
    
    /* Ajustar contenedores principales */
    .container-fluid {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* Asegurar que los selects no desborden */
    select.form-control,
    select.form-control-sm {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Reduce specifically the departamento filter width on small screens */
    #filtroDepartamento {
        width: 85% !important;
        max-width: 320px !important;
    }
    
    /* Ajustar cards en móviles */
    .card {
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .card-body {
        padding: 0.5rem;
    }
}
