#assignSurveys {
  .assignments-edit {
    border: 1px solid #e6e6e6;
    border-radius: 5px;

    .infoText {
      font-size: 14px;
      color: hsl(0, 0%, 35%);
      margin-top: 5px;
      padding: 0px;
    }

    .heading {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .title {
        font-weight: bold;
      }

      .info {
        font-size: 13px;
        text-transform: uppercase;
      }
    }

    .active::after {
      content: none;
    }

    .assignment-topbar {
      display: flex;
      padding: 12px 15px;
      border-bottom: 1px solid #e6e6e6;

      .assignment-name {
        display: flex;
        align-items: center;
        color: #4d4d4d;
        margin-right: auto;
        width: 100%;

        button.go-back {
          border: none;
          padding: 2px;
          background: transparent;

          i.fa {
            font-size: 21px;
          }
        }

        h3 {
          font-size: 16px;
          margin-left: 16px;
          width: 90%;

          span,
          input {
            display: block;
          }

          input {
            width: 50%;
            background: none;
            outline: none;
            font-size: 17px;
            font-weight: 500;
            border: none;
            padding: 4px 5px;
            border: 1px solid #b8b8bc;

            &:hover,
            &:focus {
              border: 1px solid #4d4d4d;
            }
          }
        }
      }
      button {
        padding: 5px 2.7em;
      }
    }

    .assignment-body {
      display: flex;
      height: 100%;

      .assignment-sidebar {
        flex: 1;
        background: #e8e8e8;
        padding: 5px 0px;
        height: 65vh;
        overflow: auto;

        li {
          display: flex;
          color: #4ab1cf;

          &.active {
            background: #4ab1cf1a;

            a {
              color: #444;
            }

            &::after {
              content: unset;
            }
          }

          a {
            padding: 15px 25px;
            color: inherit;
            border: none;
            background: none;
            outline: none;
            font-size: 15px;
            font-weight: 500;
            text-align: left;
            flex: 1;

            &.sub-action {
              flex: 0;
              color: #4ab1cf;
              padding-left: 10px;
              padding-right: 10px;

              &.active {
                color: #444;
              }
            }

            &.disabled {
              color: #444;
            }
          }
        }

        .sidebar-dropdown-container {
          display: block;

          .sidebar-dropdown {
            font-size: 14px;
            padding: 15px 25px;
            display: block;
            padding-bottom: 0px;

            &:last-child {
              padding-bottom: 15px;
            }

            .dd-header {
              display: flex;
              justify-content: space-between;
              padding-bottom: 5px;
              cursor: pointer;
              align-items: center;
              color: #444;
            }

            .sidebar-panel {
              padding-left: 20px;

              a {
                display: block;
                padding: 4px 0px;
                color: #4ab1cf;

                &.active {
                  color: #444;
                }
              }
            }
          }
        }
      }

      .assignment-main {
        flex: 4;
        color: #444;
        height: 65vh;
        overflow: auto;

        .settings {
          padding: 15px 25px;
          width: 90%;

          .assignment-date {
            margin-top: 15px;
            margin-bottom: 2em;
            width: 50%;

            .date-picker {
              display: flex;
              width: 85%;
              justify-content: space-between;
              padding: 15px 0px 3px;

              i.fa {
                margin-right: 5px;
              }

              .date {
                display: flex;
                align-items: center;
                padding: 3px 8px;
                border: 1px solid #4d4d4d;
                border-radius: 5px;

                input {
                  outline: none;
                  border: none;
                  background-color: transparent;
                  font-family: inherit;

                  &:hover {
                    background: transparent;
                  }
                }
              }
            }
          }

          .assignment-form-selector {
            margin-top: 2.3em;

            .heading {
              width: 45%;
            }

            .folder-selector {
              width: 90%;
              
              select {
                width: 150px;
                height: 38px;
                background: transparent;
                border: 1px solid #4d4d4d;
                border-radius: 5px;
                padding: 5px;
                padding-right: 26px;
                margin-right: 10px;

                -webkit-appearance: none;
                -moz-appearance: none;
                appearance: none;

                background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAA20lEQVQ4T+3SL0tDcRjF8c8V2YrJqHF1VTAIK5rtewGCb2BNWBIcmKy+gYW9ATGJIPblwZLNZBqMyQ9+Vy4/7j/wxj31Oc8XzjlPpuPJOubZA/+faJphDxPMsGnA96P2oahNgUd4xRpjbCugh5jjFJf4yXVlLR/jDR+4wS6BHuAZZxjhu7ivepsTvGMRbeXQoH/ENS7wlTqo+8NBhD7hPh7e4TbCVmVxND32MNoPoGB1Gm0uqwprAoa7c7xEwBU+69pvAwz3ockw4QNqpy2wifO33wNbR1Up7DzDX2zcHRV0yPnBAAAAAElFTkSuQmCC');
                background-repeat: no-repeat;
                background-position: 125px center;
              }
            }

            .form-selector {
              width: 50%;

              .form {
                width: 100%;
                display: flex;
                align-items: center;
                flex-direction: row;
                justify-content: space-between;

                label {
                  p {
                    font-size: 16px;
                    color: initial;
                  }

                  span {
                    font-size: 14px;
                    color: #4f4f4f;
                  }
                }
              }
            }

            .noForms {
              color: hsl(0, 0%, 35%);
              margin-top: 10px;
            }
          }
        }

        .devices {
          padding: 15px;
          display: flex;
          height: 100%;

          .device-empty {
            margin-top: auto;
            width: 100%;
            text-align: center;
            height: 75%;

            color: #7a7a7a;
            font-weight: 500;

            .fa {
              font-size: 4em;
              margin-bottom: 7px;
            }
          }
        }

        .device-empty {
          margin-top: auto;
          width: 100%;
          text-align: center;
          height: 75%;

          color: #7a7a7a;
          font-weight: 500;

          .fa {
            font-size: 4em;
            margin-bottom: 7px;
          }
        }

        .devices-action-page {
          position: relative;
          height: 100%;
          display: flex;
          flex-direction: column;

          .header {
            display: flex;
            flex: 1;
            justify-content: space-between;
            padding: 15px 3em;
            align-items: center;
            font-weight: 500;
            border-bottom: 1px solid #e6e6e6;

            .icon {
              font-size: 1.3em;
            }

            .device-details p {
              margin-bottom: 3px;
            }
          }

          .body {
            padding: 15px 3em;
            padding-bottom: 3em;
            flex: 1 1 auto;
            overflow: auto;
            height: 100%;

            .assignment-device-selector {
              margin-bottom: 1.5em;

              .accordion-container {
                padding: 10px 0px;
                font-weight: 500;

                &:first-of-type {
                  padding-top: 0px;
                }

                .accordion {
                  background: transparent;
                  padding: 0px;
                  margin-bottom: 17px;
                  display: flex;

                  &::after {
                    content: '';
                  }

                  &.active::after {
                    content: '';
                  }

                  & > div {
                    margin-right: auto;
                    margin-top: 5px;
                    width: 100%;
                    display: flex;

                    span {
                      display: block;

                      &:first-of-type {
                        margin-right: auto;
                      }

                      &.fa {
                        font-size: 14px;
                      }
                    }
                  }
                }

                .panel {
                  padding: 0 3em;
                }
              }
            }
          }

          .footer {
            width: 100%;
            flex: 1;

            .footer-inner {
              display: flex;
              padding: 15px 3em;
              justify-content: space-between;
              align-items: center;
              border-top: 1px solid #e6e6e6;
            }
          }
        }

        .assign-datapoints {
          position: relative;

          .header {
            .divider {
              margin: 0px 5px;
            }
          }

          a.disabled {
            color: #444;
          }

          .datapoint {
            padding-bottom: 20px;

            p {
              font-weight: 500;
            }

            span {
              font-size: 14px;
            }
          }

          .all-dp-assigned {
            display: flex;
            align-items: center;
            padding: 1.2em;
            border: 1px solid #b3b3b3;
            border-radius: 7px;

            p {
              font-weight: bold;
              color: #000;

              &.info {
                font-weight: normal;
                color: hsl(0, 0%, 40%);
              }
            }

            .dp-info {
              margin-right: auto;
            }

            .undo-dp {
              button {
                font-size: inherit;
                border: none;
                outline: none;
                padding: 0;
                cursor: pointer;
                color: #4ab1cf;
                background-color: transparent;

                &:focus {
                  border: none;
                  outline: none;
                }
              }
            }
          }

          .search-datapoints {
            display: flex;
            flex-direction: column;
            position: absolute;
            background: #e8e8e8;
            border: 1px solid #d9d6d6;
            height: 100%;
            top: 0;
            right: 0;
            width: 40%;

            .header {
              padding: 15px 20px;
              flex: 1;
            }

            .body {
              padding: 15px 20px;
              flex: 1 1 auto;
              overflow: hidden;
              height: 100%;

              .search-bar {
                display: flex;
                align-items: center;
                padding: 3px 8px;
                border: 1px solid #4d4d4d;
                border-radius: 5px;
                background: #fff;

                input {
                  outline: none;
                  border: none;
                  background-color: transparent;
                  font-family: inherit;
                  width: 100%;

                  &:hover {
                    background: transparent;
                  }
                }
              }

              .search-results {
                padding-top: 15px;
                height: 80%;
                overflow: auto;
                padding-bottom: 4em;

                .search-result {
                  display: flex;
                  align-items: center;
                  padding-bottom: 20px;

                  & > label {
                    &.checkbox-container {
                      margin-top: -15px;
                      padding-right: 10px;
                    }

                    p {
                      font-weight: 500;
                    }

                    span {
                      font-size: 14px;
                    }
                  }
                }
              }
            }

            .footer {
              position: relative;
              bottom: initial;
              flex: 1;
              border-top: 1px solid #d9d6d6;
              margin-top: 5px;

              .footer-inner {
                padding: 15px 20px;
              }
            }
          }
        }

        .edit-datapoints {
          .datapoint {
            display: flex;
            align-items: center;
            padding-bottom: 20px;

            & > label {
              &.checkbox-container {
                margin-top: -15px;
                padding-right: 20px;
              }

              p {
                font-weight: 500;
              }

              span {
                font-size: 14px;
              }
            }
          }
        }
      }
    }
  }
}
