
// Fonts
@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600");

@font-face {
  font-family: Verdana, sans-serif;
  font-display: fallback;
}

// Variables
@import "variables";

// Other stylings
@import "calendar";
@import "conversation";
@import "print";
@import "../components/rpg/scss/rpg-awesome";

// App
ul.campaigns {
  li {
    float: left;
    width: 20%;
  }

  li.active {

  }

  li.add {
    background-color: red;
  }
}

ul, ol {
  padding-left: 25px;
}

img.profile-user-img {
  width: 200px;
}

.content-header {
  .breadcrumb {
    position: relative;
    float: none;
    top: 0;
    padding: 5px 10px;
    display: block;
  }

  h1 {
    display: block;
  }
}

.navbar-nav {
  .campaign-menu .campaign-image {
    float: left;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 10px;
    margin-top: -2px;
  }
}

.user-header a {
  display: inline;
  background: none;
  &:hover {
    background: none !important;
  }
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header > a > img {
  z-index: 5;
  height: 90px;
  width: 90px;
  border: 3px solid;
  border-color: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}
@font-face {
  font-family: 'Dubai';
  src: url('/fonts/dubai/DubaiW23-Light.eot'); /* IE9 Compat Modes */
  src: url('/fonts/dubai/DubaiW23-Light.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('/fonts/dubai/DubaiW23-Light.woff2') format('woff2'), /* Super Modern Browsers */
  url('/fonts/dubai/DubaiW23-Light.woff') format('woff'), /* Pretty Modern Browsers */
  url('/fonts/dubai/DubaiW23-Light.ttf')  format('truetype'); /* Safari, Android, iOS */
}

/** required form fields **/
div.required label:after {
  content: " *";
  color: red;
}

table th.avatar, table td.avatar {
  width: 40px;
}
table {
  th {
    i {
      padding-left: 5px;
    }

    .btn {
      i {
        padding-left: 0;
      }
    }

    .table-filters {
      background-color: #eee;
      padding: 5px 15px;
      display: inline-block;
      cursor: pointer;
      border-radius: 5px;
      min-width: 60px;

      i {
        padding: 0px;
      }
      i.fa-filter {
        font-size: 16px;
        padding-right: 5px;
      }
      &:hover {
        background-color: rgba(0, 0, 0, 0.1);
      }
    }
  }

  tbody {
    td {
      vertical-align: middle !important;
    }
    .table-actions {
      a {
        font-size: 16px;
        padding: 10px 5px;
      }
    }
  }

  label {
    font-weight: normal;
  }
}
.tab-content {
  table {
    width: 100% !important;
  }
}

.clear {
  clear: both;
}

.profile-username {
  word-wrap: break-word;
}

.preview {
  padding-top: 10px;

  .image {
    float: left;
    margin: 0 10px 0 0;
  }
  img {
    max-height: 200px;
    max-width: 200px;
    width: 100%;
  }
  a.img-delete {
    color: white;
    text-align: center;
    display: block;
    padding: 5px;
    background: none;
    margin-top: -30px;
    position: relative;
    background-color: rgba(0, 0, 0, 0.3);

    &:hover {
      background-color: rgba(31, 0, 4, 0.7);
    }
  }
}
.preview-v2 {
  .image {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 120px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
  }
  a.img-delete {
    color: white;
    text-align: center;
    position: absolute;
    bottom: 0;
    display: block;
    width: 100%;
    padding: 5px;
    background: none;
    background-color: rgba(0, 0, 0, 0.3);

    &:hover {
      background-color: rgba(31, 0, 4, 0.7);
    }
  }
}

footer {
  padding-bottom: 0;
  text-align: left;

  .footer {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 15px;

    .row {
      margin-bottom: 15px;
    }
  }
  ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    li {
      padding: 0;
      display: block;
      margin: 4px 0;
      a {
        padding: 5px 15px;
        font-size: 14px !important;
        line-height: 26px;
      }
    }
  }
  h4 {
    font-size: 14px;
    font-weight: 700;
  }
  h4, span {
    margin: 0 15px 10px;
  }


  p {
    padding: 15px 25px;
    font-size: 16px !important;
    &:hover {
      color: #eee;
    }
  }
  p, a {
    border-radius: 4px;
    &:hover {
      transition: all 0.2s ease;
      background: rgba(255, 255, 255, 0.2);
      text-decoration: none;
    }
  }

  .social {
    margin-left: 10px;
    li {
      margin: 0;
      display: inline-block;
      a {
        font-size: 16px !important;
        padding: 10px 4px;
        &:hover {
          background: none;
          color: #eee;
        }
      }
    }
  }
}
.main-header {
  .sidebar-toggle {
    font-family: 'Font Awesome 5 Free';
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
  }
}
.main-footer {
  color: #636b6f;
  background-color: #ecf0f5;
  border-top: none;
  padding-bottom: 0;
}

/** news */
.news .box-body img {
  width: 100%;
  display:block;
}
.news .box-body a {
  display: block;
  text-transform: uppercase;
  line-height: 23px;
}

tr.tr-hover {
  cursor: pointer;
  font-weight: 700;

  &:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
  }
}

