/* radio */
.jcf-radio {
  position: relative;
  display: inline-block;
  overflow: hidden;
  width: 16px;
  height: 16px;
  margin: 0 3px 0 0;
  cursor: default;
  vertical-align: middle;
  border: 1px solid #777;
  border-radius: 9px;
  background: #fff;
}
.jcf-radio span {
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  left: 3px;
  display: none;
  border-radius: 100%;
  background: #777;
}
.jcf-radio input[type="radio"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
}
.jcf-radio.jcf-checked span {
  display: block;
}

/* checkbox */
.jcf-checkbox {
  position: relative;
  display: inline-block;
  overflow: hidden;
  width: 16px;
  height: 16px;
  margin: 0 3px 0 0;
  cursor: default;
  vertical-align: middle;
  border: 1px solid #777;
  background: #fff;
}
.jcf-checkbox span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  width: 8px;
  height: 4px;
  margin: -7px 0 0 -6px;
  -webkit-transform: rotate(-45deg);
     -moz-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
          transform: rotate(-45deg);
  border: 3px solid #777;
  border-width: 0 0 3px 3px;

  -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865483, M12=0.7071067811865467, M21=-0.7071067811865467, M22=0.7071067811865483, SizingMethod='auto expand')";
}
:root .jcf-checkbox span {
  margin: -4px 0 0 -5px;
}
.jcf-checkbox input[type="checkbox"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
}
.jcf-checkbox.jcf-checked span {
  display: block;
}

/* button */
.jcf-button {
  position: relative;
  display: inline-block;
  overflow: hidden;
  margin: 0 10px 10px 0;
  padding: 5px 10px;
  vertical-align: top;
  border: 1px solid #777;
  background: #fff;
}
.jcf-button .jcf-real-element {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  border: 0;
  outline: none;
}

/* file */
.jcf-file {
  position: relative;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  background: #fff;
}
.jcf-file .jcf-real-element {
  position: absolute;
  top: 0;
  right: 0;
  height: 200px;
  margin: 0;
  font-size: 200px;
}
.jcf-file .jcf-fake-input {
  display: inline-block;
  overflow: hidden;
  width: 125px;
  height: 28px;
  padding: 0 8px;
  vertical-align: top;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid #777;
  font-size: 13px;
  line-height: 28px;
}
.jcf-file .jcf-upload-button {
  display: inline-block;
  overflow: hidden;
  height: 28px;
  margin: 0 0 0 -1px;
  padding: 0 10px;
  vertical-align: top;
  white-space: nowrap;
  border: 1px solid #777;
  line-height: 28px;
}

/* scrollbars */
.jcf-scrollable-wrapper {
  position: relative;
  box-sizing: content-box;
}
.jcf-scrollbar-vertical {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 14px;
  cursor: default;
  background: #e3e3e3;
}
.jcf-scrollbar-vertical .jcf-scrollbar-dec, .jcf-scrollbar-vertical .jcf-scrollbar-inc {
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  background: #bbb;
}
.jcf-scrollbar-vertical .jcf-scrollbar-inc {
  top: auto;
  bottom: 0;
}
.jcf-scrollbar-vertical .jcf-scrollbar-handle {
  width: 14px;
  height: 1px;
  background: #888;
}
.jcf-scrollbar-horizontal {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 14px;
  background: #e3e3e3;
}
.jcf-scrollbar-horizontal .jcf-scrollbar-dec, .jcf-scrollbar-horizontal .jcf-scrollbar-inc {
  display: inline-block;
  overflow: hidden;
  width: 14px;
  height: 14px;
  vertical-align: top;
  background: #bbb;
}
.jcf-scrollbar-horizontal .jcf-scrollbar-inc {
  right: 0;
  left: auto;
}
.jcf-scrollbar-horizontal .jcf-scrollbar-slider {
  position: relative;
  display: inline-block;
  height: 14px;
}
.jcf-scrollbar-horizontal .jcf-scrollbar-handle {
  position: absolute;
  height: 14px;
  background: #888;
}
.jcf-scrollbar.jcf-inactive .jcf-scrollbar-handle {
  visibility: hidden;
}
.jcf-scrollbar.jcf-inactive .jcf-scrollbar-dec, .jcf-scrollbar.jcf-inactive .jcf-scrollbar-inc {
  background: #e3e3e3;
}

