/* Google Font Link */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins" , sans-serif;
}

:root{
  /* ===== Colors ===== */
  --primary-color: #0E4BF1;
  --panel-color: #FFF;
  --text-color: #000;
  --black-light-color: #707070;
  --border-color: #e6e5e5;
  --toggle-color: #DDD;
  --box1-color: #4DA3FF;
  --box2-color: #FFE6AC;
  --box3-color: #E7D1FC;
  --title-icon-color: #fff;
  
  /* ====== Transition ====== */
  --tran-05: all 0.5s ease;
  --tran-03: all 0.3s ease;
  --tran-03: all 0.2s ease;
}

.sidebar{
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 78px;
  background: #11101D;
  padding: 6px 14px;
  z-index: 99;
  transition: all 0.5s ease;
}
.sidebar.open{
  width: 275px;
}
.sidebar .logo-details{
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
}
.sidebar .logo-details .icon{
  opacity: 0;
  transition: all 0.5s ease;
}
.sidebar .logo-details .logo_name{
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.5s ease;
}
.sidebar.open .logo-details .icon,
.sidebar.open .logo-details .logo_name{
  opacity: 1;
}
.sidebar .logo-details #btn{
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 22px;
  transition: all 0.4s ease;
  font-size: 23px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s ease;
}
.sidebar.open .logo-details #btn{
  text-align: right;
}
.sidebar i{
  color: #fff;
  height: 60px;
  min-width: 50px;
  font-size: 28px;
  text-align: center;
  line-height: 60px;
}
.sidebar .nav-list{
  margin-top: 20px;
  height: 100%;
}
.sidebar li{
  position: relative;
  margin: 8px 0;
  list-style: none;
}
.sidebar ul{
  padding: 0px;
}
.sidebar li .tooltip{
  position: absolute;
  top: -20px;
  left: calc(100% + 15px);
  z-index: 3;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 400;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: 0s;
}
.sidebar li:hover .tooltip{
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
  top: 50%;
  transform: translateY(-50%);
}
.sidebar.open li .tooltip{
  display: none;
}
.sidebar input{
  font-size: 15px;
  color: #FFF;
  font-weight: 400;
  outline: none;
  height: 50px;
  width: 100%;
  width: 50px;
  border: none;
  border-radius: 12px;
  transition: all 0.5s ease;
  background: #1d1b31;
}
.sidebar.open input{
  padding: 0 20px 0 50px;
  width: 100%;
}
.sidebar .bx-search{
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 22px;
  background: #1d1b31;
  color: #FFF;
}
.sidebar.open .bx-search:hover{
  background: #1d1b31;
  color: #FFF;
}
.sidebar .bx-search:hover{
  background: #FFF;
  color: #11101d;
}
.sidebar li a{
  display: flex;
  height: 100%;
  width: 100%;
  border-radius: 12px;
  align-items: center;
  text-decoration: none;
  transition: all 0.4s ease;
  background: #11101D;
}
.sidebar li a:hover{
  background: #FFF;
}
.sidebar li a .links_name{
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
}
.sidebar.open li a .links_name{
  opacity: 1;
  pointer-events: auto;
}
.sidebar li a:hover .links_name,
.sidebar li a:hover i{
  transition: all 0.5s ease;
  color: #11101D;
}
.sidebar li i{
  height: 50px;
  line-height: 50px;
  font-size: 18px;
  border-radius: 12px;
}
.sidebar li.profile{
  position: fixed;
  height: 60px;
  width: 78px;
  left: 0;
  bottom: -8px;
  padding: 10px 14px;
  background: #1d1b31;
  transition: all 0.5s ease;
  overflow: hidden;
}
.sidebar.open li.profile{
  width: 250px;
}
.sidebar li .profile-details{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
.sidebar li img{
  height: 45px;
  width: 45px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
}
.sidebar li.profile .name,
.sidebar li.profile .job{
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}
.sidebar li.profile .job{
  font-size: 12px;
}
.sidebar .profile #log_out{
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: #1d1b31;
  width: 100%;
  height: 60px;
  line-height: 60px;
  border-radius: 0px;
  transition: all 0.5s ease;
}
.sidebar.open .profile #log_out{
  width: 50px;
  background: none;
}
.home-section{
  position: relative;
  background: #F8F9FA;
  min-height: 100vh;
  top: 0;
  left: 0;
  width: 100%;
  transition: all 0.5s ease;
  z-index: 2;
}
.sidebar.open ~ .home-section{
  left: 250px;
  width: calc(100% - 250px);
}
.home-section .text{
  display: inline-block;
  color: #11101d;
  font-size: 25px;
  font-weight: 500;
  margin: 0px
}
@media (max-width: 420px) {
  .sidebar li .tooltip{
    display: none;
  }
}

