/*
 * #%L
 * BroadleafCommerce Open Admin Platform
 * %%
 * Copyright (C) 2009 - 2016 Broadleaf Commerce
 * %%
 * Licensed under the Broadleaf Fair Use License Agreement, Version 1.0
 * (the "Fair Use License" located  at http://license.broadleafcommerce.org/fair_use_license-1.0.txt)
 * unless the restrictions on use therein are violated and require payment to Broadleaf in which case
 * the Broadleaf End User License Agreement (EULA), Version 1.1
 * (the "Commercial License" located at http://license.broadleafcommerce.org/commercial_license-1.1.txt)
 * shall apply. 
 * 
 * Alternatively, the Commercial License may be replaced with a mutually agreed upon license (the "Custom License")
 * between you and Broadleaf Commerce.  You may not use this file except in compliance with the applicable license. 
 * #L%
 */

/****************************************
 ADMIN SELECTIZE SANDBOX-BAR RELATED STYLES
****************************************/

.sandbox-bar .selectize-control.single .selectize-input {
  width: 260px;
  margin: 0;
  background-color: rgba(0,0,0,0.1);
  padding: 0 80px 0 30px ! important;
}

.sandbox-bar .selectize-control.single .selectize-input.input-active {
  background-color: rgba(0,0,0,0.1);
}

/****************************************
 ADMIN SELECTIZE DROPDOWN RELATED STYLES
****************************************/

.selectize-dropdown {
  z-index: 1060;
}

.selectize-dropdown [data-selectable] {
  padding: 5px 10px;
}

.selectize-dropdown.sandboxes {
  border: none;
}

.selectize-dropdown.sandboxes .option.selected,
.selectize-dropdown.sandboxes .option.selected.active {
  background-color: rgba(0,0,0,0.2);
  color: #efbc62;
}

.selectize-dropdown.sandboxes .option.active {
  background-color: rgba(0,0,0,0.2);
  color: white;
}

/****************************************
 ADMIN SELECTIZE DATATABLES RELATED STYLES
****************************************/

.dataTables_wrapper .dataTables_length {
  margin-top: 0;
  margin-right: 30px;
}

.dataTables_wrapper .dataTables_length .selectize-control {
  display: inline-block;
  background: white;
  width: 80px;
  height: 40px;
  vertical-align: middle;
  border: 1px solid #D8D5D0;
}

.dataTables_wrapper .dataTables_length .selectize-control.single .selectize-input {
  padding: 10px;
}

/****************************************
 ADMIN SELECTIZE MULTI SELECT RELATED STYLES
****************************************/

.selectize-control.multi .selectize-input > div {
  background: #8EAA2B;
  color: #ffffff;
  border: 1px solid #ffffff;
  margin: 0;
}

.selectize-control.multi .selectize-input > div.active {
  background: #F2B95A;
  color: #ffffff;
  border: none;
}

.selectize-control.multi .selectize-input.has-items {
  padding: 0;
}

.selectize-control.multi .selectize-input [data-value] {
  background-color: #8EAA2B;
  border: none;
  margin: 5px 5px 5px 0;
}

.selectize-control.multi .selectize-input [data-value].active {
  background-color: #EB7F4C;
}

.selectize-control.multi .selectize-input.disabled [data-value] {
  color: rgb(84, 84, 84);
  border-color: #D8D5D0;
  background: #d2d2d2;
}

.selectize-control.multi.selectize-adder .selectize-input,
.selectize-control.multi.query-builder-selectize-input .selectize-input {
  padding: 0px 10px;
}

/****************************************
 ADMIN SELECTIZE INPUT AND FIELD RELATED STYLES
****************************************/

.selectize-input.disabled {
  background-color: #eeeeee ! important;
  pointer-events: none;
}

.selectize-input,
.selectize-input.focus {
  width: 100%;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  border: 1px solid #D8D5D0;
  padding: 0px 10px;
  margin: 0;
  border-radius: 0px;
  box-shadow: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.selectize-input.dropdown-active:before {
  height: 0;
}

.selectize-control .selectize-input.disabled {
  opacity: 1;
}

.selectize-control.query-builder-selectize-input .selectize-input input[type="text"] {
  height: 32px;
}

.selectize-control:not(.selectize-adder) .selectize-input.has-items input[type="text"] {
  right: 4px ! important;
}

.selectize-control.plugin-remove_button [data-value] .remove {
  border-right: 1px solid #ffffff;
}

.selectize-control.plugin-remove_button [data-value] .active {
  border-right: 1px solid #EB7F4C;
}

/****************************************
 ADMIN SELECTIZE TOOLBAR_ACTION RELATED STYLES
****************************************/

.field-group label .selectize-toolbar-action {
  font-size: 12px;
  letter-spacing: .05em;
  color: #B3B3B3;
  font-weight: normal;
  float: left;
}

/****************************************
 ADMIN SELECTIZE ADDER RELATED STYLES
****************************************/

select.selectize-adder {
  margin-bottom: 4px;
  height: 36px ! important;
}

.selectize-control.selectize-adder {
  height: 40px ! important;
}

.selectize-control.selectize-adder .item {
  display: none;
}

.selectize-control.selectize-adder input {
  width: 100% ! important;
}

/****************************************
 ADMIN SELECTIZE COLLECTION RELATED STYLES
****************************************/

select.selectize-collection.read-only {
  margin-bottom: 5px;
  background-color: #eeeeee;
}

.selectize-control.selectize-collection input {
  height: 32px;
}

.selectize-control.selectize-collection input::-webkit-input-placeholder {
  color: #2c2c2c;
  font-style: italic;
}

.selectize-control.selectize-collection input:-moz-placeholder {
  /* Firefox 18- */
  color: #2c2c2c;
  font-style: italic;
}

.selectize-control.selectize-collection input::-moz-placeholder {
  /* Firefox 19+ */
  color: #2c2c2c;
  font-style: italic;
}

.selectize-control.selectize-collection input:-ms-input-placeholder {
  color: #2c2c2c;
  font-style: italic;
}

.selectize-control.selectize-collection .selectize-input:not(.has-items) {
  height: 34px;
}

.selectize-control.selectize-collection.read-only .selectize-input {
  background-color: #eeeeee;
}

/****************************************
 ADMIN SELECTIZE SINGLE SELECT RELATED STYLES
****************************************/

.selectize-control.single .selectize-input {
  display: inline-block;
  background: white;
  height: 34px;
  line-height: 34px;
  vertical-align: middle;
  width: 100%;
  font-size: 13px;
  padding: 0 10px;
}

.selectize-control.single .selectize-input.remove-caret:after {
  content: none;
}

.selectize-control.single .selectize-input.remove-caret:hover {
  cursor: auto;
}

.selectize-control.single .selectize-input.has-items {
  padding: 0 10px;
}

:not(.sandbox-selector-wrapper) > .selectize-control.single .selectize-input {
  border: 1px solid #D8D5D0;
}