/***************************************************************************************
*                     Général
****************************************************************************************/

  
.main-header > .navbar {
         margin-left: 230px;
    }
    .main-header .logo {
        width: 230px;
    }
    
/** Boxs **/
.box-body {
	background-color: #f0f9f6;

}

.box.box-solid.box-success>.box-header {
    background-color: #06693c;
}

.sidebar-menu {
	font-size: 18px !important;
}


/** ugly logout button **/
a.mfb-component__button--main.action-button {
  display:none;
}


#download_output_log {

  width:30%;
}

/** Download logs output **/
.download-logs {
  
  display:flex;  
  justify-content: right;
}

.visu-treename {
  display:flex;
  justify-content: center;
}


.bold-text {
  font-weight:bold;
}

.warning-text{
  color:orange;
}

.error-text{
  color:red;
}

.medium-text {
  font-size:16px;
}

h4 {
  font-size:16px;
}

.flex-end {
  
  display:flex;
  justify-content:end;
}

.vertical-center {
  display:flex;
   align-items: center;
   padding-top:10px;
}

.save-simulation-content{
  align-items:center;
}

.user-banner {
   padding-top:14px;
   padding-right : 20px;
   color:white;
   font-weight:bold;
}

/***************************************************************************************
*                     tool tips
****************************************************************************************/

.tooltip-inner {
  width:1000px;
  height:auto;
  color:Black;
  background-color:#f0f9f6;
  opacity:1;
  border: 0.2rem solid;
  border-color: green;
  border-radius:6px;
}



.circle-icon {
   display: inline-block;
   width: 35px;
   height: 35px;
   line-height: 35px;
   margin-left : 10px;
   margin-top:13px;
   border-radius: 50%;
   background-color: #e4e4e4;
   color: #68a54b;
   text-align: center;
   font-size: 18px;
   font-weight: bold;
   cursor: pointer;
 }
/***************************************************************************************
*                     Authentification
****************************************************************************************/
.modal-backdrop.in {
  opacity :1;
  background-color:#f0f9f6;
}

#shiny_qualitree-Login {
  margin-top:20px;
}

.login-info {
  margin-top:20px;
}

/* report issue**/
.report-issue  {
      display: flex;
    justify-content: end;
}

#report-issue-mail {
  font-weight:bold;
  text-decoration:underline;
}
/***************************************************************************************
*                     Menu
****************************************************************************************/
 #SavePlots {
   color:white;
    margin: 10px 0px 0px 0px;
    display: block;
  }

/* TO DO : a faire style des menus
.skin-green .left-side, .skin-green .main-sidebar, .skin-green .wrapper {
   /* background-color: #f0f9f6;*/


/*.skin-green .sidebar-menu>li.active>a
 {
  
background: linear-gradient(to bottom, #00a65a 5%, #405a33 100%)
  
}

.skin-green .sidebar-menu>li:hover>a {
  color:black;
  background: #f0f9f6;
}
.skin-green .sidebar a {
    color: black;
}
.skin-green .sidebar-menu>li>a  {
  background: #f0f9f6;
  color:black;
  background: linear-gradient(to bottom, #f0f9f6 5%, #cfe5ea 100%);
  
}*/
  
  /** Save the plots **/

  
  /***************************************************************************************
*                     Table
****************************************************************************************/
table {
  width: 100% !important; /* Forces the table to use 100% of its container */
}
table.dataTable {
  border: 1px solid #00A65A;
  background-color: #EEEEEE;
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}

table.dataTable tr:nth-child(even) {
  background: #eef9e9;
}

