/*
 * Estilos base sistema Alleanza 360
 *
 * Implementado por Abax Asesores - http://abaxasesores.com/
 *
 */

/*
 * Elementos HTML básicos
 *
 */

body {
  background-color: #fff;
  font: 14px/1.3em Verdana, sans-serif;
  margin-bottom: 1em;
}

h1 {
  font-size: 150%;
}

h2 {
  font-size: 130%;
}

h3 {
  font-size: 110%;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1.5em;
}

a {
  color: #333;
}

table {
  width: 100%;
  margin-bottom: 2em;
  border-top: 2px #ccc solid;
  border-bottom: 2px #ccc solid;
  font-size: 96%;
}

thead {
  border-bottom: 2px #ccc solid;
}

th, td {
  padding: 8px;
  vertical-align: middle;
}

tr.odd {
  background-color: #eee;
}

tr.table-empty {
  background-color: #eee;
  text-align: center;
}

/* Formularios */

.form-item {
  margin-bottom: 0.8em;
}

input {
  max-width: 95%;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5em;
}

/*
label:after {
  content: ':';
}
*/

label.required:after {
  content: ' *';
  color: #f00;
}

p.required-info {
  margin-bottom: 0;
  font-weight: bold;
  background-color: #eee;
  padding: 10px;
}

.field-helptext {
  font-size: 86%;
  color: #666;
}

.required-mark {
  color: #f00;
}

.label-inline label {
  display: inline;
}

.label-inline label:after {
  content: '';
}

form p {
  margin-bottom: 1.5em;
}

.form-buttoms {
  margin-top: 1em;
}

textarea {
  width: 95%;
  height: 10em;
}

/* elementos inline dentro de un form-item */
.inline-elements input[type="text"],
.inline-elements input[type="submit"],
.inline-elements label {
    display: inline-block;
    *display: inline;
    *zoom: 1;
    vertical-align: top;
}

.inline-elements label:first-child {
    display: block;
}

.inline-elements input {
    margin-right: 10px;
}

/* Selector de fecha */

#ui-datepicker-div {
  font-size: 82%;
  background-color: #eee;
  padding: 10px;
  border: 1px solid #ccc;
  box-shadow: 5px 5px 5px #ccc;
}

#ui-datepicker-div table {
  margin-bottom: 0;
}

#ui-datepicker-div th,
#ui-datepicker-div td {
  padding: 3px 5px;
  text-align: right;
}

.ui-datepicker-title {
  font-weight: bold;
  text-align: center;
}

.ui-datepicker-prev, .ui-datepicker-next {
  font-size: 90%;
  display: block;
  width: 50%;
  cursor: pointer;
}

.ui-datepicker-prev {
  float: left;
}

.ui-datepicker-next {
  float: right;
  text-align: right;
}

/* 
 * Estructura de la página
 *
 */

#header {
  height: 100px;
  position: relative;
  margin: 20px 0;
}

#empresa-logo-encuesta {
  position: absolute;
  right: 0;
  top: 0;
}

/*
#header img {
  margin-top: 10px;
}
*/

#site-name {
  position: absolute;
  right: 0;
  top: 40%;
  font-size: 200%;
  color: #999;
}

#logout {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 90%;
}

#page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 10;
}

/* Navegación */

#nav {
  overflow: hidden;
  border-top: 1px solid #999;
  border-left: 1px solid #999;
  border-right: 1px solid #999;
}

#nav li {
  border-bottom: 1px solid #999;
}

#nav a {
  display: block;
  padding: 1em;
  background-color: #eee;
}

#nav a:hover {
  background-color: #ccc;
}

/* Filtros en páginas */

.filter-block {
  padding: 20px;
  background-color: #eee;
  margin-bottom: 20px;
  overflow: hidden;
}

.filter-block-collapsible h3 {
  margin-bottom: 0;
  cursor: pointer;
}

.filter-block-collapsible h3:before {
  content: "▶ ";
  font-size: 120%;
}

.filter-block-collapsible .expanded h3:before {
  content: "▼ ";
  font-size: 120%;
}