/* Top Section */
.top-section{
  display: flow-root;
  padding: 5px 15px;
}
.top-section img{
  width: 80px;
  height: auto;
  border-radius: 5px;
  padding-left: 25px;
}

/* D0 Section */
.action-plan .row .col-8{
  display: flex;
  justify-content: left;
}


/* D1 Section */


/* D2 Section */


/* D3 Section */

.action-plan .container .body-section .col-6{
  display: contents;
  justify-content: center;
  width: 50%;
}

.action-plan .box{
  display: flow-root;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  background-color: #F8F9FA;
  transition: var(--tran-05);
  box-shadow: 2px 2px 8px 0px gray;
  width: 100%;
  min-width: 600px;
  margin-top: 25px;
  margin-bottom: 25px;
}

.action-plan .container .row {
  margin-right: 0px !important;
  margin-left: 0px !important;
  padding-right: 0px !important;
  padding-left: 0px !important;
  display: flex;
  justify-content: flex-start;
  min-width: 100%;
}

.action-plan .body-section{
  margin-left: 50px;
  margin-right: 50px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.action-plan .plan-save-button{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
  margin-right: 15px;
}
.action-plan .plan-save-button .btn-primary{
  min-width: 100px;
  background-color: #334e6e;
  border-color: #334e6e;
  color: #ffffff;
  font-size: 16px;
  border-radius: 6px;
  width: 100px;
  margin: 5px;
  margin-top: 30px;
}
.action-plan .plan-save-button .btn-primary:hover{
  background-color: #43638a;
}

.action-plan .plan-save-button .btn-secondary{
  min-width: 100px;
  background-color: #631616;
  border-color: #631616;
  color: #ffffff;
  font-size: 16px;
  border-radius: 6px;
  width: 100px;
  margin: 5px;
  margin-top: 30px;
}

.action-plan .plan-save-button .btn-secondary:hover{
  background-color: #43638a;
}

.home-section .action-section{
  margin-left: 30px;
  margin-top: 20px;
}
.space-between{
  display: flex;
  margin-left: 355px;
}

.action-plan .plan-save-button .cancle-button{
  margin-right: 600px;
}

.home-section .risk-assessment-box{
  border-style: outset;
  border-width: 1px;
  border-color: rgb(218, 218, 218);
}

/* Section D4*/

.action-plan .Failure-way{
  margin-right: 40px;
  display: flex;  
}

.action-plan .Failure-way .five-why-leg{
  padding-right: 20px;
   
}

.action-plan .Failure-way .five-why-leg .specific-row{
  display: flex;
  margin-right: 10px; 
  padding: 5px;
  gap: 10px;
}



.action-plan .add-why-button{
  display: flex;
  justify-content: center;
}

.action-plan .add-another-failure-button{
  display: flex;
  justify-content: flex-start;
  max-width: 67%;
}

.action-plan .d-four-add-row{
  display: flex;
  justify-content: center;
}

.action-plan .d-four-add-row .btn-primary{
  width: 500px;
}



.action-plan .btn-primary{
  min-width: 100px;
  background-color: #334e6e;
  border-color: #334e6e;
  color: #ffffff;
  font-size: 16px;
  border-radius: 6px;
  margin-right: 10px;
}

.action-plan .btn-primary:hover{
  background-color: #43638a;
}

.action-plan .btn-success{
  background-color: #334e6e;
  border-color: #334e6e;
  color: #ffffff;
  font-size: 16px;
  border-radius: 6px;
  margin-left: 10px;
}

.action-plan .btn-success:hover{
  background-color: #43638a;
}

.action-plan .btn-danger{
  min-width: 100px;
  background-color: #631616;
  border-color: #631616;
  color: #ffffff;
  font-size: 16px;
}


/* Section D5*/

.action-plan .Corrective-action-section .btn-primary{
  min-width: 100px;
  background-color: #334e6e;
  border-color: #334e6e;
  color: #ffffff;
  font-size: 16px;
  border-radius: 6px;
  margin-left: 8px;
  margin-bottom: 2px;
}

.action-plan .corrective-action-add-and-save-button{
  display: flex;
  justify-content: center;
}

.action-plan .corrective-action-add-and-save-button .btn-primary{
  width: 500px;
}


/* Section D6*/

.action-plan .corrective-action-validation .add-row-and-save-button{
  display: flex;
  justify-content: center;
}

.action-plan .implementation-add-row-and-save-button{
  display: flex;
  justify-content: center;
}



/* Section D7*/


/* Section D8*/


/* Fishbone */

.node {
  cursor: pointer;
}
 
.node text {
  background: transparent !important;
}
 
.label-0 {
  font-size: 1.5em;
  fill: #4a4a4a !important;
}
 
.label-1 {
  font-size: 1.5em;
  fill: #4a4a4a;
  padding-bottom: 30px !important;
}
 
.label-2 {
  font-size: 1em;
  fill: #444;
}
 
.label-3 {
  font-size: .8em;
  fill: #888;
}
 
.label-4 {
  font-size: .6em;
  fill: #aaa;
}
 
.button-container{
  background: #EBEBEB;
}
 
.link-0 {
  stroke: #c1c1c1 !important;
  stroke-width: 2.5px !important;
}
 
 .link-1 {
  stroke: #c1c1c1 !important;
  stroke-width: 2.5px !important;
}
 
 
.link-2 
.link-3 
.link-4 {
  stroke: #c1c1c1 !important;
  stroke-width: 2.5px !important;
}
 
 
.link {
  cursor: pointer;
}
 
.warning-overlayer{
  width: 100vw;
  height: 100vh;
  position: absolute;
  background: #000;
  color: #fff;
  font-size: 24px;
  z-index: 999;
  text-wrap: wrap;
  text-align: center;
  padding-top: 10%;
  display: none;
  pointer-events: none;
}
 
 
 
.toggle-tree{
  position: absolute;
  background: transparent !important;
  top: 10% !important;
  right: 10px;
  z-index: 10 !important;
  width: auto !important;
  outline: none !important;
  background-color: transparent;
  border: 1px solid #d2d2d2 !important;
  margin-top: 3px;
}
.toggle-tree:hover{
  background: #f8f9fa !important;
  color: #000 !important;
}
 
.guide-text{
  color: #000;
  width: 250px;
  font-size: 19px;
  position: absolute;
  right: 0;
}
.guide-text span{
  color: red;
}
 
/* for those dropdown */
.maintree-container {
  display: block;
  border-radius: 5px;
  right: 5px;
  margin: 5px 0 0 0;
  border: 1px solid #d2d2d2;
  height: 50vh;
  top:15%;
  width: 250px;
  flex-grow: 2;
  z-index: 99;
  background: #F8F9FA;
  overflow: hidden;
  /* display: none; */
}
 
 
 
#checkbox-form {
  position: sticky;
  padding: 5px 5px 0 5px;
  display: flex;
  justify-content: space-between;
  background-color: #F8F9FA !important;
  height: auto;
  padding: 5px 2px;
}
#checkbox-form label{
  padding: 5px 12px;
  text-align: center;
  cursor: pointer;
  border-radius: 100%;
  transition: all .1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