// Dashboard home
.dashboard-box {
  p.entity-short {
    margin: 0;
  }

  li.entity {
    min-height: 90px;
  }
}

tr.entity-hidden {
  td {
    font-style: italic;
    color: #444;
  }
}
.campaign-name {
  white-space: normal !important;
  overflow: hidden;
}

/**
 * Crud filters
 */
.filters {
  background-color: #fff;
  margin: 15px 0px;
  border-radius: 5px;

  .first, .element, .end {
    float: left;
    padding: 7px 15px;
    cursor: pointer;

    .field, .value {
      float: left;
    }
    .value {
      font-weight: 700;
      padding-left: 15px;
    }
    label {
      font-weight: 400;
    }
  }
  .end {
    float: right;

    label {
      cursor: pointer;

      &:hover {
        font-weight: 700;
      }
    }
  }
}

.entity-image, .product-img .entity-image, .entity-image-mention {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  display: block;
}
.product-img .entity-image {
  border-radius: 0;
  height: 70px;
  width: 50px;
}
.entity-image-mention {
  width: 20px;
  height: 20px;
  float: left;
  margin-right: 8px;
  display: inline-block;
}
.entity-name {
  max-height: 60px;
  overflow: hidden;
  display: inline-block;
}
.entity-title {
  margin: 0px;
  .entity-image {
    display: inline-block;
    margin-right: 5px;
  }
  .entity-name {
    vertical-align: top;
    padding-top: 8px
  }
}

/**
 * vendor layout fix for ckeditor full screen mode
 */
div.mce-fullscreen {
  z-index: 1400;
}
.mce-btn-group:not(:first-child) {
  border-left: none !important;
}

.mce-btn-group:not(:first-child) {
  border-left: none !important;
}

.editor-panel {
  padding: 5px;

  .form-group {
    margin-bottom: 0;

    .mce-container {
      border: 0;
      box-shadow: none;
    }
  }
}

.export-visible {
  display: none;
}

/**
 * Tinymce entry
 */
.panel-entry {
  padding: 5px;

  .form-group {
    margin-bottom: 0;

    .mce-container {
      border: 0;
      box-shadow: none;
    }
  }
}


/**
 * Search
 */
.live-search-results {
  background-color: white;
  position: absolute;
  z-index: 1;
  min-width: 190px;
  overflow: auto;

  .loading {
    text-align: center;
    padding: 15px;
  }

  .list-group-item:first-child {
    border-top-right-radius: 0 !important;
    border-top-left-radius: 0 !important;
  }
}

.entity-modification-history {
  font-style: italic;
  font-size: 13px;
}

.panel-toggable {
  cursor: pointer;
}

.tt-cursor {
  background-color: #f5f5f5;
}

.live-search-close {
  float: left;
  padding: 6px 15px;
}