.filter-block-collapsible .filtros-body {
  margin-top: 1em;
}

/* Tablas */

.tcell-checkbox {
  text-align: center;
  width: 2em;
}

.tcell-title {
  text-align: left;
}

.tcell-operations {
  text-align: right;
}

.tcell-operations-center {
  text-align: center;
}

.tcell-operations p {
  margin-bottom: 0.6em;
  line-height: 1em;
  font-size: 92%;
}

.tcell-operations input {
  font-size: 92%;
}

.table-actions {
  width: 100%;
  overflow: hidden;
  margin: 1em 0;
}

.table-actions .add {
  float: right;
}

.table-actions .delete {
  float: left;
}

/* Cuadros de diálogo */
.ui-dialog {
  background-color: #fff;
  padding: 50px;
  border: 1px dotted #ccc;
  position: absolute;
  overflow: hidden;
}

.ui-dialog-titlebar {
  width: 100%;
  position: absolute;
  top: 0;
  background-color: #ccc;
  left: 0;
}

.ui-draggable .ui-dialog-titlebar {
  cursor: move;
}

.ui-dialog-title {
  font-weight: bold;
  margin: 5px 10px;
  display: block;
  float: left;
}

.ui-dialog-titlebar-close {
  display: none;
}

.ui-dialog-buttonset {
  margin-top: 10px;
}

#page-overlay {
  position: fixed;
}

.ui-widget-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
}

/* 
 * Estilos específicos
 *
 */

#empresa-logo {
  overflow: hidden;
  margin-bottom: 1em;
}

#empresa-logo p {
  float: left;
  margin: 0 10px 0 0;
}

#logo-widget {
  padding-right: 10px;
  border-right: 1px solid #ccc;
  height: 100%;
}

/* Encuestas */

.accion-estado-encuesta {
  display: block;
  font-size: 120%;
  padding: 20px;
  text-align: center;
  background-color: #eee;
  margin: 10px 0;
  font-weight: bold;
}

#encuesta-local-actions {
  margin-bottom: 1em;
}

#abax_alleanzabundle_encuestatype_requiereValidacion label {
  display: inline;
}

#abax_alleanzabundle_encuestatype_requiereValidacion label:after {
  content: none;
}

#encuesta-datos-evaluado, #encuesta-info-general, #encuesta-datos-jefe {
  overflow: hidden;
  padding-top: 20px;
  border-bottom: 1px solid #ccc;
}

#encuesta-datos-evaluado label,
#encuesta-info-general label,
#encuesta-datos-jefe label {
  height: 2.2em;
  line-height: 1.1em;
}

#encuesta-datos-jefe {
  margin-bottom: 1em;
}

/* JQuery UI Tabs */
.ui-tabs .ui-tabs-hide {
  display: none;
}

.ui-tabs-nav {
  width: 100%;
  border-bottom: 1px solid #ccc;
  margin-bottom: 2em;
  font-size: 90%;
}

.ui-tabs-nav li {
  display: inline-block;
  margin-left: 0.5em;
  margin-bottom: -1px;
  border: 1px solid #ccc;
}

.ui-tabs-nav a {
  display: block;
  padding: 10px;
  background-color: #eee;
}

.ui-tabs-nav .ui-state-active {
  border-bottom: 1px solid #fff;
}

.ui-tabs-nav .ui-state-active a {
  background-color: #fff;
}

/* Dimensiones / Competencias / Comportamientos */

.competencia-container,
.comportamiento-container {
  margin-left: 30px;
}

.dimension-info,
.competencia-info,
.comportamiento-info {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  cursor: move;
}

.dimension-info p,
.competencia-info p,
.comportamiento-info p {
  line-height: 1.6em;
}

input.dimension-chkbox,
input.competencia-chkbox,
input.comportamiento-chkbox {
  float: left;
}

.dimension-name,
.comportamiento-name,
.competencia-name {
  margin-left: 5px;
  float: left;
}

.competencia-nueva,
.comportamiento-nuevo {
  position: absolute;
  top: 10px;
  right: 10px;
}

