.treelist-check ul {
    margin: 0;
    padding: 0;
    position: relative;
}

.treelist-check li {
    padding: 0px 0 7px 17px;
    margin-left: 0;
    list-style: none;
    font-size: 13px;
    position: relative;
    border-left: 1px solid;
    border-right: 1px solid;
    border-color: #bfbfbf;
}

    .treelist-check li:first-child {
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
        border: 1px solid #bfbfbf;
        border-bottom: none;
        margin-top: 8px;
        padding-top: 4px;
    }

        .treelist-check li:first-child input {
            margin-top: 0px !important;
        }

        .treelist-check li:first-child first {
            margin-top: 2px !important;
            position: absolute;
        }



.treelist-check.checkbox .input-helper:before {
    top: 3px;
}


.treelist-check li::before {
    content: ' ';
    display: block;
    width: 23px;
    height: 1.5em;
    position: absolute;
    left: -3px;
    top: -1em;
}

.treelist-check li:first-child:before {
    height: 2em;
    top: -1.5em;
}
/* FireFox ignores absolute positioning on the generated content */
body:not([class*=""]) .treelist-check li:before {
    margin-top: -1em;
    margin-bottom: -.6em;
    margin-left: -35px;
}

body:not([class*=""]) .treelist-check li:first-child:before {
    margin-top: -1.55em;
}

.treelist-check li:last-child {
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    border: 1px solid;
    border-top: none; /* moves the text over by the same amount as the line would have */
    border-color: #bfbfbf;
}

.treelist-check li input {
    left: 11px;
    z-index: 1;
    margin-top: -1px;
    position: absolute;
}

.treelist-check li label {
    font-weight: 500;
}

    .treelist-check li label::after {
        content: '';
        font-weight: normal;
        font-style: italic;
        font-size: 80%;
    }

/* special for the root of the list: */
.treelist-check ul#master {
    margin-left: 0;
}

    .treelist-check ul#master > li:first-child:before {
        display: none;
    }

    .treelist-check ul#master > li:first-child {
        border-left-width: 0;
        border: none;
    }

    .treelist-check ul#master > li {
        border: none;
        margin-top: 0px;
    }

.treelist-check.checkbox .input-helper:before {
    top: 0px;
}

.treelist-check.checkbox .input-helper:before, .radio .input-helper:before {
    left: auto;
}

.treelist-check.checkbox .input-helper:after {
    top: 8px;
    left: auto;
}

/* here's the part that does the expanding and collapsing: */
/*input + i + label + ul {
    display: none;
}

input:checked + i + label + ul {
    display: block;
}*/
