/*

Theme Name: EBE Horas - Getion del Personal
Theme URI: https://www.d10multimedia.es
Author: D10 Multimedia
Author URI: https://www.d10multimedia.es
Description: EBE Horas - Gestión del Personal
Version: 0.4
Template: x

*/

.x-btn {
	min-width: 40%;
	display: inline-block;
}


.x-btn:first-child { 
		margin-top: .3em;
		margin-bottom: .5em;
}

ul.sub-menu li.menu-item {
	font-size: 16px;
	text-transform: uppercase;
}

caption  {
	font-size: 1.6em;
	margin-bottom: 0.3em;
}

input,
select,
textarea {
	width: 85%;
	min-width: 150px;
}

/* NO SE ; PERO NO VA */
.text-capitalize {
    text-transform: capitalize;
}

/* HOVER AZUL EN BOTONES */
.x-btn:focus, .button:focus, [type="submit"]:focus {
	outline: thin dotted #333;
	outline: 10px auto #7cb5ff;
	outline-offset: -1px;
}


a:focus, select:focus, input[type="file"]:focus, input[type="radio"]:focus, input[type="submit"]:focus, input[type="checkbox"]:focus {
	outline: thin dotted #333;
	outline: 10px auto red;
	outline-offset: -1px;

}

/**************************
		MENUS OCULTOS
**************************/

ul#menu-main-menu li.menu-registrados {
	display: none;
}

body.logged-in ul#menu-main-menu li.menu-registrados {
	display: list-item;
}



/**************************
		TABLAS
**************************/

/**************************
	SPAN - VALIDATION
**************************/

.input-group {
	position: relative;
}


span.validation {
	text-transform: uppercase;
	color: #fff;
	background: #7cb5ff;
	padding: 1.1em;
	margin-left: 1em;
	border-radius: 8px;
	position: absolute;
    left: 30%;
    top: 20%;
}

span.validation::before {
	width: 0;
    height: 0;
    border-right: 10px solid #7CB5FF;
    border-top: 10px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 10px solid transparent ;
    display: inline;
    position: absolute;
	bottom: 15px;
	left: -20px;
    content: " ";

}



/**************************
		TABLAS
**************************/

/* 
Generic Styling, for Desktops/Laptops 
*/
table { 
  width: 100%; 
  border-collapse: collapse; 
}
/* Zebra striping */
tr:nth-of-type(odd) { 
  background: #eee; 
}

th {
	color: white;
	background: #ccc; 
}

/**************************
	HOVER - SELECTION					// PONERLE EL ID DE MOSTRAR-TABLA
**************************/


	#tabla_horas tr:hover {
		color: #fff;
	  	background-color: #7cb5ff;

	}


/**************************
		COLUMNAS
**************************/

.col1,
.col2 {
	width: 40%;
	margin: 0 2%;
	display: inline-block;
}


/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media 
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

	/* Force table to not be like tables anymore */
	table #tabla_horas , 
	#tabla_horas thead,
	#tabla_horas  tbody,
	#tabla_horas th, 
	#tabla_horas td, 
	#tabla_horas tr { 
		display: block; 
	}
	
	/* Hide table headers (but not display: none;, for accessibility) */
	#tabla_horas thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	#tabla_horas tr { border: 1px solid #ccc; }
	
	#tabla_horas td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		/*padding-left: 50%; */
		padding-left: 10em;
	}

	table #tabla_horas  td {
		padding-left: 40%;
	}
	
	#tabla_horas td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
	}
	
	/*
	Label the data
	*/
	#tabla_horas td:nth-of-type(1):before { content: "Nº"; }
	#tabla_horas td:nth-of-type(2):before { content: "Trabajador"; }
	#tabla_horas td:nth-of-type(3):before { content: "Fecha"; }
	#tabla_horas td:nth-of-type(4):before { content: "Obra"; }
	#tabla_horas td:nth-of-type(5):before { content: "Partida"; }
	#tabla_horas td:nth-of-type(6):before { content: "Horas"; }
	#tabla_horas td:nth-of-type(7):before { content: "Horas Extra"; }
	#tabla_horas td:nth-of-type(8):before { content: "Registro"; }
	
	#tabla_horas tr.obs {
		display: none;
	}

	.validation {
		font-size: 0.3em;
	}


}




/**************************
		MENU LOGEADOS
**************************/

	li.logeado,
	ul.x-nav li.logeado {
		display: none !important;
	}

	body.logged-in li.logeado {
		display: list-item !important;
	}

	body.logged-in li.logeado.admin {
		display: none !important;
	}




/**************************
			EBE
**************************/

#id,
#fecha {
	min-width: 30px;
	width: 100px;
}

.inline {
	display: inline-block;
	margin-right: 50px;
}

  .enviado {
    margin-left: 20%;
    margin-bottom: 50px;
    padding: 2%;
    border: 1px solid #0031A5;
    border-radius: 10px;
    display: inline-block; 
  }

 button.buscar {
 	top: -4px;
 }

button.validar[disabled] {
	background: red;
}


select, textarea, input, input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly], input.form-control {
	  border: 3px solid #0065d8;
}

/* LABELS */

input[name=alta] {
	display: none;
}

input[name=alta] + label {
	padding: 5px;
	color: #0065d8;
	border: 1px solid  #0065d8;
	border-radius: 5px;
	display: inline-block;
	width: 30%;
	text-align: center;
	font-size: 1.5em;
}

input[name=alta]:checked + label {
	color: #fff;
	background: #0065d8;
}


/**************************
			obs
**************************/

/*div.entry-wrap {
	position: relative;
}*/

.obs {
	position: fixed;
	width: 70%;
	height: 190px;
	top: 20px;
	margin: 0 2%;
	padding: 5px 20px;
	background-color: #0031A5;
	border: 2px solid #fff;
	border-radius: 5px;
	color: #fff;
	-webkit-box-shadow: 10px 10px 33px -12px rgba(0,0,0,0.62);
	-moz-box-shadow: 10px 10px 33px -12px rgba(0,0,0,0.62);
	box-shadow: 10px 10px 33px -12px rgba(0,0,0,0.62);
	z-index: 10000;
	overflow: hidden;
	display: none;

}


/**************************
		ACTUALIZAR
**************************/

.editar {
	text-decoration: underline;
}

.editar:hover {
	text-decoration: none;
	color: yellow;
	cursor: pointer;
}





/**************************
		IMPRIMIR
**************************/
div#imprimirinforme {
    border: 5px solid #5d5d5d;
    max-width: 300px;
    text-align: center;
    padding: 10px;
    color: #5d5d5d;
    font-weight: bold;
}
#imprimirinforme:hover {
	cursor: pointer;
	background: #5d5d5d;
	color: white;
}
@media print {
  #imprimirinforme, .masthead,.col1, footer{
  	display: none;
  }
  .informe h2,#informe_facturacion h2,#informe_facturacion h3,#informe_detallado_tra h2,#informe_detallado_tra h3,#informe_detallado_obra h2,#informe_detallado_obra h3{
  	page-break-before:always;
  }
  .first{
	page-break-before:initial !important;
  } 
}
