.sidenav .nav-item.show .collapse {
  display: block;
}
.sidenav .nav-item.show .nav-link .arrow {
  transform: scaleY(-1);
}
.sidenav .nav-item .nav-link .arrow {
  margin-left: auto;
}

.nav-wrapper {
  background: #f8f9fe;
  margin-top: 30px;
  padding: 20px;
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/**
 *  TABS
 */
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/**
 *  RICH TEXT INLINE
 */
.cke_textarea_inline {
  border-radius: 5px;
  border: 1px solid #CCC;
  min-height: 100px;
  padding: 10px !important;
  font-size: 0.875rem !important;
}
.cke_textarea_inline.cke_focus {
  outline-color: #9700f6;
  outline-width: 1px;
}

/**
 *  SELECT IMAGE
 */
.image-select input {
  display: none;
}
.image-select input:checked ~ label {
  border-color: #9700f6;
}
.image-select input:checked ~ label img {
  border-color: #9700f6;
}
.image-select input:checked ~ label::after {
  display: flex;
}
.image-select img {
  width: 100%;
  border: 1px solid #9700f6;
}
.image-select label {
  position: relative;
  border: 5px solid transparent;
}
.image-select label::after {
  content: "check";
  position: absolute;
  right: -15px;
  top: -15px;
  width: 30px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #9700f6;
  border-radius: 50%;
  color: #FFF;
  font-family: "Material Icons";
}

/**
 *  LINK TO ACTION
 */
.btn--external {
  display: block;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}
.btn--external i {
  font-size: 15px;
}

/**
 *  PREVIEW THEME
 */
.preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: #9700f6;
  width: 100%;
  padding: 10px 20px;
  padding-left: 270px;
}

@media screen and (max-width: 1200px) {
  .preview {
    padding-left: 20px;
  }
}
.header {
  padding-top: 50px;
}

/**
 *  TAGS
 */
.tag-container {
  border-radius: 5px;
  border: 1px solid #e5e5e5;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.tag-container .tag {
  padding: 0.5rem;
  font-size: 14px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  border: 1px solid #e5e5e5;
  background: #9700f6;
  margin-right: 5px;
  color: #fff;
}
.tag-container .tag i {
  font-size: 16px;
  margin-left: 5px;
  cursor: pointer;
}
.tag-container input {
  flex: 1;
}

/**
 *  MOBILE MENU
 */
.mobile-menu {
  padding: 15px 0;
  float: left;
}
.mobile-menu i {
  color: #FFF;
}

.mobile-close {
  font-weight: bolder;
}

.sidenav.active {
  transform: translateX(0) !important;
}

/**
 * Translate plugin
 */
[data-lang] {
  display: none;
}

[data-lang].active {
  display: block;
}

/**
 * Inactive card
 */
.card-header h3 {
  display: inline-block;
}

.card.desactivated {
  background: #EAEAEA;
  transition: all 0.3s ease-in-out;
}
.card.desactivated input, .card.desactivated select, .card.desactivated textarea {
  background: #EAEAEA;
}
.card.desactivated .btn--external {
  background: #EAEAEA;
  color: #333;
  border: none;
}

/**
 * SLIDER - CHECKBOX
 */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
  margin-bottom: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 25px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #9700f6;
}

input:focus + .slider {
  box-shadow: 0 0 1px #9700f6;
}

input:checked + .slider:before {
  transform: translateX(26px);
}