table.dataTable tr:nth-child(odd) {
  background:  #f0f9f6;
}
table.dataTable thead,
 {
  background: #00A65A;
  background: -moz-linear-gradient(top, #40bc83 0%, #19af6a 66%, #00A65A 100%);
  background: -webkit-linear-gradient(top, #40bc83 0%, #19af6a 66%, #00A65A 100%);
  background: linear-gradient(to bottom, #40bc83 0%, #19af6a 66%, #00A65A 100%);
  border-bottom: 2px  solid #444444;
}

tr.dtrg-group.dtrg-start.dtrg-level-0 {
  background: #dcfceb;
  color:black;
}

table.dataTable thead th {
  background: #00A65A;
  background: -moz-linear-gradient(top, #40bc83 0%, #19af6a 66%, #00A65A 100%);
  background: -webkit-linear-gradient(top, #40bc83 0%, #19af6a 66%, #00A65A 100%);
  background: linear-gradient(to bottom, #40bc83 0%, #19af6a 66%, #00A65A 100%);
  font-size: 15px;
  font-weight: bold;
  color: #FFFFFF;
  border-left: 2px solid #00A65A;
}

/** Editable columns **/
td.editable-column {
font-weight:bold;
}

td.editable-column:hover {
  background: linear-gradient(to bottom, #dcfceb 0%, #dcfceb 66%,#dcfceb 100%);
}

td.editable-column::before {
  content: '✎'; /* Pencil icon */
  margin-right: 10px;
  size:10px,
}
/***************************************************************************************
*                     Tabs
****************************************************************************************/
.nav-tabs {
  border-bottom:none;
}

.nav-tabs>li>a{
  color :black;
  background-color : #f0f9f6;
  border: 1px solid #92ccb2;

  margin-right:0px;
}


.nav-pills>li>a,
.nav-tabs>li.active>a, 
.nav-tabs>li.active>a:focus, 
.nav-tabs>li.active>a:hover,
.nav-pills>li.active>a,
.nav-pills>li.active>a:focus, 
.nav-pills>li.active>a:hover,
.nav>li>a:active, 
.nav>li>a:focus,
.nav>li>a:hover {
  color:black;
  border: 1px solid #92ccb2;

  background-color: #f0f9f6;
}




.nav-pills>li.active>a>h4,
.nav-pills>li.active>a>h5,
.nav-tabs>li.active>a>h4,
.nav-tabs>li.active>a>h6,
.nav-tabs>li.active>a>h5{
      font-weight:bold;

    }

/***************************************************************************************
*                     From elements
****************************************************************************************/

.action-button,
.download-button,
.btn-file {
	box-shadow: inset 0px 1px 0px 0px #9acc85;
	width: 100%;
	background: linear-gradient(to bottom, #00a65a 5%, #68a54b 100%);
	background-color: #00a65a;

	border: 1px solid #3b6e22;
	display: inline-block;
	cursor: pointer;

	color: #ffffff;
	font-family: Arial;
	font-size: 13px;
	font-weight: bold;
	padding: 6px 12px;
	text-decoration: none;
}

.btn-default {
	background-color: white;
}

.btn-default:hover {
	background-color: #78ab78;
	color: black;
}

.action-button:hover.btn-default:hover,
.download-button:hover,
.btn-file.btn-default:hover {
	color: white;
	 !important
}

.action-button.btn.disabled,
.action-button.btn.disabled:hover,
.btn-file.disabled,
.btn-file.disabled:hover,
.btn-default.disabled:hover .btn.disabled {
	color: #444444;
	background: none;
	background-color: #bab1ba;
	border: 1px solid #3b6e22;
}

/************ Button & select ************/
.btn-default.dropdown-toggle:hover,
.btn-default.dropdown-toggle:focus,
.btn-default.dropdown-toggle:active,
.open>.dropdown-toggle.btn-default,
.open>.dropdown-toggle.btn-default:hover,
.open>.dropdown-toggle.btn-default:focus {
	border-color: #97bf97;
	background-color: #c6dcc6;
}

.bootstrap-select .dropdown-toggle:focus {
	outline: none !important;
}

.dropdown-menu>.active>a,
.dropdown-menu>.active>a:focus,
.dropdown-menu>.active>a:hover {
	background-color: #97bf97;
}

.dropdown-menu>li>a:hover {
	background-color: #e6efe6;
}


/** Ajustments **/

#download-all-label,
#download-all-loader{
  display:flex;
  justify-content: end;
  margin-top:10px;
}

#download-all {
  width:40px;
}

.use-pests {
  display:none;
}

.info-text{
  font-style:italic;
}

#launch_tree3d {
  height: 40px;
  width:40px;
  margin-left:10px;
  background: url('images/tree3d.ico'); 
  background-size: cover;
  background-position: center;
  opacity:1;
  color:black;
}

#launch_graph_ws {
  width:auto;
  margin-top:5px;
}

/***************************************************************************************
*                     Modal popup
****************************************************************************************/

/* Modal position */
.save-graphs-modal > .modal.in .modal-dialog  {
  position:absolute;
  width:30%;
  left: 35%;
  top: 37%;
}

.save-graphs-modal > .modal-body {
  display:flex;
  justify-content : center;
  font-size : 20px;
}

.save-graphs-modal > .modal-content {
  border-radius: 3px;
  color: #3b6e22;
  border: 1px solid #00a65a;
  background-color: #f0f9f6;
}


.modal-custom-style {
  margin-top:10%;
}

.modal-content{
    font-size:18px;
  }

.modal-custom-style .modal-content {
      height:auto;
}

.modal-custom-style .modal-content ul {
      margin-bottom : 20px;
}

.version-title {
  margin-top:20px;
  margin-bottom:20px;
  font-size:18px;
}

.see-changelog {
  margin-top:20px;  
}

/** Modal error **/
.modal-error .modal-title, 
.modal-error .error {
    color: red;
}
/***************************************************************************************
*                     Page adjusments
****************************************************************************************/


/** Centrage des tableaux**/
#EnvrtParameters,
#tableScenario,
#tableConfiguration,
.center-table .tab-content {
  display:flex;

}

/** Launching configuration **/
#properties-from-user,
#config-from-user {
	display: none;
}

/** Center button vertically**/
.centred-button.btn-default {
	margin-top: 3px;
}

/** Output console **/
#output_console {
	font-size: 13px;
}

#console-output-box {
  height:758px !important;
}

/** Console loading text **/
.loading-text {
	margin-top: 20px;
}

/** Run byutton **/
#button-run-container {
	margin-top: 20px;
	justify-content: end;
	display: flex;
}


