html, body {
    font-size: 0.9em;
    background-color: #f2f2f2;
    height: 100vh;
}

.celdaeditable {background: lightcyan}

body {
    /*background-image: url("/css/images/fondo.png"); Ahora aplico el fondo en el main.phtml.  Un fondo para cada empresa */
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;  
}

#wndHijo{
    background-color: #f2f2f2;
}

#wndHijoIframe{
    background-color: #f2f2f2;
}

#divLogo{
    position: absolute;
}

#logoCentral{
    max-height: 20vh;
    max-width: 35vh;
}
/*----LAYOUT----*/

header { 
    color: white; 
}

header a{ 
    color: white; 
}
header a:hover{ 
    color: white; 
}
header a:visited{ 
    color: white; 
}

.linkCabecera{
    display: block;
}

h2 {
    margin-bottom:5px;
    margin-left: 2px;
}

#divFoto > img {
    border-radius : 20% ;            
    margin: 1px;
    padding: 2px;
    border: 2px solid #eee;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.1)));
}

#divFoto > img:hover {
    opacity: 1;
    -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.4)));
    -webkit-box-shadow: 0px 0px 20px rgba(255,255,255,0.8);
    -moz-box-shadow: 0px 0px 20px rgba(255,255,255,0.8);
    box-shadow: 0px 0px 20px rgba(255,255,255,0.8);
}



#divFondo img {
    max-height: 150px;
    display: block;
    margin: 0 auto;}

.img-curso {
    margin-top: 5vh;
    max-height: 200px;
    border-radius: 10%;
}


#divFondo input{
    height: 30px;
    width: 160px;
}

#footer {
    padding-top:1em;
    margin-top:5em;
    border-top:1px solid #999;
}

.item-menu{
    color: white;
}

#btnMenu{
    margin-left: 10px;
    color: white;
    font-size: 16px;
}

/*---- FIN LAYOUT----*/

/* --- Menú --- */
.titulomenu{
    font-size: 100%;
    background-color: #baccda;
    color: #2e6e9e;
    font-weight: bold;
    padding: .3vh;
    margin-left: 1vw;
    margin-right: 1vw;
}

#divMenu{
    background-color: #E7F4FF;
    position: absolute;
    z-index: 1000;    
    width: 100%;
    border-color: #5c9ccc;
    border-style: solid;
    border-width: 2px;
}

.menu{
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    display: flex;
    flex-wrap: wrap;
    background-color: #E7F4FF;
}

.menu-item{
    flex-grow: 3;    
    min-width: 10vw;
    padding: 10px;    
    text-align: center;
}

.menu-item a{ color: #337ab7; }

.menu-item img {
    display: block;
}


/* Fin --- Menú --- */

/* --- Vistas ---- */

.titulo {
    margin-top:5px;    
    color:#3162A6;
    font-family:Tahoma,Verdana,Arial,Helvetica;
    font-size:14px;
    font-weight:bold;
    text-transform:none;
    margin-bottom: 10px;
}

#divBuscar {
    margin-top:0px;
    margin-bottom: 5px;
}

#divBotonera {
    float: right;
}

#divLista {
    width: 99%;
}

/* Fin --- Vistas ---- */

/* Formulario */
.number {  /* Esta es clase del jquery validate */
    text-align: right;
}
.digits {  /* Esta es clase del jquery validate */
    text-align: right;
}


/*---- jquery.validate -----*/
label.error {display:block; color: red;}

/* Mensaje de Error del Zend_form */
.errors {display:block; color: red;}
/* Fin ---- Formulario ---- */

/* Para aplicar estilos personalizados a JqueryUI*/
.ui-tabs .ui-tabs-nav li {
    padding: .5em 1em;
}

.ui-button-text-only .ui-button-text {
    font-size: 0.8em;
}

/* Color negro a las letras del datepicker */
.ui-datepicker select.ui-datepicker-month, .ui-datepicker select.ui-datepicker-year {
    color: black;
}

/* Hago un poco más oscuro el fondo, al cargar un diálogo */
.ui-widget-overlay{
    opacity: 0.5;
}


/*Para la venta eliminar del jqgrid*/ 
/* Al aplicar bootstrap el título de la ventana dialog que se muestra al eliminar 
un registro queda muy pequeño. Con esto lo ajustamos */
.ui-jqdialog .ui-jqdialog-titlebar {
   height: 30px;    
}
.fm-button {
   height: 30px;
}    

/* Para hacer los dialog responsive */
.ui-dialog {
    top: 0; left: 0;
    margin: auto;
/*    position: fixed;  Esto no dejaba escribir en el movil.  el teclado ocultaba el campo de texto. */
    max-width: 100%;
    max-height: 100%;
    flex-direction: column;
    align-items: stretch;
}
.ui-dialog .ui-dialog-content {
    flex: 1;
}

/* Para smartphones */
@media (max-width: 600px) {

    #menu{
        display: none;
    }

    #divMenu{
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    #divFondo{
        padding-top: 2vh;
    }

    #header > #divNombreSistema {
        height: 45px;
        background-color: #5c9ccc;
    }

    /* Para formularios*/
    input[type=text],
    input[type=email],
    input[type=url],
    input[type=password],
    textarea,
    select {
      width: 100%; 
    }    
    
    /* Para el Notify */
    .ui-pnotify-mobile-able.ui-pnotify {    
        width: 100vw!important; 
    }
}

/* Para escritorio */
@media (min-width: 600px) {

    #header {
        height: 70px;
    }

    #divFondo{
        padding-top: 2vh;
    }

    #header > #divNombreSistema {
        height: 70px;
        background-color: #5c9ccc;
    }

    /* Para formulario */
    .zend_form{
        width:100%;
        margin:5px auto;
        padding:0;
        overflow:auto;
    }

    .zend_form dt{
        padding:0;
        clear:both;
        width:25%;
        float:left;
        text-align:right;
        margin:5px 5px 5px 0;
    }

    .zend_form dd{
        padding:0;
        float:left;
        width:68%;
        margin:2px 2px 5px 0;
    }
    
    
}

/* Para los iconos de Material Design */
.material-icons.md-15 { 
    font-size: 14px; 
}

.material-icons.md-18 { 
    font-size: 18px; 
}
.material-icons.md-24 { 
    font-size: 24px; 
}
#divMenu .material-icons.md-36 { 
    font-size: 36px;
    color: #3864AC;    
}
.material-icons.md-48 { 
    font-size: 48px;
}

