@import "bourbon";

$experimental-support-for-svg: true;

.left {
  float: left;
}

.right {
  float: right;
}

@mixin clearfix {
  &:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
  }
}

.clear {
  clear: both;
}

.thrive_options_branding {
  padding: 10px 0px 15px 0px;
  width: 100%;
}

table.options_table {
  width: 95%;
}

.twc {
  width: 47%;
}

.tap {
  background: #fff;
  border: 1px solid #e1e1e1;
  font-family: 'Source Sans Pro', sans-serif;
  padding: 25px;
  width: 80%;
}

.cat_box {
  border: 1px solid #000;
  color: #fff;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
  margin-bottom: 20px;
  padding: 10px;
  width: 70%;
}

.cat_box.main {
  background: #36921e;
}

.cat_box.sub {
  background: #47bb28;
  margin-left: 20px;
}

.cat_box.third {
  background: #c0c0c0;
  margin-left: 40px;
}

.cat_box.cont {
  color: #181818;
  margin-left: 60px;
}

h3 {
  border-bottom: 1px solid #E1E1E1;
  font-size: 25px;
  font-style: italic;
  font-weight: 300;
  margin-top: 0px;
  padding-bottom: 10px;
  padding-top: 0;
}

.apbox {
  label {
    color: #323232;
    display: inline-block;
    font-size: 18px;
    font-weight: 400;
    width: 150px;
    line-height: 31px;
  }
  select {
    margin: 0;
    min-width: 150px;
    height: 29px;
    vertical-align: top;
  }
  input[type="text"] {
    font-size: 12px;
    padding: 7px;
    width: 50%;
  }
  input[type="submit"] {
    background: none repeat scroll 0 0 #2EA2CC;
    border: 1px solid #0074A2;
    box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    cursor: pointer;
    color: #FFFFFF;
    display: inline-block;
    font-size: 15px;
    margin: 0;
    padding: 5px 15px;
    text-align: center;
    &:hover {
      background: none repeat scroll 0 0 #1E8CBE;
      border-color: #0074A2;
      box-shadow: 0 1px 0 rgba(120, 200, 230, 0.6) inset;
    }
  }
}

.thrive_list_courses {
  color: #000;
  cursor: pointer;
  font-weight: 400;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
}

.thrive_list_courses li {
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
}

