
.checkbox-custom,
.radio-custom {
    opacity: 0;
    position: absolute;
}

.checkbox-custom,
.checkbox-custom-label,
.radio-custom,
.radio-custom-label {
    display: inline-block;
    vertical-align: middle;
    margin: 0 3px 0 0;
    cursor: pointer;
}

.checkbox-custom-label,
.radio-custom-label {
    line-height: 15px !important;
    position: relative;
    padding: 2px 0;
}

.checkbox-custom + .checkbox-custom-label:before,
.radio-custom + .radio-custom-label:before {
    content: '';
    background: #ffffff;
    border: 1px solid #aaaaaa;
    display: inline-block;
    vertical-align: middle;
    width: 10px;
    height: 10px;
    font-size: 14px;
    padding: 0;
    margin-right: 6px;
    text-align: center;
    position: relative;
    top: -2px;
    line-height: 17px !important;
}

.checkbox-custom:checked + .checkbox-custom-label:before {
    background: #ffffff;
    color: #28518b;
    border-color: #aaaaaa;
    font-weight: bold;
}

.checkbox-custom:checked + .checkbox-custom-label:after {
    position: absolute;
    content: '';
    top: 4px;
    left: 4px;
    width: 3px;
    height: 7px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    border: 1px solid #000000;
    border-top-width: 0;
    border-left-width: 0;
}

.checkbox-custom[disabled] + .checkbox-custom-label:before {
	background: #dddddd;
	border-color: #bbbbbb;
}

.checkbox-custom[disabled]:checked + .checkbox-custom-label:after {
	border-color: #444444;
}

.radio-custom + .radio-custom-label:before {
    border-radius: 50%;
}

.radio-custom:checked + .radio-custom-label:before {
    content: "";
    background: #555555;
    -webkit-box-shadow: inset 0 0 0 2px #eaeaea;
    -moz-box-shadow: inset 0 0 0 2px #eaeaea;
    box-shadow: inset 0 0 0 2px #eaeaea;
    border-color: #aaaaaa;
}

.checkbox-custom:focus,
.radio-custom:focus {
	outline: none;
}

.checkbox-custom:focus + .checkbox-custom-label:before,
.radio-custom:focus + .radio-custom-label:before {
    border-color: #999999;
}

#page-login .checkbox-custom + .checkbox-custom-label:before {
	width: 12px;
	height: 12px;
}

#page-login .checkbox-custom:checked + .checkbox-custom-label:after {
	top: 3px;
    left: 5px;
    width: 4px;
    height: 8px;
}

#popup.user #column-main div.block-content-a label label.checkbox-custom-label {
	margin-left: 0;
}

#popup.user #column-main div.block-content-a label label.checkbox-custom-label:before {
	margin-right: 0;
}

.block-content-header .checkbox-custom-label {
	line-height: 17px !important;
	padding: 0;
}

.block-content-header .checkbox-custom:checked + .checkbox-custom-label:before,
.block-content-header .checkbox-custom-label:before {
	background: #eaeaea;
}

.block-content-header .checkbox-custom:checked + .checkbox-custom-label:after {
	top: 2px;
}

#relatedTable tr td .checkbox-custom-label,
#relatedTable tr th .checkbox-custom-label {
	margin: -3px 0;
}

#relatedTable tr td .checkbox-custom,
#relatedTable tr th .checkbox-custom,
#page-reports #reportDiv .checkbox-custom + .checkbox-custom-label:before,
#invoiceTbody .checkbox-custom + .checkbox-custom-label:before {
	margin-right: 0;
}

#page-reports #reportDiv .multiSelect .checkbox-custom + .checkbox-custom-label:before {
	margin-right: 6px;
}

#page-reports #reportDiv .multiSelect .checkbox-custom + .checkbox-custom-label:after {
	top: 4px;
}

#rights tr td .checkbox-custom + .checkbox-custom-label,
#rights tr td .checkbox-custom + .checkbox-custom-label:before,
#relatedTable tr td .checkbox-custom-label:before,
#relatedTable tr th .checkbox-custom-label:before {
	margin: 0;
}

#page-reports #reportDiv td.hide .checkbox-custom + .checkbox-custom-label,
#page-reports #reportDiv td.sum .checkbox-custom + .checkbox-custom-label,
#page-reports #reportDiv td.empty .checkbox-custom + .checkbox-custom-label,
#page-reports #reportDiv td.value .checkbox-custom + .checkbox-custom-label  {
	width: 100%;
}

#invoiceTbody .checkbox-custom + .checkbox-custom-label {
	margin:  0 0 0 5px;
}

#page-calendar #users_box > .scrollable li {
	margin-left: 0 !important;
}

.multiSelect .checkbox-custom-label:before {
	margin-left: 5px;
}

.multiSelect .checkbox-custom:checked + .checkbox-custom-label:after {
	top: 5px;
	left: 9px;
}
