.eqjs-qp-addrow, .eqjs-qc-addrow{
    border-top: 1px solid silver;
}

.eqjs-qp-addrow a, .eqjs-qc-addrow a{
    margin: 5px 10px;
    display: inline-block;
}

.eqjs-qp-addrow-empty, .eqjs-qc-addrow-empty{
    border-top: none;
    margin: 0;
}

.eqjs-qp-addrow a, .eqjs-qc-addrow a{
    font: bold 13px Calibri;
    color: #165E0C;
    outline: none;
    text-decoration: none;
}

.eqjs-qp-addrow > a:hover, .eqjs-qc-addrow > a:hover{
    text-decoration: underline;
}

.eqjs-qc-header {
    font: normal 15px Calibri;
    border-bottom: 1px solid silver;
    padding: 0 0 2px 0;
    overflow: hidden; /* !IE7;*/
}

.eqjs-qc-header div {
    font: normal 15px Calibri;
    display: inline-block;
    float: left; /* !IE7;*/
}

.eqjs-qc-header-expression
{
    margin-left: 28px;
    min-width: 300px;
    /*width:expression(($.browser.msie  && parseInt($.browser.version, 10) === 7)? "300px": "auto" );*/  /* IE7 */
}

.eqjs-qp-row {
    padding: 2px 0 2px 10px;
}

.eqjs-qp-level-offset {
    display: inline-block;
    width: 20px;
}

.eqjs-qc-row{
    padding: 2px 0;
    cursor: pointer;
}

.eqjs-qp-row:hover, .eqjs-qc-row:hover{
    background: #E8F3FF;
}

.eqjs-qp-row.active, .eqjs-qc-row.active{
    background: #EDF7E1;
}

.eqjs-qp-row-predicate {
    margin-left:0px;
}

.eqjs-qp-row-predicate-root{
    margin: 0;
}

.eqjs-qp-row-predicate-root .eqjs-qp-condition-button-hidden{
    display: none;
}

.eqjs-qp-row-predicate-root .eqjs-qp-condition-buttonsBlock{
    width: auto;
    max-width: 165px;
}

.eqjs-qp-conditions {
    max-height: 135px;
    overflow-y: auto;
}

