
.smartList {
    display: flex;
    flex-direction: column;
    border: 2px solid #CBD9E1;
    font-size: 13px;
    color: #6D6D6D;
    box-sizing: border-box;
    position: relative;
}

.smartList #searchWrapper {
    display: none;
    position: relative;
    border-bottom: 1px solid #CBD9E1;
    z-index: inherit;
}

.smartList #searchWrapper .total-info {
    width: 35%;
    display: inline-block;
    background: white;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    border-left: 1px solid #CBD9E1;
    text-align: center;
    line-height: 26px;
    color: #A9A9BB;
}

.smartList.viewModeSearch #searchWrapper,
.smartList.viewModeSearchAndTabs #searchWrapper {
    display: block;
}

.smartList #searchWrapper .preFilter {
    display: none;
    position: absolute;
    top: 3px;
    left: 3px;
    border: 1px solid #A9A9BB;
    background: #ddd;
    border-radius: 8px;
    padding: 0 18px 1px 3px;
    width: 35px;
    text-align: center;
    box-sizing: content-box;
}

.smartList #searchWrapper .preFilter .remove {
    font-size: 14px;
    color: #A9A9BB;
    position: absolute;
    right: 3px;
    top: 0;
}

.smartList #searchWrapper .preFilter:not(.disabled) .remove {
    cursor: pointer;
}

.smartList #searchWrapper .preFilter:not(.disabled) .remove:hover {
    color: #777;
}

.smartList #searchWrapper #search {
    width: 65%;
    box-sizing: border-box;
    border: none;
    height: 26px;
    padding: 1px 8px;
    padding-right: 21px;
    -webkit-transition: padding-left 0.1s ease;
    -moz-transition: padding-left 0.1s ease;
    -ms-transition: padding-left 0.1s ease;
    -o-transition: padding-left 0.1s ease;
    transition: padding-left 0.1s ease;
}

.smartList #searchWrapper #search:focus {
    outline: 0;
}

.smartList #searchWrapper .icon-search {
    position: absolute;
    right: calc(35% + 8px);
    color: #CBD9E1;
    font-size: 18px;
}

.smartList .hContent {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    white-space: nowrap;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.smartList.viewModeSearch .hContent,
.smartList.viewModeSearchAndTabs .hContent {
    top: 27px;
}

.smartList #message {
    display: none;
    position: absolute;
    width: 100%;
    text-align: center;
    top: 45%;
    -webkit-transform: translateY( -55% );
    -moz-transform: translateY( -55% );
    transform: translateY( -55% );
    color: #A9A9BB;
    cursor: default;
}

.smartList #message .image {
    font-size: 30px;
}

.smartList #listScroller {
    flex-grow: 1;
    position: relative;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
    vertical-align: top;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    color: black;
}

.smartList.viewModeSearchAndTabs #listScroller {
    border-right: 1px solid #CBD9E1;
    margin-right: 4px;
}

.smartList #_list {
    display: inline-block;
    width: 100%;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
    background: white;
    vertical-align: top;
    margin: 0;
}

.smartList #_list > li.listItem {
    padding: 2px 5px;
    border-bottom: 1px solid #f3f3f3;
    cursor: pointer;
    min-height: 16px;
    white-space: pre;
}

.smartList #_list > li.listItem:hover {
    background: #fafafa;
}

.smartList #_list > li.listItem.selectedItem {
    background: #ddd;
}

.smartList .tabs {
    display: none;
    width: 60px;
    min-width: 60px;
    text-align: center;
    list-style: none;
    padding-left: 0px;
    box-sizing: border-box;
    margin: 0;
    margin-bottom: -1px;
    background: #fafafa;
}

.smartList.viewModeSearchAndTabs .tabs {
    display: flex;
    flex-direction: column;
}

.smartList .tabs.leftTabs {
    display: none;
}

.smartList .tab {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #CBD9E1;
    border-top: none;
    border-right: none;
    padding: 2px 5px;
    cursor: pointer;
    background: #fafafa;
    -webkit-transition: background 0.1s ease;
    -moz-transition: background 0.1s ease;
    -ms-transition: background 0.1s ease;
    -o-transition: background 0.1s ease;
    transition: background 0.1s ease;
}

.smartList .tab.selectedTab {
    background: white;
    padding-left: 6px;
}

.smartList .tab:not(.selectedTab):not(.disabledTab):hover {
    background: #ddd;
}
.smartList .tab.disabledTab {
    cursor: default;
    color: #CBD9E1;
}

/* Visão desktop */
    @media (min-width: 768px) {
        .smartList .tab.selectedTab {
            border-left: none;
            cursor: default;
        }
    }
/**/

/* Visão mobile */
    @media (max-width: 767px) {
        
        .smartList #searchWrapper #search {
            font-size: 16px;
        }
        
        .smartList.viewModeSearchAndTabs .tabs {
            display: flex;
            flex-direction: column;
            font-size: 10px;
            width: 50px;
            min-width: 50px;
        }
        
        .smartList .leftTabs .tab {
            border-right: 1px solid #CBD9E1;
            border-left: none;
        }
        
        .smartList .tab.selectedTab {
            border-right-color: #f3f3f3;
            border-left-color: #f3f3f3;
        }
        
        .smartList .tabs.leftTabs .tab:nth-child(n+9) { /* tabs esquerda: primeiros oito */
            display: none;
        }

        .smartList .tabs:not(.leftTabs) .tab:nth-child(-n+8) { /* tabs direita: restante */
            display: none;
        }
        
        .smartList.viewModeSearchAndTabs #listScroller {
            border: none;
            margin: 0;
        }
        
        .smartList #_list > li.listItem {
            line-height: 30px;
        }
    }
/**/
