html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body.sos {
    background: #8BC756;
}

/* Header */
header{
    position: fixed;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent), #8BC756;
    box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 
        0 6px 20px 0 rgba(0, 0, 0, 0.19);
    z-index: 1000;
}

/* Logo */
header .logo {
    height: 50px;
}

header .logo > a > div + div {
    height: 50px;
    line-height: 50px;
    padding-top: 0;
    padding-bottom: 0;
}

header .logo > a > div + div > h1 {
    margin: 0;
} 

/* Footer */
footer{
    width: 100%;
    height: auto;
}

footer{
    background: #8BC756;
    border-top: 8px solid #5BA817;
}

footer p{
    margin: 0;
    padding-top: 30px;
    padding-bottom: 30px;

    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

footer p{
    color: white;
}

footer p a{
    color: white;
    text-decoration: none;
}

footer p a{
    color: white;
}

/* Menu */
menu{
    height: 100%;
    margin: 0;
    z-index: 2000;
}

menu form{
    height: 100%;
}

menu ul{
    display: flex;
    margin: 0;
    padding-left: 0;
    width: auto;
    height: 100%;
    -webkit-flex-direction: row;
    flex-direction: row;
    justify-content: flex-end;
    align-content: center;
}

menu li,
div.menu-collapsable li{
    position: relative;
    display: block;
    box-sizing: border-box;
    margin: 0 5px;
    width: auto;
    height: 50px;
    line-height: 50px;
    cursor: pointer;
}

menu li a,
div.menu-collapsable li a{
    display: block;
    padding: 0 10px;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
}

menu li a i,
div.menu-collapsable li a i {
    margin-right: 10px;
}

menu div.submenu{
    display: none;
    position: absolute;
    right: 20px;
    width: 300px;
    height: auto;
    background-color: white;
    box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 
        0 6px 20px 0 rgba(0, 0, 0, 0.19);
    z-index: 400000;
}

menu div.submenu ul{
    display: block;
}

menu div.submenu li{
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
}

menu div.submenu a{
    display: block;
    padding: 10px 0px 10px 20px;
}

menu li a{
    color: white;
    -webkit-text-shadow: 1px 1px 1px #444;
    text-shadow: 1px 1px 1px #444;
}

menu li div.submenu a{
    color: black;

    -webkit-text-shadow: none;
    text-shadow: none;
}

/* Menu colapsable */
menu.collapsable {
    position: relative;
    text-align: right;
}

menu.collapsable > a {
    color: #fff;
}

menu.collapsable > a > i {
    margin-right: 15px;
    font-size: 16pt;
    line-height: 50px;
}

div.menu-collapsable {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: white;
    box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 
        0 6px 20px 0 rgba(0, 0, 0, 0.19);
    z-index: 400000;
}

div.menu-collapsable li {
    text-align: left;
}

div.menu-collapsable li.divisor {
    border-top: 1px solid #e5e5e5;
}

div.menu-collapsable li a:hover,
menu li div.submenu a:hover{
    color: white;
}

div.menu-collapsable li a:hover,
header menu li a:hover{
    background-color: #8BC756;
}

/* Estructura */
div.contenedor {
    min-height: 80vh;
}

div.contenedorMenuFake {
    padding-top: 15px;
    padding-bottom: 15px;
}

div.contenedorMenu{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    padding-top: 0;
    background-color: white;
    box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 
        0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

div.contenedorMenuSm{
    margin-top: 50px;
}

div.contenedorMenuSm .ui-datascroller .ui-datascroller-content {
    padding: 0;
}

/* Barra Eventos */
.eventosClass .ui-widget-content{
    background-color: transparent;
    border: 0;
    
}

#eventosForm .ui-datascroller-content{
    padding: 0;
    
}

.eventosClass .ui-datascroller-item{
    padding: 0;
    border-bottom: 1px solid #ccc !important;
   
}

.eventosClass .ui-datascroller-item:nth-child(even){
   
}

.eventosClass .ui-datascroller-item:last-child{
    border-bottom: 0;
    
}

.eventosClass .ui-datascroller-item table{
    width: 100%;
    border-collapse: collapse;
    
}

.eventosClass .ui-datascroller-item table tr td{
    padding: 0;
    height: 20px;
    border-bottom: 1px solid #f0f0f0;
     
}

.eventosClass .ui-datascroller-item > table > tbody > tr > td > div > table > tbody > tr > td:first-child{
    padding-left: 10px;
    
    
}

.eventosClass .ui-datascroller-item > table > tbody > tr > td > div > table > tbody > tr > td:last-child{
    padding-right: 10px;
    
}

.eventosClass .ui-datascroller-item > table > tbody > tr > td > div > table > tbody > tr > td{
    padding-top: 5px;
    /*background-image: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);*/

}

.eventosClass .ui-datascroller-item > table > tbody > tr > td > div > table > tbody > tr:first-child > td{
    padding-top: 5px;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
}

.eventosClass .ui-datascroller-item > table > tbody > tr > td > div > table > tbody > tr:last-child > td{
    padding-top: 10px;
    padding-bottom: 5px;
    border-bottom: 0;
}

.eventosClass .direccion,
.eventosClass .fecha, 
.eventosClass .atender{
    background-color: white;
}

.eventosClass .tipo td.icono,
.eventosClass .direccion td.icono,
.eventosClass .fecha td.icono{
    padding-right: 5px;
}

.eventosClass .tipo td.icono img,
.eventosClass .direccion td.icono img,
.eventosClass .fecha td.icono img{
    width: 16px;
    vertical-align: middle;
}

.eventosClass .tipo{
    font-size: 16px;
    color: white;
    text-shadow: 2px 1px 2px black;
    
}

.eventosClass .valor input[type="submit"]{
    float: right;
}

.alertaAcciones .ui-widget-content{
    background-color: transparent;
}

.alertaAcciones .ui-panelgrid-cell.mapa,
.alertaAcciones .ui-panelgrid-cell.evento{
    padding: 3px;
    border: 0;
    text-align: center;
}

.alertaAcciones .ui-panelgrid-cell.mapa a,
.alertaAcciones .ui-panelgrid-cell.evento a{
    padding: 5px 18px;
    border-top: 1px solid #e5e5e5;
    border-radius: 4px;
    border-bottom: 1px solid #e5e5e5;
    color: #fff;
    text-decoration: none;
}

.alertaAcciones .ui-panelgrid-cell.mapa a{
    background-image: linear-gradient(to top, #8BC756, #044F7F);
}

.alertaAcciones .ui-panelgrid-cell.evento a{
    background-image: linear-gradient(to top, #8BC756, #044F7F);
}

#eventosFormScroller {
    margin-top: 50px;
    width: 100%;
    height: calc(100% - 50px);
    overflow-y: scroll;
}

#eventosFormScroller::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #5BA817;
}

#eventosFormScroller::-webkit-scrollbar {
    width: 13px;
    background-color: #5BA817;
}

