.with-scrollable-section {
  overflow: hidden;
  height: 100%;
  section {
    overflow-y: auto;
  }
}
.RoomPlanner {
  width: inherit;
  height: inherit;
  pointer-events: none;

  > * {
    pointer-events: all;
  }
}

.sidebar-toggles .mat-mdc-raised-button {
  width: 110px;
  text-align: left;
}

.logo-menu {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

.logo-menu-2nd {
  position: absolute;
  top: 140px;
  left: 84px;
}

.logo-menu-4th {
  position: absolute;
  top: 180px;
  left: 84px;
}

.sidebar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100vh;
  max-width: 30%;
  width: 400px;
  background: #fff;
  padding: 0 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, .25);
}

.flex-wrap {
  display: flex;
  flex-flow: column nowrap;
  height: 100%;
}

.solid-background > canvas {
  fill: white;
  background: white;
}

.toolbar__divider {
  border-bottom: 2px solid #c7c3c38a;
  width: 70%;
  margin: 5px 0;
  &.context-menu {
    border-color: #c7c3c38a;
    width: 100%;
  }
}

.show-inner-wall-measurement-button {
  ::ng-deep .co-icon {
    transform: rotateZ(180deg);
  }
}

/* TO BE DELETED AFTER UI REFACTORING IS DONE */
.on-top {
  z-index: 3;
}

/* New menu */
.rp-item-context-menu-wrap {
  color: #fff;
  background: #17253391;
  border-radius: 5px;
  box-sizing: border-box;
  padding: 10px;
  position: relative;
  .rp-item-context-menu-item {
    cursor: pointer;
    flex-direction: row;
    display: flex;
    padding: 5px;
    border-radius: 5px;
    span, label {
      display: flex;
      flex-direction: column;
      line-height: 20px;
      font-size: 12px;
      font-weight: lighter;
      vertical-align: middle;
    }
    .label {
      width: 150px;
    }
    .icon {
      width: 20px;
      margin-right: 10px;
      svg, co-icon, .mat-icon {
        height: 15px;
        width: 15px;
        font-size: 18px;
      }
    }
    &:hover {
      background: rgba(220,220,220,0.5);
    }
  }
  .rp-item-context-menu-item-highlight {
    color: #da9803;
    svg {
      fill: #da9803;
    }
  }
  .icon-selected {

  }
  .conversion-button-selected {
    .icon-selected {
      color: #009a6d;
    }
  }
  .rp-item-context-menu-header {
    border-bottom: 2px solid #c7c3c38a;
    margin-bottom: 10px;
    padding-left: 5px;
    padding-right: 25px;
    max-width: 160px;
    overflow: hidden;
    p {
      color: #da9803;
      font-size: 13px;
      margin: 0;
      padding: 5px 0 10px 0;
    }
  }
  .rp-item-context-menu-close {
    position: absolute;
    right: 7px;
    top: 5px;
    z-index: 2;
    cursor: pointer;
    width: 15px;
    height: 15px;
    .close-icon {
      co-icon {
        height: 15px;
        width: 15px;
        font-size: 18px;
      }
    }
  }
}

.rp-right-context-menu-wrap {
  color: #fff;
  background: #17253391;
  border-radius: 5px 0 0 5px;
  box-sizing: border-box;
  padding: 5px;
  position: relative;
  .rp-right-context-menu-item {
    cursor: pointer;
    flex-direction: row;
    display: flex;
    padding: 10px;
    justify-content: center;
    border-bottom: 2px solid #c7c3c38a;
    &:last-child {
      border-bottom: none;
    }
    span, label {
      display: flex;
      flex-direction: column;
      font-weight: lighter;
      vertical-align: middle;
    }
    .icon {
      width: auto;
      margin-right: 0;
      svg, co-icon, .mat-icon {
        height: 20px;
        width: 20px;
        font-size: 20px;
      }
    }
    &:hover {
      background: rgba(220,220,220,0.5);
    }
  }
  .rp-right-context-menu-item-highlight {
    color: #da9803;
    svg {
      fill: #da9803;
    }
  }
  .icon-selected {

  }
  .conversion-button-selected {
    .icon-selected {
      color: #009a6d;
    }
  }
}
::ng-deep .mat-mdc-slide-toggle {
  &.mat-checked {
    /* TODO(mdc-migration): The following rule targets internal classes of slide-toggle that may no longer apply for the MDC version. */
    .mat-slide-toggle-bar {
      background-color: rgb(218 152 3);
      /* TODO(mdc-migration): The following rule targets internal classes of slide-toggle that may no longer apply for the MDC version. */
      .mat-slide-toggle-thumb-container {
        /* TODO(mdc-migration): The following rule targets internal classes of slide-toggle that may no longer apply for the MDC version. */
        .mat-slide-toggle-thumb {
          background-color: #fff;
        }
      }
      &:hover {
        .mat-ripple-element {
          background-color: rgb(218 152 3);
        }
      }
    }
  }
  /* TODO(mdc-migration): The following rule targets internal classes of slide-toggle that may no longer apply for the MDC version. */
  .mat-slide-toggle-bar {
    width: 40px;
    height: 20px;
    border-radius: 15px;
    /* TODO(mdc-migration): The following rule targets internal classes of slide-toggle that may no longer apply for the MDC version. */
    .mat-slide-toggle-thumb-container {
      width: 17px;
      height: 17px;
      top: 2px;
      left: 5px;
      /* TODO(mdc-migration): The following rule targets internal classes of slide-toggle that may no longer apply for the MDC version. */
      .mat-slide-toggle-thumb {
        height: 16px;
        width: 16px;
      }
    }
  }
}
::ng-deep mat-slider {
  height: 24px;
  /* TODO(mdc-migration): The following rule targets internal classes of slider that may no longer apply for the MDC version. */
  .mat-slider-wrapper {
    /* TODO(mdc-migration): The following rule targets internal classes of slider that may no longer apply for the MDC version. */
    .mat-slider-track-wrapper {
      overflow: visible;
    }
    /* TODO(mdc-migration): The following rule targets internal classes of slider that may no longer apply for the MDC version. */
    .mat-slider-track-fill {
      background-color: rgb(218 152 3);
    }
    /* TODO(mdc-migration): The following rule targets internal classes of slider that may no longer apply for the MDC version. */
    .mat-slider-thumb-container {
      /* TODO(mdc-migration): The following rule targets internal classes of slider that may no longer apply for the MDC version. */
      .mat-slider-thumb, .mat-slider-thumb-label {
        background-color: rgb(218 152 3);
      }
    }
  }
}
::ng-deep mat-list {
  .mat-mdc-list-item {
    border-bottom: 1px solid #9bb0d0;
  }
}
/* New save grouping button */
.mrp-save-grouping {
  pointer-events: all;
  position: absolute;
  bottom: 10%;
  left: 50%;
}
