@import "bs/bootstrap.less";
// Components: xtro
@import "xt-columns.less";
@import "jquery.autocomplete.less";
@import "PLUpload.less";
@import "jquery.tagit.less";

@import "../../bs3/less/tagmanager.less";

.btn .pop-label {
  display: none;
}
.btn:hover .pop-label {
  display: inline;
}

#xtro-top {
  //background: desaturate(lighten(@blue,50%),60%);
  margin: 0 -21px;
  margin-bottom: 10px;
}

#holder-wrapper {
  height: 100%;
  left: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2500;
  #holder {
    left: 50%;
    top: 50%;
    height: 300px;
    width: 300px;
    margin: -150px 0 0 -150px;
    overflow: hidden;
    position: absolute;
  }
}

.library-wrapper {
  iframe {
    max-width: 100%;
    max-height: 100%;
  }
}

.right-align,
.number {
  text-align: right;
}
iframe {
  border: none;
}
footer {
  text-align: center;
}

#current-checkboxes-area {
  .droppable-active {
    background: @warningBackground;
  }
}
.xt-draggable-tag {
  margin-right: 2px;
}

.file-description {
  max-width: 120px;
  white-space: nowrap;
}
#container-nav-toggler {
  .when-open {
    display: none;
  }
  .when-close {
    display: block;
  }
}
#container-nav-toggler.active {
  .when-close {
    display: none;
  }
  .when-open {
    display: block;
  }
}

ul.wysihtml5-toolbar {
  margin: 0;
  padding: 0;
  display: block;
}

ul.wysihtml5-toolbar::after {
  clear: both;
  display: table;
  content: "";
}

ul.wysihtml5-toolbar > li {
  float: left;
  display: list-item;
  list-style: none;
  margin: 0 5px 10px 0;
}

ul.wysihtml5-toolbar a[data-wysihtml5-command="bold"] {
  font-weight: bold;
}

ul.wysihtml5-toolbar a[data-wysihtml5-command="italic"] {
  font-style: italic;
}

ul.wysihtml5-toolbar a[data-wysihtml5-command="underline"] {
  text-decoration: underline;
}

ul.wysihtml5-toolbar a.btn.wysihtml5-command-active {
  background-image: none;
  -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
  -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
  background-color: #e6e6e6;
  background-color: #d9d9d9 9;
  outline: 0;
}

ul.wysihtml5-commands-disabled .dropdown-menu {
  display: none !important;
}

#map img {
  max-width: none;
}

.auto_complete {
  ul {
    min-width: 350px;
    max-height: 150px;
    overflow-y: scroll;

    padding: 5px 0;
    margin: 2px 0 0; // override default ul
    list-style: none;
    background-color: @dropdownBackground;
    border: 1px solid #ccc; // Fallback for IE7-8
    border: 1px solid @dropdownBorder;
    *border-right-width: 2px;
    *border-bottom-width: 2px;
    .border-radius(6px);
    .box-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box;
  }
  li {
    display: block;
    padding: 3px 20px;
    .text-overflow;
    overflow: hidden;
    clear: both;
    font-weight: normal;
    line-height: @baseLineHeight;
    color: @dropdownLinkColor;
    white-space: nowrap;
  }

  li:hover,
  li:focus {
    text-decoration: none;
    color: @dropdownLinkColorHover;
    background-color: @dropdownLinkBackgroundHover;
    #gradient > .vertical(@dropdownLinkBackgroundHover, darken(@dropdownLinkBackgroundHover, 5%));
  }

  // Active state
  // ------------
  .selected,
  .selected:hover {
    color: @dropdownLinkColorHover;
    text-decoration: none;
    outline: 0;
    background-color: @dropdownLinkBackgroundActive;
    #gradient > .vertical(@dropdownLinkBackgroundActive, darken(@dropdownLinkBackgroundActive, 5%));
  }
}

.text-overflow {
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  -moz-binding: url("moz-bindings.xml#ellipsis");
}
#xt-related-container-drop-area {
  overflow: hidden;
}

.data-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url(../img/spinner.gif);
}

#broadcast-messages {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  z-index: 2000;
}

.bs3-form {
  input[type="text"],
  input[type="password"],
  input[type="email"],
  textarea,
  select {
    box-sizing: border-box;
    height: auto;
    width: 100%;
    margin-bottom: 5px;
  }
}

select,
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
  &.width-auto {
    box-sizing: border-box;
    width: 100%;
    height: auto;
  }
}
.ui-autocomplete {
  z-index: 2000;
  font-family: @sansFontFamily;
  max-width: 330px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
}

.xt-img-align-left {
  float: left;
}
.xt-img-align-right {
  float: right;
}

#static-toolbar {
  float: right;
}
#static-toolbar.scolldown {
  float: none;
  position: fixed;
  margin: 0;
  top: 50px;
  right: 20px;
  z-index: 999;
}

#static-toolbar.scolldown {
  position: fixed;
  margin: 0;
  top: 50px;
  right: 20px;
  z-index: 999;
}

#horiz-actions {
  margin-top: -5px;
  overflow: hidden;
  margin-left: 20px;
}

.container-header {
  margin-right: 200px;
}

#view-options {
  margin-left: 20px;
}
#nav-toolbar {
  margin-right: 20px;
}

#navbar-top {
  margin-bottom: 5px;
}

@media (max-width: @navbarCollapseWidth) {
  #navbar-top {
    margin: 0 -20px;
  }

  div#main-menu {
    overflow-y: scroll;
  }
}
select,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
  &.form-control {
    width: 100%;
    box-sizing: border-box;
    height: 28px;
    display: block;
  }
}
textarea {
  &.form-control {
    width: 100%;
    box-sizing: border-box;
    display: block;
  }
}
