/*------------------ formato celular -----------------------*/
.listaritems .ui-listview  {
    margin: 0;
}

.listaritems.loading {
    opacity: .3;
}

.listaritems div.ui-btn {
    border-width: 1px;
    border-style: solid;
    border-color: rgb(221, 221, 221);
    padding: .85em 8px .2em 8px;
    margin: 0px;
    text-align: left;
}

.listaritems div.ui-btn.has-thumb {
	padding-left: 5.6em;
}

.listaritems .ui-listview .ui-li-has-thumb>.ui-btn>img {
    position: absolute;
    left: 0;
    top: 18px;
    max-height: 80%;
    max-width: 70px;
    width: auto;
    /*z-index: 1;*/
    border-radius: 5px;
}

.listaritems .ui-listview .ui-li-has-thumb>.ui-btn {
    min-height: 3.625em;
    padding-left: 4.7em;
}

.listaritems .ui-btn .ui-li-aside {
  top: 0;
  right: 0;
  left: 0;
  bottom: auto;
  color: #eee;
  padding: .125em .625em;
  width: auto;
  min-height: 0;
  background: rgba(149, 179, 122, 0.85);
  -webkit-border-top-right-radius: inherit;
  border-top-right-radius: inherit;
  margin: 0;
  font-weight: bold;
  text-shadow: 0px 0px 0px #f3f3f3;
}

.listaritems .ui-listview .ui-li-has-thumb.nochecked>.ui-btn>img.check {
    display: none;
}

.listaritems .ui-listview .ui-li-has-thumb.checked>.ui-btn>img.check {
    height: 20px;
    /* position: absolute; */
    margin-top: -20px;
    z-index: 10;
    margin-left: 7px;
}

.ui-listview>li.nochecked>a.ui-btn>img.check {
    display: none;
}

.ui-listview>li.checked>a.ui-btn>img.check {
    height: 20px;
    position: absolute;
    margin-top: -12px;
    z-index: 10;
    margin-left: -10px;
}

.ui-listview>li.checked>a.ui-btn {
    border-right-width: 1px;
    border-left-width: 1px;
    background-color: #249be433;
}

.ui-listview>li.ui-li-has-thumb h2 {
   margin: .45em 0;
   text-shadow: 
        /* first layer at 1px */
        -1px -1px 0px #FFFFFF,
         0px -1px 0px #FFFFFF,
         1px -1px 0px #FFFFFF,
        -1px  0px 0px #FFFFFF,
         1px  0px 0px #FFFFFF,
        -1px  1px 0px #FFFFFF,
         0px  1px 0px #FFFFFF,
         1px  1px 0px #FFFFFF,
        /* second layer at 2px */
        -2px -2px 0px #FFFFFF,
        -1px -2px 0px #FFFFFF,
         0px -2px 0px #FFFFFF,
         1px -2px 0px #FFFFFF,
         2px -2px 0px #FFFFFF,
         2px -1px 0px #FFFFFF,
         2px  0px 0px #FFFFFF,
         2px  1px 0px #FFFFFF,
         2px  2px 0px #FFFFFF,
         1px  2px 0px #FFFFFF,
         0px  2px 0px #FFFFFF,
        -1px  2px 0px #FFFFFF,
        -2px  2px 0px #FFFFFF,
        -2px  1px 0px #FFFFFF,
        -2px  0px 0px #FFFFFF,
        -2px -1px 0px #FFFFFF;
}

.ui-listview.listaritems-alertas-silos>li.ui-li-has-thumb h2 {
    margin: .45em -60;
}

