/*!
 * Bootstrap colorpicker2
 * http://mjolnic.github.io/bootstrap-colorpicker2/
 *
 * Originally written by (c) 2012 Stefan Petre
 * Licensed under the Apache License v2.0
 * http://www.apache.org/licenses/LICENSE-2.0.txt
 *
 */

.colorpicker2-saturation {
  float: left;
  width: 100px;
  height: 100px;
  cursor: crosshair;
  background-image: url("../img/bootstrap-colorpicker2/saturation.png");
}

.colorpicker2-saturation i {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 5px;
  height: 5px;
  margin: -4px 0 0 -4px;
  border: 1px solid #000;
  -webkit-border-radius: 5px;
     -moz-border-radius: 5px;
          border-radius: 5px;
}

.colorpicker2-saturation i b {
  display: block;
  width: 5px;
  height: 5px;
  border: 1px solid #fff;
  -webkit-border-radius: 5px;
     -moz-border-radius: 5px;
          border-radius: 5px;
}

.colorpicker2-hue,
.colorpicker2-alpha {
  float: left;
  width: 15px;
  height: 100px;
  margin-bottom: 4px;
  margin-left: 4px;
  cursor: row-resize;
}

.colorpicker2-hue i,
.colorpicker2-alpha i {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 1px;
  margin-top: -1px;
  background: #000;
  border-top: 1px solid #fff;
}

.colorpicker2-hue {
  background-image: url("../img/bootstrap-colorpicker2/hue.png");
}

.colorpicker2-alpha {
  display: none;
  background-image: url("../img/bootstrap-colorpicker2/alpha.png");
}

.colorpicker2-saturation,
.colorpicker2-hue,
.colorpicker2-alpha {
  background-size: contain;
}

.colorpicker2 {
  top: 0;
  left: 0;
  z-index: 2500;
  min-width: 130px;
  padding: 4px;
  margin-top: 1px;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
  *zoom: 1;
}

.colorpicker2:before,
.colorpicker2:after {
  display: table;
  line-height: 0;
  content: "";
}

.colorpicker2:after {
  clear: both;
}

.colorpicker2:before {
  position: absolute;
  top: -7px;
  left: 6px;
  display: inline-block;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #ccc;
  border-left: 7px solid transparent;
  border-bottom-color: rgba(0, 0, 0, 0.2);
  content: '';
}

.colorpicker2:after {
  position: absolute;
  top: -6px;
  left: 7px;
  display: inline-block;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #ffffff;
  border-left: 6px solid transparent;
  content: '';
}

.colorpicker2 div {
  position: relative;
}

.colorpicker2.colorpicker2-with-alpha {
  min-width: 140px;
}

.colorpicker2.colorpicker2-with-alpha .colorpicker2-alpha {
  display: block;
}

.colorpicker2-color {
  height: 10px;
  margin-top: 5px;
  clear: both;
  background-image: url("../img/bootstrap-colorpicker2/alpha.png");
  background-position: 0 100%;
}

.colorpicker2-color div {
  height: 10px;
}

.colorpicker2-element .input-group-addon i,
.colorpicker2-element .add-on i {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: text-top;
  cursor: pointer;
}

.colorpicker2.colorpicker2-inline {
  position: relative;
  z-index: auto;
  display: inline-block;
  float: none;
}

.colorpicker2.colorpicker2-horizontal {
  width: 110px;
  height: auto;
  min-width: 110px;
}

.colorpicker2.colorpicker2-horizontal .colorpicker2-saturation {
  margin-bottom: 4px;
}

.colorpicker2.colorpicker2-horizontal .colorpicker2-color {
  width: 100px;
}

.colorpicker2.colorpicker2-horizontal .colorpicker2-hue,
.colorpicker2.colorpicker2-horizontal .colorpicker2-alpha {
  float: left;
  width: 100px;
  height: 15px;
  margin-bottom: 4px;
  margin-left: 0;
  cursor: col-resize;
}

.colorpicker2.colorpicker2-horizontal .colorpicker2-hue i,
.colorpicker2.colorpicker2-horizontal .colorpicker2-alpha i {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 1px;
  height: 15px;
  margin-top: 0;
  background: #ffffff;
  border: none;
}

.colorpicker2.colorpicker2-horizontal .colorpicker2-hue {
  background-image: url("../img/bootstrap-colorpicker2/hue-horizontal.png");
}

.colorpicker2.colorpicker2-horizontal .colorpicker2-alpha {
  background-image: url("../img/bootstrap-colorpicker2/alpha-horizontal.png");
}

.colorpicker2.colorpicker2-hidden {
  display: none;
}

.colorpicker2.colorpicker2-visible {
  display: block;
}

.colorpicker2-inline.colorpicker2-visible {
  display: inline-block;
}

.colorpicker2-right:before {
  right: 6px;
  left: auto;
}

.colorpicker2-right:after {
  right: 7px;
  left: auto;
}