@import url('ico.css');
*,
*:after,
*:before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body{
    font-size: 100%;
    list-style-type: none;
    font-family: verdana;
    /*display: grid; min-height: 100vh; grid-template-rows: auto 1fr auto;*/
}
/*****************************MODAL***********************************/
#contModal{
  opacity: 0;
  visibility: hidden;
  *display: none;
	display: flex;
	position: fixed;
	z-index:100;
	overflow: auto;
	left: 0;
	top:0;
	width: 100%;
	height:100vh;
	background: rgba(0, 0, 0, 0.452);
  justify-content: center;
  align-items: center;
}
#Modal{
	position: relative;
	background-color: #fefefe;
	margin: auto;
	*width: 70%;
  *height: 90vh;
	box-shadow: 0 0 6px 0 rgba(0, 0, 0, .4);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
	*animation-name: animar-modal;
	*animation-duration: 1s;
  transition: transform 1s;
  transform: translateY(0%);
  border-radius: 10px;
}
@keyframes animar-modal{
	from{top:-330px; opacity:0;}
	to{top:0; opacity:1;}
}
.salir-modal{
  transform: translateY(-200%);
}
.cerrar{
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-block;
  width: 35px;
  height: 25px;
  background: #c44a4a;
  color: #fff;
  line-height: 25px;
  cursor: pointer;
  border-radius: 10%;
  text-align: center;
}
/*****************************FIN MODAL*********************************/
header{
  width: 100%;
  background: #97670D;
  height: 50px;
  color: white;/*#E0CB74;*/
  display: flex;
  align-items: center;
  position: relative;
  /*position: fixed;*/
}
header > div{
  padding: 4px;
}
.logo{
  margin-left: 20px;
}
.empresa{
  width: 45%;
  font-size: 1.2em;
}
.opciones{
  width: 35%;
  display: inline;
}
#opmenu{
  display: inline;
}
#perfil{
  width: 15%;
  text-align: right;
  z-index: 1000;
}
nav{
  background-color: #E7D57E;
  width: 100%;
  min-height: 60px;
  position: sticky;
  display: flex;
  align-items: center;
  top: 0;
  padding-left: 50px;
  padding-right: 50px;
  /*display: none;*/
}
nav > div{
  min-height: 40px;
  border-style: groove;
  border-radius: 5px;
  width: 90%;
  margin: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  align-items: center;
}
#filtros{
display: inline-block;
border: 1px solid #97670D;
border-radius: 5px;
margin-left: 20px;
padding: 0 10px 0 5px;
background: #D6FFD6;
}
.etiqueta-marco{
  color: white;
  position: relative;
  top: -13px;
  background-color: #E7D57E;
  margin-left: 20px;
  padding: 0 10px 3px 10px;
  max-width: 50%;
  border: 1px solid #97670D;
  border-radius: 3px;

}
.enlace{
  cursor: pointer;
}
.in-datos{
display: flex;
padding: 5px;
margin: auto;
}
.in-datos > label{
  width: 40%;
  padding: 3px;
}
.in-datos > input, date, select, textarea, time, email{
  width: 60%;
  height: 25px;
}

/*PAGINACIÓN*/
.btnNav{
  padding: 5px;
  margin-top: 5px;
  background: #FFF;
  color: #428BCA;
  border: 1px solid #DDD;
  font-size: 12px;
  cursor: pointer;
}
.btnNavSeleccionado{
  padding: 5px;
  margin-top: 5px;
  border: 1px solid #DDD;
  background: crimson;
  color: #FFF;
  background: #428BCA;
  border-radius: 3px;
  font-size: 12px;
}
#contenedorPaginas{
width: 97%;
max-width: 97%;
margin: auto;
margin-top: 20px;
*background: #fafafa;
display: flex;
display: inline-block;
justify-content: center;
align-items: center;
text-align: center;
}
#selectorRegistros{
  width: 100px;
  height: 28px;
  margin-top: 5px;
  background: #FFF;
  color: #428BCA;
  border: 1px solid #DDD;
  font-size: 12px;
}
/*PIE DEL SISTEMA*/
footer{
  display: flex;
  align-items: center;
  width: 100%;
  height: 35px;
  background-color: #EBC8BD;
}
footer > div {
  margin: auto;
}

/*FORMULARIOS*/
#frm{
  border: 1px solid #97670D;
  margin: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  width: 90%;

  background-color: rgba(227,171,141, 0.2);
  border-radius: 10px;
  box-shadow: 0 5px 10px -5px rgb(0 0 0 / 30%)
}
#frm-cont{
    padding: 0 1em;
    width: 100%;
    margin-top: .7em;
    margin-bottom: .8em;
}
#frm-modal{
  border: 1px solid #97670D;
  margin: auto;
  width: 100%;
  background-color: rgba(227,171,141, 0.2);
  border-radius: 10px;
  box-shadow: 0 5px 10px -5px rgb(0 0 0 / 30%)
}
#frm-cont-modal{
    padding: 0 1em;
    width: 100%;
    margin-top: .7em;
    margin-bottom: .8em;
}
#frm > h1,h2,h3,h4,h5,h6{
  text-align: center;
  margin-bottom: 3px;
}
#frm > h1,h2{
  background: crimson;
  border-radius: 9px 9px 0 0;
  color: white;
  padding: 3px;
  background-image: radial-gradient(circle at 120.71% 50%, #87c8ff 0, #0962c4 50%, #000534 100%);
}

