



/* Extend Bulma one more size */
@media screen and (min-width: 1408px) {
  .container:not(.is-max-desktop):not(.is-max-widescreen).container:not(.is-max-tablet) {
    max-width: 1844px;
  }
}


/* Helper debug class */
.debug{border: 1px solid red !important;}
/* END Helper debug class */


html{background-color: #f4f6fb;}

body{height: 100%;}


#main_navbar{
  background:var(--main-nav-bar-color);
  border-radius: 0px 0px 5px 5px;
}

#main_content{
  padding: 1em;
  margin-bottom: 3em;
  background-color: #ffffff;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  box-shadow: 0 0.5em 1em -0.125em rgba(10,10,10,.1), 0 0 0 1px rgba(10,10,10,.02);  
  padding-bottom: 10em;

  
}

#logon_on_navbar{
 max-height:3em;
}




.mybox{
   margin: 0em 1em; padding: 0.5em;
}

.with-border{
  border: 1px solid grey; border-radius: 5px;  padding: 0.5em;
}


/* form fieldsets */
.fieldset{
  background-color: #fff;
   border-radius: 6px;
   box-shadow: 0 0.5em 1em -0.125em rgba(10,10,10,.1), 0 0 0 1px rgba(10,10,10,.02);
   color: #4a4a4a;
   display: block;
   padding: 1.25rem;
  border: 1px solid #ccc
}
.fieldset  > legend{
   color: #363636;
   display: block;
   font-size: 1rem;
   font-weight: 700;
   background-color: #fff;
   padding: 0 5px;
 width: max-content;
 border: 0 none
}

/* END form fieldsets */


/* .is-danger {
    background-color: #fafafa;
    padding: 3rem 1.5rem 6rem;
  } */



.footer {
    background-color: #fafafa ;
    padding: 1.5rem 1.5rem 1rem !important;
    clear: both;
    margin: 0;
    position: fixed;
    bottom: 0px;
    width: 100%;
  }


  /*
  .is-danger {
    background-color: #fc8686;
    margin: 2rem;
    padding: 1rem;
    text-align: center;
    color: white;
}

.is-info {
  background-color: #5b86d6;
  margin: 2rem;
  padding: 1rem;
  text-align: center;
  color: white;
}

.is-success {
  background-color: #9edab5;
  margin: 2rem;
  padding: 1rem;
  text-align: center;
  color: white;
}

.is-warning {
  background-color: #e2df49;
  margin: 2rem;
  padding: 1rem;
  text-align: center;
  color: black;
}
*/



/***** Tooltips   
<div class="tooltip">Hover over me
  <span class="tooltiptext">Tooltip text</span>
</div>

*/

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  min-width:200px;
  max-width:400px;
    color:#444444;
    background-color:#EEEEEE;
  text-align: center;
  border-radius: 6px;
  padding: 0.8em;
      box-sizing:border-box;
    box-shadow:0 1px 8px rgba(0,0,0,0.5);

  /* Position the tooltip */
  position: absolute;
   z-index:99999999;


}

.tooltip:hover .tooltiptext {
  visibility: visible;
}



/* Visiaul cues used with a JS
elements that may have cues have the .visual-cues propierty.
then on event add or remove the succes and error classes

$("#stage_select").addClass("glow-success");
setTimeout(() => { $("#stage_select").removeClass("glow-success"); }, 500);

Note: Time out in JS shoud be >= than the CSS transition
*/
.visual-cues{transition: box-shadow 200ms;}
.glow-success {
  box-shadow: 0 0px 15px 15px rgb(50 200 50 / 30%);    
}
.glow-error {
  box-shadow: 0 0px 15px 15px rgb(230 20 20 / 30%);    
}

/*  END Tooltips */


.page_header{width: 100%;display: flex;justify-content: space-between; margin-bottom: 2em;}
.page_header.page_title{display: inline-block;}
.page_header.main_action{display: inline-block;}



/*******/
#help_panel {
  width: 0;
  position: fixed;
  z-index: 99;
  height: 100%;
  top: 0;
  right: 0;
  background-color: rgb(179, 192, 252);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;

}


.help_panel_close {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  
}

.help_panel_open  {
  font-size: 20px;
  cursor: pointer;
  background-color: #111;
  color: lightgray;
  padding: 10px 15px;
  border: none;
}

.help_panel_open:hover {
  background-color: #444;
}




/**** USe of progress bars
            <div class="progress_bar_contianer">
                <span class="progress_bar_label" >Low</span>                
                <div class="progress_bar pr">
                    <div class="progress_bar_fill" style="OVERIDE HERE!!!!;"></div>
                </div>
                <span class="progress_bar_label" >High</span>
            </div>

*/

.progress_bar_contianer{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress_bar{
  width: 600px; 
  background-color: #aaa; 
  height:1em;
  border-radius:5px
}

.progress_bar_fill{
  /* just overide the width of the progress bar */
  width:20% ; background-color:#484848; height: 100%; font-size: 0.7em; color: white; text-align: center;padding: 1px;border-radius:5px
}

.progress_bar_label{
 font-weight: 400;
 margin:auto 1em;
}
/*   END PROGRESS BAR */



/* **** LOADING  SPINNER ****/
/* from https://www.w3schools.com/howto/howto_css_loader.asp 
use in a  div <div class="loader"></div>
probably inside a non-dismissable modal

*/

.spinner {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/**** END LOADING  SPINNER ****/
















/*COLLAPSIBLES **********************
needs the CSS  and JS
 ellements must have class collapsible followed inmediatly by collapsible_content
 // <div class= collapsible><div class="collapsibe-header">Open This</div><div class="collapsible_content">...</div></div>
// <div class="box collapsible">  
//     <div class="collapsible_header">Header text</div>
//     <div class="collapsible_content">
//       Content text
//     </div>    
// </div>
 
*/

.collapsible{
  border: inherit;
}
.collapsible_header { 
  cursor: pointer;     
  width: 100%;  
}
.active, .collapsible_header:hover {
  background-color: inherit;
}
.collapsible_header:after {
  content: '\2304'; 
  font-weight: bold;
  float: right;
  margin-left: 1em;  font-size: 2em;  margin-top: -0.75em;
  
  
}

.active:after {
  content: "\2212";


}

.collapsible_content {
  /*padding: 0 18px;*/
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;  
/* END COLLAPSIBLES */
}



/*   Toggle / Flip switches */
/* from https://www.w3schools.com/howto/howto_css_switch.asp
Usage:
<label class="switch">
  <input type="checkbox">
  <span class="slider"></span>
</label>

*/

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
    border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* END Toggle flip switches */