/*****************************
*** Tooltip
*****************************/

.custom-tooltip-body {
  /*background-color: #333;*/
  background-color: rgba(0,0,0,0.8);
  color: #fff;
  padding: 5px 8px;
  position: fixed;
  min-width: 75px;
  width: auto;
  display: inline-block;
  line-height: 13px;
  font-size: 11px;
  border-radius: 4px;
  z-index: 99999;
}
.custom-tooltip-body:first-letter {
  text-transform: uppercase;
}
.custom-tooltip-arrow-left:after,
.custom-tooltip-arrow-right:after,
.custom-tooltip-arrow-top:after,
.custom-tooltip-arrow-bottom:after {
  
}
.custom-tooltip-arrow-left:after {
  left: 100%;
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: transparent;
  border-left-color: rgba(0,0,0,0.8);
  border-width: 5px;
  margin-top: -5px;
}
.custom-tooltip-arrow-right:after {
  right: 100%;
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: transparent;
  border-right-color: rgba(0,0,0,0.8);
  border-width: 5px;
  margin-top: -5px;
}
.custom-tooltip-arrow-bottom:after {
  bottom: 100%;
  left: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: transparent;
  border-bottom-color: rgba(0,0,0,0.8);
  border-width: 5px;
  margin-left: -5px;
}
.custom-tooltip-arrow-top:after {
  top: 100%;
  left: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: transparent;
  border-top-color: rgba(0,0,0,0.8);
  border-width: 5px;
  margin-left: -5px;
}

/***********
*** Alert 
***********/

#alert {
  display: none;
  position: absolute;
  left: 15px;
  right: 15px;
  top: 15px;
  color: #8a6d3b;
  background-color: #fcf8e3;
  border: 1px solid #faebcc;
  border-radius: 5px;
  height: 50px;
  text-align: left;
  line-height: 50px;
  font-size: 14px;
  font-weight: bold;
  padding: 0 15px;
  z-index: 999;

  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
}
#alert.success {
  color: #3c763d;
  background-color: #dff0d8;
  border-color: #d6e9c6;
}
#alert.info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}
#alert.error {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}
#alert.warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}

/* Close icon */
.icon-close {
  position: absolute;
  top: 4px;
  right: 15px;
  text-indent: -9999px;
  width: 33px;
  height: 33px;
  margin-top: 4px;
  display: inline-block;
  cursor: pointer;
  background: url(/library/img/library/icon-close-grey.png) no-repeat 50% 50%;
}
.icon-close:hover {
  background: url(/library/img/library/icon-close-hover.png) no-repeat 50% 50%;
}
.icon-close:active {
  background: url(/library/img/library/icon-close-grey.png) no-repeat 50% 50%;
}


/***********
*** Select
***********/

/* Default Theme */

.custom-select {
  display: inline-block;
  position: relative;
}
.custom-select .combobox {
  display: none;
  position: absolute;
  left: 0;
  margin: 2px auto;
  padding: 0;
  border: 0;
  background-color: transparent;
  -webkit-box-shadow: 0 2px 3px rgba(0,0,0,0.2);
  -moz-box-shadow: 0 2px 3px rgba(0,0,0,0.2);
  box-shadow: 0 2px 3px rgba(0,0,0,0.2);
  z-index: 99;
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 3px;
  overflow: hidden;
}
.custom-select.custom-select-open .combobox {
  display: block;
}
.custom-select .combobox li {
  cursor: pointer;
  text-align: left;
  margin: 0;
  color: #666;
  padding: 4px 6px;
  font-size: 13px;
  font-weight: bold;
  background-color: #eee;
}
.custom-select .combobox li > span {
  margin: 0 10px;
  font-size: 12px;
}
.custom-select .combobox li.offset-1 > span {
  padding-left: 15px;
  background: url(/galago/img/tools/list-offset.png) no-repeat 2px 3px;
}
.custom-select .combobox li > a {
  padding: 0 10px;
  line-height: 30px;
  font-weight: normal;
  text-decoration: none;
  display: block;
}
.custom-select .combobox li > a:hover {
  text-decoration: none;
}
.custom-select .combobox li > input {
  margin-left: 10px;
}
.custom-select .combobox li:first-child {
  border-radius: 3px 3px 0 0;
}
.custom-select .combobox li:last-child {
  border-bottom: none;
  border-radius: 0 0 3px 3px;
}
.custom-select .combobox li.custom-select-selected {
  background-color: #333;
  color: #fff;
}
.custom-select .combobox li:hover,
.custom-select .combobox li.active {
  background-color: #4165AD;
  color: #fff;
}
.custom-select .select {
  display: inline-block;
  color: #666666;
  /*text-transform: uppercase;*/
  text-decoration: none;
  border: 0;
  padding: 4px 20px 4px 6px;
  font-size: 14px;
  font-weight: bold;
  background-color: #fff;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -ie-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
.custom-select.unselectable {
  opacity: 1 !important;
  pointer-events: none;
}
.custom-select .select:after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: url(../img/arrow-select.png) no-repeat 50% 50%;
}
.custom-select.unselectable .select:after {
  content: none;
}
.custom-select .select:hover:after {
  opacity: 0.7;
}
.custom-select .select > span,
.custom-select .select > a {
  margin: 0 10px;
}
.custom-select .select > a {
  color: #333;
  font-weight: normal;
}
.custom-select .select:hover {
  background-color: rgba(0,0,0,0.1);
}
.custom-select.custom-select-open .select,
.custom-select .select.active,
.custom-select.current .select {
  background-color: rgba(0,0,0,0.3);
}
.custom-select .select:hover a,
.custom-select .select.active a,
.custom-select.current .select a {
  color: #fff;
}
.custom-select .select a:hover {
  text-decoration: none;
  opacity: 0.7;
}
.custom-select .disabled-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.5);
}


