/* Colores principales */
:root {
  --color1: #2453A5; /*azul*/
  --color2: #ED1C24; /*rojo*/
  --color3: #6B7C85;
}

.color1{color:var(--color1);}
.color2{color:var(--color2);}
.color3{color:var(--color3);}
.fcolor1{background-color:var(--color1);}
.fcolor2{background-color:var(--color2);}
.fcolor3{background-color:var(--color3);}

*{font-family: 'Helvetica', sans-serif;}

.form-control{height: calc(1em + 0.7rem + 1px);padding: 0 0 0 0.1rem;font-size: 0.9rem;
  border: 0px solid #ced4da;border-bottom: 1px solid var(--color1);border-radius: 0px;}

/* Formatting search box */
.search-box{width: 100%;position: relative;display: inline-block;z-index: 0;}
.search-box input[type="text"]{font-size:16px;background-color: #f1f3f5;border:0px;border-radius: 9999px;padding: 0.75rem 1.5rem 0.75rem 1.5rem;width: 100%;}
.lupa{top: 50%;transform: translateY(-50%);opacity: .8;position: absolute;right: 1.5rem;cursor: pointer;}
.boton-menu{margin: 0px 5px;cursor: pointer;padding: 0.5em 1em 0.5em 1em;width: 100%;background-color:#858988;}

/* Tabla */
.table{font-size:14px;max-height:500px;overflow-y: scroll;}
/* Style table headers and table data */
.table th {
  text-align: left;
  padding: 10px;
  position: sticky;
  top: 0; /* Don't forget this, required for the stickiness */
  background-color:var(--color1);
}

.table td {
  text-align: left;
  padding: 10px;
  vertical-align: middle;
}

/* Zebra-striped table rows */
.table tr:nth-child(even) {
  background-color: #f2f2f2
}

/* Textos */
.text-400{font-weight: 400;} /*Normal*/
.text-700{font-weight: 700;} /*Bold*/
.text-900{font-weight: 900;} /*Black*/

/* popup iconos color*/
.rojo{color:var(--color1)}
.verde{color:var(--color2)}

/* Botones menu */ 
.action {
  position: absolute;
  display: flex;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--color1);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: .3s ease-in-out;
}
.action span {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 2em;
  transition: .3s ease-in-out;
}
.btn-añadir,.btn-listado,.btn-descarga,.btn-cerrar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: var(--color3);
  border-radius: 50%;
  cursor: pointer;
  transition: .3s ease-in-out;
  opacity: 0;
}

.btn-añadir i,.btn-listado i,.btn-descarga i,.btn-cerrar i{ color: white;font-size: 25px;}
.action.active span {transform: rotate(135deg);}
.action.active {transform: translate(-105px,0px);}
.btn-añadir.active {transform: translate(25px,0px);opacity:1;}
.btn-listado.active {transform: translate(30px,0px);opacity:1;}
.btn-descarga.active {transform: translate(35px,0px);opacity:1;}
.btn-cerrar.active {transform: translate(40px,0px);opacity:1;}

/* popup */
.popup-bd, .popup-agregar {
  position: fixed;
  display: none;
  z-index: 100;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}
.popup-container-bd,.popup-container-agregar {
  position: relative;
  width: 90%;
  max-width: 400px;
  top:50px;
  margin: 0 auto;
  background: #FFF;
  border-radius: .5em .5em .4em .4em;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  animation-name: popup_animatetop;
  animation-duration: 0.4s;
}
@keyframes popup_animatetop {
  from {top: -400px; opacity: 0}
  to {top: 50px; opacity: 1}
} 
.popup-close-bd,.popup-close-agregar {
  margin: 1em auto 1em auto;
  cursor: pointer;
  padding: 0.5em 1em 0.5em 1em;
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: var(--color2);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 10;
  top: 120%;
  left: 50%;
  margin-left: -70px;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent var(--color2) transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

/********************************************/
/* boton top ********************************/
/********************************************/
#boton_top {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 20px; /* Place the button 30px from the right */
  width: 60px;
  height:60px;
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: var(--color1); /* Set a background color */
  color: white; /* Text color */
  padding: 0;
  transition: .3s;
  cursor: pointer; /* Add a mouse pointer on hover */
  border-radius: 10px; /* Rounded corners */
  font-size: 40px; /* Increase font size */
  vertical-align: middle;
}
#boton_top:hover {background-color: var(--color1);}

/********************************************/
/* Custom Checkbox **************************/
/********************************************/
.pre {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: -10px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.pre input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmarkcuadrado {
  position: absolute;
  top: 5px;
  left: 0;
  height: 15px;
  width: 15px;
  background-color: #eee;
}
.pre:hover input ~ .checkmark, .pre:hover input ~ .checkmarkcuadrado {
  background-color: #ccc;
}
.pre input:checked ~ .checkmark, .pre input:checked ~ .checkmarkcuadrado {
  background-color: var(--color1);
}
.custom-select {
    width: auto;
    background-color: #00FFFF;
    color:#081e3f;
}