/* 
    Document   : custom
    Created on : 25/06/2015, 11:17:32 AM
    Author     : Juan Francisco Alvarez Urquijo <fkoner@gmail.com>
    Description:
        Purpose of the stylesheet follows.
*/

.background {
    fill: none;
    pointer-events: all;
}

#states {
    fill: #aaa;
}

#states .active {
    fill: orange;
}

#state-borders {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5px;
    stroke-linejoin: round;
    stroke-linecap: round;
    pointer-events: none;
}

.entidad-label {
    fill: #777;
    fill-opacity: .5;
    font-size: 11px;
    font-weight: 300;
    text-anchor: middle;
}

.text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    /*pointer-events: none;*/
}


[draggable=true] {
    cursor: pointer;
}

.chart-title {
    cursor: move;
}

.grid-stack-item-content {
    /*
    background: white;
    color: #2c3e50;
    font-family: 'Indie Flower', cursive;
    text-align: center;
    font-size: 20px;
    */
}

.dc-chart g.row text {
    /*color: black;*/
    fill: black;
    font-size: 12px;
    cursor: pointer;
}

.mytext {
    font-size: 12px;
}

/*
.dc-chart .brush rect.extent {
    fill: #0074BE;
    fill-opacity: .125;
}

.dc-chart .brush .resize path {
    fill: #0074BE;
    stroke: #1D2A4D;
}

.dc-chart g.debug rect {
    fill: #0074BE;
    fill-opacity: .2;
}
*/

.chart-body .line {
    stroke: #1D2A4D;
}

.chart-body .area {
    fill: #0074BE;
    fill-opacity: .2;
}

.standardOver { 
    background-color: #638cb5;
    color: #D8D8D8;	
}

.TableHeader {
    text-align: center;
    font-family: Arial Narrow, Arial, Helvetica, sans-serif;
    font-size: 11pt;
    background: rgb(9, 41, 78);
    color: #ffffff;
    font-weight: bold;
}

.TableRow1 {
    font-family: Arial Narrow, Arial, Helvetica, sans-serif;
    font-size: 11pt;
    color: rgb(9, 41, 78);
    background-color: rgb(222, 222, 221);
}

.TableRow2 {
    font-family: Arial Narrow, Arial, Helvetica, sans-serif;
    font-size: 11pt;
    color: rgb(9, 41, 78);
    background-color: #ffffff;
}

.letra {
    color: #ffffff;
}

.EstiloOk {
    font-family: Arial Narrow, Arial, Helvetica, sans-serif;
    font-style: oblique;
    font-size: 11pt;
    color: #0066CC;
}

.EstiloErr {
    font-family: Arial Narrow, Arial, Helvetica, sans-serif;
    font-style: oblique;
    font-size: 11pt;
    color: #ff0000;
}

.errors {
    font-family: arial;
    font-size: 12px;
    font-style: oblique;
    color: red;
}

#spinner {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    /*//background: url(../images/icons/ajaxloader.gif) 50% 50% no-repeat #ede9df;*/
    background: url("/CenevalArchivosWeb/javax.faces.resource/icons/ajaxloader.gif?ln=images") 50% 50% no-repeat #ede9df;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* Set the fixed height of the footer here */
    height: 40px;
    /*background-color: #f5f5f5;*/
    text-align: right;
    font-size: 10px;
    color: white;
}

.EstiloTitulo {
    font-family: Arial Narrow, Arial, Helvetica, sans-serif;
    font-size: 12pt;
    font-weight: bold;
    text-align: center;
    color: rgb(9, 41, 78);
    background: rgb(194, 193, 193);
}

.EstiloLetra {
    font-family: Arial Narrow, Arial, Helvetica, sans-serif;
    font-size: 11pt;
    color: rgb(9, 41, 78);
    font-weight: normal;
}

.EstiloMargen {
    border: 0.5pt solid #FFFFFF;
    border-style: solid;
    text-align: left;
    empty-cells: show;
    background-color: #FFFFFF;
    width: 900px;
}

.EstiloPanel {
    /*background-color: rgb(248, 248, 248);*/
    background-color: rgb(240, 240, 240);
}

.EstiloPanelError {
    font-family: Arial Narrow, Arial, Helvetica, sans-serif;
    font-size: 12pt;
    font-weight: bold;
    text-align: center;
    color: rgb(255, 255, 255);
    background: #011c5f;
}