.comportamiento-info.ui-sortable-helper,
.ui-sortable-helper .comportamiento-info,
.ui-sortable-helper .competencia-info,
.ui-sortable-helper .dimension-info {
  background-color: #fffd9e;
}

#progress {
  text-align: center;
}

#progress img {
  margin-top: 20px;
}


#progress-bar {
    background: none repeat scroll 0 0 #97DD5F !important;
    box-shadow: 1px 0 2px #CCCCCC;
    overflow: hidden;
}
/*
 * Estado de proceso y encuesta
 *
 */

.estado-block {
  padding: 10px;
  background-color: #eee;
  margin-bottom: 20px;
  overflow: hidden;
}

.estado-block h2 {
  font-size: 110%;
  cursor: pointer;
  margin-bottom: 0;
}

.estado-block h2:before {
  content: "▶ ";
  font-size: 120%;
}

.estado-block .expanded h2:before {
  content: "▼ ";
  font-size: 120%;
}

.estado-block .encuestas-body {
  margin-top: 10px;
}

.estado-block h3 {
  margin-top: 1em;
  margin-bottom: 0.5em;
}

/*
 * Notificaciones
 *
 */

.flash-notice {
    padding: 20px 50px;
/*    margin-bottom: 20px;*/
    position: fixed;
    top: 0;
    width: 600px;
}

#error-lista, #error-respuesta {
    width: 840px;
}

.flash-notice.exito {
    background: #6dffb2 url("../img/notif-ok.png") no-repeat 15px 17px;
}

.flash-notice.error {
    background: #fab1b1 url("../img/notif-error.png") no-repeat 15px 17px;
}

/* globales de flash notice */
.flash-notice h2 {
    padding: 0px;
    margin-bottom: 15px;
}
.flash-notice p {
    margin-bottom: 10px;
}
.flash-notice ul {
    margin: 10px 0 0 20px;
}
.flash-notice li {
    list-style-type: disc
}

.flash-notice-actions {
    text-align: center;
}

.flash-notice-actions input[type="button"] {
    display: inline-block;
    *display: inline;
    *zoom: 1;
    margin-top: 20px;
}


/* Evaluadores de la encuesta */
.table-actions #evaluador-nuevo {
    margin-left: 20px;
}

/* Mensajes de la encuesta */

#lista-mensajes li a {
  display: block;
  background-color: #eee;
  padding: 10px;
  margin-bottom: 10px;
}

/* Reportes */
#tabs-reportes form {
  margin-bottom: 2em;
}

#tabs-reportes textarea {
  width: 100%;
}

/* Página de login */
#login-page #main {
  width: 300px;
  margin: 50px auto;
}

#login-page form {
  padding: 30px;
  background-color: #eee;
}

#login-error {
  background-color: #fab1b1;
  padding: 20px;
  margin-bottom: 2em;
}

/* Páginas de error (notice.html.twig) */

#error-page .error-message {
  font-size: 120%;
  background-color: #eee;
  padding: 30px;
}

/* Adjuntos */
#mensaje-adjunto p {
  margin: 0.5em 0;
  font-weight: bold;
}

/* Aprobación de listas de evaluadores */

.botones-lista-evaluadores {
  margin: 1em 0;
  padding-top: 1em;
  border-top: 1px solid #ccc;
  overflow: hidden;
}

.enviar-lista-evaluadores {
  padding: 10px;
  background-color: #eee;
  font-size: 110%;
  border: 1px solid #ccc;
  display: block;
  float: left;
  font-weight: bold;
}

.clear_left {
    clear: left;
}

/* Mensajes de ayuda en páginas de revisión de evaluadores */

.help-message {
  margin-bottom: 0.5em;
}

label.error {
    background: url("../img/unchecked.gif") no-repeat 0px 2px;
    padding-left: 16px;
    color: #EA5200;
}

/* Footer */

.footer {
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid #ccc;
  overflow: hidden;
}

.footer img {
  float: right;
  margin-right: 15px;
}

.footer p {
  font-size: 80%;
  color: #666;
  line-height: 1em;
  float: right;
}
