.warning-message {
  color: #f00;
  font-size: $font-size-xs;
  margin-bottom: 2em;
}

.administration {
  .preferences-section,
  .legal-contents-administration {
    input[type='checkbox'] {
      margin: 2px -20px 0;
    }
  }

  input[type='text'],
  input[type='textarea'],
  .form-control,
  .admin-dropdown,
  .dropdown-toggle,
  .btn-default {
    border-radius: 0 !important;

    &:focus {
      outline: 0;
      box-shadow: none;
    }
  }

  .profile-options {
    .textfield-checkbox {
      margin-top: 17px;
      margin-right: 5px;
    }

    .profile-options-field {
      margin-bottom: 25px;

      input[type='text'] {
        min-width: 350px;
      }

      .rsbc-switch-button-flat-round {
        margin-top: 9px;
        margin-right: 5px;
        margin-left: 6px;
      }

      .admin-icons {
        padding: 0;
        width: 18px;
      }

      .form-control {
        width: 350px;
      }

      .select-field-options {
        padding-left: 20px;

        input[type='text'] {
          min-width: 330px;
        }

        .form-control {
          width: 330px;
        }
      }
    }
  }

  .help-block {
    color: $error !important;
    font-size: $font-size-xxs;
    margin: 5px 0 0 5px;
    font-family: $font-family6;
  }

  .has-error > input {
    border-color: $error !important;
  }

  .panel-error {
    border-color: $error;
  }

  .block-picker {
    input {
      height: 34px !important;
    }
  }

  .checkbox-title {
    line-height: 20px;
    font-size: $font-size-xs;
    font-family: $font-family;
  }

  .gauges-vote-form {
    margin: 30px 0 0;
  }

  .token-vote-form {
    margin-top: 30px;
  }

  .admin-menu-sticky {
    position: sticky;
    top: 100px;
    z-index: 99;
    padding: 15px 0 0 30px;
  }

  .admin-menu-container {
    padding: 0;
    max-height: 600px;
    max-width: 320px;
    overflow-y: auto;
    background-color: $page-bkg-grey;
  }

  .no-box-shadow {
    box-shadow: none !important;
  }

  .module-form {
    margin-top: 30px;
  }

  .label-indication {
    font-family: $font-family7;
    font-size: $font-size-xxs;
    margin-bottom: 2em;
  }

  .admin-menu {
    padding: 0;
    list-style-type: none;

    li {
      padding: 0 0 15px;

      a {
        color: $grey;
      }

      .assembl-icon-angle-right:before,
      .assembl-icon-angle-down:before {
        margin-left: -7px;
      }
    }

    .active {
      text-decoration: none;
    }
  }

  .admin-menu2 {
    list-style-type: none;
    padding: 15px 0 0 30px;

    > li {
      &:last-child {
        padding: 0;
      }
    }
  }

  .admin-sub-menu {
    padding: 10px 0 0 10px;
    list-style-type: none;
  }

  .language-menu {
    position: fixed;
    background-color: $white;
    padding-bottom: 15px;
    margin-top: 20px;
    max-height: 350px;
    overflow-y: auto;
  }

  .admin-help {
    font-size: $font-size-xs;
    font-family: $font-family6;
    letter-spacing: 0;
  }

  .admin-box {
    background-color: $white;

    .intro-text {
      display: flex;
      flex-direction: column;
      padding: 0 45px;
      font-size: $font-size-s;
      color: $grey;
      font-family: $font-family4;

      .timeline-link {
        font-family: $font-family2;
        text-decoration: underline;
      }
    }

    .bold {
      font-family: $font-family5;
    }

    .dark-title-3 {
      font-size: 18px;
      padding: 40px 50px 0;
      font-weight: bold;
    }

    .admin-content {
      padding: 10px 40px 40px;
      text-align: center;

      .form-group {
        &.no-margin-bottom {
          margin-bottom: 0;
        }
      }

      .block-picker {
        &.no-border-radius {
          > div {
            border-radius: 0 0 0 0 !important;
          }
        }
      }
    }

    .admin-paragraph {
      font-size: 13px;
      font-family: $font-family2;
      line-height: 1.8;
    }

    .admin-language-content {
      padding: 30px 30% 80px;
      text-align: left;

      .language-list {
        padding-top: 20px;
        color: $grey;
      }
    }

    .two-columns-admin {
      display: flex;
      margin: 40px 0 0;

      .column-left {
        flex: 1;
      }

      .column-right {
        flex: 1;
      }
    }

    .annotation {
      font-family: $font-family7;

      &.margin {
        margin: 0 44px 20px;
      }
    }
  }

  .admin-icons {
    border: none;
    width: 35px;

    &:hover {
      background-color: $white;
      border: none;
    }

    &:focus {
      outline: none;
      background-color: $white;
    }

    &:active {
      box-shadow: none;
    }
  }

  .plus {
    border-radius: 20px;
    color: $white;
    cursor: pointer;
    height: 20px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 1px 1px;
    text-align: center;
    width: 20px;
  }

  .form-container {
    margin: 0 auto;
    max-width: 400px;
    text-align: left;

    .title {
      font-size: 13px;
      font-family: $font-family2;
      margin: 0 0 25px;
      text-align: left;
    }

    .form-control {
      font-size: 12px;
    }

    .form-control::placeholder {
      font-size: 12px;
      font-family: $font-family6;
    }

    .separator {
      margin: 40px 0;
      padding: 0;
    }
  }

  .flag-container {
    cursor: pointer;
    margin: 20px 15px 0;

    &:hover {
      transform: scale(1.2);
    }
  }

  .flag-container.active {
    border-width: $btn-dark-border-width;
    border-style: $btn-dark-border-style;
    border-radius: 20px;
    height: 24px;
    margin: 20px 15px 0 13px;
    transform: scale(1.2);
    width: 24px;
  }

  .assembl-icon-delete {
    &:before {
      font-size: 15px;
    }
  }

  .separator {
    border-bottom-style: $btn-dark-border-style;
    border-bottom-width: 1px;
    clear: both;
    margin: 0 0 50px;
    padding: 40px 0 15px;
  }

  .admin-navbar {
    height: $navbar-height;
    width: 100%;

    .step-numbers {
      max-width: 250px;
      padding: 0 0 0 40px;
      position: relative;
      width: 100%;

      .txt {
        font-family: $font-family4;
        font-size: $font-size-xs;
        margin: 12px 0 5px;
      }

      .bar {
        height: 6px;
        position: absolute;
        z-index: 2;
      }

      .bkg-bar {
        background-color: $white;
        height: 6px;
        width: 100%;
        position: absolute;
        z-index: 1;
      }
    }
  }

  .arrow-container {
    padding: 0 40px 0 0;

    .arrow {
      background-color: $white;
      border-radius: 26px;
      cursor: pointer;
      display: inline-block;
      line-height: 20px;
      height: 26px;
      margin: 18px 0 0 30px;
      padding: 0 0 0 4px;
      text-align: left;
      transform: rotate(90deg);
      width: 26px;

      .assembl-icon-up-open {
        display: block;
        margin-bottom: 2px;

        &:before {
          font-size: 8px;
        }
      }

      .assembl-icon-down-open {
        display: block;
        margin-top: 2px;

        &:before {
          font-size: 8px;
        }
      }
    }
  }

  .save-bar {
    border-bottom: $navbar-border;
    border-top: 0;
    background-color: $white;
    height: $navbar-height;
    padding: 10px 0;
    width: 100%;
    z-index: 100;
  }

  .margin-container {
    margin: 40px 0 $margin-section-xxxs 0;
  }

  .text-area {
    height: 100px;
  }

  .preview {
    margin: 25px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    img {
      width: 50%;
      max-height: 300px;
    }

    .preview-title {
      margin: 0 0 0 10px;
      white-space: pre;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .assembl-icon-text-attachment {
      margin-right: 5px;
    }

    .admin-icons {
      padding: 0;
    }
  }

  .preview-title {
    color: $grey;
    font-family: $font-family6;
    font-size: $font-size-xs;
    margin: 10px 0 20px 5px;
  }

  .question-section {
    margin: 0 0 75px 0;
  }

  label {
    font-family: $font-family7;
    font-size: 11px;
    margin: 0 0 5px 5px;
  }

  .description-block {
    color: $grey;
    font-size: $font-size-xxs;
    margin: 10px 0 0 5px;
    font-family: $font-family6;
  }

  .assembl-icon-faq {
    &:before {
      font-size: $font-size-sm;
    }
  }

  .vote-modules-form {
    .dropdown {
      width: 100%;

      .admin-dropdown {
        width: 92%;
        text-align: left;
      }

      .dropdown-toggle {
        width: 8%;
      }
    }

    .flex > .form-group {
      flex-grow: 1;
    }
  }

  .landing-page-admin {
    background-color: $white;

    .admin-box {
      .admin-content {
        text-align: left;
      }
    }

    .section-description {
      margin-bottom: 20px;
      margin-top: 20px;
      font-family: $font-family7;
      font-size: 11px;
    }

    .modules-preview {
      margin: 5px;
      padding: 2px;
      background-color: $light-grey;
      min-height: 400px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      font-size: 11px;
      min-width: 300px;

      .inner {
        margin: auto;
        width: 75%;
        min-height: 330px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);

        .module-block:first-child {
          padding: 10px 0;
        }

        .module-block:first-child,
        .module-block:last-child {
          opacity: 0.7;
          color: $white;
          border: 0;
          margin: 0;
          text-align: center;
        }

        .other-modules {
          flex: 1;
          justify-content: flex-start;
          background-color: $white;

          .module-block {
            margin: 7px;
            padding: 10px 5px 10px 11px;
            border-style: solid;
            border-width: 1px;
            background-color: $white;
            display: flex;
            justify-content: space-between;

            .admin-icons {
              padding: 0;
              width: 20px;
            }

            &:first-child,
            &:last-child {
              opacity: 1;
              text-align: left;
            }
          }
        }
      }
    }
  }

  .vote-proposal-form {
    .settings-link {
      margin-left: 20px;
      font-size: $font-size-xs;
      font-family: $font-family7;

      &:hover {
        cursor: pointer;
      }

      .assembl-icon-edit:before {
        font-size: $font-size-s;
      }
    }
  }

  .timeline-admin {
    .admin-instruction {
      text-align: left;
      margin-left: 50px;
      font-family: $font-family4;
    }
  }
}