.btN{
  background-color:  #EB8C40;
  padding: 5px 20px;
  border: 1px solid white;
  width: 95%;
  border-radius: 5px;
  color: white;
  font-size: 18px;
}
.btN:hover{
  background-color:  #0962c4;
  border: 1px solid #87c8ff;
  color: white;
  cursor: pointer;
}
.btC{
  background-color:  crimson;
  padding: 5px 20px;
  border: 1px solid white;
  width: 95%;
  border-radius: 5px;
  color: white;
  font-size: 18px;
  margin-left: 5px;
}
.btC:hover{
  background-color:  #fff;
  border: 1px solid crimson;
  color: crimson;
  cursor: pointer;
}
.bt{
  padding: 3px 10px;
  border: 1px solid white;
  width: 95%;
  border-radius: 5px;
  color: blue;
}
.bt:hover{
  background-color:  #fff;
  border: 1px solid crimson;
  color: crimson;
  cursor: pointer;
}
/*ANCHOS*/
.anfiltro{
  width: 300px;
  display: inline-block;
}
.an20{
  width: 20px;
  margin: auto;
}
.an30{
  width: 30px;
  margin: auto;
  vertical-align: middle;
}
.an40{
  width: 40px;
  margin: auto;
}
.an60{
  width: 60px;
  margin: auto;
}
.an80{
  width: 80px;
  margin: auto;
}
.an100{
  width: 100px;
  margin: auto;
}
.an150{
  width: 150px;
  margin: auto;
}
.an200{
  width: 200px;
  margin: auto;
}
.an250{
  width: 250px;
  margin: auto;
}
.an300{
  width: 300px;
  margin: auto;
}
.an350{
  width: 350px;
  margin: auto;
}
.an400{
  width: 400px;
  margin: auto;
}
.an450{
  width: 450px;
  margin: auto;
}
.an500{
  width: 500px;
  margin: auto;
}
.an600{
  width: 600px;
  margin: auto;
}
.an700{
  width: 700px;
  margin: auto;
}
.an800{
  width: 800px;
  margin: auto;
}
.an900{
  width: 900px;
  margin: auto;
}
.an1000{
  width: 1000px;
  margin: auto;
}
/* menu */
#menu,#perfil ul {
 list-style:none;
 margin:0;
 padding:0;
}

/* items del menu */

#menu,#perfil ul li {
 background-color:#E6B58E;
}

/* enlaces del menu */

#menu,#perfil ul a {
 display:block;
 color:#fff;
 text-decoration:none;
 font-weight:100;
 font-size:13px;
 padding:10px;
 font-family:"HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
 text-transform:uppercase;
 letter-spacing:1px;
}

/* items del menu */

#menu,#perfil ul li {
 position:relative;
 float: right;
 margin:0;
 padding:0;
}

/* efecto al pasar el ratón por los items del menu */

#menu,#perfil ul li:hover {
 background:  rgba(151,103,13,0.7); /* rgba(151,103,13,0.7);   rgba(0,118,255,0.7);*/
 border-radius: 10px 0 10px 0;
}
/*SUBMENÚ*/
/* menu desplegable */

#menu,#perfil ul ul {
 display:none;
 position:absolute;
 top:100%;
 right: 0;
 background:#eee;
 padding:0;
}

/* items del menu desplegable */

#menu,#perfil ul ul li {
 float:none;
 width:170px
}

/* enlaces de los items del menu desplegable */

#menu,#perfil ul ul a {
 line-height:120%;
 padding:10px 15px;
 text-align: left;
}

/* items del menu desplegable al pasar el ratón */

#menu,#perfil ul li:hover > ul {
 display:block;
}

/******INICIA EL MAIN******************/
#contenedor{
      width: 100%;
      overflow-y: auto;
      background: rgba(255,255,255,0.9);
      height: 92vh;
}
/***********IMPRESIÓN*************/
#contIMP{
	width: 100vw;
	height: 100vh;
    background-color: rgba(0,0,0,.7);
	/*Centrado vertical de los hijos*/
   	display: flex;
    margin-top: -200%;
   	/*align-items: center;*/
    position: fixed;
    z-index: 301;
}
#contIMP > button{
    position: fixed;
    margin-left: 5px;
    margin-top: 35px;
}
/*Formato de tabla*/
table { width: 100%;
  border-collapse: collapse;
}
th{
      font-size: 9px;
}
td{
      font-size: 10px;
}
#idbuscador {
  width: 200px;
  height: 30px;
  border-radius: 5px;
  padding: 2px;
  border: 1px solid #246355;
  text-align: center;
  font-size: 16px;
  margin:3px auto;
}
#idtabla, th, td{
  border: 1px solid #005277;
  border: 0;
  text-align: left;
  padding: 3px;
}
#idtabla thead th{
  cursor: pointer;
  position: relative;
  top: 0;
  background: #87c8ff;
  color: #000;
  z-index: 1;
}
#idtabla thead th:hover{ /*Efecto encabezado de tabla*/
  box-shadow:0px 3px 4px 0px rgba(0,0,0,5);
}
#idtabla tr td{border: 1px solid #dddddd;}
#idtabla tfoot tr{
  position: sticky;
  bottom: 0;
  background: #0962c4;
  color: #fff;
  border: 0;
}
#idtabla tbody tr:hover td{background-color: #eaeaea; }