/* select */
.jcf-select {
  position: relative;
  display: inline-block;
  min-width: 150px;
  height: 26px;
  margin: 0 0 12px;
  vertical-align: top;
  border: 1px solid #777;
  background: #fff;
}
.jcf-select select {
  z-index: 1;
  top: 0;
  left: 0;
}
.jcf-select .jcf-select-text {
  display: block;
  overflow: hidden;
  margin: 0 35px 0 8px;
  cursor: default;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 26px;
}
.jcf-select .jcf-select-opener {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 26px;
  text-align: center;
  background: #aaa;
}
body > .jcf-select-drop {
  position: absolute;
  z-index: 9999;
  margin: -1px 0 0;
}
body > .jcf-select-drop.jcf-drop-flipped {
  margin: 1px 0 0;
}
.jcf-select .jcf-select-drop {
  position: absolute;
  z-index: 9999;
  top: 100%;
  right: -1px;
  left: -1px;
  margin-top: 0;
}
.jcf-select .jcf-drop-flipped {
  top: auto;
  bottom: 100%;
}
.jcf-select.jcf-compact-multiple {
  max-width: 220px;
}
.jcf-select.jcf-compact-multiple .jcf-select-opener:before {
  display: inline-block;
  padding-top: 2px;
  content: "...";
}
.jcf-select-drop .jcf-select-drop-content {
  border: 1px solid #f00;
}
.jcf-select-drop.jcf-compact-multiple .jcf-hover {
  background: none;
}
.jcf-select-drop.jcf-compact-multiple .jcf-selected {
  color: #000;
  background: #e6e6e6;
}
.jcf-select-drop.jcf-compact-multiple .jcf-selected:before {
  display: inline-block;
  width: 8px;
  height: 4px;
  margin: -7px 5px 0 -3px;
  content: "";
  -webkit-transform: rotate(-45deg);
     -moz-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
          transform: rotate(-45deg);
  border: 3px solid #777;
  border-width: 0 0 3px 3px;

  -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865483, M12=0.7071067811865467, M21=-0.7071067811865467, M22=0.7071067811865483, SizingMethod='auto expand')";
}

/* multiple select styles */
.jcf-list-box {
  display: inline-block;
  overflow: hidden;
  min-width: 200px;
  margin: 0 15px;
  border: 1px solid #b8c3c9;
}
/* select options styles */
.jcf-list {
  position: relative;
  display: inline-block;
  width: 100%;
  vertical-align: top;
  background: #fff;
  font-size: 12px;
  line-height: 14px;
}
.jcf-list .jcf-list-content {
  display: inline-block;
  overflow: auto;
  width: 100%;
  vertical-align: top;
}
.jcf-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.jcf-list ul li {
  display: block;
  overflow: hidden;
}
.jcf-list .jcf-overflow {
  overflow: auto;
}
.jcf-list .jcf-option {
  display: block;
  overflow: hidden;
  height: 1%;
  min-height: 14px;
  padding: 5px 9px;
  cursor: default;
  white-space: nowrap;
  color: #656565;
}
.jcf-list .jcf-disabled {
  color: #aaa !important;
  background: #fff !important;
}
.jcf-select-drop .jcf-hover, .jcf-list-box .jcf-selected {
  color: #000;
  background: #e6e6e6;
}
.jcf-list .jcf-optgroup-caption {
  display: block;
  padding: 5px 9px;
  cursor: default;
  white-space: nowrap;
  color: #000;
  font-weight: bold;
}
.jcf-list .jcf-optgroup .jcf-option {
  padding-left: 30px;
}

/* other styles */
.jcf-textarea {
  position: relative;
  display: inline-block;
  box-sizing: content-box;
  border: 1px solid #b8c3c9;
}
.jcf-textarea .jcf-scrollbar-horizontal {
  display: none;
  height: 0;
}
.jcf-textarea textarea {
  margin: 0;
  padding: 8px 10px;
  border: none;
}
.jcf-textarea .jcf-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 15px;
  cursor: se-resize;
  text-align: center;
  text-indent: 1px;
  background: #e3e3e3;
  font-size: 12px;
  font-weight: bold;
  line-height: 15px;
}
.jcf-textarea .jcf-resize:before {
  display: block;
  width: 6px;
  height: 6px;
  margin: 4px 0 0 3px;
  content: "";
  border: 1px solid #000;
  border-width: 0 1px 1px 0;
}

