/*
Theme Name: IPPI-DB targetcentric
Theme URI: https://ippidb.pasteur.fr/
Author: Fabien Mareuil
Description: IPPI-DB targetcentric Theme
*/

/* COMPOUND SESSION */

/* Compounds list */

.zui-table {
    border-collapse: separate;
    border-spacing: 0;
}

.zui-table .zui-sticky-col {
    left: 0;
    position: sticky;
    background-color: inherit;
    z-index: 2;
}
  
.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 3;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
  /*when hovering an item:*/
  background-color: #e9e9e9;
}
.autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  background-color: DodgerBlue !important;
  color: #ffffff;
}

.loader {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  display: block;
  margin: auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.table-header-rotated {
  font-size: 14px;
  background-color: #e9ecef;
}

.table-header-rotated th {
  border-right: 0px;
}

.table-header-rotated th.row-header{
  width: auto;
}

.table-header-rotated td{
  width: 40px;
  border-top: 1px solid #dddddd;
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
  vertical-align: middle;
  text-align: center;
}

.table-header-rotated th.rotate-45{
  height: 80px;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  position: relative;
  vertical-align: bottom;
  padding: 0;
  /*font-size: 12px;*/
  line-height: 0.8;
}

.table-header-rotated th.rotate-45 > div{
  position: relative;
  top: 0px;
  left: 40px; /* 80 * tan(45) / 2 = 40 where 80 is the height on the cell and 45 is the transform angle*/
  height: 100%;
  -ms-transform:skew(-45deg,0deg);
  -moz-transform:skew(-45deg,0deg);
  -webkit-transform:skew(-45deg,0deg);
  -o-transform:skew(-45deg,0deg);
  transform:skew(-45deg,0deg);
  overflow: hidden;
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
  border-top: 1px solid #dddddd;
  z-index: 1;
}

.table-header-rotated th.rotate-45 span {
  -ms-transform:skew(45deg,0deg) rotate(315deg);
  -moz-transform:skew(45deg,0deg) rotate(315deg);
  -webkit-transform:skew(45deg,0deg) rotate(315deg);
  -o-transform:skew(45deg,0deg) rotate(315deg);
  transform:skew(45deg,0deg) rotate(315deg);
  position: absolute;
  bottom: 30px; /* 40 cos(45) = 28 with an additional 2px margin*/
  left: -25px; /*Because it looked good, but there is probably a mathematical link here as well*/
  display: inline-block;
  // width: 100%;
  width: 85px; /* 80 / cos(45) - 40 cos (45) = 85 where 80 is the height of the cell, 40 the width of the cell and 45 the transform angle*/
  text-align: left;
  // white-space: nowrap; /*whether to display in one line or not*/
}

.dropbtn {
  font-size: 14px;
  color: #2D96FA;
  border-radius: 5px;
  border-color: #97ADB5;
  background-color: #eff3f5;
  padding-right: 3px;
  padding-left: 3px;
  padding-bottom: 1px;
  padding-top: 1px;
  border-style: solid;
  border-width: 2px;
  min-width: 25px;
  text-align: center;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  bottom: 22px; 
  left: 12px;
  background-color: #eff3f5;
  min-width: 100px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
  z-index: 3;
  border-radius: 5px;
  border-color: #97adb5 !important;
  border: 2px;
  border-style: solid;
}

.dropdown-content a {
  color: black;
  padding: 6px 8px;
  font-size: 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #d3dee2; 
  color: black;
  border-radius: 5px;
}

.dropdown:hover .dropdown-content {display: block;}

.dropdown:hover .dropbtn {
  background-color: #d3dee2; 
  color: black;
}


.infobulle svg{
  color: rgb(45, 150, 250);
}

.infobulle span{
  position:absolute;
  color:white;
  bottom: 100%;
  background:rgba(0,0,0,.9);
  padding:15px;
  border-radius:3px;
  box-shadow:0 0 2px rgba(0,0,0,.5);
  transform:scale(0) rotate(-12deg);
  transition:all .25s;
  opacity:0;
  z-index: 3;
}

.infobulle:hover span, .infobulle:focus span{
  transform:scale(1) rotate(0);
  opacity:1;
}

table.gradiant{
  width:inherit;
  table-layout: fixed;
  height:50px;
}

table.gradiant td{
  overflow: visible;
  border-right: none;
  white-space: nowrap;
  text-align: left;
}

.fa-plus-square {
  box-shadow: 0 0 2px rgba(0,0,0,.5);
}

th .fa-plus-square:hover {
  background-color: black;
  color: rgb(255, 255, 255);
}

.previous, .next {
  cursor: pointer;
  position: relative;
  width: auto;
  margin-top: 0px;
  padding: 0px;
  color: #222428;
  font-weight: normal;
  font-size: 20px;
  transition: .0s ease;
}

.next {
  right: 0px;
  border-radius: 0px 0px 0px 0px
}

.previous {
  left: 0px;
  border-radius: 0px 0px 0px 0px
}