#category-placeholder, #category-exist-error, .icon-selection-container {
  display: none;
}

#group-settings-form label[for="user-can-create-categories"] {
  display: inline-block;
  font-size: 16px;
}

.wiki-categories {
  ul {
    padding: 0;
    li {
      display: inline-block;
      width: 20% !important;
      label {
        display: inline-block !important;
        font-size: 16px;
      }
    }
  }

  div {
    > div {
      > label {
        font-size: 20px;
        margin-bottom: 0 !important;
        display: block;
      }
      > input {
        margin-top: 5px !important
      }
      #add-new-category {
        font-size: 14px;
        padding: 10px;
        line-height: 20px;
        border-radius: 4px;
      }
      #add-new-category-submit {
        display: inline-block;
        background-color: #42acd1;
        color: white;
        padding: 11px 15px 11px 15px;
        border-radius: 4px;
        font-size: 14px;
        border: none;
        cursor: pointer;
      }
      #add-new-category-submit:hover {
        opacity: .8;
      }
    }
  }
}

#categories {
  li {
    position: relative;
    .position-relative {
      position: relative;
    }
    .icons-my-container {
      display: inline-block;
      position: relative;
      vertical-align: middle;
    }

    .icon-selection-container {
      position: absolute;
      z-index: 50;
      border-radius: 5px;

      width: 360px;
      height: 200px;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 4px 2px -3px;
      border: 1px solid #aaa;
      margin-top: -10px;
      div {
        text-align: left;
        cursor: pointer;
        position: absolute;
        left: 5px;
        bottom: 5px;
        background-color: #42acd1;
        color: white;
        padding: 5px;
        font-size: inherit;
        border-radius: 4px;
        border: none;
        margin-top: 5px;
        display: inline-block;
      }

      div:hover {
        opacity: 0.8;
      }

      ul {
        max-height: 160px;
        overflow: auto;
        padding: 0 0 40px 0;

        li {
          display: inline-block;
          width: 50px;
          height: 45px;
          margin: 5px 0 0 5px;
          border: 1px solid transparent;

          input[type="radio"] {
            display: none;
            + label {
              width:50px;
              margin: 0 !important;
              font-size: 30px;
              color: #cdcdcd;
            }
          }

          input[type="radio"]:checked {
            + label {
              color: #000;
            }
          }
        }

        li:hover {
          border: 1px solid #cdcdcd;
          border-radius: 5px;
          cursor: pointer;
          input[type=radio] {
            + label {
              color: #000;
              cursor: pointer;
            }
          }
        }

        li:first-child {
          display: block;
          line-height: 35px;
          width: calc(100% - 10px) !important;
          input[type="radio"] {
            + label {
              font-size: 16px;
            }
          }
        }
      }
    }
  }
}

.cf:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

* html .cf {
  zoom: 1;
}

*:first-child + html .cf {
  zoom: 1;
}

html {
  margin: 0;
  padding: 0;
}