//first level
.lesson-leaf-accept {
  width: 96%;
}
[class*="cat-list"] {
  list-style-type: none;
  margin: 0;
  width: 90%;
  ol {
    margin: 6px 0 0;
    list-style-type: none;
    width: 90%;
    &.lesson-leaf-accept {
      list-style-type: none;
      margin-top: 10px;
      margin-bottom: 10px;
      width: auto;
      margin-left: 5%;
      li {
        color: #888888;
        .lesson_item_label, .item_label {
          @include border-radius(0px);
          cursor: move;
          padding: 8px;
          background: #f6f6f6;
          color: #888888;
          font-weight: 300;
          font-size: 14px;
          width: 100%;
          margin-left: 0;
          @include box-sizing(border-box);
          &:hover {
            background: rgba(#f6f6f6, .8);
          }
        }
      }
    }
  }
  li {
    .lesson-remove {
      position: absolute;
      color: #888888;
      display: block;
      height: 14px;
      font-weight: 700;
      text-decoration: none;
      top: 9px;
      right: 10px;
    }
    &.placeholder {
      display: block;
      height: 20px;
      border: 1px dashed #63a3cc;
      opacity: .8;
      background: #cbeae5;
    }
    &.lesson-leaf-empty-el {
      height: 0;
      margin: 0;
      padding: 0;
    }
  }
  .item_label, .lesson_item_label {
    @include border-radius(2px);
    @include box-sizing(border-box);
    color: #fff;
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin-top: 2px;
    padding: 12px 5px;
    position: relative;

//    &.has-children {
//      &:after {
//        content: '\002C6';
//      }
//    }
//    &.has-children-open {
//      &:after {
//        content: '\002C7';
//      }
//    }
    &:hover {
      @include transition(background, .3s, ease-in-out);
    }
  }
}
.app-content {
  @include clearfix();
  width: 100%;
  .item_label {
    float: left;
  }
}
.app-toggle {
  cursor: move;
}
.app-toggle-dmy {
  float: left;
  position: relative;
  &:after {
    color: #fff;
    content: '\002C6';
    display: block;
    height: 44px;
    font-family: 'Open Sans', sans-serif;
    font-size: 30px;
    line-height: 64px;
    font-weight: 700;
    text-align: center;
    width: 50px;
  }
}
.appr-collapsed {
  .app-toggle-dmy {
    &:after {
      content: '\002C7';
    }
  }
}
.thrive-appr-tree {
  &.appr-collapsed {
    ol {
      display: none;
    }
  }
  .cat_delete {
    color: #fff;
    cursor: pointer;
    display: block;
    font-weight: 400;
    font-size: 18px;
    font-family: 'Open Sans', sans-serif;
    float: right;
    height: 44px;
    line-height: 44px;
    text-decoration: none;
    text-align: center;
    width: 50px;
  }
}
.cat-list-1 {
  .app-content {
    background: #63a3cc;
    &:hover {
      background: rgba(#63a3cc, .52);
    }
  }
  > li > ol {
    width: 95%;
    margin-left: 5%;
    .app-content {
      background: #96cef1;
      &:hover {
        background: rgba(#96cef1, .52);
      }
    }
    > li > ol {
      width: 94%;
      margin-left: 6%;
      .app-content {
        background: #adca67;
        &:hover {
          background: rgba(#adca67, .52);
        }
      }
      .item_label, .lesson_item_label {
        font-weight: 300;
      }
    }
  }
}

.cat-list-2 {
  .app-content {
    background: #96cef1;
    &:hover {
      background: rgba(#96cef1, .52);
    }
  }
  > li > ol {
    width: 95%;
    margin-left: 5%;
    .app-content {
      background: #adca67;
      &:hover {
        background: rgba(#adca67, .52);
      }
    }
    .item_label, .lesson_item_label {
      font-weight: 300;
    }
  }
}

.cat-list-3 {
  font-weight: 300;
  .app-content {
    background: #adca67;
    &:hover {
      background: rgba(#adca67, .52);
    }
  }
  .item_label, .lesson_item_label {
    font-weight: 300;
  }
}

.lesson-leaf-accept {
  list-style-type: none;
}

.content-here {
  height: auto !important;
  margin: 15px 0px;
  span {
    border: 1px dotted #f2f2f2;
    display: block;
    float: left;
    height: 30px;
    position: relative;
    width: 30px;
    &:before {
      @include border-radius(3px);
      border: 1px solid #bfbfbf;
      content: '+';
      display: block;
      height: 14px;
      line-height: 14px;
      margin: auto;
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      text-align: center;
      width: 14px;
    }
  }
  .content-text {
    float: left;
    line-height: 30px;
    padding-left: 20px;
    width: 50%;
  }
}

.cat-list {
  margin-top: 10px;
  p {
    color: #b6b6b6;
    font-size: 16px;
  }
  ul {
    li {
      .lesson_item_label {
        color: #7b7b7b;
        display: inline;
        font-weight: 400;
        margin-left: 0;
        padding: 0;
      }
      .app-content {
        background: #f6f6f6;
      }
      color: #7b7b7b;
      cursor: pointer;
      font-size: 14px;
      margin-bottom: 1px;
      padding: 8px 10px;
      &:hover {
        color: #63a3cc;
        .lesson_item_label {
          color: #63a3cc;
        }
      }
    }
  }
}

#thrive_appr_txt_cat_description {
  width: 50%;
}

/* SORTABLE STUFF */
body.dragging, body.dragging * {
  cursor: move !important;
}

.dragged {
  position: absolute;
  opacity: 0.5;
  z-index: 2000;
}

ol.thrive_list_cats li.placeholder {
  position: relative;
  /** More li styles **/
}

ol.thrive_list_cats li.placeholder:before {
  position: absolute;
  /** Define arrowhead **/
}