﻿
/*
    Note that :
    not(.open) means the control 
    .open means the openmenu 
    -every where you see the ":not(.open)" means that is main control which you click on it
    -every where you see the ".cat-select.open" means that openmenu which appear  after click on control
     
 */

/*a div which control which you click on it*/
div.cat-select-container {
    /*set parent as relativ to be able the set the position as absolute*/
    position: relative;
}

/*control as ul in gridview or formview and we click on it for openning the menu and .multiple css-class means control can accept multi selected items*/
/*ul.cat-select.multiple:not(.open) {*/
.form-group.cat-select-container ul.cat-select.multiple {
    display: flex;
    list-style: none;
    position: relative;
    padding-right: 30px;
}

.list-group .form-group.cat-select-container.pmd-textfield > label {
    text-transform: inherit;
    font-size: larger;
}

.cat-multiselect-no-sorting {
    user-select: none;
    cursor: pointer;
}

ul.cat-select.multiple.cat-multiselect-no-sorting li.cat-select-item.selected {
    cursor: pointer;
}

.ulcontainer ul.cat-select.multiple {
    display: block;
    width: 100%;
    padding: 0;
}

.ulcontainer.open li.disabled {
    pointer-events: none;
}

.cat-select > li.disabled {
    cursor: not-allowed !important;
    pointer-events: all;
    font-style: italic;
    width: 100%;
}
/*control as ul in gridview or formview and we click on it for openning the menu either multi or single select item*/
.cat-select.form-control.initializedDropDown:not(.cat-own-border) {
    padding-left: 0px;
    padding-top: 0;
    padding-bottom: 0;
    height: auto !important;
    min-height: 20px;
    cursor: pointer;
    border: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    display: -webkit-box;
    margin: 0;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.cat-select.form-control.initializedDropDown.cat-own-border {
    padding-left: 0px;
    padding-top: 0;
    padding-bottom: 0;
    height: auto !important;
    min-height: 20px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    display: -webkit-box;
    margin: 0;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.ulcontainer .cat-select.form-control.initializedDropDown {
    white-space: normal;
    display: block;
    padding-top: 0;
}

/* control in the form */
.cat-dataform .cat-control-container .cat-select.form-control,
.cat-dataform .cat-settings-popup .cat-select.form-control {
    height: 29px !important;
}

    .cat-dataform .cat-control-container .cat-select.form-control:not(.cat-own-border),
    .cat-dataform .cat-settings-popup .cat-select.form-control:not(.cat-own-border) {
        border-bottom: 1px solid #eee !important;
    }

/* style for arrow in cat data forms */
.cat-dataform span.arrow-container {
    position: absolute;
    right: 6px !important;
    pointer-events: none;
}

/* style for arrow in cat grid*/
/*.cat-dataform .CatGridV3 span.arrow-container {
    position: relative;
    bottom: 14px !important;
    right: -6px !important;
}*/

/* style for arrow in data form in settings popup */
.cat-settings-popup span:not(.cat-setting-option) span.arrow-container {
    top: 2px !important;
    right: 6px !important;
}

.cat-dataform .multiple.cat-select.form-control,
.cat-settings-popup .multiple.cat-select.form-control {
    padding: 2px 30px 0 5px;
}

.cat-dataform .multiple li.cat-select-item.ui-sortable-handle.selected :not(.nosearch) {
    padding: 0;
}

.cat-settings-popup .multiple li.cat-select-item.ui-sortable-handle.selected :not(.nosearch) {
    padding: 3px 0 0 0;
}

/*
    open menu is decorated by this css-class
*/
div.ulcontainer.open {
    position: absolute !important;
    display: block !important;
    background: white !important;
    max-height: 250px;
    height: 250px;
    width: 250px;
    border: 1px solid #ccc;
    padding: 0 !important;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    -moz-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    z-index: 9999 !important;
    margin-top: 0;
    outline: none;
}

div[fixed] div.ulcontainer.open {
    position: relative !important;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

div[fixed] div.cat-select-container {
    display: none;
}

div[fixed] div.ulcontainer.open .cat-select {
    height: auto !important;
}

/*  selected items of ul inside grid or formview */

ul.cat-select:not(.open) li.cat-select-item {
    position: relative;
    list-style: none; /* fix for Firefox */
    text-align: left;
}
/*  items of open menu */
div.ulcontainer.open .cat-select li.cat-select-item {
    padding: 6px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    min-height: 44px;
}

.ulcontainer.open ul li.cat-select-item.selected {
    background-color: #e2e2e2;
    margin-left: 0 !important;
}

.ulcontainer ul.form-control {
    position: absolute;
    border: none;
    padding: 0 !important;
    margin-left: 0;
    margin-bottom: 0;
}

.ulcontainer.open ul .cat-select-item:hover {
    background-color: #eee;
}
/* text of items are located in div  */
ul.cat-select.open .cat-select-item div {
    display: inline;
    padding-left: 6px;
}

li.cat-select-item div.selected {
    width: calc(100% - 16px);
    min-width: 10px;
}

.ulcontainer ul li.cat-select-item div.selected {
    width: auto;
}

.ulcontainer ul li.cat-select-item div.selected,
.ulcontainer ul li.cat-select-item div {
    padding: 0 0 0 3px;
}

/*  the items which contain .selected as css-class are selected by user */
li.cat-select-item div.selected,
.ulcontainer ul li div {
    padding: 0px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    /*top: 5px;*/
}

.cat-form-view-tree-item li.cat-select-item div.selected,
.cat-form-view-tree-item .ulcontainer ul li div {
    padding: 5px 5px;
    vertical-align: middle;
    width: 100%;
}

.CatGridV3 li.cat-select-item div.selected,
.CatGridV3 .ulcontainer ul li div {
    position: relative;
}

.ulcontainer ul li div {
    top: 5px;
}

.ulcontainer ul li {
    width: 100%;
}

.ulcontainer ul .cat-select.open {
    padding: 0;
}
/*   arrow next to the selected item(s)*/
.isopened b {
    transform: rotate(-180deg);
}

.modal-body .cat-form-view-tree-item span.arrow-container {
    position: absolute;
    top: 16px;
    margin-right: 10px;
}

span.arrow-container {
    width: 5px;
    height: 5px;
    color: #999;
    right: 0 !important;
    cursor: pointer;
    position: absolute;
    bottom: 13px;
}

    span.arrow-container b {
        cursor: pointer;
        top: 50%;
    }

ul.cat-select.multiple:not(.open) li.cat-select-item.selected:first-child {
    margin-left: 0px !important;
}

ul.cat-select.multiple:not(.open) li.cat-select-item div {
    /*position: absolute;
    left: 10%;
    width: calc(100% - 18px);*/
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-select-container {
    outline: none;
}

    .cat-select-container .multiple li.cat-select-item div.selected {
        top: 3px;
    }

        .cat-select-container .multiple li.cat-select-item div.selected.empty-item {
            border: transparent;
        }

.line-bottom {
    border-bottom: 1px solid #ccc !important;
}

.line-top {
    border-top: 1px solid #ccc !important;
}
/*search box and its container*/
input.cat-select-search {
    width: 100%;
    height: 100%;
    border: none !important;
    padding-left: 6px;
}

    input.cat-select-search:focus {
        border-color: gray !important;
        outline: none !important;
        -webkit-appearance: none;
    }

.select2-search {
    position: absolute;
    background: white;
    border-bottom: 0px !important;
    z-index: 9999 !important;
    height: 44px;
    width: 100%;
}

/*blue line*/
.cat-textfield-focused {
    left: 50%;
    position: absolute;
    top: 41px;
    height: 1px;
    background-color: #4285f4;
}

ul.cat-select.multiple li.cat-select-item.selected span.remove {
    position: relative;
    display: inline;
    float: right;
    right: 5px;
    top: 2px;
    cursor: pointer;
    z-index: 5;
}

/* remove icon for remove the selected items of multiple select-menu */
ul.cat-select:not(.multiple) li.cat-select-item span.remove,
.ulcontainer ul.cat-select.multiple li.cat-select-item span.remove {
    display: none;
}

/*ul.cat-select.multiple:not(.open) li.selected  {
 
    max-width: 100% !important;
    display: inline-block !important;
    vertical-align: top;
    position: relative;
    top: 0px;
    min-width: 88px;
    height:90%;
}*/
ul.cat-select.multiple li.cat-select-item.selected {
    /*display: inline-block !important;*/
    flex: 1 1 100%;
    text-align: left;
    padding-left: 3px;
    height: 90%;
    border: 1px solid #dbdbdb;
    cursor: move;
    margin-left: 8px;
    min-width: 60px;
    float: left;
    width: 10px;
    /*bottom: 2px;*/
}

.ulcontainer ul.cat-select.multiple li.cat-select-item.selected {
    height: 44px;
    width: 100%;
    float: none;
    cursor: pointer;
}

ul.cat-select.multiple li.cat-select-item.selected.empty-item {
    border: transparent;
    cursor: pointer;
}

    ul.cat-select.multiple li.cat-select-item.selected.empty-item .remove {
        display: none;
    }

/* .divider is a line which is located on bottom of selected item on open-menu */
ul.cat-select:not(.multiple) li.divider {
    display: none !important;
}

.ulcontainer ul.cat-select.multiple li.divider {
    display: block !important;
    height: 1px;
    margin: 9px 0;
    overflow: hidden;
    background-color: #e5e5e5;
}
/*li.cat-select-item b {
    display: none !important;
}*/
/* this css-class will be set temporarily on selected item of multiple select menu which is open*/
.ulcontainer ul.cat-select .selectedtemp, selectbyarrowkey {
    background-color: #93b1c6 !important;
}

/*ul.cat-select.open > li.selected {
    background-color: #337ab7;
}*/

/*remove blue border on focused item*/
li.cat-select-item:focus {
    outline: none;
}

div.ulcontainer:not(.open), .hide-catselectmenu {
    display: none !important;
}

ul.cat-select:not(.cat-disabled) li {
    width: 100%;
}

.focused-select-control-display-up {
    border: 1px solid #ccc;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175) !important;
    -moz-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175) !important;
}

.focused-select-control-display-down {
    border: 1px solid #ccc;
    -webkit-box-shadow: 1px -1px 11px rgba(0, 0, 0, 0.175) !important;
    -moz-box-shadow: 1px -1px 11px rgba(0, 0, 0, 0.175) !important;
    box-shadow: 1px -1px 11px rgba(0, 0, 0, 0.175) !important;
}

.display-up {
    /*border-bottom: none !important;*/
    -webkit-box-shadow: 1px -1px 11px rgba(0, 0, 0, 0.175) !important;
    -moz-box-shadow: 1px -1px 11px rgba(0, 0, 0, 0.175) !important;
    box-shadow: 1px -1px 11px rgba(0, 0, 0, 0.175) !important;
}

.display-down {
    border-top: none !important;
}

.border-container {
    height: 1px;
    position: relative;
    top: -1px;
    background-color: #fff;
    visibility: hidden;
}

.select-control-border-bottom {
    border-bottom: 1px solid #fff;
}

.cat-select > li.dropdown-header {
    padding-left: 3px;
    font-weight: bold;
}
