/* this is part of css code in smart admin,  used for tree view  
   20150520 modified by tom
*/

/*!
 * SmartAdmin - Responsive WebApp
 *
 * Copyright 2014 bootstraphunter.com
 * Designed and built with all the love in the world by @bootstraphunt.
 */

.smart-form *, .smart-form:after, .smart-form:before {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    -moz-box-sizing: content-box
}
.smart-form .btn {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-box-sizing: border-box
}
.smart-form .checkbox+.checkbox, .smart-form .radio+.radio {
    margin-top: 0
}
.smart-form footer .btn {
    float: right;
    height: 31px;
    margin: 10px 0 0 5px;
    padding: 0 22px;
    font: 300 15px/29px 'Open Sans', Helvetica, Arial, sans-serif;
    cursor: pointer
}
.smart-form legend {
    padding-top: 15px
}
.smart-form {
    margin: 0;
    outline: 0;
    color: #666;
    position: relative
}
.smart-form header {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, .2);
    background: #fff;
    font-size: 16px;
    font-weight: 300;
    color: #232323;
    margin: 10px 14px 0
}
.smart-form fieldset {
    display: block;
    padding: 25px 14px 5px;
    border: 0;
    background: rgba(255, 255, 255, .9);
    position: relative
}
.smart-form fieldset+fieldset {
    border-top: 1px solid rgba(0, 0, 0, .1)
}
.smart-form section {
    margin-bottom: 15px;
    position: relative
}
.smart-form footer {
    display: block;
    padding: 7px 14px 15px;
    border-top: 1px solid rgba(0, 0, 0, .1);
    background: rgba(248, 248, 248, .9)
}
.smart-form footer:after {
    content: '';
    display: table;
    clear: both
}
.smart-form .label {
    display: block;
    margin-bottom: 6px;
    line-height: 19px;
    font-weight: 400;
    font-size: 13px;
    color: #333;
    text-align: left
}
.smart-form .label.col {
    margin: 0;
    padding-top: 7px
}
.note, .smart-form .note {
    margin-top: 6px;
    padding: 0 1px;
    font-size: 11px;
    line-height: 15px;
    color: #999
}
.smart-form .note a {
    font-size: 13px
}
.smart-form .button, .smart-form .checkbox, .smart-form .input, .smart-form .radio, .smart-form .select, .smart-form .textarea, .smart-form .toggle {
    position: relative;
    display: block;
    font-weight: 400
}
.smart-form .input input, .smart-form .select select, .smart-form .textarea textarea {
    display: block;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 100%;
    height: 32px;
    padding: 8px 10px;
    outline: 0;
    border-width: 1px;
    border-style: solid;
    border-radius: 0;
    background: #fff;
    font: 13px/16px 'Open Sans', Helvetica, Arial, sans-serif;
    color: #404040;
    appearance: normal;
    -moz-appearance: none;
    -webkit-appearance: none
}
.smart-form .input-file .button {
    position: absolute;
    top: 4px;
    right: 4px;
    float: none;
    height: 22px;
    margin: 0;
    padding: 0 14px;
    font-size: 13px;
    line-height: 22px
}
.smart-form .input-file .button:hover {
    -webkit-box-shadow: none;
    box-shadow: none
}
.smart-form .input-file .button input {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    font-size: 30px;
    cursor: pointer;
    opacity: 0
}
.smart-form .select i {
    position: absolute;
    top: 10px;
    right: 11px;
    width: 5px;
    height: 11px;
    background: #fff;
    -webkit-box-shadow: 0 0 0 9px #fff;
    box-shadow: 0 0 0 9px #fff
}
.smart-form .select i:after, .smart-form .select i:before {
    content: '';
    position: absolute;
    right: 0;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent
}
.smart-form .select i:after {
    bottom: 0;
    border-top: 4px solid #404040
}
.smart-form .select i:before {
    top: 0;
    border-bottom: 4px solid #404040
}
.smart-form .select-multiple select {
    height: auto
}
.smart-form .textarea textarea {
    height: auto;
    resize: none
}
.smart-form .textarea-resizable textarea {
    resize: vertical
}
.smart-form .textarea-expandable textarea {
    height: 31px
}
.smart-form .textarea-expandable textarea:focus {
    height: auto
}
.smart-form .checkbox, .smart-form .radio {
    margin-bottom: 4px;
    padding-left: 25px;
    line-height: 25px;
    color: #404040;
    cursor: pointer;
    font-size: 13px
}
.smart-form .checkbox:last-child, .smart-form .radio:last-child {
    margin-bottom: 0
}
:not(.ie8,.ie9) .smart-form .checkbox input, .smart-form .radio input {
    position: absolute;
    left: -9999px
}
(.ie8,.ie9) .smart-form .checkbox input, .smart-form .radio input {
    position: absolute;
    /*left: -9999px*/
}
.smart-form .checkbox i, .smart-form .radio i {
    position: absolute;
    top: 3px;
    left: 0;
    display: block;
    width: 17px;
    height: 17px;
    outline: 0;
    border-width: 1px;
    border-style: solid;
    background: #FFF
}
.smart-form .checkbox input+i:after, .smart-form .radio input+i:after {
    position: absolute;
    opacity: 0;
    transition: opacity .1s;
    -webkit-transition: opacity .1s
}
.smart-form .radio input+i:after {
    content: '';
    top: 4px;
    left: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%
}
.smart-form .checkbox input+i:after {
    content: '\f00c';
    top: -1px;
    left: 1px;
    width: 15px;
    height: 15px;
    font: 400 16px/19px FontAwesome;
    text-align: center
}
.smart-form .checkbox input:checked:hover+i:after {
    content: '\f00d'
}
.smart-form .checkbox input:checked:disabled:hover+i:after {
    content: '\f00c'
}
.smart-form .checkbox input:checked+i:after, .smart-form .radio input:checked+i:after {
    opacity: 1
}
.smart-form .inline-group {
    margin: 0 -30px -4px 0
}
.smart-form .inline-group:after {
    content: '';
    display: table;
    clear: both
}
.smart-form .inline-group .checkbox, .smart-form .inline-group .radio {
    float: left;
    margin-right: 30px
}
.smart-form .inline-group .checkbox:last-child, .smart-form .inline-group .radio:last-child {
    margin-bottom: 4px
}
.smart-form .toggle {
    margin-bottom: 4px;
    padding-right: 61px;
    font-size: 15px;
    line-height: 25px;
    color: #404040;
    cursor: pointer
}
.smart-form .toggle:last-child {
    margin-bottom: 0
}
.smart-form .toggle input {
    position: absolute;
    left: -9999px
}
.smart-form .toggle i {
    content: '';
    position: absolute;
    top: 4px;
    right: 0;
    display: block;
    width: 49px;
    height: 17px;
    border-width: 1px;
    border-style: solid;
    border-radius: 12px;
    background: #fff
}
.smart-form .toggle i:after {
    content: attr(data-swchoff-text);
    position: absolute;
    top: 2px;
    right: 8px;
    left: 8px;
    font-style: normal;
    font-size: 9px;
    line-height: 13px;
    font-weight: 700;
    text-align: left;
    color: #5f5f5f
}
.smart-form .toggle i:before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 4px;
    right: 4px;
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    opacity: 1;
    transition: right .2s;
    -webkit-transition: right .2s
}
.smart-form .toggle input:checked+i:after {
    content: attr(data-swchon-text);
    text-align: right
}
.smart-form .toggle input:checked+i:before {
    right: 36px
}
.smart-form .rating {
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 25px;
    color: #404040
}
.smart-form .rating:last-child {
    margin-bottom: 0
}
.smart-form .rating input {
    position: absolute;
    left: -9999px
}
.smart-form .rating label {
    display: block;
    float: right;
    height: 17px;
    margin-top: 5px;
    padding: 0 2px;
    font-size: 17px;
    line-height: 17px;
    cursor: pointer
}
.smart-form .button {
    float: right;
    height: 31px;
    overflow: hidden;
    margin: 10px 0 0 5px;
    padding: 0 25px;
    outline: 0;
    border: 0;
    font: 300 15px/31px 'Open Sans', Helvetica, Arial, sans-serif;
    text-decoration: none;
    color: #fff;
    cursor: pointer
}
.smart-form .icon-append, .smart-form .icon-prepend {
    position: absolute;
    top: 5px;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 22px;
    text-align: center
}
.smart-form .icon-append {
    right: 5px;
    padding-left: 3px;
    border-left-width: 1px;
    border-left-style: solid
}
.smart-form .icon-prepend {
    left: 5px;
    padding-right: 3px;
    border-right-width: 1px;
    border-right-style: solid
}
.smart-form .input .icon-prepend+input, .smart-form .textarea .icon-prepend+textarea {
    padding-left: 37px
}
.smart-form .input .icon-append+input, .smart-form .textarea .icon-append+textarea {
    padding-right: 37px
}
.smart-form .input .icon-prepend+.icon-append+input, .smart-form .textarea .icon-prepend+.icon-append+textarea {
    padding-left: 37px
}
@media screen and (max-width: 600px) {
    .smart-form .col {
        float: none;
        width: 100%
    }
}
.smart-form .select select {
    padding: 5px
}
.smart-form .tooltip {
    position: absolute;
    z-index: 99999;
    left: -9999px;
    padding: 2px 8px 3px;
    font-size: 11px;
    line-height: 16px;
    font-weight: 400;
    background: rgba(0, 0, 0, .9);
    color: #fff;
    opacity: 0;
    transition: margin .3s, opacity .3s;
    -webkit-transition: margin .3s, opacity .3s
}
.smart-form .tooltip:after {
    content: '';
    position: absolute
}
.smart-form .input input:focus+.tooltip, .smart-form .textarea textarea:focus+.tooltip {
    opacity: 1
}
.smart-form .tooltip-top-right {
    bottom: 100%;
    margin-bottom: 15px
}
.smart-form .tooltip-top-right:after {
    top: 100%;
    right: 11px;
    border-top: 4px solid rgba(0, 0, 0, .9);
    border-right: 4px solid transparent;
    border-left: 4px solid transparent
}
.smart-form .input input:focus+.tooltip-top-right, .smart-form .textarea textarea:focus+.tooltip-top-right {
    right: 0;
    left: auto;
    margin-bottom: 5px
}
.smart-form .tooltip-top-left {
    bottom: 100%;
    margin-bottom: 15px
}
.smart-form .tooltip-top-left:after {
    top: 100%;
    left: 11px;
    border-top: 4px solid rgba(0, 0, 0, .9);
    border-right: 4px solid transparent;
    border-left: 4px solid transparent
}
.smart-form .input input:focus+.tooltip-top-left, .smart-form .textarea textarea:focus+.tooltip-top-left {
    right: auto;
    left: 0;
    margin-bottom: 5px
}
.smart-form .tooltip-right {
    top: 4px;
    white-space: nowrap;
    margin-left: 15px
}
.smart-form .tooltip-right:after {
    top: 6px;
    right: 100%;
    border-top: 4px solid transparent;
    border-right: 4px solid rgba(0, 0, 0, .9);
    border-bottom: 4px solid transparent
}
.smart-form .input input:focus+.tooltip-right, .smart-form .textarea textarea:focus+.tooltip-right {
    left: 100%;
    margin-left: 5px
}
.smart-form .tooltip-left {
    top: 4px;
    white-space: nowrap;
    margin-right: 15px
}
.smart-form .tooltip-left:after {
    top: 6px;
    left: 100%;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid rgba(0, 0, 0, .9)
}
.smart-form .input input:focus+.tooltip-left, .smart-form .textarea textarea:focus+.tooltip-left {
    right: 100%;
    left: auto;
    margin-right: 5px
}
.smart-form .tooltip-bottom-right {
    top: 100%;
    margin-top: 15px
}
.smart-form .tooltip-bottom-right:after {
    bottom: 100%;
    right: 11px;
    border-right: 4px solid transparent;
    border-bottom: 4px solid rgba(0, 0, 0, .9);
    border-left: 4px solid transparent
}
.smart-form .input input:focus+.tooltip-bottom-right, .smart-form .textarea textarea:focus+.tooltip-bottom-right {
    right: 0;
    left: auto;
    margin-top: 5px
}
.smart-form .tooltip-bottom-left {
    top: 100%;
    margin-top: 15px
}
.smart-form .tooltip-bottom-left:after {
    bottom: 100%;
    left: 11px;
    border-right: 4px solid transparent;
    border-bottom: 4px solid rgba(0, 0, 0, .9);
    border-left: 4px solid transparent
}
.smart-form .input input:focus+.tooltip-bottom-left, .smart-form .textarea textarea:focus+.tooltip-bottom-left {
    right: auto;
    left: 0;
    margin-top: 5px
}
.smart-form .checkbox i, .smart-form .icon-append, .smart-form .icon-prepend, .smart-form .input input, .smart-form .radio i, .smart-form .select select, .smart-form .textarea textarea, .smart-form .toggle i {
    border-color: #BDBDBD;
    transition: border-color .3s;
    -webkit-transition: border-color .3s
}
.smart-form .toggle i:before {
    background-color: #3276B1
}
.smart-form .rating label {
    color: #ccc;
    transition: color .3s;
    -webkit-transition: color .3s
}
.smart-form .button {
    background-color: #3276B1;
    opacity: .8;
    transition: opacity .2s;
    -webkit-transition: opacity .2s
}
.smart-form .button.button-secondary {
    background-color: #b3b3b3
}
.smart-form .icon-append, .smart-form .icon-prepend {
    color: #A2A2A2
}
.smart-form .checkbox:hover i, .smart-form .input:hover input, .smart-form .radio:hover i, .smart-form .select:hover select, .smart-form .textarea:hover textarea, .smart-form .toggle:hover i {
    border-color: #5D98CC
}
.smart-form .rating input+label:hover, .smart-form .rating input+label:hover~label {
    color: #3276B1
}
.smart-form .button:hover {
    opacity: 1
}
.smart-form .checkbox:hover i, .smart-form .radio:hover i, .smart-form .toggle:hover i {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1)
}
.smart-form .checkbox:active i, .smart-form .radio:active i, .smart-form .toggle:active i {
    background: #F0F0F0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1)
}
.smart-form .checkbox input:focus+i, .smart-form .input input:focus, .smart-form .radio input:focus+i, .smart-form .select select:focus, .smart-form .textarea textarea:focus, .smart-form .toggle input:focus+i {
    border-color: #3276B1
}
.smart-form .radio input+i:after {
    background-color: #3276B1
}
.smart-form .checkbox input+i:after {
    color: #3276B1
}
.smart-form .checkbox input:checked+i, .smart-form .radio input:checked+i, .smart-form .toggle input:checked+i {
    border-color: #3276B1
}
.smart-form .rating input:checked~label {
    color: #3276B1
}
.smart-form .checkbox.state-error i, .smart-form .radio.state-error i, .smart-form .state-error input, .smart-form .state-error select, .smart-form .state-error textarea, .smart-form .toggle.state-error i {
    background: #fff0f0;
    border-color: #A90329
}
.smart-form .toggle.state-error input:checked+i {
    background: #fff0f0
}
.smart-form .state-error+em {
    display: block;
    margin-top: 6px;
    padding: 0 1px;
    font-style: normal;
    font-size: 11px;
    line-height: 15px;
    color: #D56161
}
.smart-form .rating.state-error+em {
    margin-top: -4px;
    margin-bottom: 4px
}
.smart-form .state-error select+i {
    background: #FFF0F0;
    -webkit-box-shadow: 0 0 0 9px #FFF0F0;
    box-shadow: 0 0 0 9px #FFF0F0
}
.state-error .icon-append, .state-error .icon-prepend {
    color: #ed1c24
}
.smart-form .checkbox.state-success i, .smart-form .radio.state-success i, .smart-form .state-success input, .smart-form .state-success select, .smart-form .state-success textarea, .smart-form .toggle.state-success i {
    background: #f0fff0;
    border-color: #7DC27D
}
.smart-form .toggle.state-success input:checked+i {
    background: #f0fff0
}
.smart-form .note-success {
    color: #6fb679
}
.smart-form .state-success select+i {
    background: #f0fff0;
    -webkit-box-shadow: 0 0 0 9px #f0fff0;
    box-shadow: 0 0 0 9px #f0fff0
}
.smart-form .button.state-disabled, .smart-form .checkbox.state-disabled, .smart-form .input.state-disabled input, .smart-form .radio.state-disabled, .smart-form .select.state-disabled, .smart-form .textarea.state-disabled, .smart-form .toggle.state-disabled {
    cursor: default!important;
    opacity: .6!important
}
.smart-form .checkbox.state-disabled:hover i, .smart-form .input.state-disabled:hover input, .smart-form .radio.state-disabled:hover i, .smart-form .select.state-disabled:hover select, .smart-form .textarea.state-disabled:hover textarea, .smart-form .toggle.state-disabled:hover i {
    border-color: #e5e5e5!important
}
.smart-form .state-disabled.checkbox input+i:after, .smart-form .state-disabled.checkbox input:checked+i, .smart-form .state-disabled.radio input+i:after, .smart-form .state-disabled.radio input:checked+i, .smart-form .state-disabled.toggle input:checked+i {
    border-color: #e5e5e5!important;
    color: #333!important
}
.smart-form .state-disabled.radio input+i:after {
    background-color: #333
}