/** Progress bar upload **/
.progress-bar {
  background-color:#06874d ;
}


.upload-text {
  
  display:flex;
  margin-top:32px;
}

/** Row of download **/
.download-all {
  display:flex;
  justify-content:center;
}
.download-all-labels {
  display:flex;
  justify-content:end;
}

#graph_drymass_container {
  display : flex;
}
/***************************************************************************************
*                     Loaders simulation 
****************************************************************************************/

/** Spinner **/
.loader-spinner,
.loader-visu-spinner{
	width: 30px;
	margin-left: 10px;
	aspect-ratio: 1;
	color: #00a65a;
	--_c: no-repeat radial-gradient(farthest-side, currentColor 92%, #0000);
	background:
		var(--_c) 50% 0 /12px 12px,
		var(--_c) 50% 100%/12px 12px,
		var(--_c) 100% 50%/12px 12px,
		var(--_c) 0 50%/12px 12px,
		var(--_c) 50% 50%/12px 12px,
		conic-gradient(from 90deg at 4px 4px, #0000 90deg, currentColor 0) -4px -4px/calc(50% + 2px) calc(50% + 2px);
	animation: l8 1s infinite linear;
}

@keyframes l8 {
	to {
		transform: rotate(.5turn)
	}
}

/** Text **/
.loader-text,
.loader-visu-text,
.loader-download-text
{
	width: fit-content;
	font-weight: bold;
	font-family: monospace;
	font-size: 20px;
	color: #008d4c;
	clip-path: inset(0 3ch 0 0);
	animation: l4 1s steps(4) infinite;
}

.loader-download-text {
  font-size:15px;
}

.loader-download-text:before {
	content: "Making zip files ..."
}

.loader-load-text:before {
	content: "Compiling files ..."
}

.loader-launch-text:before {
	content: "Running simulation ..."

}

.loader-visu-text:before {
	content: "Building tree ... "
}

@keyframes l4 {
	to {
		clip-path: inset(0 -1ch 0 0)
	}
}


/***************************************************************************************
*                     Loaders graphs 
****************************************************************************************/
/* HTML: <div class="loader"></div> */
.loader-graph {
  width: 40px;
  aspect-ratio: 1;
  --c: linear-gradient(#008d4c 0 0);
  --r1: radial-gradient(farthest-side at bottom,#008d4c 93%,#008d4c);
  --r2: radial-gradient(farthest-side at top   ,#008d4c 93%,#008d4c);
  background: 
    var(--c) ,var(--r1),var(--r2),
    var(--c) ,var(--r1),var(--r2),
    var(--c) ,var(--r1),var(--r2);
  background-repeat: no-repeat;
  animation: l2 1s infinite alternate;
}
@keyframes l2 {
  0%,25% {
    background-size: 8px 0,8px 4px,8px 4px,8px 0,8px 4px,8px 4px,8px 0,8px 4px,8px 4px;
    background-position: 0 50%,0 calc(50% ),0 calc(50%),50% 50%,50% calc(50% ),50% calc(50% ),100% 50%,100% calc(50%),100% calc(50% );
 }
 50% {
    background-size: 8px 100%,8px 4px,8px 4px,8px 0,8px 4px,8px 4px,8px 0,8px 4px,8px 4px;
    background-position: 0 50%,0 calc(0%),0 calc(100%),50% 50%,50% calc(50%),50% calc(50%),100% 50%,100% calc(50%),100% calc(50%);
 }
 75% {
    background-size: 8px 100%,8px 4px,8px 4px,8px 100%,8px 4px,8px 4px,8px 0,8px 4px,8px 4px;
    background-position: 0 50%,0 calc(0%),0 calc(100%),50% 50%,50% calc(0%),50% calc(100%),100% 50%,100% calc(50%),100% calc(50%);
 }
 95%,100% {
    background-size: 8px 100%,8px 4px, 8px 4px,8px 100%,8px 4px,8px 4px,8px 100%,8px 4px,8px 4px;
    background-position: 0 50%,0 calc(0% - 2px),0 calc(100% + 2px),50% 50%,50% calc(0% - 2px),50% calc(100% + 2px),100% 50%,100% calc(0% - 2px),100% calc(100% + 2px);
 }
}
