@font-face { font-family: MetropolisBold; src: url('fonts/Metropolis-Bold.otf'); }
@font-face { font-family: Lato; src: url('fonts/Lato-Regular.ttf'); }

:root {
  --dark-blue: #34456B;
  --blue: #4971AC;
  --light-blue: #79A1D4;
  --gray: #848688;
  --light-gray: #9FA1A4;
  --dark-gray:  #212121;
  --green: #178f11;
  

  --main-bg-color: #3C629D;
  --main-dash-bg-color: #ffffff;
  --main-simple-button-color: #848688;
  --main-warning-button-color: #ff7b00;
  --main-accept-button-color: #178f11;
  --main-deny-button-color: #f76b64;
  --secondary-simple-button-color: #c9c9c9;
  --gray-border: #8B8B8B;

}

* {
  margin: 0px;
  padding: 0px;
}
.title{
  font-weight: bold;
}
/*Toda la ventana*/
body{
  font-family: Lato;
  box-sizing: border-box;
  width: 100%;
  display: flex !important;
}
/*logo en sidebar*/
.logo{
  max-height: 55px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 15px;
  transition: src 2s;
}

/*Estilos del sidebar*/
header{
  position: fixed;
  z-index: 100;
  width: 70px;
  min-height: 100vh;
  border-radius: 0px;
  box-sizing: initial;
  border-left: 5px solid var(--dark-gray);
  background: var(--dark-gray);
  transition: width 0.6s;
  overflow-x: hidden;
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
header::-webkit-scrollbar {
  display: none;
}
header.active{
  width: 260px;
}
header ul{
  position: absolute;
  top: 60px;
  left: 0px;
  width: 100%;
  padding-left: 5px;
  padding-top: 40px;
}
header ul li {
  position: relative;
  list-style: none;
  width: 100%;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

header ul li.active {
  background: #fff;
}

/* HOVER  */
header ul li:hover {
  background: #fff;
}
header ul li:hover a{
  color: #333;
}


header ul li a {
  position: relative;
  display: block;
  width: 100%;
  display: flex;
  text-decoration: none;
  color: #fff;
}

header ul li.active a {
  color: #333;
}

header ul li a .icon {
  position: relative;
  display: block;
  min-width: 60px;
  height: 60px;
  line-height: 70px;
  text-align: center;
}

header ul li a .icon ion-icon {
  font-size: 1.5em;
}

header ul li a .title {
  position: relative;
  display: block;
  padding-left: 10px;
  height: 60px;
  line-height: 60px;
  white-space: normal;
}

header ul li b:nth-child(1){
  position: absolute;
  top: -20px;
  height: 20px;
  width: 100%;
  background: #fff;
  display: none;
}
header ul li b:nth-child(1)::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-gray);
  border-bottom-right-radius: 20px;
}

header ul li b:nth-child(2){
  position: absolute;
  bottom: -20px;
  height: 20px;
  width: 100%;
  background: #fff;
  display: none;
}
header ul li b:nth-child(2)::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-gray);
  border-top-right-radius: 20px;
}

header ul li.active b:nth-child(1),
header ul li.active b:nth-child(2){
  display: non; /*Borde redondeado */
}



/*Estilos del toggle*/
.toggle{
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--gray);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.toggle ion-icon{
  position: absolute;
  color: #fff;
  font-size: 34px;
  display: none;
}

.toggle ion-icon.open, .toggle.active ion-icon.close {
  display: block;
}

.toggle ion-icon.close, .toggle.active ion-icon.open{
  display: none;
}

.toggle.active{
  background: var(--dark-gray);
}

/*Estilos del main*/
main{
    -webkit-border-radius: 10px 10px 10px 10px;
    border-radius: 10px 10px 10px 10px;
    background: #fff;
    padding: 0px;
    width: 90%;
    max-width: 90%;
    height: 90%;
    margin-top: 20px;
    margin-left: 120px;
    margin-right: 80px;
    position: relative;
    -webkit-box-shadow: 0 30px 60px 0 rgba(0,0,0,0.3);
    box-shadow: 0 30px 60px 0 rgba(0,0,0,0.3);
    text-align: center;
}