.tree {
    min-height: 20px;
    border-radius: 4px
}
.tree:before {
    content: none !important;
    border: 0px !important;
}
.tree li {
    list-style-type: none;
    margin: 0;
    padding: 5px;
    position: relative
}
.tree ul ul li:hover {
    background: rgba(0, 0, 0, .015)
}
.tree li:after, .tree li:before {
    content: '';
    left: -20px;
    position: absolute;
    right: auto
}
.tree li:before {
    border-left: 1px solid #999;
    bottom: 50px;
    height: 100%;
    top: -11px;
    width: 1px;
    -webkit-transition: "border-color 0.1s ease 0.1s";
    transition: "border-color 0.1s ease 0.1s"
}
.tree li:after {
    border-top: 1px solid #999;
    height: 20px;
    top: 18px;
    width: 25px
}
.tree li span {
    border: 1px dotted #999;
    border-radius: 5px;
    display: inline-block;
    padding: 3px 8px;
    text-decoration: none;
    -webkit-transition: color .2s ease .1s, background-color .2s ease .1s, border-color .3s ease .2s;
    transition: color .2s ease .1s, background-color .2s ease .1s, border-color .3s ease .2s
}
.tree li.parent_li>span {
    cursor: pointer;
    padding: 7px
}
.tree>ul>li::after, .tree>ul>li:before {
    border: 0
}
.tree li:last-child::before {
    height: 30px
}
.tree li.parent_li>span:hover, .tree li.parent_li>span:hover+ul li span {
    background: #eee;
    border: 1px solid #94a0b4;
    color: #000
}
.tree>ul {
    padding-left: 0
}
.tree ul ul {
    padding-left: 34px;
    padding-top: 10px
}
.tree li.parent_li>span:hover {
    background-color: #DF8505;
    border: 1px solid #C67605;
    color: #fff
}
.tree li.parent_li>span:hover+ul li::before {
    border-left-color: #F89406
}
.tree li.parent_li>span:hover+ul li::after {
    border-top-color: #F89406
}
.tree li.parent_li>span:hover+ul li span {
    background: #FDDFB3!important;
    border: 1px solid #FAA937;
    color: #000
}

.tree .tree-main-menu {
    float: right;
    margin: 5px 10px 0 0;
    color: #fff;
}
.tree .tree-sub-menu {
    float: right;
    padding-right: 5px;
}