.astRojo {
    color: #ff0000;
}

.astHidden {
    visibility: hidden;
}

/** Styles for Footer Support **/
html,
body {
    margin:0;
    padding:0;
    height:100%;
}
#container {
    min-height:100%;
    position:relative;
}
/*
#header {
    background:#ff0;
    padding:10px;
}
*/
#body {
    padding:10px;
    padding-bottom:60px;	/* Height of the footer */
}
#footer {
    position:absolute;
    bottom:0;
    width:100%;
    height:60px;			/* Height of the footer */
}
/* other non-essential CSS */
#header p,
#header h1 {
    margin:0;
    padding:10px 0 0 10px;
}
#footer p {
    margin:0;
    padding:10px;
}

/** Estilos para las Fechas **/
span > input[id$=".day"], 
span > input[id$=".year"], 
span > input[id$=".hours"],
span > input[id$=".minutes"] {
    width: 15%;
    display: inline;
    text-align: center;
}

span > select[id$=".month"] {
    width: 37%;
    display: inline;
    text-align: center;
    /*padding-left: 10%;*/
}

span#project_version {
    font-size: 12px;
}



/**
    Skinning Bootstrap Theme PrimeFaces
**/
.ui-widget {
    font-family: "Helvetica Neue",Helvetica, Arial Narrow, Arial, sans-serif;
    /*//font-family: "Helvetica Neue", Helvetica, Arial Narrow, Arial;*/
    font-size: 0.9em;
}

/*
.fixed-size {
    table-layout: fixed;
    word-wrap: break-word;
}
*/

.ui-datatable tbody td {
    white-space: normal;
    /*//text-wrap: normal;*/
    /*//word-wrap: break-word;*/
}

.ui-paginator.ui-paginator-top.ui-widget-header,
.ui-paginator.ui-paginator-bottom.ui-widget-header.ui-corner-bottom {
    background: #ffffff;
    border: 0px;
}

.ui-datatable tbody tr td, ui-datatable-tablewrapper tbody tr td {
    white-space: normal;
    text-align: center;
    /*//text-wrap: normal;*/
    /*//word-wrap: break-word;*/
}

.ui-datatable tbody tr.ui-expanded-row-content td {
    text-align: center;
}

.btn-group-sm > .btn {
    font-size: 1.0em;
}

span.input-group-btn > button.ui-widget {
    font-size: 10.5px;
}

.btn-file {
    position: relative;
    overflow: hidden;
}
.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}


/* =============================================================================
   FIX: botones azules que se volvian blancos al accionarlos (click/focus/active).
   Causa: keen-static.css define ".btn { background: transparent; border:1px solid white; }"
   y se carga despues de bootstrap, por lo que en los estados :focus/:active el
   boton perdia el azul y quedaba blanco. Se restaura el estilo primary de Bootstrap
   con selectores mas especificos (.btn.btn-primary) para ganar a la regla .btn de keen
   en todos los estados. Los colores son los de btn-primary de Bootstrap 3.
   ========================================================================== */