/***********
*** Input Checkbox
***********/
 
.custom-checkbox:not(:checked),  
.custom-checkbox:checked {  
  position: absolute;  
  left: -9999px;  
}  

.custom-checkbox:not(:checked) + label,  
.custom-checkbox:checked + label {  
  position: relative;
  padding-left: 25px;
  cursor: pointer; 
}
 
.custom-checkbox:not(:checked) + label:before,  
.custom-checkbox:checked + label:before {  
  content: '';  
  position: absolute;  
  left: 0; 
  top: 0;  
  width: 20px; 
  height: 20px;
  border: 1px solid rgb(100, 100, 100);
  border-radius: 2px;  
  background: transparent;
  background: rgba(0, 0, 0, 0);
}  
     
.custom-checkbox:not(:checked) + label:after,  
.custom-checkbox:checked + label:after {  
  content: url(/galago/img/check.png);
  position: absolute;  
  top: 1px; 
  left: 0;
  transition: all 0.2s;  
}  
 
.custom-checkbox:not(:checked) + label:after {  
  opacity: 0;
}  

.custom-checkbox:checked + label:after {  
  opacity: 1;
}
 
.custom-checkbox:disabled:not(:checked) + label:before,  
.custom-checkbox:disabled:checked + label:before {  
  box-shadow: none;  
  border-color: #bbb;  
  background-color: #ddd;  
}  

.custom-checkbox:disabled:checked + label:after {  
  color: #999;  
}  

.custom-checkbox:disabled + label {  
  color: #aaa;  
}



/***********
*** Button
***********/

.custom-btn {
  display: block;
  width: auto;
  min-width: 25px;
  height: 25px;
  border-radius: 2px;
  border: 1px solid #CCC;
  color: #333;
  font-size: 12px;
  font-weight: bold;
  padding: 0 10px 0 10px;
  margin: 0;
  outline-style: none;
  cursor: pointer;
  background: -webkit-gradient(linear, left top, left bottom, from(white), to(#f4f4f4));
  background: -webkit-linear-gradient(top, white, #f4f4f4);
  background: linear-gradient(top, white, #f4f4f4);
  text-decoration: none;
}
.custom-btn:hover {
    text-decoration: none;
    border-color: #999;
    color: #333;
}
.custom-btn:active {
    box-shadow: 0px 0px 2px rgba(0,0,0,0.2) inset;
    color: grey;
    text-decoration: none;
    outline: none;
}


/***********
*** Input Text
***********/

.custom-text {
  width: 250px;
  height: 25px;
  padding-left: 5px;
  background-color: white;
  border: 1px solid #CCC;
  border-radius: 2px;
  font-size: 14px;
  margin-left: 15px;
  color: #333;
}

/* color placeholder */
/*::-webkit-input-placeholder {
    color: #999;
}
:-moz-placeholder {
    color: #999;
}
::-moz-placeholder {
    color: #999;
}
:-ms-input-placeholder {
    color: #999;
}*/

