.side-nav {
  max-width: 235px;
  width: 100%;
  overflow-y: auto;
  height: 100%;
  border-right: solid 1px #e9e9e9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
}

.container.on .side-nav {
  width: 88px;
  overflow-y: visible;
  align-items: center;
}
.container.on .side-nav .side-menu ul.fancytree-plain.fancytree-container {
  position: static;
}
.container.on .side-nav .side-menu ul.fancytree-plain.fancytree-container > li {
  position: relative;
}
.container.on .side-nav .side-menu ul.fancytree-plain.fancytree-container > li span.fancytree-expander, .container.on .side-nav .side-menu ul.fancytree-plain.fancytree-container > li span.fancytree-title {
  display: none;
}
.container.on .side-nav .side-menu ul.fancytree-plain.fancytree-container > li span.fancytree-custom-icon {
  margin: 0;
}
.container.on .side-nav .side-menu ul.fancytree-plain.fancytree-container > li ul {
  position: absolute;
  display: block;
  left: 56px;
  top: 0;
  width: 250px;
  background: #e9e9e9;
  z-index: 4;
  min-height: 52px;
  max-height: 294px;
  overflow: auto;
  padding: 4px 0px;
}
.container.on .side-nav .side-menu ul.fancytree-plain.fancytree-container > li ul li span.fancytree-title {
  color: black;
  display: block;
}
.container.on .side-nav .fold-btn-container {
  margin: 0 0 30px 0;
  padding-left: 0;
  width: auto;
}
.container.on .side-nav .fold-btn-container .fold-btn {
  transform: rotate(180deg);
}
.container.on .main-part {
  width: calc(100% - 88px);

  .fold-btn-container{

    &::before{
      content: '\F231';

    }

    &:hover {

      &::before{
        content: '\F234';
      }
    }
  }
}
.container{
  .main-part{
    position: relative;

    .fold-btn-container{
      position: absolute;
      width: 20px;
      height: 45px;
      background: $blue-004;
      border-radius: 0px 5px 5px 0px;
      top: 10px;
      cursor: pointer;

      &::before{
        content: '\F22D';
        color: white;

        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      &:hover {
        animation: expandWidth 0.5s forwards; /* hover 시 애니메이션 적용 */

        &::before{
          content: '\F230';
        }
    }

  }
}
}
@keyframes expandWidth {
    from {
        width: 20px;
    }
    to {
        width: 40px;
    }
}

// .side-nav .fold-btn-container {
//   margin-bottom: 30px;
//   margin-top: 50px;
//   padding-left: 10%;
//   width: 80%;
// }

// .side-nav .fold-btn-container .fold-btn {
//   width: 40px;
//   height: 40px;
//   background-image: url(../img/foldIcon.svg);
//   background-size: 17px 19.5px;
//   border-radius: 5px;
//   border: 1px solid #e0e0e0;
//   background-color: #fafafa;
//   cursor: pointer;
// }

.side-nav .side-menu ul.fancytree-plain.fancytree-container {
  border: none;
  padding: 0px;
}
.side-nav .side-menu ul.fancytree-plain.fancytree-container > li > span {
  border-bottom: solid 1px #e9e9e9;
}
.side-nav .side-menu ul.fancytree-plain.fancytree-container li {
  min-height: 72px;
}
.side-nav .side-menu ul.fancytree-plain.fancytree-container li > span {
  height: 72px;
  display: inline-flex;
  align-items: center;
}
.side-nav .side-menu ul.fancytree-plain.fancytree-container li > span:hover span.fancytree-title, .side-nav .side-menu ul.fancytree-plain.fancytree-container li > span:active span.fancytree-title {
  color: #3c3c3c;
  background-color: transparent;
  border: none;
}
.side-nav .side-menu ul.fancytree-plain.fancytree-container li > span > span {
  color: #3c3c3c;
  font-size: 15px;
}
.side-nav .side-menu ul.fancytree-plain.fancytree-container li > span > span.fancytree-custom-icon {
  color: #98A7FA;
  font-size: 24px;
}
.side-nav .side-menu ul.fancytree-plain.fancytree-container li > span.fancytree-node.fancytree-active span.fancytree-title {
  color: #3c3c3c;
  background-color: transparent;
  border: none;
}
.side-nav .side-menu ul.fancytree-plain.fancytree-container li > span.fancytree-node.fancytree-active:hover span.fancytree-title, .side-nav .side-menu ul.fancytree-plain.fancytree-container li > span.fancytree-node.fancytree-active:active span.fancytree-title {
  color: #3c3c3c;
  background-color: transparent;
  border: none;
}
.side-nav .side-menu ul.fancytree-plain.fancytree-container li ul {
  padding: 0px;
}
.side-nav .side-menu ul.fancytree-plain.fancytree-container li ul li {
  min-height: 48px;
  border-bottom: 1px solid #E1E4F9;
}
.side-nav .side-menu ul.fancytree-plain.fancytree-container li ul li > span {
  height: 48px;
  width: -moz-fit-content;
  width: fit-content;
  padding-left: 1.5em;
}
.side-nav .side-menu ul.fancytree-plain.fancytree-container li ul li > span span.fancytree-title {
  font-size: 14px;
  color: #4A5ED2;
}
.side-nav .side-menu ul.fancytree-plain.fancytree-container li ul li:hover {
  background-color: #E1E4F9;
}
.side-nav .side-menu ul.fancytree-plain.fancytree-container li ul li:hover span.fancytree-title {
  color: #4A5ED2;
}

.side-nav .side-menu > ul > li > ul > li {
  height: 47px;
}

.side-nav .side-menu > ul > li > ul > li > span {
  color: #4A5ED2;
  font-size: 14px;
  font-weight: 400;
}

.menu-icon {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.menu-icon.base-icon {
  background-image: url("../img/icon-shield.png");
}
.menu-icon.filed-icon {
  background-image: url("../img/icon-industry.svg");
}
.menu-icon.production-icon {
  background-image: url("../img/icon-engineering.png");
}
.menu-icon.system-icon {
  background-image: url("../img/icon-gear.png");
}
.menu-icon.insp-icon {
  background-image: url("../img/icon-clipboard.svg");
  width: 22px;
  height: 22px;
  margin-left: 0.6em;
}
.menu-icon.facility-icon {
  background-image: url("../img/icon-cone.svg");
}
.menu-icon.chart-icon {
  background-image: url("../img/icon-chart.svg");
}