.seleccionado{ background: #dcf8c6;} /*color de fila clic*/
.a-num{ /*Formato de número*/
  text-align: right;
}
/*=======================================================*/
#opPermitidas{
	width: 100%;
	height: 35px;
	margin-top: 5px;
  margin-bottom: 7px;
	text-align: center;
	display: inline-block;
}
#agregar,#cargaAuto{
	width: 130px;
	height: 30px;
	background-color: rgb(32, 196, 6);
	color: white;
	font-size: 15px;
	border-radius: 7px;
	margin-right: 10px;
  border: 1px solid green;
}
#agregar:hover, #cargaAuto:hover{
	background-color: rgba(32, 196, 6, .5);
	cursor: pointer;
	font-weight: 550;
  border: 2px solid green;
}
#vprevia{
	width: 130px;
	height: 30px;
	background-color:  rgb(6, 95, 196);
	color: white;
	font-size: 15px;
	border-radius: 7px;
	margin-right: 10px;
  border: 1px solid green;
}
#vprevia:hover{
	background-color:  rgba(6, 95, 196, .5);
	cursor: pointer;
	font-weight: 550;
  border: 2px solid green;
}
/******BOTONES**********/
.btnEliminar, .btnElimSUB{
  color: crimson;
  font-size: 17px;
  border: 0px;
  padding: 3px;
	margin-right: 5px;
}
.btnEliminar:hover, .btnElimSUB:hover{
  font-size: 18px;
  color: white;
  background: crimson;
  border-radius: 3px;
	cursor: pointer;
}
.btnModificar, .btnModSUB, .btnModSSUB{
	color: blue;
  font-size: 17px;
  border: 0px;
  padding: 3px;
	margin-right: 5px;
}
.btnModificar:hover, .btnModSUB:hover, .btnModSSUB:hover{
  font-size: 18px;
  color: white;
  background:   blue;
  border-radius: 3px;
	cursor: pointer;
}
.mostrar{
  display: flex;
}
.ocultar{
  display: none;
}
/*----------------BOTONES CHECK----------------*/
form input[type="checkbox"]{
	width: 20px;
}
form .ONoff input {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	visibility: hidden;
	position: absolute;
	right: 0;
}
form .ONoff {
	position: relative;
	margin-top: 7px;
	padding:5px 0 5px 60px; /* Damos un padding de 60px para posicionarel elemento <i> en este espacio*/
	display: inline-block;
	width: 90%;
	max-width: 200px;
	text-align: left;
}
form .ONoff input + i{
       background: #f0f0f0;
       border:2px solid rgba(0,0,0,0.2);
       position: absolute;
       left: 0;
       top: 0;
}

/* Estas reglas se aplicarán a todos los i despues de un input de tipo checkbox*/
form .ONoff input[type=checkbox ] + i{
	width: 52px;
	height: 30px;
	border-radius: 15px;
	border: 1px solid white;
}
form .ONoff input[type=checkbox] + i:before{
	content: '';  /*No hay contenido */
	width: 26px;
	height: 26px;
	background: #fff;
	border-radius: 50%;
	position: absolute;
	z-index: 1;
	left: 0px;
	top: 0px;
	-webkit-box-shadow: 3px 0 3px 0 rgba(0,0,0,0.2);
	box-shadow: 3px 0 3px 0 rgba(0,0,0,0.2);
}
form .ONoff input[type=checkbox]:checked + i:before{
	left: 22px;
	-webkit-box-shadow: -3px 0 3px 0 rgba(0,0,0,0.2);
	box-shadow: 3px 0 -3px 0 rgba(0,0,0,0.2);
}

form .ONoff input[type=checkbox]:checked + i{
 background: #2AC176;
}
form .ONoff input[type=checkbox] + i:after{
	content: 'ON';
	position: absolute;
	font-size: 10px;
	color: rgba(255,255,255,0.6);
	top: 8px;
	left: 4px;
	opacity: 0 /* Ocultamos este elemento */;
	transition: all 0.25s ease 0.25s;
}
/* Cuando esté checkeado cambiamos la opacidad a 1 y lo mostramos */
form .ONoff input[type=checkbox]:checked + i:after{
 opacity: 1;
}
.imgico{
  height: 21px;
  cursor: pointer;
}
.imgico:hover{
  height: 30px;
  border-radius: 50%;
}
.imgfil{
  height: 30px;
  cursor: pointer;
  vertical-align:middle;
}
.imgfil:hover{
  height: 33px;
  border-radius: 50%;
}
#validar{
  display: none;
}
#finalizar{
  display: none;
}