.crud-field-entity {
  padding: 5px;
  border-radius: 5px;
  display: block;
  font-size: 1.8em;
  max-height: 90px;
  margin-bottom: 5px;
  border: 1px solid #eee;
  overflow: hidden;

  .entity-image {
    height: 80px;
    width: 80px;
    margin-right: 10px;
    float: left;
  }
  .entity-name {
    vertical-align: top;
    display: block;
    max-height: 80px;
  }


  // A touch lighter on hover
  &:hover {
    background-color: #eee;
    transition: all 0.5s ease;
  }
}

.new-tag {
  color: rgba(0, 0, 0, 0.8);
}
.color-tag {
  padding: 3px 5px;
  border-radius: 3px;
}

.tooltip-tags {
  span {
    margin: 2px;
    display: inline-block;
  }
}

.panel-entity-files {
  .well {
    padding: 30px 0;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 7px;
  }

  .entity-files-drop {
    cursor: pointer;
  }

  .entity-file-remove {
    cursor: pointer;
    &:hover {
      color: #b31830;
    }
  }

  .entity-file-name {
    border: none;
    background: none;
    display: inline-block;
    width: 95%;
    margin-right: -20px;
  }
}
.entity-file-rename, .entity-file-ui {
  cursor: pointer;
  &:hover {
    color: rgba(0, 0, 0, 0.7);
  }
}
.entity-file-ui {
  padding: 5px;
}

.entity-file {
  display: block;
  padding: 3px 6px;
}


.list-group-item {
  word-break: break-all;
}

.input-error {
  border: 1px inset red;
}

// Datagrid search
.datagrid-search {
  display: inline-block;
  .input-group-addon {
    border-right: 0px;
  }
}
.datagrid-bulk-actions {
  display: inline-block;
}

// Need the select2 container above popovers and tooltips
.select2-container--open {
  z-index: 9961;
}
.datepicker {
  z-index: 1062 !important;
}
.popover {
  max-width: 296px;
}

// Private/Public
.entity-attributes {
  .fa-unlock-alt {
    color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    &:hover {
      color: rgba(0, 0, 0, 0.8);
    }
  }
  .fa-lock {
    cursor: pointer;
    &:hover {
      color: rgba(0, 0, 0, 0.8);
    }
  }
}

.entity-creator {
  a {
    display: block;
    padding: 20px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    border-radius: 2px;
    color: #222;

    &:hover {
      background: rgba(0, 0, 0, 0.5);
      color: white;
      transition: all 0.5s ease;
    }
  }

  i {
    display: block;
    margin-bottom: 10px;
  }
}

#new-entity-modal, #entity-modal {
  z-index: 9900;
}

/** break lines that get too long **/
td.breakable {
  word-break: break-word;
}

.btn-group {
  .dropdown-toggle {
    height: 36px;
  }
}

.entity-form {
  //background-color: rgb(241, 245, 248);

  .nav-tabs-custom {
    //width: calc(100% - 300px);
    min-height: 0;
    background-color: unset;
  }

  ul.nav {
    z-index: 2;
    min-height: 40px;
    overflow: hidden;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    border-bottom-color: #fff;

    li {
      background-color: #f5f8fa;
      margin-right: 2px;
    }
  }

  .tab-content {
    //overflow-x: hidden;
    //overflow-y: auto;
    //height: calc(100vh - 200px);
  }
}
.shortcut {
  margin-left: 14px;
  color: #8f98a3;
}

.entity-form-save {
  padding-right: 0;

  .dropdown-menu {
    li {
      a {
        padding: 10px 14px;
      }
    }
  }
}

.menu-link-tabs {
  margin: 10px 10px;
  box-shadow: $box-shadow;
  .nav {
    border-top: none;
  }
}

// Text editor mentions
.rte-autocomplete {
  z-index: 1500;
}

// Quest entity image
.widget-user-image {
  .entity-image {
    float: left;
    height: 65px;
    width: 65px;
  }
}

.entity-file-visibility-dropdown {
  cursor: pointer;
}

@import "mobile";