﻿


.checkradiobutton div {
  clear: both;
  overflow: hidden;
}

.checkradiobutton label {
  width: 100%;
  border-radius: 3px;
  border: 1px solid #D1D3D4;
  font-weight: normal;
}

.checkradiobutton input[type="radio"]:empty,
.checkradiobutton input[type="checkbox"]:empty {
    /*display: none;*/
    height: 0;
    width: 0;
    opacity: 0;
    display: inline;
}

.checkradiobutton input[type="radio"]:empty ~ label,
.checkradiobutton input[type="checkbox"]:empty ~ label {
  position: relative;
  line-height: 2.5em;
  text-indent: 3.25em;
  /*margin-top: 2em;*/
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

    .checkradiobutton input[type="radio"]:empty ~ label:before,
    .checkradiobutton input[type="checkbox"]:empty ~ label:before {
        content: '';
        position: absolute;
        display: block;
        top: 0;
        bottom: 0;
        left: 0;
        width: 2.5em;
        background: #D1D3D4;
        border-radius: 3px 0 0 3px;
    }


.checkradiobutton input[type="radio"]:hover:not(:checked) ~ label,
.checkradiobutton input[type="checkbox"]:hover:not(:checked) ~ label {
  color: #888;
}

    .checkradiobutton input[type="radio"]:hover:not(:checked) ~ label:before,
    .checkradiobutton input[type="checkbox"]:hover:not(:checked) ~ label:before {
        content: '\21E8';
        font-weight: bold;
        text-indent: .9em;
        color: #C2C2C2;
    }

.checkradiobutton input[type="radio"]:checked ~ label,
.checkradiobutton input[type="checkbox"]:checked ~ label {
  color: black;
}

    .checkradiobutton input[type="radio"]:checked ~ label:before,
    .checkradiobutton input[type="checkbox"]:checked ~ label:before {
        content: '\21E8';
        font-weight: bold;
        text-indent: .9em;
    }

    .checkradiobutton input[type="radio"]:not(:checked) ~ label:before,
    .checkradiobutton input[type="checkbox"]:not(:checked) ~ label:before {
        content: '\21E8';
        font-weight: bold;
        text-indent: .9em;
    }

/*.checkradiobutton input[type="radio"]:focus ~ label:before,
.checkradiobutton input[type="checkbox"]:focus ~ label:before {
  box-shadow: 0 0 0 3px #999;
}*/

.checkradiobutton-default input[type="radio"]:checked ~ label:before,
.checkradiobutton-default input[type="checkbox"]:checked ~ label:before {
  color: #333;
  background-color: #ccc;
}

.checkradiobutton-primary input[type="radio"]:checked ~ label:before,
.checkradiobutton-primary input[type="checkbox"]:checked ~ label:before {
  color: #fff;
  background-color: #337ab7;
}

.checkradiobutton-success input[type="radio"]:checked ~ label:before,
.checkradiobutton-success input[type="checkbox"]:checked ~ label:before {
  color: #fff;
  background-color: #5cb85c;
}

.checkradiobutton-danger input[type="radio"]:checked ~ label:before,
.checkradiobutton-danger input[type="checkbox"]:checked ~ label:before {
  color: #fff;
  background-color: #d9534f;
}

.checkradiobutton-warning input[type="radio"]:checked ~ label:before,
.checkradiobutton-warning input[type="checkbox"]:checked ~ label:before {
  color: #fff;
  background-color: #f0ad4e;
}

.checkradiobutton-info input[type="radio"]:checked ~ label:before,
.checkradiobutton-info input[type="checkbox"]:checked ~ label:before {
  color: #fff;
  background-color: #5bc0de;
}