.btn.btn-primary,
.btn.btn-primary:link,
.btn.btn-primary:visited {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary.focus,
.btn.btn-primary:active,
.btn.btn-primary.active {
    color: #fff;
    background-color: #286090;
    border-color: #204d74;
}
/* Mismo problema que btn-primary pero para btn-success (boton "Descargar Excel" del
   reporte EGEL). Sin esto, la regla .btn de keen (fondo transparente + texto blanco)
   dejaba el enlace invisible en estado normal y solo aparecia en :hover. Colores de
   btn-success de Bootstrap 3. */
a.btn.btn-success,
a.btn.btn-success:link,
a.btn.btn-success:visited,
.btn.btn-success,
.btn.btn-success:link,
.btn.btn-success:visited {
    color: #fff !important;
    background-color: #5cb85c !important;
    border-color: #4cae4c !important;
    border-style: solid !important;
}
a.btn.btn-success:hover,
a.btn.btn-success:focus,
a.btn.btn-success:active,
.btn.btn-success:hover,
.btn.btn-success:focus,
.btn.btn-success.focus,
.btn.btn-success:active,
.btn.btn-success.active {
    color: #fff !important;
    background-color: #449d44 !important;
    border-color: #398439 !important;
}

/* Boton "Descargar Excel" del reporte EGEL. Clase dedicada btn-descarga-egel con maxima
   fuerza para que sea SIEMPRE verde y visible (antes y despues del postback de Buscar),
   sin depender de que las reglas de keen no ganen. Cubre todos los estados del <a>. */
a.btn-descarga-egel,
a.btn-descarga-egel:link,
a.btn-descarga-egel:visited,
a.btn-descarga-egel:hover,
a.btn-descarga-egel:focus,
a.btn-descarga-egel:active,
.btn-descarga-egel {
    color: #fff !important;
    background-color: #5cb85c !important;
    background-image: none !important;
    border: 1px solid #4cae4c !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration: none !important;
}
a.btn-descarga-egel:hover,
a.btn-descarga-egel:focus,
a.btn-descarga-egel:active {
    background-color: #449d44 !important;
    border-color: #398439 !important;
}

/* Boton deshabilitado: mantiene el azul atenuado (no blanco). */
.btn.btn-primary.disabled,
.btn.btn-primary[disabled],
.btn.btn-primary:disabled {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
    opacity: 0.65;
}


/* =============================================================================
   Boton de logout (cerrar sesion) del sustentante: efecto al pasar el mouse.
   Resalta con fondo suave, borde redondeado y realce de la imagen (brillo +
   leve zoom), con transicion suave. La clase .btn-logout la aplica el
   <h:commandLink styleClass="btn-logout"> en templates/main/header.xhtml.
   ========================================================================== */
/* Selectores CON alta especificidad (incluyen el contexto .navbar-nav > li >) para
   GANAR a las reglas de bootstrap y de keen-static.css, que definen
   ".navbar-nav > li > a:hover { background: transparent none; }" y anulaban el efecto.
   Se marca !important en el fondo por el 'none' del shorthand de keen. */
.navbar-nav > li > a.btn-logout,
a.btn-logout {
    display: inline-block;
    border-radius: 6px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.navbar-nav > li > a.btn-logout img,
a.btn-logout img {
    transition: transform 0.2s ease, filter 0.2s ease;
    vertical-align: middle;
}
.navbar-inverse .navbar-nav > li > a.btn-logout:hover,
.navbar-inverse .navbar-nav > li > a.btn-logout:focus,
.navbar-nav > li > a.btn-logout:hover,
.navbar-nav > li > a.btn-logout:focus,
a.btn-logout:hover,
a.btn-logout:focus {
    background-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    border-radius: 6px;
}
.navbar-nav > li > a.btn-logout:hover img,
.navbar-nav > li > a.btn-logout:focus img,
a.btn-logout:hover img,
a.btn-logout:focus img {
    transform: scale(1.10);
    filter: brightness(1.2);
}
.navbar-nav > li > a.btn-logout:active img,
a.btn-logout:active img {
    transform: scale(0.98);
}


/* Boton "Notificar al sustentante" (expediente.xhtml): rojo llamativo, alineado a la
   derecha. Se fuerza el color con !important para ganar a la regla .btn de keen (fondo
   transparente/blanco). Colores de btn-danger de Bootstrap 3. */
.btn.btn-notificar,
.btn.btn-notificar:link,
.btn.btn-notificar:visited,
button.btn-notificar,
input.btn-notificar {
    color: #fff !important;
    background-color: #d9534f !important;
    border-color: #d43f3a !important;
    font-weight: bold !important;
}
.btn.btn-notificar:hover,
.btn.btn-notificar:focus,
.btn.btn-notificar:active,
button.btn-notificar:hover,
button.btn-notificar:focus {
    color: #fff !important;
    background-color: #c9302c !important;
    border-color: #ac2925 !important;
}
/* Boton deshabilitado: SIEMPRE rojo intenso (mismo color que el estado normal), sin
   atenuar ni cambiar de tono; solo el cursor indica que no esta activo. */
.btn.btn-notificar:disabled,
.btn.btn-notificar[disabled],
button.btn-notificar:disabled,
button.btn-notificar[disabled],
.ui-state-disabled.btn-notificar,
.btn-notificar.ui-state-disabled {
    color: #fff !important;
    background-color: #d9534f !important;
    border-color: #d43f3a !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}
