.devilry-body-rolemixin(@color, @color-dark, @color-light, @color-bright, @color-whiten) {
  a {
    color: @color-dark;
    text-decoration: underline;
    &:hover {
      //color: @link-hover-color;
      color: @color-dark;
      text-decoration: underline;
    }

    &.link-white {
      color: white;
      text-decoration: underline;
      &:hover {
        color: @color-bright;
      }
    }
  }

  a.btn {
    text-decoration: none;
  }

  .btn {
    &.btn-primary, &.btn-success {
      background: #fff;
      border-color: @color-dark;
      color: @color-dark;
      &:hover, &:focus {
        background: @color-dark;
        border-color: @color-dark;
        color: #fff;
      }
    }

    //&.btn-default {
    //  background: @color-whiten;
    //  border-color: @color-whiten;
    //  color: @text-color;
    //  &:hover, &:focus {
    //    background: @color-bright;
    //    border-color: @color-bright;
    //    color: @text-color;
    //  }
    //}

    //&.btn-danger {
    //  background: @btn-danger-bg;
    //  border-color: @btn-danger-border;
    //  color: @btn-danger-color;
    //  &:hover, &:focus {
    //    background: @btn-danger-bg;
    //    border-color: @btn-danger-border;
    //    color: @btn-danger-color;
    //    @media (min-width: @screen-sm-min) {
    //      background: @cradmin-btn-danger-hover-bg;
    //      border-color: @cradmin-btn-danger-hover-border;
    //      color: @cradmin-btn-danger-hover-color;
    //    }
    //  }
    //}
  }

  a.cradmin-legacy-listbuilder-itemframe-link {
    text-decoration: none;
    .cradmin-legacy-listbuilder-itemvalue.cradmin-legacy-listbuilder-itemvalue-focusbox {
      &.cradmin-legacy-listbuilder-itemvalue-titledescription {
        color: @text-color;
        .cradmin-legacy-listbuilder-itemvalue-titledescription-title {
          color: @color-dark;
        }
      }
    }

    &:hover {
      .cradmin-legacy-listbuilder-itemvalue.cradmin-legacy-listbuilder-itemvalue-focusbox {
        border-color: @color-dark;
      }
    }

    &.devilry-cradmin-legacy-listbuilder-itemframe-goforward {
      .devilry-cradmin-legacy-listbuilder-itemframe-goforward-icon {
        color: @devilry-brand-color-default-light3;
      }
    }
    &:hover {
      .devilry-cradmin-legacy-listbuilder-itemframe-goforward-icon {
        color: @color-dark;
      }
    }
  }

  nav#cradmin_legacy_mainmenu.cradmin-legacy-menu {
    &.devilry-cradmin-legacy-menu {
      //&.devilry-cradmin-legacy-menu-examiner {
      //  border-bottom-color: @devilry-examiner-bgcolor;
      //}
      //&.devilry-cradmin-legacy-menu-student {
      //  border-bottom-color: @devilry-student-bgcolor;
      //}
      @media (min-width: @screen-md-min) {
        height: @cradmin-topmenu-theme-mainmenu-desktop-height + 6px;
      }
      border-bottom: 6px solid @color;
    }
  }

  .devilry-tabs {
    &__tab-list {
      //border-bottom-color: @devilry-brand-color-default-light3;
    }

    &__tab {
      background: @devilry-brand-color-default-light3;
      color: @text-color;
      text-decoration: none;
      &:hover, &:focus {
        text-decoration: none;
        background: #fff;
        color: @text-color;
      }

      &--active {
        &,
        &:hover,
        &:focus {
          text-decoration: none;
          background: #fff;
          color: @text-color;
        }
      }
    }
  }
}

.devilry-body-admin {
  .devilry-body-rolemixin(
          @devilry-brand-color-admin,
          @devilry-brand-color-admin-dark,
          @devilry-brand-color-admin-light1,
          @devilry-brand-color-admin-light2,
          @devilry-brand-color-admin-light3
  );
  .devilry-core-groupstatus {
    &.devilry-core-groupstatus-waiting-for-feedback {
      font-weight: bold;
    }
  }
}

.devilry-body-examiner {
  .devilry-body-rolemixin(
          @devilry-brand-color-examiner,
          @devilry-brand-color-examiner-dark,
          @devilry-brand-color-examiner-light1,
          @devilry-brand-color-examiner-light2,
          @devilry-brand-color-examiner-light3
  );
  .devilry-core-groupstatus {
    &.devilry-core-groupstatus-waiting-for-feedback {
      font-weight: bold;
    }
  }
}

.devilry-body-student {
  .devilry-body-rolemixin(
          @devilry-brand-color-student,
          @devilry-brand-color-student-dark,
          @devilry-brand-color-student-light1,
          @devilry-brand-color-student-light2,
          @devilry-brand-color-student-light3
  );

  .devilry-core-groupstatus {
    &.devilry-core-groupstatus-waiting-for-deliveries {
      font-weight: bold;
    }
  }
}