.eqjs-qp-condelement, .eqjs-qc-colelement {
    font: normal 15px Calibri;
    display : inline-block;
    margin-right: 8px;
    vertical-align:bottom;
    float: left; /* !IE7;*/
}
.eqjs-qp-condelement.eqjs-qp-valueelement{
    white-space: nowrap;
    max-width: 270px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eqjs-qc-expr-block{
    display:inline-block;
    min-width:300px;
    float: left; /* !IE7;*/
    width: 300px; /* !IE7;*/
}

.eqjs-qc-captionelement{
    float: left; /* !IE7;*/   
}
    
.eqjs-qp-predelement {
    font: normal 15px Calibri;
    display : inline-block;
    display: inline; /* !IE7;*/
    float: left; /* !IE7;*/
    vertical-align: bottom;
    margin-right: 8px;
}

.eqjs-qp-condelement > a, .eqjs-qp-predelement > a, .eqjs-qc-colelement > a {
    color: #4676AE;
    text-decoration: none;
    font: normal 15px Calibri;
}

.eqjs-qp-condelement > a:hover, .eqjs-qp-predelement > a:hover, .eqjs-qc-colelement > a:hover {
    text-decoration: underline;
}


.eqjs-qp-valueelement a{
    max-width: 167px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eqjs-qp-disabled span, .eqjs-qc-disabled span  {
    color: #9E9E9E;
    font: 15px Calibri;
}

.eqjs-qp-readOnly span {
    color: #333333;
    font: 15px Calibri;
}

.eqjs-qp-error {
    color: red;
    font-weight:bold;
}

.eqjs-qp-ve-loader {
    background: url('../images/dynamicquerybuilder/ve-loader.gif') no-repeat;
    width:16px;
    height:11px;
}

/* dialog */
.ui-dialog{
    overflow: visible !important;    
}

.eqjs-qp-ve-subquery{
    overflow: visible !important;
}

.korzh-dd-menu-state-checkbox{
    background: url('../images/dynamicquerybuilder/state-checkbox.png') no-repeat;
    width: 13px;
    border: none;
    padding: 1px 0 0 0;
    outline: none;
    cursor: default;
    text-indent: -30000px;
}


.eqjs-qp-condition-buttonsBlock{
    float: right;
    width: auto;
    max-width: 165px;
}

.eqjs-qc-column-buttonsBlock{
    float: right;
    width: 80px;
}

.eqjs-qp-condition-button, .eqjs-qc-column-button {
    float: left;
    margin: -1px 10px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

.eqjs-qp-condition-button-hidden, .eqjs-qc-column-button-hidden{
    width: 0px;
    /*margin-right: 30px !important;*/
}
    
.eqjs-qp-condition-button-active, .eqjs-qc-column-button-active, .eqjs-qc-sortbutton-active{
    opacity: 1 !important;
}

.eqjs-qp-condition-button-enable{
    background: url('../images/dynamicquerybuilder/condbtn-disabled.png') no-repeat;
}

.eqjs-qp-condition-button-enable.enabled{
    background: url('../images/dynamicquerybuilder/condbtn-enabled.png') no-repeat;
}

.eqjs-qp-condition-button-delete, .eqjs-qc-column-button-delete{
    background: url('../images/dynamicquerybuilder/condbtn-delete.png') no-repeat;
}

.eqjs-qp-condition-button-addPredicate{
    background: url('../images/dynamicquerybuilder/condbtn-addpredicate.png') no-repeat;
}

.eqjs-qp-condition-button-addCondition{
    background: url('../images/dynamicquerybuilder/condbtn-addcondition.png') no-repeat;
}

.eqjs-qp-condition-checkbox{
    width: 16px;
    height: 16px;
    background: url('../images/dynamicquerybuilder/checkbox_unchecked.png') no-repeat;
}

.eqjs-qp-condition-checkbox:hover{
    box-shadow: inset 0 0 10px 2px #999;
}

.eqjs-qp-condition-checkbox.enabled{
    width: 16px;
    height: 16px;
    background: url('../images/dynamicquerybuilder/checkbox_checked.png') no-repeat;
}


.eqjs-qc-column-button-type{
    background: url('../images/dynamicquerybuilder/colbtn-aggrfunc.png') no-repeat;
}

.eqjs-qc-column-button-type.aggregated{
    background: url('../images/dynamicquerybuilder/colbtn-aggrfunc.png') no-repeat;
}

.eqjs-qc-sortbutton{
    cursor: pointer;
    width: 20px;
    height: 20px;
    float: left;
    opacity: 0.5;
}

.eqjs-qc-sortbutton-none{
    background: url('../images/dynamicquerybuilder/sorting_none.png') no-repeat;
}

.eqjs-qc-sortbutton-asc{
    background: url('../images/dynamicquerybuilder/sorting_asc.png') no-repeat;
}

.eqjs-qc-sortbutton-desc{
    background: url('../images/dynamicquerybuilder/sorting_desc.png') no-repeat;
}



/*.eqjs-ep-node-block*/
.eqjs-ep-entity-block{
    display: block;
    color: black;
    font: normal 12px Arial;
    margin: 0 10px;
}

.eqjs-ep-entity-node{
    border-bottom: 1px solid #E4E4E4;
    padding: 5px 0;
}

/*.eqjs-ep-node-label*/
.eqjs-ep-entity-node-label{
    display: inline;
    cursor: pointer;
    font: normal 15px Calibri;
}

.eqjs-ep-entity-node-label input{
    margin: 0 5px 0 0;
}

.eqjs-ep-entity-attr-root{
    margin: 0 !important;
    padding: 6px 10px !important;
}

.eqjs-ep-entity-attr, .eqjs-ep-entity-attr-root{
    margin: 0 10px;
    padding: 6px 0 6px 30px;
}

.eqjs-ep-entity-block input{
    margin: 0 5px;
}

.eqjs-ep-entity-attr-label{
    display: inline;
    color: black;
    cursor: pointer;
    font: normal 15px Calibri;
}

.eqjs-ep-entity-attr-label input{
    margin: 0 5px 0 0;
}

/*.eqjs-ep-node-button*/
.eqjs-ep-entity-node-button{
    background: url('../images/dynamicquerybuilder/node-close.png') no-repeat center;
    float: left;
    padding: 11px 10px 7px;
    padding: 1px 5px 4px; /* !IE7;*/
    margin: 0 0 0 5px; /* !IE7;*/
}

.eqjs-ep-entity-node-button-open{
    background: url('../images/dynamicquerybuilder/node-open.png') no-repeat center;
}

.eqjs-ep-tool-panel{
    margin: 8px 0;
}

.eqjs-ep-tool-panel div.eqjs-ep-tool-panel-left-side{
    float: left;
    width: 50%;
}

.eqjs-ep-tool-panel div.eqjs-ep-tool-panel-right-side{
    float: right;
    width: 50%;
}

.eqjs-ep-tool-panel div div{
    float: left;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin: 0 10%;
}

.eqjs-ep-tool-panel-select-all{
    background: url('../images/dynamicquerybuilder/eqjs-ep-select-all.png') no-repeat;
}

.eqjs-ep-tool-panel-select-all:hover{
    background: url('../images/dynamicquerybuilder/eqjs-ep-select-all-hover.png') no-repeat;
}

.eqjs-ep-tool-panel-deselect-all{
    background: url('../images/dynamicquerybuilder/eqjs-ep-deselect-all.png') no-repeat;
}

.eqjs-ep-tool-panel-deselect-all:hover{
    background: url('../images/dynamicquerybuilder/eqjs-ep-deselect-all-hover.png') no-repeat;
}
.eqjs-ep-tool-panel-add-columns{
    background: url('../images/dynamicquerybuilder/eqjs-ep-add-columns.png') no-repeat;
}

.eqjs-ep-tool-panel-add-columns:hover{
    background: url('../images/dynamicquerybuilder/eqjs-ep-add-columns-hover.png') no-repeat;
}

.eqjs-ep-tool-panel-add-cond{
    background: url('../images/dynamicquerybuilder/eqjs-ep-add-cond.png') no-repeat;
}

.eqjs-ep-tool-panel-add-cond:hover{
    background: url('../images/dynamicquerybuilder/eqjs-ep-add-cond-hover.png') no-repeat;
}

.eqjs-highlight{
    height: 20px;
}

.eqjs-drophover {
    border: 1px dotted black;
}

.eqjs-ep-entity > .eqjs-ep-entity-children{
    float: left;
    width: 100%;
}

.eqjs-ep-entity{
    clear: both;    
}


/**/
.eqjs-menu-rootLevel{
    background-color: #888;
}

.eqjs-menu-levelDiv{
    background-color: white;
    border: 1px solid #666;
    margin: -2px 2px 2px -2px;
    position: relative;
}

.eqjs-menu-searchDiv{
    border-bottom: 1px solid #666;
    background-color: white;
    cursor: pointer;
    padding: 5px;
}

.eqjs-menu-searchDiv input{
    font: normal 8pt monospace;
    width: 100%;
}

.eqjs-menu-scrollDiv{
    overflow: auto;
    min-width: 140px;
}

.eqjs-menu-itemDiv input{
    margin: 4px 10px 0 0;
    vertical-align: top;
}

.eqjs-menu-itemDiv{
    font-size: 14px;
    color: black;
    padding: 0 6px 0 15px;
    cursor: pointer;
}

.eqjs-menu-scrollDiv .active{
    background-color: #B6BDD2;
}

.eqjs-menu-applyDiv{
    padding: 5px;
    border-bottom: 1px solid;
    margin: 0 0 5px 0;
}

.eqjs-menu-applyDiv button{
    padding: 0 5px;
}

.eqjs-menu-cancel{
    margin: 0 0 0 15px;
}

/* dialog */
.eq-js-dialog-overlay{
    background: #fff;
    opacity: 0.75;
}

.eq-js-dialog{
    -webkit-box-shadow: 0 4px 16px #DDD;
    -moz-box-shadow: 0 4px 16px #DDD;
    box-shadow: 0 4px 16px #DDD;
    background: #fff;
    background-clip: padding-box;
    border: 1px solid #ACACAC;
    border-radius: 0;
}

.eq-js-dialog .ui-widget-header{
    border: 0;
    background: #fff;
}

.eq-js-dialog .ui-dialog-title{
    font: normal 16px Arial;
}

.eq-js-dialog .ui-icon-closethick{
    text-indent: 0;
    background: none;
}

.eq-js-dialog .ui-dialog-titlebar-close{
    background: none;
    border: 0;
    text-decoration: none;
    padding: 0;
    color: #888;
    font: normal 13px Tahoma;
}

.eq-js-dialog .ui-dialog-titlebar-close:hover{
    color: #222;
}

.eq-js-dialog .eqjs-qp-ve-subquery-qp{
    
}

.eq-js-dialog .eqjs-qp-ve-subquery-column{
    border-bottom: 1px solid #ACACAC;
}

.eq-js-dialog .eqjs-qp-ve-subquery-column-element{
    margin: 0 10px;
    display: inline;
}

.eq-js-dialog .eqjs-qp-ve-subquery-qp{
    border: 1px solid #ACACAC;
    padding: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 180px;
    min-height: 180px;
}

.eq-js-dialog .eqjs-qp-ve-subquery-qp .eqjs-qp-ve-editbox{
    min-height: 16px;
}

.eq-js-dialog .eqjs-qp-valueelement{
    max-width: 200px;
}

.eq-js-dialog .eqjs-qp-ve-subquery-column-title, .ui-dialog .eqjs-qp-ve-subquery-qp-caption{
    font: normal 15px "Segoe UI Light", "Segoe Light", "Segoe UI", Arial, Helvetica, sans-serif;
    color: #4F4F4F;
    display: inline;
    margin: 0 5px;
}

.eq-js-dialog .eqjs-qp-ve-subquery-column-element a{
    color: #4676AE;
    text-decoration: none;
    font: normal 15px Calibri;
    outline: none;
}

.eq-js-dialog .eqjs-qp-ve-subquery-column-element a:hover{
    text-decoration: underline;
}

.eq-js-dialog .eqjs-qp-ve-subquery-qp-caption{
    display: block;
    margin: 20px 0 0 5px;
}

.eq-js-dialog .ui-dialog-buttonpane{
    background: none;
    border: 0;
    text-align: center;
}

.eq-js-dialog .ui-dialog-buttonset{
    float: none !important;
}

.eq-js-dialog .ui-dialog-buttonset button, .eq-js-dialog .ui-dialog-buttonset .ui-button-disabled:hover{
    color: #222;
    padding: 5px 30px !important;
    font: bold 11px Lucida Grande, Lucida Sans, Arial, sans-serif;
    outline: none;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    background-color: #f5f5f5;
    background-image: -webkit-linear-gradient(top,#f5f5f5,#f1f1f1);
    background-image: -moz-linear-gradient(top,#f5f5f5,#f1f1f1);
    background-image: -ms-linear-gradient(top,#f5f5f5,#f1f1f1);
    background-image: -o-linear-gradient(top,#f5f5f5,#f1f1f1);
    background-image: linear-gradient(top,#f5f5f5,#f1f1f1);
    border: 1px solid #dcdcdc;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: none;
}

.eq-js-dialog .ui-dialog-buttonset button:hover{
    box-shadow: 0px 0px 3px 0px #BEBEBE;
}

.eq-js-dialog .ui-dialog-buttonset button:active{
    box-shadow: inset 0px 0px 3px 0px #BEBEBE;
    border: 1px solid #B1ABAB;
}