/*!
 * jQuery contextMenu - Plugin for simple contextMenu handling
 *
 * Version: 1.5.25
 *
 * Authors: Rodney Rehm, Addy Osmani (patches for FF)
 * Web: http://medialize.github.com/jQuery-contextMenu/
 *
 * Licensed under
 *   MIT License http://www.opensource.org/licenses/mit-license
 *   GPL v3 http://opensource.org/licenses/GPL-3.0
 *
 */

.context-menu-item span {
    font-size: 1.1em;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}

.context-menu-list {
    margin:0; 
    padding:0;
    
    min-width: 120px;
    max-width: 400px;
    display: inline-block;
    position: absolute;
    list-style-type: none;
    
    border: 1px solid #DDD;
    background: #EEE;
    
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
       -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
        -ms-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
         -o-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    
    font-family: Verdana, Arial, Helvetica, sans-serif;
    max-height: 400px;
}

.context-menu-item {
    white-space: nowrap;
    padding: 2px 17px 2px 24px;
    background-color: #EEE;
    position: relative;
    -webkit-user-select: none;
       -moz-user-select: -moz-none;
        -ms-user-select: none;
            user-select: none;
}

.context-menu-separator {
    padding-bottom:0;
    border-bottom: 1px solid #DDD;
    height: 1px;
}

.context-menu-item > label > input,
.context-menu-item > label > textarea {
    -webkit-user-select: text;
       -moz-user-select: text;
        -ms-user-select: text;
            user-select: text;
}

.context-menu-item.hover {
    cursor: pointer;
    background-color: #39F;
}

.context-menu-item.highlight {
    background-color: #45e9ff;
}

.context-menu-item.disabled {
    color: #666;
}

.context-menu-input.hover,
.context-menu-item.disabled.hover {
    cursor: default;
    background-color: #EEE;
}

.context-menu-submenu:after {
    content: "\25b6";
    color: #666;
    position: absolute;
    top: 0;
    right: 3px;
    z-index: 6100;
}

.context-menu-item.checked {
    background-image: url(../img/ContextMenu/checked.png);
}
/* icons
    #protip:
    In case you want to use sprites for icons (which I would suggest you do) have a look at
    http://css-tricks.com/13224-pseudo-spriting/ to get an idea of how to implement 
    .context-menu-item.icon:before {}
 */
.context-menu-item.icon { min-height: 18px; background-repeat: no-repeat; background-position: 4px 2px; }
.context-menu-item.icon-page { background-image: url(../img/ContextMenu/page_white.png); }
.context-menu-item.icon-edit { background-image: url(../img/ContextMenu/page_white_edit.png); }
.context-menu-item.icon-cut { background-image: url(../img/ContextMenu/cut.png); }
.context-menu-item.icon-cross { background-image: url(../img/ContextMenu/cross.png); }
.context-menu-item.icon-field { background-image: url(../img/ContextMenu/field.png); }
.context-menu-item.icon-copy { background-image: url(../img/ContextMenu/page_white_copy.png); }
.context-menu-item.icon-paste { background-image: url(../img/ContextMenu/page_white_paste.png); }
.context-menu-item.icon-delete { background-image: url(../img/icons/cross.png); }
.context-menu-item.icon-add { background-image: url(../img/ContextMenu/page_white_add.png); }
.context-menu-item.icon-quit { background-image: url(../img/ContextMenu/door.png); }
.context-menu-item.icon-deleteCTE { background-image: url(../img/ContextMenu/bin_empty.png); }

.context-menu-item.icon-linked-object-direction-0 { background-image: url(../img/icons/arrow_left.png); }
.context-menu-item.icon-linked-object-direction-1 { background-image: url(../img/icons/arrow_right.png); }
.context-menu-item.icon-linked-object-direction-2 { background-image: url(../img/icons/arrow_double.png); }


.context-menu-item.icon-all-from { background-image: url(../img/ContextMenu/checkbox.gif); }
.context-menu-item.icon-all-to { background-image: url(../img/ContextMenu/checkbox.gif); }

.context-menu-item.icon-all-from.checked { background-image: url(../img/ContextMenu/checkbox_checked.gif); }
.context-menu-item.icon-all-to.checked { background-image: url(../img/ContextMenu/checkbox_checked.gif); }

.context-menu-item.icon-check { background-image: url(../img/ContextMenu/check.gif); }
.context-menu-item.icon-uncheck { background-image: url(../img/ContextMenu/uncheck.gif); }
.context-menu-item.icon-row-insert { background-image: url(../img/ContextMenu/table_row_insert.png); }
.context-menu-item.icon-row-delete { background-image: url(../img/ContextMenu/table_row_delete.png); }
.context-menu-item.icon-move-up { background-image: url(../img/ContextMenu/bullet_arrow_up.png); }
.context-menu-item.icon-move-down { background-image: url(../img/ContextMenu/bullet_arrow_down.png); }
.context-menu-item.icon-goto-subquery { background-image: url(../img/icons/tab_subquery.png); }

.context-menu-item.icon-add-object {  }
.context-menu-item.icon-add-derived-object { ; }
.context-menu-item.icon-add-cte {  }
.context-menu-item.icon-add-cte-query {  }
.context-menu-item.icon-add-cte-query {  }
.context-menu-item.icon-union {  }
.context-menu-item.icon-new-union-sub-query {  }
.context-menu-item.icon-copy-union-sub-query {  }
.context-menu-item.icon-enclose-with-brackets {  }
.context-menu-item.icon-remove {  }
.context-menu-item.icon-properties { background-image: url(../img/ContextMenu/page_white_edit.png); }

/* vertically align inside labels */
.context-menu-input > label > * { vertical-align: top; }

/* position checkboxes and radios as icons */
.context-menu-input > label > input[type="checkbox"],
.context-menu-input > label > input[type="radio"] {
    margin-left: -17px;
}
.context-menu-input > label > span {
    margin-left: 5px;
}

.context-menu-input > label,
.context-menu-input > label > input[type="text"],
.context-menu-input > label > textarea,
.context-menu-input > label > select {
    display: block;
    width: 100%;
    
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
         -o-box-sizing: border-box;
            box-sizing: border-box;
}

.context-menu-input > label > textarea {
    height: 100px;
}
.context-menu-item > .context-menu-list {
    display: none;
    /* re-positioned by js */
    right: -5px;
    top: 5px;
}

.context-menu-item.hover > .context-menu-list {
    display: block;
}

.context-menu-accesskey {
    text-decoration: underline;
}