/*--- fin formato celular ---------------------------*


/*------ monitor intermedio -----------------------*/
@media (min-width: 48em) {
    .listaritems .windowadapt .ui-content {
        padding: .5625em; /* 9px */
    }
    .listaritems.windowadapt .ui-listview li {
        float: left;
        width: 30.9333%; /* 33.3333% incl. 2 x 1.2% margin */
        height: 14.5em; /* 232p */
        margin: .5625em 1.2%;
    }
    .listaritems.windowadapt .ui-listview li > .ui-btn {
        -webkit-box-sizing: border-box; /* include padding and border in height so we can set it to 100% */
        -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
        box-sizing: border-box;
        height: 100%;
    }
    .listaritems.windowadapt .ui-listview li.ui-li-has-thumb .ui-li-thumb {
        height: auto; /* To keep aspect ratio. */
		max-width: 100%;
		width: 100%;
		max-height: none;
		margin-top: 0.4em;
	}
    /* Make all list items and anchors inherit the border-radius from the UL. */
    .listaritems.windowadapt .ui-listview li,
    .listaritems.windowadapt .ui-listview li .ui-btn,
    .listaritems.windowadapt .ui-listview .ui-li-thumb {
        -webkit-border-radius: inherit;
        border-radius: inherit;
    }
    /* Hide the icon */
    .listaritems.windowadapt .ui-listview .ui-btn-icon-right:after {
        display: none;
    }
    /* Make text wrap. */
    .listaritems.windowadapt .ui-listview h2,
    .listaritems.windowadapt .ui-listview p {
        white-space: normal;
        overflow: visible;
        position: absolute;
        left: 0;
        right: 0;
    }
    /* Text position */
    /* titulo cuadrados */
    .listaritems.windowadapt .ui-listview h2 {
        font-size: 1em;
        margin: 0;
        padding: .125em 0.5em;
        top: 10%;
	text-shadow: 
        /* first layer at 1px */
        -1px -1px 0px #FFFFFF,
         0px -1px 0px #FFFFFF,
         1px -1px 0px #FFFFFF,
        -1px  0px 0px #FFFFFF,
         1px  0px 0px #FFFFFF,
        -1px  1px 0px #FFFFFF,
         0px  1px 0px #FFFFFF,
         1px  1px 0px #FFFFFF,
        /* second layer at 2px */
        -2px -2px 0px #FFFFFF,
        -1px -2px 0px #FFFFFF,
         0px -2px 0px #FFFFFF,
         1px -2px 0px #FFFFFF,
         2px -2px 0px #FFFFFF,
         2px -1px 0px #FFFFFF,
         2px  0px 0px #FFFFFF,
         2px  1px 0px #FFFFFF,
         2px  2px 0px #FFFFFF,
         1px  2px 0px #FFFFFF,
         0px  2px 0px #FFFFFF,
        -1px  2px 0px #FFFFFF,
        -2px  2px 0px #FFFFFF,
        -2px  1px 0px #FFFFFF,
        -2px  0px 0px #FFFFFF,
        -2px -1px 0px #FFFFFF;
    }
    /* texto interior cuadrados */
    .listaritems.windowadapt .ui-listview p {
        font-size: 0.8em;
        margin: 0;
        padding: 0 0.5em;
        min-height: 55%;
        bottom: -2px;
    }
    /* Semi transparent background and different position if there is a thumb. The button has overflow hidden so we don't need to set border-radius. */
    .listaritems.windowadapt .ui-btn.has-thumb h2,
    .listaritems.windowadapt .ui-li-has-thumb p:not(.ui-li-aside){
        background: #111;
        background: rgba(0,0,0,.3);
		margin: .2em 0;
		color: white;
		margin: .2em 0;
		font-weight: bold;
		text-shadow: 0 0px 0 #f3f3f3;
    }
    .listaritems.windowadapt .ui-btn.has-thumb h2 {
        bottom: 35%;
    }
    .listaritems.windowadapt .ui-btn p {
        min-height: 50%;
		/*
		background: #111;
		background: rgba(0,0,0,0);
		*/
    }
    /* ui-li-aside has class .ui-li-desc as well so we have to override some things. */
    .listaritems.windowadapt .ui-btn  p .ui-li-aside {
	color: #eee;
        padding: .125em .625em;
        width: auto;
        min-height: 0;
        top: 0;
        left: 0;
        bottom: auto;
        /* Custom styling. */
        background: #990099;
        background: rgba(153,0,153,.85);
        -webkit-border-top-right-radius: inherit;
        border-top-right-radius: inherit;
        -webkit-border-bottom-left-radius: inherit;
        border-bottom-left-radius: inherit;
        -webkit-border-bottom-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    /* If you want to add shadow, don't kill the focus style. */
    .listaritems.windowadapt .ui-listview li {
        -moz-box-shadow: 0px 0px 9px #111;
        -webkit-box-shadow: 0px 0px 9px #111;
        box-shadow: 0px 0px 9px #111;
    }
    /* Images mask the hover bg color so we give desktop users feedback by applying the focus style on hover as well. */
    .listaritems.windowadapt .ui-listview li > .ui-btn:hover {
        -moz-box-shadow: 0px 0px 12px #33ccff;
        -webkit-box-shadow: 0px 0px 12px #33ccff;
        box-shadow: 0px 0px 12px #33ccff;
    }
    /* Animate focus and hover style, and resizing. */
    .listaritems.windowadapt .ui-listview li,
    .listaritems.windowadapt .ui-listview .ui-btn {
        -webkit-transition: all 500ms ease;
        -moz-transition: all 500ms ease;
        -o-transition: all 500ms ease;
        -ms-transition: all 500ms ease;
        transition: all 500ms ease;
    }
    .listaritems.windowadapt .ui-listview .ui-li-has-thumb h2, .ui-listview .ui-li-has-thumb {
		background: #111;
		background: rgba(0,0,0,0);
    }
    .listaritems.windowadapt .ui-btn p.ui-li-aside {
       margin: 0 0;
       height: 16px;
       min-height: 1px;
       padding: .125em .625em;
    }

    .listaritems .ui-listview .ui-li-has-thumb.checked>.ui-btn>img.check {
        height: 20;
        margin-top: -20;
        /* position: relative; */
        z-index: 10;
    }

    .ui-listview>li.checked>a.ui-btn>img.check {
        height: 20;
        /* padding-top: 10px; */
        position: absolute;
        z-index: 10;
        margin-top: -12;
    }

}
/* fin  monitor intermedio -----------------------*/


/*------------------ formato MONITOR pantalla completa -----------------------*/
@media (min-width: 63.75em) {
    .listaritems .windowadapt .ui-content {
        padding: .625em; /* 10px */
    }
    /* Set a max-width for the last breakpoint to prevent too much stretching on large screens.
    By setting the max-width equal to the breakpoint width minus padding we keep square tiles. */
    .listaritems.windowadapt .ui-listview {
        max-width: 62.5em; /* 1000px */
        margin: 0 auto;
    }
    /* Because of the 1000px max-width the width will always be 230px (and margin left/right 10px),
    but we stick to percentage values for demo purposes. */
    .listaritems.windowadapt .ui-listview li {
		width: 23%;
		height: 230px;
		margin: .625em 1%;
	}

}/* fin formato MONITOR pantalla completa -----------------------*/

a.ui-icon-listaritems-back.individual {
    left: 2.3125em;
}

.ui-icon-listaritems-sortfilter:after {
	background-image: url("../images/sort_filter_list_48px.svg");
	background-size: 95%;
    height: 100%;
    width:100%;      
    margin-top: .05em;   
    margin-left: .05em;  
    top: 0;
    left: 0;
    background-color: transparent;
    opacity: .5;
    border-radius: 0;
}

.ui-icon-listaritems-removefilter:after {
	background-image: url("../images/sort_filter_list_remove_48px.svg");
	background-size: 95%;
    height: 100%;
    width:100%;      
    margin-top: .05em;   
    margin-left: .05em;  
    top: 0;
    left: 0;
    background-color: transparent;
    opacity: .5;
    border-radius: 0;
}

.filterspan {
    display: flex;
}
a#removesortfilter {
	margin: -0.9em -0 -1.0em -0;
	top: 1.3em;
    left: 2.5em;
	z-index: 10;
	position: relative;
}

