@import url(fonts.css);


:root{
  --colorLetra: white;
  --colorFondoMenu: #224a51;
  --colorCabeceraTabla: #1c938b;
}

html,body {
  margin:10px;
  padding:0;
  box-sizing: border-box;
  font-family: arial,sans-serif;
  min-width: 405px;
}

body {
  margin: 0 auto;
}

a {
  text-decoration: none;
  font-weight: bold;
  color: black;
}

a:visited, a:focus, a:link {
    text-decoration: none; 
    color: inherit;
}

a:hover {
  font-weight: bolder;
  text-decoration: none;
  color: var(--colorFondoMenu)
}

header {
  width: 100%;
  height: 100%;
  display: flex;
}

header > img {
  height: 100px;
}

header > div.cabecera {
  width: 100%;
  height: 100%;
  display: flex;
  /* flex-direction: column-reverse; */
  flex-direction: row;
}

header > div.cabecera > div.usuario {
  width: 50%;
  height: 25%;
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
}

header > div.cabecera > div.usuario > * {
margin: 0 5px;
}

header > div.cabecera > div.empresa {
  width: 50%;
  font-size: xx-small;
  margin-left: 2%;
}


header > h1 {
  width: 100%;
  text-align: center;
}

header > div.loginout, header > div.admin {
  margin-left: 2%;
}

div.menu{
 margin-left: 1%;
 width: min-content;
}

section{
  display:flex;
  flex-direction: row;
  width: 100%;
  flex-wrap: nowrap;
}

#calendar-holder{
  width: 90%;
  height: 100%;
}


nav {
  /* position: sticky;
  top:0;
  margin: 5px 0;
  z-index: 1; */
  width:65px;
  overflow: hidden;
  /* box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24); */
  border-right: 1px solid grey;
} 


nav.keep.width{
  width: 210px;
}

nav > ul {
    display: flex;
    list-style-type: none;
    /* background-color: var(--colorFondoMenu); */
    margin: auto;
    text-align: center;
    border-radius: 5px;
    padding: 0 5px;
    flex-direction: column;
}
nav > ul > li {
    flex: 33%;
    padding: 0.5em;
}

nav > ul > li > a{
    text-decoration: none;
    color: var(--colorFondoMenu) !important;
    font-style: normal;
    font-size: 0.8em;
    white-space: nowrap;
}

nav > ul > li > a {
  display: flex;
  flex-direction: row;
  width: auto;
  align-items: center;
}

nav > ul > li:hover {
  background-color: var(--colorFondoMenu);
  color:white !important;
  border-radius: 10px;
}

nav > ul > li:hover > a {
  color:white !important;
}

nav > ul > li:hover > a > span > i.bi{
  color:white;
}

span {
  width:38px;
  margin-right: 20px;
}


body > h1, table.table, table.table_column {
  text-align: center;
}


table.table, table.table_column{
  margin: auto;
  border-collapse: collapse;
  margin-bottom: 20px;
}



.tablaPacienteToxina > tbody > tr, .tablaPacienteToxina > tbody > tr > td, .tablaPacienteToxina > tbody > tr > th{
  border: none;
  text-align: left;
  background-color: initial;
  padding: 5px 10px;
}

table.table > tbody > tr > td,table.table > thead > tr > th, table.table_column > tbody > tr > td,table.table_column > tbody > tr > th{
  border: grey solid 1px;
  padding: 5px;
}


table.table > thead > tr > th, table.table_column > tbody > tr > th{
  background-color: var(--colorCabeceraTabla);
  color: black;
  font-family: arial,sans-serif;
  font-size: 15px;
}

img.acciones{
  width: 2em;
  height: 2em;
}

svg{
  width: 2em;
  height: 2em;
  fill: var(--colorFondoMenu);
}

svg.bi-pc-display-horizontal{
  width: 1.5em;
}

div.paciente {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 0 0 1% 10%;
}

div.datosP {
  display: flex;
  flex-direction: row;
  width: 33%;
}

div.titulo_paciente {
  font-weight: bold;
  width: 35%;
}

main {
  width: 100%;
  height: 100%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  z-index: 2;
}


main > article > a {
  align-self: center;
  margin-top: 30px;
 }

article{
	height: auto;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin: 5px;
  justify-content: center;
  align-items: center;
}

article#cuadernos{
  flex-direction: row;
  flex-wrap: wrap;
}

