/* 
    Created on : 2019-01-15, 22:44:11
    Author     : KrzysztofM
*/

/* etykieta filtrów */
.filter-label {
    margin-left: 3px;
    text-transform: uppercase;
    font-style: italic;
    width: 100%;
    margin-bottom: 0px;
    margin-top: 8px;
}

/* dostosowanie przycisku tak aby wyglądał jak ComboBox */
.combobox-menu-button,
.combobox-menu-button.ui-button {
    font-size: inherit;;
    text-align: left;
    font-weight: inherit;
    font-family: inherit;
    /*height: auto;*/

    width: 100%;
    /*height: 32px !important;*/
}

.combobox-menu-button .ui-button-text {
    margin-left: 0px;
    color: rgb(51, 51, 51);

    padding-left: 4px;
    padding-right: 4px;
    padding-top: 7px;

    min-height: 30px;
    width: calc(100% - 17px);
    background-color: white;
    border-right: 1px solid #a8a8a8;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;    
    
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.combobox-menu-button.ui-state-hover .ui-button-text {
    border-right: 1px solid #a8a8a8;
}

.combobox-menu-button .ui-icon {
    right: 1px;
}

.combobox-menu-button.ui-state-hover, .combobox-menu-button.ui-state-focus {
    border: 1px solid #85b2cb;
}

.combobox-menu-button.ui-state-default {
    background: #e1e1e1 !important;
    padding: 0;
}

body .ui-button.ui-state-focus,
.combobox-menu-button.ui-state-hover, .combobox-menu-button.ui-state-focus {
    background: #85b2cb !important;
    border-color: #85b2cb !important;
    color: #6c757d !important;
}

/* tlo gdy filtr aktywny */
.combobox-menu-button.filter-active .ui-button-text {
    background: gold linear-gradient(top, rgba(255,255,255,0.8), rgba(255,255,255,0)) !important;
    background: gold -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,0.8)), to(rgba(255,255,255,0))) !important;
    background: gold -moz-linear-gradient(top, rgba(255,255,255,0.8), rgba(255,255,255,0)) !important;
}

/* opcje aby zostaly białe gdy filtr aktywny */
.filter-active option,
.combobox-menu-button.filter-active option {
    background-color: white;
}

/* używane jest tylko w recipe-evidence */
.filter-active-pf .ui-inputfield {
    background-color: gold;
}

/* overlay z listą obiektów do wybrania, po rozwinięciu combobox */
.combobox-overlay {
    text-align: left;
    overflow: auto;
}

.combobox-overlay.ui-shadow {
    box-shadow: none;
}

.combobox-overlay .ui-overlaypanel-content {
    padding: 0px;
    padding-right: 20px;
}

.combobox-overlay-panel .ui-overlaypanel-content {
    padding: 0px;
}

/* klasa panelu zawierajacego */
.combobox-panel {
    width: 100%; 
    min-width: 150px; 
    max-height: 300px;
    display: block; 
}
.ui-tree-filter-container .ui-icon {
    top: 7px;
}
.ui-inputfield.ui-state-focus, 
.ui-widget-content 
.ui-inputfield.ui-state-focus, 
.ui-widget-header 
.ui-inputfield.ui-state-focus {
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

/* styl p:tree */
.tree-combobox, .tree-combobox.ui-tree {
    width: auto; 
    max-width: 100%;
}

.tree-combobox .ui-inputtext.ui-state-hover {
        color:black;
        background: inherit;
        box-shadow: none;
}

.tree-combobox .ui-state-hover {
        color: white;
        background: #8c8c8c;
        box-shadow: none;
}

.tree-combobox .ui-state-highlight {
    background: #b0b0b0;
    text-shadow: 0px 0px 0px transparent;
}

.tree-combobox .ui-treenode-label {
    margin-left: 2px;
}

.tree-combobox .ui-chkbox-box {
    background: #a8a8a8;
    border: none;
}

.tree-combobox .ui-chkbox-box.ui-state-default {
    box-shadow: none;
}

.tree-combobox .ui-tree-toggler,
.tree-combobox .ui-chkbox,
.tree-combobox .ui-treenode-label {
    vertical-align: middle;
}

.ui-overlaypanel-content {  
    /*padding-left: 0;*/
    /*padding-right: 0;*/
    padding: 0;
}

.tree-combobox.ui-tree .ui-tree-container {
    overflow: auto;
    max-height: 266px;
    margin-top: 10px;
}

.assign-dialog.tree-combobox.ui-tree .ui-tree-container {
    overflow: auto;
    /*max-height: 300px;*/
    margin-top: 10px;
}

/* przycisk do czyszczenia wyboru filtra */
.filter-clear-button {
    background:none; 
    border:none;
    padding: 4px;
}

/* ikonka x + wyrównanie */
.filter-clear-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: sub;
}

.tree-combobox-panel {
    width: 100%; 
    height: 500px;
    display: block; 
    overflow: auto;
    background: inherit;
}