a#closelist {
	margin: -0.9em -0 -1.0em -0;
	top: 1.3em;
    left: 4.5em;
	z-index: 10;
	position: relative;
}

a#collapsebutton {
    margin:  0 0 0 0;
    border-radius: 210px;
}

a.ui-link.ui-btn-left.ui-btn.ui-icon-listaritems-sortfilter.ui-btn-icon-notext.ui-corner-all {
    margin:  0 0 0 0;
}

.ui-bar-inherit.listaritems {
    // background: #D2DEE2;
	background: rgba(213, 205, 220, 0.85);
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
}

.ui-bar-inherit.listaritems.collapsed {
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
}

.listaritems-popup-menu {
    min-width: 350px;
}

#loading-img {
    background: url(https://icons8.com/preloaders/preloaders/360/Velocity.gif) center center no-repeat;
    height: 100%;
    z-index: 99999;
}

.overlay {
    background: #e9e9e9;
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.7;
    z-index: 1000;
}

.listaritems .ui-btn .ui-li-aside.rojo { /* rojo intenso */
  background: rgba(226, 7, 7, 0.85);
}

button.listaritems-page-button {
    min-width: 80;
    padding: 5 0;
    font-size: 1.3em;
    font-weight: bold;
    margin: 1px;
    background: rgb(107, 107, 107);
    color: white;
    border: rgb(107, 107, 107);
    border-radius: 8px;
}


.listaritems.urlfail {
    font-weight: bold;
    color: red;
}

/*------ definiciones para medio boton -------*/
.medioboton {
    width: 40%;
    display: inline-block;
}

.ui-btn-icon-left.medioboton {
    width: 48%;
    padding-right: 2px;
    padding-left:2px;
    margin: 0 0 0 0;
}
/*------ definiciones para medio boton HASTA ACA -------*/