article > figure > figcaption {
  background-color: var(--colorFondoMenu);
  color: white;
  text-align: center;
  padding: 10px 0;
  border-radius: 5px;
  font-size: 0.8em;
  transition: background-color 0.5s;
}

article > figure > figcaption:hover{
  background-color: white;
  border-color: black;
  color: var(--colorFondoMenu);;
}

article > figure > a > img{
  height: 200px;
  width: 240px;
}

article > h1 {
  position: relative;
  top: -5%;
  font-size: xx-large;
}

div.iconos{
  width: 70%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.col-sm-12 {
  display: flex;
  flex-direction: column;
  align-items: center;
}
article > figure > img{
	width: 50px;
	height: 50px;
}

footer {
  position: sticky;
  bottom: 0;
  background-color: var(--colorFondoMenu);
  color: var(--colorLetra);

}


/*FORM*/
main > h1 {
  text-align: center;
}

 main.main_form{
  flex-direction: column;
  width: 50%;
}

main.main_form_registro{
  flex-direction: column;
  width: 50%;
}

main.main_form > a {
  margin-top: 30px;
  align-self: center;
}

form > div > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0px;
}

.main_form_registro > form > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0px;
}

form > div > div > label {
  flex: 1 0 auto;
  width: 50%;
}

.main_form_registro > form > div > label {
  flex: 1 0 auto;
  width: 50%;
}

form > div > div > *{
  background-color: white;
}

form > div > div > label + * {
  flex: 1 0 auto;
  width: 25%;

}

.main_form_registro > form > div > label + * {
  flex: 1 0 auto;
  width: 25%;

}

form {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  font-size: 0.8em;
}

.login-page {
  width: 360px;
  padding: 8% 0 0;
  margin: auto;
}
.form {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  max-width: 360px;
  margin: 0 auto 100px;
  padding: 45px;
  text-align: center;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}
.form input {
  font-family: "Roboto", sans-serif;
  outline: 0;
  background: #f2f2f2;
  width: 100%;
  border: 0;
  margin: 0 0 15px;
  padding: 15px;
  box-sizing: border-box;
  font-size: 14px;
}

.form button {
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  outline: 0;
  background: var(--colorFondoMenu);
  width: 100%;
  border: 0;
  padding: 15px;
  color: #FFFFFF;
  font-size: 14px;
  -webkit-transition: all 0.3 ease;
  transition: all 0.3 ease;
  cursor: pointer;
}

.form button:hover,.form button:active,.form button:focus {
  background: white;
  border: solid 1px var(--colorFondoMenu);
  color: var(--colorFondoMenu);

}

div#login_form{
  display: flex;
  flex-direction: column;
}

button:hover{
    color: var(--colorFondoMenu);
    background-color: white;
    border-color: var(--colorFondoMenu);
}

button:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.titulos{
  border:var(--colorFondoMenu) solid 1px;
  background-color: white;
}

.dt-button,.buttons-html5{
  border: none !important;
  background: none !important;
  color:var(--colorFondoMenu);
}
i.bi{
  font-size: 2em;
  color: var(--colorFondoMenu);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: var(--colorFondoMenu) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  color: var(--colorFondoMenu) !important;
  border: 1px solid var(--colorFondoMenu);
  background-color: none;
  background: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  color: var(--colorFondoMenu) !important;
  font-weight: bold;
  border: 1px solid var(--colorFondoMenu);
  background-color: white;
  background: none;
}

/* CSS TABS */

ul.tabs {
	margin: 0;
	padding: 0;
	float: left;
	list-style: none;
	height: 32px; /*--Set height of tabs--*/
	border-bottom: 1px solid var(--colorFondoMenu);
	/* border-left: 1px solid var(--colorFondoMenu); */
	width: 100%;
}
ul.tabs li {
	float: left;
	margin: 0;
	padding: 0;
	height: 31px; /*--Subtract 1px from the height of the unordered list--*/
	line-height: 31px; /*--Vertically aligns the text within the tab--*/
	border: 1px solid var(--colorFondoMenu);
	border-left: none;
	margin-bottom: -1px; /*--Pull the list item down 1px--*/
	overflow: hidden;
	position: relative;
	background: var(--colorFondoMenu);
  border-radius: 10px 10px 0 0;
}
ul.tabs li a {
	text-decoration: none;
	color: white;
	display: block;
	font-size: 1.2em;
	padding: 0 20px;
	/* border: 1px solid var(--colorFondoMenu); --Gives the bevel look with a 1px white border inside the list item-- */
	outline: none;
}
ul.tabs li.active a {
  color: var(--colorFondoMenu);
}
ul.tabs li a:hover {
	background: var(--colorCabeceraTabla);
}
html ul.tabs li.active, html ul.tabs li.active a:hover  { /*--Makes sure that the active tab does not
        listen to the hover properties--*/
	background: #fff;
	border-bottom: 1px solid #fff; /*--Makes the active tab look like it's connected with
        its content--*/
  color: var(--colorFondoMenu);

}