.helper-popover {
  width: auto;
  min-width: 350px;
  padding: 20px 11px;

  .arrow {
    display: none;
  }

  img {
    padding-bottom: 10px;
  }

  .helper-text {
    padding-top: 10px;
  }
}

.margin-left-20 {
  margin-left: 20px;
}

.img-helper-container {
  margin-top: 17px;

  .img-helper {
    max-width: 100%;
  }
}

.form-title {
  margin-left: auto;
  margin-right: auto;
  max-width: 400px;
  text-align: initial;
  font-size: 16px;
  font-weight: bold;
  font-family: $font-family4;
}

.section-helper {
  margin-left: 49px;
  margin-top: 37px;

  .section-helper-title {
    font-size: 14px;
    font-weight: bold;
  }

  .section-helper-description {
    font-size: 14px;
    font-family: $font-family4;
  }
}

.legal-contents-administration {
  .separator {
    margin: 0 0 20px;
    padding: 10px 0 15px;
  }

  &.form-container {
    max-width: 550px;
  }
}

@media screen and (min-width: $screen-sm-max) {
  .administration .assembl-icon-faq {
    &:before {
      font-size: $font-size-xxs;
    }

    &:hover {
      color: $black;
    }
  }
}

@media screen and (max-width: $screen-md-min) {
  .administration {
    .admin-menu-sticky {
      padding: 15px 0 0 15px;

      .admin-menu2 {
        padding-left: 15px;
      }
    }
  }
}

@media screen and (max-width: $screen-sm-min) {
  .administration {
    .margin-container {
      margin: 10px 0 20px 0;
    }

    .admin-menu-sticky {
      padding: 0;

      .admin-menu2 {
        padding-left: 8px;
      }
    }

    .profile-options {
      .profile-options-field {
        input[type='text'] {
          min-width: 240px;
        }

        .form-control {
          width: 240px;
        }
      }
    }

    .timeline-admin {
      .phase-side-title {
        margin-left: 0;
      }

      .form-group .form-control {
        width: 160px;
      }

      .admin-content {
        padding: 10px 10px 40px;
      }
    }
  }
}

.warning-label {
  font-size: $font-size-xs;
  color: $orange2;
  text-align: left;
}

.warning {
  border-color: $orange !important;
  border-width: 2px !important;
}