body {
  font-size: 100%;
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

h1 {
  font-size: 1.75em;
  margin: 0 0 0.6em 0;
}

a {
  color: #2996cc;
}

a:hover {
  text-decoration: none;
}

p {
  line-height: 1.5em;
}

.small {
  color: #666;
  font-size: 0.875em;
}

.large {
  font-size: 1.25em;
}

/**
 * Nestable
 */

.dd {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 20px;
}

.dd-list {
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dd-list .dd-list {
  padding-left: 30px;
}

.dd-collapsed .dd-list {
  display: none;
}

.dd-item,
.dd-empty,
.dd-placeholder {
  display: block;
  position: relative;
  margin: 0;
  padding: 0 !important;
  min-height: 20px;
  font-size: 13px;
  line-height: 20px;
}

.dd-item button:after {

}

.dd-handle {
  display: block;
  height: 30px;
  margin: 5px 0;
  padding: 5px 10px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #ccc;
  background: #fafafa;
  background: -webkit-linear-gradient(top, #fafafa 0%, #eee 100%);
  background: -moz-linear-gradient(top, #fafafa 0%, #eee 100%);
  background: linear-gradient(top, #fafafa 0%, #eee 100%);
  -webkit-border-radius: 0px;
  border-radius: 0px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

.dd-handle:hover {
  color: #2ea8e5;
  background: #fff;
}

.dd-item > button {
  display: block;
  position: absolute !important;
  cursor: pointer !important;
  float: left !important;
  width: 25px !important;
  height: 17px !important;
  margin: 0px 0 !important;
  padding: 0 !important;
  text-indent: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 12px !important;
  line-height: 1 !important;
  text-align: center !important;
  font-weight: bold !important;
  z-index: 5;
  top: 8px;
  left: 29px;
  color: #000 !important;
}

.dd-item > button:before {
  content: '+';
  display: block;
  position: absolute;
  width: 100%;
  text-align: center;
  text-indent: 0;
}

.dd-item > button[data-action="collapse"]:before {
  content: '-';
}

.dd-placeholder,
.dd-empty {
  margin: 5px 0;
  padding: 0;
  min-height: 30px;
  background: #f2fbff;
  border: 1px dashed #b6bcbf;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

.dd-empty {
  border: 1px dashed #bbb;
  min-height: 100px;
  background-color: #e5e5e5;
  background-image: -webkit-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff),
  -webkit-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
  background-image: -moz-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff),
  -moz-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
  background-image: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff),
  linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
}

.dd-dragel {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
}

.dd-dragel > .dd-item .dd-handle {
  margin-top: 0;
}

.dd-dragel .dd-handle {
  -webkit-box-shadow: 2px 4px 6px 0 rgba(0, 0, 0, .1);
  box-shadow: 2px 4px 6px 0 rgba(0, 0, 0, .1);
}

/**
 * Nestable Extras
 */

.nestable-lists {
  display: block;
  clear: both;
  padding: 30px 0;
  width: 100%;
  border: 0;
  border-top: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
}

#nestable-menu {
  padding: 0;
  margin: 20px 0;
}

#nestable-output,
#nestable2-output {
  width: 100%;
  height: 7em;
  font-size: 0.75em;
  line-height: 1.333333em;
  font-family: Consolas, monospace;
  padding: 5px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

#nestable2 .dd-handle {
  color: #fff;
  border: 1px solid #999;
  background: #bbb;
  background: -webkit-linear-gradient(top, #bbb 0%, #999 100%);
  background: -moz-linear-gradient(top, #bbb 0%, #999 100%);
  background: linear-gradient(top, #bbb 0%, #999 100%);
}

#nestable2 .dd-handle:hover {
  background: #bbb;
}

#nestable2 .dd-item > button:before {
  color: #fff;
}

@media only screen and (min-width: 700px) {

  .dd {
  }
  .dd + .dd {
    margin-left: 2%;
  }

}

.dd-hover > .dd-handle {
  background: #2ea8e5 !important;
}

/**
 * Nestable Draggable Handles
 */

#categories .dd3-content {
  display: block;
  height: 30px;
  margin: 5px 0;
  padding: 0 10px 0 40px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #ccc;
  background: #fafafa;
  background: -webkit-linear-gradient(top, #fafafa 0%, #eee 100%);
  background: -moz-linear-gradient(top, #fafafa 0%, #eee 100%);
  background: linear-gradient(top, #fafafa 0%, #eee 100%);
  -webkit-border-radius: 0px;
  border-radius: 0px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  > input {
    padding: 3px;
    margin: 2px 10px !important;
  }
  .open-icons {
    color: dimgrey;
    cursor: pointer;
    display: inline-block;
    font: normal normal normal 20px/1 FontAwesome;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .open-icons:before{
  content:"\f013";
  }

  .open-icons:hover {
    opacity: 0.8;
  }
}

.dd3-content:hover {
  color: #2ea8e5;
  background: #fff;
}

.dd-dragel > .dd3-item > .dd3-content {
  margin: 0;
}

.dd3-item > button {
  margin-left: 30px;
}

.dd3-handle {
  position: absolute;
  margin: 0px;
  left: 0;
  top: 0;
  cursor: move;
  width: 30px;
  height: 30px;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
  border: 1px solid #aaa;
  background: #ddd;
  background: -webkit-linear-gradient(top, #ddd 0%, #bbb 100%);
  background: -moz-linear-gradient(top, #ddd 0%, #bbb 100%);
  background: linear-gradient(top, #ddd 0%, #bbb 100%);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.dd3-handle:before {
  content: '≡';
  display: block;
  position: absolute;
  left: 0;
  top: 3px;
  width: 100%;
  text-align: center;
  text-indent: 0;
  color: #fff;
  font-size: 20px;
  font-weight: normal;
}

.dd3-handle:hover {
  background: #ddd;
}

/**
 * Socialite
 */

.socialite {
  display: block;
  float: left;
  height: 35px;
}
.remove-icon:before{
  content: "\f00d";
}
.remove-icon {
  right: 9px;
  top: 5px;
  color: #da6565;
  cursor: pointer;
  position: absolute;
  display: inline-block;
  font: normal normal normal 20px/1 FontAwesome;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@mixin deptlength($start, $end) {
  > li {
    .dd-list {
      > li {
        > div > .dd3-content > input[type="text"] {
          width: calc(50% - (#{$start} * 15px)) !important;
        }
      }

      $start: $start + 1;

      @if $start < $end {
        @include deptlength($start, $end);
      }
    }
  }
}

#nestable3 {
  > .dd-list {
    @include deptlength(1, 10);
  }
}