/* number input */
.jcf-number {
  position: relative;
  display: inline-block;
  height: 32px;
}
.jcf-number input {
  -moz-appearance: textfield;
}
.jcf-number input::-webkit-inner-spin-button, .jcf-number input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.jcf-number input {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  height: 100%;
  margin: 0;
  padding: 3px 27px 3px 7px;
  border: 1px solid #777;
}
.jcf-number .jcf-btn-dec, .jcf-number .jcf-btn-inc {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 20px;
  height: 15px;
  background: #aaa;
}
.jcf-number .jcf-btn-dec {
  top: auto;
  bottom: 1px;
}
.jcf-number .jcf-btn-dec:hover, .jcf-number .jcf-btn-inc:hover {
  background: #e6e6e6;
}
.jcf-number.jcf-disabled .jcf-btn-dec:hover, .jcf-number.jcf-disabled .jcf-btn-inc:hover {
  background: #aaa;
}
.jcf-number .jcf-btn-dec:before, .jcf-number .jcf-btn-inc:before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  margin: -6px 0 0 -4px;
  content: "";
  border: 4px solid #aaa;
  border-color: transparent transparent #000 transparent;
}
.jcf-number .jcf-btn-dec:before {
  margin: -1px 0 0 -4px;
  border-color: #000 transparent transparent transparent;
}
.jcf-number.jcf-disabled .jcf-btn-dec:before, .jcf-number.jcf-disabled .jcf-btn-inc:before, .jcf-number .jcf-btn-dec.jcf-disabled:before, .jcf-number .jcf-btn-inc.jcf-disabled:before {
  opacity: 0.3;
}
.jcf-number.jcf-disabled input {
  background: #ddd;
}

/* range input */
.jcf-range {
  display: inline-block;
  width: 130px;
  min-width: 200px;
  margin: 0 10px;
}
.jcf-range .jcf-range-track {
  position: relative;
  display: block;
  height: 10px;
  margin: 0 20px 0 0;
}
.jcf-range .jcf-range-wrapper {
  position: relative;
  display: block;
  margin: 5px 0;
  border-radius: 5px;
  background: #e5e5e5;
}
.jcf-range.jcf-vertical {
  width: auto;
  min-width: 0;
}
.jcf-range.jcf-vertical .jcf-range-wrapper {
  width: 10px;
  height: auto;
  margin: 0;
  padding: 20px 0 0;
}
.jcf-range.jcf-vertical .jcf-range-track {
  width: 10px;
  height: 180px;
}
.jcf-range.jcf-vertical .jcf-range-handle {
  top: auto;
  left: -5px;
}
.jcf-range .jcf-range-display-wrapper {
  position: absolute;
  right: 10px;
  left: 10px;
  min-width: 10px;
  min-height: 10px;
}
.jcf-range .jcf-range-display {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: #888;
}
.jcf-range .jcf-range-display.jcf-range-min {
  margin: 0 0 0 -10px;
  padding: 0 0 0 10px;
}
.jcf-range .jcf-range-display.jcf-range-max {
  margin: 0 -10px 0 0;
  padding: 0 10px 0 0;
}
.jcf-range.jcf-vertical .jcf-range-display-wrapper {
  top: 10px;
  right: auto;
  bottom: 10px;
  left: auto;
}
.jcf-range.jcf-vertical .jcf-range-display.jcf-range-min {
  margin: 0 0 -10px;
  padding: 0 0 10px;
}
.jcf-range.jcf-vertical .jcf-range-display.jcf-range-max {
  margin: -10px 0 0;
  padding: 10px 0 0;
}

.jcf-range .jcf-range-handle {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 19px;
  height: 19px;
  margin: -4px 0 0;
  border-radius: 19px;
  background: #aaa;
}
.jcf-range .jcf-range-mark {
  position: absolute;
  top: -7px;
  overflow: hidden;
  width: 1px;
  height: 3px;
  margin: 0 0 0 9px;
  background: #000;
}
.jcf-range.jcf-vertical .jcf-range-mark {
  top: auto;
  left: 14px;
  width: 3px;
  height: 1px;
  margin: 0 0 9px;
}
.jcf-range .jcf-active-handle {
  z-index: 2;
}
.jcf-range.jcf-focus .jcf-active-handle {
  margin: -5px 0 0 -1px;
  border: 1px solid #f00;
}
.jcf-range.jcf-disabled {
  opacity: 0.3;
  background: none !important;
}

/* common styles */
.jcf-disabled {
  background: #ddd !important;
}
.jcf-focus, .jcf-focus * {
  border-color: #f00 !important;
}
