/*
Sample:
 <label class="top-checkbox">                                  
    <input type="checkbox" >
    <span class="checkmark"></span>
    <span class="checkbox-title"> Ãƒâ„¢Ã‚ÂÃƒËœÃ‚Â¹ÃƒËœÃ‚Â§Ãƒâ„¢Ã¢â‚¬Å¾ 1</span>
</label>

-----Primeface sample
<label class="top-checkbox">                                                                                     
    <p:selectBooleanCheckbox  />
    <h:outputText value="ÃƒÅ¡Ã‚Â¯ÃƒËœÃ‚Â²Ãƒâ„¢Ã…Â Ãƒâ„¢Ã¢â‚¬Â Ãƒâ„¢Ã¢â‚¬Â¡3 "  styleClass="checkbox-title"/>
</label>

*/
/* The top-checkbox */
.top-checkbox {
    display: block;
    position: relative;
    padding-left: 20px;
    /*width: 100%;*/
    margin-left: 15px;
    margin-bottom: 12px;
    /* cursor: pointer; */
    font-size: 12px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: #545454;
    display: inline-block;
}
.top-checkbox label{
    pointer-events: none;
}
.top-checkbox .top-control-label{
    right: 20px;
}
/* Hide the browser's default checkbox */
.top-checkbox input {
    position: absolute;
    opacity: 0;
    background: red;
    width: 15px;
    height: 15px;
    right: 10px;
    top: 0;
    z-index: 100;
    margin: 0;
}
.top-checkbox .ui-chkbox{
    pointer-events: none;
}
.top-checkbox .checkbox-title:hover{
    background-color: red;
}
/* Create a custom checkbox */
.top-checkbox .checkmark
,.top-checkbox .ui-chkbox .ui-chkbox-box{
    position: absolute;
    top: 0;
    right: 10px;
    height: 15px;
    width: 15px;
    border: solid 1px #888585;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}
.top-checkbox .checkbox-title{
  transition: all 0.3s ease;
     -webkit-transition: all 0.3s ease;
    padding-right: 18px;
    margin-right: -20px;    
    color: #0d47a1;
    pointer-events: none;
}
/* On mouse-over, add a grey background color */
.top-checkbox input:checked ~ .checkbox-title{
    color: #0d47a1;
}
.top-checkbox:hover .checkmark
,.top-checkbox:hover .ui-chkbox .ui-chkbox-box
,.top-checkbox .checkmark:focus
,.top-checkbox:focus .ui-chkbox .ui-chkbox-box{
    border-color: #0d47a1!important; 
    outline: none;
}

/* When the checkbox is checked, add a blue background */
.top-checkbox .ui-chkbox .ui-chkbox-box{
  
}
.top-checkbox input:checked + .checkmark 
,.top-checkbox .ui-chkbox .ui-state-active >span
  {
    background-color: #13578c;
    border-color: #0a3b61;
    -webkit-transition: all ease .3s;
    transition: all ease .3s;
}


/* Create the checkmark/indicator (hidden when not checked) */
.top-checkbox .ui-chkbox .ui-chkbox-box{
    width: 15px!important;
}
.top-checkbox .ui-chkbox .ui-state-default{
   background: no-repeat;
   border-radius: 2px!important;
   box-shadow:none;
}
.top-checkbox .ui-chkbox .ui-state-active{
    border-color: #0d47a1;
}
.top-checkbox .checkmark:after
,.top-checkbox .ui-chkbox .ui-state-active >span:after{
    content: "";
    position: absolute;
    display: none;
     left: 4px;
    top: 0px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    
    transition: all 0.4s ease;
       -webkit-transition: all 0.5s ease;
}
.top-checkbox .ui-chkbox .ui-state-active >span{
    border-radius: 0;
    background-image: none;
    width: 13px;
    height: 13px;
}
.top-checkbox .ui-chkbox .ui-state-active >span:after{
    display: block;
}
/* Show the checkmark when checked */
.top-checkbox input:checked +.checkmark:after
{
    display: block;
}