#eventosFormScroller::-webkit-scrollbar-thumb {
    background-color: #5BA817;
    background-image: -webkit-linear-gradient(
        45deg,
        rgba(255, 255, 255, .2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, .2) 50%,
        rgba(255, 255, 255, .2) 75%,
        transparent 75%,
        transparent)
}

/* Barra Eventos SM */
#eventosSmTrigger {
    position: relative;
    padding: 0 .5em;
    height: 50px;
    line-height: 50px;
    background-color: #262626;
    color: #fff;
    font-weight: bold;
}

#eventosSmTrigger > i {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    line-height: 50px;
}

/* Navegacion */ 
nav{
    overflow: hidden;
}

nav ul{
    margin: 0px;
    padding: 0px;
    width: 100%;
    list-style: none;
}

nav li{   
    display: block;
    width: 100%;
    font-size: 13px;
    font-weight: normal;
}

nav li i{
    padding-right: 10px;
}

nav a, nav a:hover{
    display: block;
    padding: 15px;
    width: 100%;
    color: black;
    text-decoration: none;
}

nav li a:hover{ 
    background-color: #F3F3F3;
}

nav ul.subMenu{
    display: none; 
}

nav li.expandido a{
    background-color: #F3F3F3;    
}

nav li.expandido ul.subMenu a{
    padding-left: 30px;
    background-color: white;
}