#checkbox-form label:hover{
  background-color: #e5e7eb;
}
[name="checkbox"]{
  display: none;
  pointer-events: none;
}
 
.tree-box{
  margin: 10px;
  overflow: auto !important;
  width: auto;
  height: auto !important;
  font-size: 17px;
  align-items: start;
}
.tree-node {
  cursor: pointer;
  list-style: decimal;
}
 
.tree-node ul {
  display: none;
}
 
/* .tree-node ul li {} */
 
 
@media screen and (max-width: 1024px) {
  .warning-overlayer{
      display: block;
  }
}

/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */
 
.timeline {
  white-space: nowrap;
  overflow-x: hidden;
}
 
.timeline ol {
  font-size: 0;
  width: 100vw;
  padding: 235px 0;
  transition: all 1s;
}
 
.timeline ol li {
  position: relative;
  display: inline-block;
  list-style-type: none;
  width: 200px;
  height: 3px;
  background: #bdbdc6;
}
 
.timeline ol li:last-child {
  width: 280px;
}
 
.timeline ol li:not(:first-child) {
  margin-left: 14px;
}
 
.timeline ol li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 1px);
  bottom: 0;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #334e6e96;
}
 
.timeline ol li div {
  position: absolute;
  left: calc(100% + 7px);
  width: 300px;
  padding: 15px;
  font-size: 16px;
  white-space: normal;
  color: #4f4e4e;
  background: transparent;
  border: 2px #8494a7 solid;
}
 