/* Maestro */
.tabcontent{
  margin: 50px;
  max-width: 90%;
}


/* Estilos botones generales*/
.btnadd {
  background-color: var(--dark-blue);
  border: none;
  border-radius: 10px;
  color: #fff;
  width: auto;
  padding: 10px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  margin: 5px;
  cursor: pointer;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
}
.btnadd:hover {
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
  background-color: var(--blue);
}

.btnsimple {
  background-color: var(--main-simple-button-color);
  border: none;
  border-radius: 10px;
  color: #fff;
  width: auto;
  padding: 10px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  margin: 5px;
  cursor: pointer;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
}
.btnsimple:hover {
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
  background-color: var(--blue);
}

.btncancel{
  background-color: var(--gray);
  border: none;
  border-radius: 10px;
  color: #fff;
  width: auto;
  padding: 10px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  margin: 5px;
  cursor: pointer;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
}
.btncancel:hover {
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
  background-color: var(--main-deny-button-color);
}

.btnaccept{
  background-color: var(--main-accept-button-color);
  border: none;
  border-radius: 10px;
  color: #fff;
  width: auto;
  padding: 10px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  margin: 5px;
  cursor: pointer;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
}
.btnaccept:hover {
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
  background-color: var(--gray);
}
.btnwarning{
  background-color: var(--main-warning-button-color);
  border: none;
  border-radius: 10px;
  color: #fff;
  width: auto;
  padding: 10px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  margin: 5px;
  cursor: pointer;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
}
.btnwarning:hover {
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
  background-color: var(--gray);
}
.btndeny{
  background-color: var(--main-deny-button-color);
  border: none;
  border-radius: 10px;
  color: #fff;
  width: auto;
  padding: 10px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  margin: 5px;
  cursor: pointer;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
}
.btndeny:hover {
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
  background-color: var(--gray);
}

/* Estilo principal barra de busqueda*/
/* Barra de busqueda */
.buscar{
    float: right;
    width: 180px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    background-color: white;
    padding: 10px 25px;
    border-radius: 10px;
}

/* Formularios */

.form{
    text-align: left;
    min-width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.form input, select{
    padding: 12px 20px;
    margin: 8px 5px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.form table{
  min-width: 100%;
  max-width: 100%;

}
.form tbody{
  min-width: 90%;
  max-width: 90%;

}
.form tr{
  min-width: 90%;
  max-width: 90%;

}

.form input, select{
  width: 90%;
}

/* Tabla */
.table{
    border-collapse: collapse;
    margin: 3rem auto;
    font-size: 1rem;
    min-width: 100%;
    max-width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    table-layout: fixed;
    margin-top: 80px;
    margin-bottom: 50px;
}

.table thead tr {
    background-color: var(--dark-blue);
    color: #ffffff;
    font-size: 1.3rem;
}

.table th, .table td {
    padding: 1rem 0.6rem;
}

.table tbody tr {
    border-bottom: 3px var(--gray) solid;
}

.table tbody tr:last-of-type {
    border-bottom: 3px var(--gray) solid;
}

.table td{
    max-width: 8rem;
    word-wrap: break-word;
}

.table a {
  text-decoration: none;
  color: var(--blue);
  cursor: pointer;
}

.oper button{
  border: 0px;
}
.oper a:hover, button:hover>img{
  filter: invert(60%);
}
.oper img{
  width: 30px;
}

.actions {
  text-decoration: none;
  color: var(--dark-gray) !important;
  font-size: 1.7rem;
}

.actions:hover {
  color: var(--blue) !important;
}

/* Secction Repo */

.floatL {
  float: left;
}
.floatR {
  float: right;
}

/* Formulario */
.divFORM{
  display: none;
  margin-top: 60px;
}

.divREGACT{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}


/* Viewer PDF */
.viewer{
  width: 100%;
  height: 240px;
  margin: 0 auto;
  overflow: auto;
  border-radius: 10px;
}