nav li.activo a{
    color: white;
    text-shadow: 1px 1px 1px black;
    background-color: #80AEF3;
}

nav ul.subMenu li.subMenuItemActivo, 
nav li.expandido ul.subMenu li.subMenuItemActivo a{
    color: white;
    text-shadow: 1px 1px 1px black;
    background-color: #80AEF3;
}

/* Fieldset */
fieldset label{
    display: block;
    width: auto;
    min-width: 150px;
    font-size: 14px;
    font-weight: normal;
    text-decoration: none;
}

fieldset .ui-selectonemenu label{
    min-width: 0;
}

span.ui-outputlabel-rfi{
    color: red;
}

fieldset tr td:nth-child(2) {
    min-width: 230px;
}

fieldset table.tresColumnas tr td:nth-child(2) {
    min-width: 40px;
}

/* Article */
article {
    padding: 90px 40px 0 40px;
    width: auto;
    min-height: 80vh;
    background-color: white;
}

article fieldset{
    margin: 30px 0px;
    padding: 20px;
    box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 
        0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

article fieldset tr, .ui-dialog-content fieldset tr{
    display: block;

    margin: 5px 0px;
}

article ul{
    list-style-type: disc;
    list-style-position: inside;
}

article ul a, article ul a:visited{
    color: black;

    font-size: 14px;
    font-weight: normal;
    text-decoration: none;
}

article li{
    margin-bottom: 10px;
}

article li a:hover{
    color: #3879D9;
    text-decoration: underline;
}

/* Titulos */
h1{
    float: left;
    box-sizing: border-box;
    padding: 14px 0px 10px 30px;
    width: auto;
    height: 100%;
    font-size: 21px;
    font-weight: 300;
    text-transform: none;
    border: 0px;
}

h1{
    color: white;
    -webkit-text-shadow: 1px 1px 1px #444;
    text-shadow: 1px 1px 1px #444;
}

h3{
    margin: 20px 0px 20px;
    font-size: 20px;
    font-weight: normal;
}

h3{
    color: #8BC756;
}

li.blue, li.blue a,
h1.blue, h2.blue, h3.blue {
    color: #8BC756;
    text-shadow: none;
}

li.blue:hover, li.blue:hover a {
    color: white;
}

h1.underlined, h2.underlined, h3.underlined {
    border-bottom: 1px solid #8BC756;
}

h3.opciones {
    padding-top: 20px;
    border-top: 1px solid #5f6f81;
}

h3.reporte3:before{
    content: '\f02f';
    padding-right: 10pt;
    color: #407BB2;
    font-family: 'FontAwesome';
    font-size: 22pt;
}

/* Botones incio */
a.botonInicio, a.botonInicio:link, a.botonInicio:active, a.botonInicio:hover, a.botonInicio:visited{
    float: left;
    display: block;

    margin: 20px 20px 20px 0;
    padding: 20px 20px;

    color: black;
    font-size: 14px;
    text-align: left;
    text-decoration: none;

    transition: 0.5s;

    box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 
        0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

a.botonInicio i{
    margin-right: 10px;

    padding: 10px 10px;

    width: 18px;
    height: 18px;

    color: white;
    font-size: 18px;
    text-align: center;

    border-radius: 50%;
    -webkit-border-radius: 50%;
}

a.botonInicio i{
    background-color: #8BC756;
}

/* Login */
html#login{
    width: 100%;
    height: 100%;

    overflow: hidden;
}

html#login fieldset {
    border: 0;
}