.timeline ol li div::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
}
 
.timeline ol li:nth-child(odd) div {
  top: -16px;
  transform: translateY(-100%);
}
 
.timeline ol li:nth-child(odd) div::before {
  top: 100%;
  border-width: 8px 8px 0 0;
  border-color: #8494a7 transparent transparent transparent;
}
 
.timeline ol li:nth-child(even) div {
  top: calc(100% + 16px);
}
 
.timeline ol li:nth-child(even) div::before {
  top: -8px;
  border-width: 8px 0 0 8px;
  border-color: transparent transparent transparent #8494a7;
}
 
.timeline time {
  display: block;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
}
 
/* TIMELINE ARROWS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
 
.timeline .arrows {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
 
.timeline .arrows .arrow__prev {
  margin-right: 20px;
}
 
.timeline .disabled {
  opacity: 0.5;
}
 
.timeline .arrows i {
  display: block;
  width: 45px;
  height: 45px;
  font-size: 33px;
  color: #334e6e;
}
 
/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 599px) {
  .timeline ol,
  .timeline ol li {
    width: auto;
  }
 
  .timeline ol {
    padding: 0;
    transform: none !important;
  }
 
  .timeline ol li {
    display: block;
    height: auto;
    background: transparent;
  }
 
  .timeline ol li:first-child {
    margin-top: 25px;
  }
 
  .timeline ol li:not(:first-child) {
    margin-left: auto;
  }
 
  .timeline ol li div {
    position: static;
    width: 94%;
    height: auto !important;
    margin: 0 auto 25px;
  }
 
  .timeline ol li:nth-child(odd) div {
    transform: none;
  }
 
  .timeline ol li:nth-child(odd) div::before,
  .timeline ol li:nth-child(even) div::before {
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: none;
    border-left: 1px solid rgb(255, 255, 255);
    height: 25px;
  }
 
  .timeline ol li:last-child,
  .timeline ol li:nth-last-child(2) div::before,
  .timeline ol li:not(:last-child)::after,
  .timeline .arrows {
    display: none;
  }
}
 
/* FOOTER STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.page-footer {
  position: fixed;
  right: 0;
  bottom: 20px;
  display: flex;
  align-items: center;
  padding: 5px;
  color: black;
  background: rgba(255, 255, 255, 0.65);
}
 
.page-footer a {
  display: flex;
  margin-left: 4px;
}
 
 
 
 
 
.timeline ol li .timeline-note{
  height: auto;
}
 
 
.action-plan .timeline-table .table-striped-columns{
  vertical-align: middle;
  text-align: center;
}
 
.action-plan .timeline-table .table-striped-columns td{
  vertical-align: middle;
}
 
.action-plan .timeline-table .table-striped-columns th{
  text-align: center;
}
 
.action-plan .timeline-table .table-striped-columns .btn-danger{
  width: 80%;
  background-color: #334e6e;
  border-color: #334e6e;
  color: #ffffff;
  font-size: 16px;
  border-radius: 6px;
}
 
.action-plan .timeline-table{
  border: 2px #f2f2f2 solid;
  margin-bottom: 0px !important;
}
 
.action-plan .timeline-table .table{
  margin-bottom: 0px !important;
}

/*      human factors form */

.slider-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 300px;
}

.slider-label {
  width: 30px;
  text-align: center;
}

/* human factors */
.custom-textarea {
  height: 100px;
}
 
/* POP Help box 4.1 styling */
/* Style for the 4.1 box */
.box-4-1 {
  position: relative;
  display: inline-block;
  margin: 20px;
}

/* Help icon styling */
.help-icon {
  background-color: #007bff;
  color: #fff;
  border-radius: 50%;
  padding: 5px 10px;
  margin-left: 10px;
  cursor: pointer;
  font-weight: bold;
}

/* Pop-up box styling */
.popup-box {
  position: absolute;
  top: 30px;
  left: 10px;
  width: 250px;
  background-color: white;
  border: 1px solid lightgrey;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
  padding: 10px;
  border-radius: 4px;
}

/* Pop-up arrow (pointer) */
.popup-arrow {
  position: absolute;
  top: -10px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid white;
}

/* Pop-up content */
.popup-content {
  color: black;
  font-size: 14px;
  line-height: 1.5;
}

/* Show pop-up when visible */
.popup-box.show {
  opacity: 1;
  visibility: visible;
}