.tab_container {
	/* border: 1px solid #999; */
	border-top: none;
	overflow: hidden;
	clear: both;
	float: left; width: 100%;
	background: #fff;
	display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.tab_content {
	padding: 20px;
	font-size: 1.2em;
}
.tab_content > p {
  text-align: center;
  color: var(--colorFondoMenu);
  font-weight: bolder;
  
}
/* CSS TABS */


.historia_medica{
  box-shadow: 3px 3px 5px 3px #999;
}

.titulo_historia{
  color: var(--colorFondoMenu);
}


/* Dropdown Button */
.dropbtn {
  /* background-color: #3498DB; */
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
  /* background-color: #2980B9; */
}

/* The container <div> - needed to position the dropdown content */
.dropdown, .dropdown2 {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content, .dropdown-content2{
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a, .dropdown-content2 a {
  color: var(--colorFondoMenu);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover, .dropdown-content2 a:hover{
  background-color: var(--colorFondoMenu);
  color: var(--colorLetra);
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
  display:block;
  position: fixed; 
  z-index: 5;
}



/*  dropdown varios*/
.menu-consentimientos{
  width: 100%;
  display: flex;
  flex-direction: row;
  position:fixed;
}
.dropdown-menu {
  display: none;
  /* position: absolute;
  top:50%; */
}

.dropdown-menu a {
  display: block;

}

.dropdown-menu,
.dropdown-toggle {
  position: relative;
}

.dropdown-open {
  .dropdown-menu.dropdown-active {
    display: block;
  }
}

.dropdown-container.dropdown-open {
  .dropdown-toggle {
    background-color: #0979ce;
    color: #ffffff;

    &:before {
      transform: rotate(-135deg);
    }
  }
}

.dropdown-container{
  margin: 0 10px;
  position: relative;
  max-width: 240px;
}

/* BOTON FICHAJE */
#fichajes{
  background-color: var(--colorFondoMenu) !important;
  color: var(--colorLetra) !important;
  width: 100px !important;
  height: 100px !important;
  margin-bottom: 40%;
}

/* DATATABLE VACACIONES */

.vacaciones {
  width: 60%;
  margin-bottom: 5%;
}

#datatableVacaciones{
  /*margin-top: 5%;*/
  width: 60%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* #datatableVacaciones > a,p{
  width: 50%;
} */

#disponibles, #disponibles_ad_hoy,#disponibles_ad_semanal,#disponibles_ad_mensual,#disponibles_ad_anual{
  font-weight: bold;
}


/* DATATABLE VACACIONES */

/******* @media screen and (min-width: 40.5em) **********/
@media screen and (min-width: 40.5em){
  /* header {
    height: 100px;
  } */

  /* header > img {
    width: 100px;
  } */

  header > h1 > span:nth-of-type(1){
    font-size: 1.5em;
  }

  header > h1 > span:nth-of-type(2){
    font-size: 0.7em;
  }

  nav > ul > li a{
      font-size: 1em;
  }


  article > figure > figcaption {
    font-size: 1em;
  }

  article > p {
    font-size: 1em;
  }

  form {
    font-size: 1em;
  }


}

/******* @media screen and (min-width: 60.5em) **********/
@media screen and (min-width: 60.5em){


  /* header {
    height: 150px;
  } */

  /* header > img {
    width: 150px;
  } */

  header > h1 > span:nth-of-type(1){
    font-size: 2.5em;
  }

  header > h1 > span:nth-of-type(2){
    font-size: 1em;
  }

  nav {
    margin: 10px 0;
  }


  nav > ul > li a{
      font-size: 1.2em;
  }

  article > figure > figcaption {
    font-size: 1.2em;
  }

  article > p {
    font-size: 1.2em;
  }

  form {
    font-size: 1.2em;
  }


}