html#login body{
    width: 100%;
    height: 100%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;

    transition: background 1s linear;

    overflow: hidden;
}    

html#login img.logo{
    display: block;
    margin-top: 40px;
    margin-bottom: 40px;
}

html#login article{
    padding: 0px;

    width: 100%;
    height: 100%;

    background: none;
}

html#login form{

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;

    margin: 0 auto;

    width: auto;
    height: 100%;

    background-color: transparent;
}

html#login div.loginForm {
    align-self: center;
    box-sizing: border-box;

    padding: 10px;

    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);

    background-image: linear-gradient(to top, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.9));
}

html#login form fieldset{   
    width: auto;
    box-shadow: none;
}

html#login form label{
    color: black;
    min-width: auto;
}

html#login button{
    display: block;

    margin: 0px auto;
}

html#login div.footer{
    margin-top: 30px;
}

html#login p{
    clear: both;
    color: black;
    font-size: 14px;
    line-height: 2.5;
    text-align: center;
    text-decoration: none;
}

html#login p a{
    clear: both;
    color: black;
    text-decoration: none;
}

a.sos{
    background-color: #8BC756;
}

a.sos:hover{
    background-color: #8BC756;
}

a.sos span.nombre{
    background-color: #8BC756;
}

/* Primefaces */
.ui-fieldset-legend.ui-corner-all.ui-state-default {
    cursor: default;
    background: #fafafa;
    box-shadow: none;
    border-radius: 2px;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.ui-widget-content{
    border: hidden;
}

.ui-dialog.ui-widget-content .ui-dialog-title{
    font-size: 16px !important;
    text-transform: none !important;
}

.ui-panelgrid tr{
    display: table-row;
    border: hidden;
}
.ui-panelgrid .ui-panelgrid-cell{
    border: hidden;
}
.ui-filter-column span{
    display: block;
    margin-bottom: 10px;
}

.datatable{
    width: 840px;
}

.editableDataList td[role="gridcell"] {
    padding: 0;
}

.editableDataList td[role="gridcell"]:first-child {
    padding: 10px 4px;
}

.editableDataList td[role="gridcell"] input {
    border: 0;
    padding: 10px 4px;
    background: transparent;
}

.fondosDataList img {
    max-height: 200px;
}

.ui-datepicker-trigger{
    width: 7px;
    margin-left: 10px;
}

.panelGrid td:first-child label{
    padding-left: 0px;
}

.ui-panelgrid.formPanelGrid td.ui-panelgrid-cell {
    border-color: transparent;
    border: hidden;
   
}

.ui-panelgrid .ui-panelgrid-cell{
     border-style: none !important;
}
/* Tablas */
table tr td {
    border-collapse: collapse;
    border-style: none;
}
form#formAgregar table tr td {
    width: 50%;
}


/* Utils */
div.clear{
    clear: both;
}

div.clearDefault{
    clear: both;
    padding: 10px 0px;
}

.floatLeft{
    float: left;
}

.floatRight{
    float: right;
}

.text-center {
    text-align: center;
}

li {
    list-style: none;
}

.overflowEllipsis{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

#eventosFormScroller#eventosForm#eventos{
    background: teal;
}

.eventosClass .ui-datascroller-item > table > tbody > tr > td > div > table > tbody > tr:first-child > td{
    width: 0px;
}



/* Responsive */
@media screen and (max-width: 40em) {
    .hidden-sm {
        display: none !important;
    }

    div.menu-collapsable {
        position: relative;
        top: 0;
    }

    article {
        margin-top: 10px;
    }
}

@media screen and (min-width: 40.063em) and (max-width: 64.063em) {
    .hidden-md-x {
        display: none !important;
    }
}

@media screen and (max-width: 64.063em) {
    .hidden-md {
        display: none !important;
    }
}

@media screen and (min-width: 64.063em) {
    .hidden-lg {
        display: none !important;
    }
}

@media screen and (min-width: 90.063em) {
    .hidden-xl {
        display: none !important;
    }
}