/*
 * This file contains the concatented JavaScript Library for Qcode Software Limited.
 *
 * https://svn.qcode.co.uk/js/trunk
 * https://trac.qcode.co.uk/js
 *
 * Copyright (c) 2004-2012, Qcode Software Limited <hackers@qcode.co.uk> 
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
 *   - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the
 *     documentation and/or other materials provided with the distribution.
 *   - Neither the name of Qcode Software Limited nor the names of its contributors may be used to endorse or promote products derived from this
 *     software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

/* ==== columnResize.css ==== */
.qc-column-resize {
    position: relative;
}
.column-resize-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    cursor: ew-resize;
    border: 1px dotted black;
    z-index: 10;
}

/* ==== columnsShowHideControl.css ==== */
.columns-show-hide-toolbar .title {
    font-size:120%;
    font-weight:bold;
    margin-bottom: 10px;
    line-height: 1.5em;
    white-space:nowrap;
}
.columns-show-hide-control {
    display:inline-block;
    float:left;
    width:100px;
    cursor: pointer;
    padding: 1px 4px;
    margin-right:8px;
    border: 1px solid #aca899;
    border-radius: 0.5em;
    line-height: 1.5em;
    margin-bottom: 8px;
}
.columns-show-hide-control-divider {
    display:inline-block;
    float:left;
    width:2px;
    border-right: 2px solid #ece9d8;
    height: 1.5em;
    margin-top: 2px;
    margin-right:8px;
    margin-bottom: 8px;
}
.columns-show-hide-control label {
    float: left;
    color: blue;
}
.columns-show-hide-control input {
    float: right;
    vertical-align: middle;
 }
.columns-show-hide-control.checked {
    background: #ece9d8;
}
.columns-show-hide-control.hover, col.highlight {
    background: #ffffdd;
}
.columns-show-hide-control.checked.hover {
    background: #ffffcd;
}


/* ==== dbEditorCombo.css ==== */
.options-container {
    height:150px;
}

.options-container div.selected {
    background-color:lightgrey;
}

/* ==== dbGrid.css ==== */
@media print {
    .db-editor {
        display: none !important;
    }
    .db-grid td {
        visibility: visible !important;
    }
}
.db-editor {
    z-index: 1;
}

/* ==== gantt.css ==== */
.gantt-chart.wrapper {
    position: relative;
    padding: 0.1px 0; /*padding hack to prevent collapsing margins*/
}
.gantt-chart .calendar-frame {
    position: absolute;
    overflow-x: scroll;
    overflow-y: auto;
}

.calendar {
    display: block;
}

/* ==== hoverScroller.css ==== */
.hover-scroller-container {
    position: relative;
}
.hover-scroller {
    overflow: hidden;
}
.hover-scroller-container .scroller {
    position: absolute;
    left: 0;
    right: 0;
    height: 25px;
    z-index: 200;
}
.hover-scroller-container .down.scroller {
    bottom: 0;
    opacity: 0.1;
    background: url("../images/down.png") no-repeat center black;
}
.hover-scroller-container .up.scroller {
    top: 0;
    display: none;
    background: url("../images/up.png") no-repeat top center black;
}

/* ==== imageCombo.css ==== */
.image-wrapper {
    display: table-cell;
}

/* ==== maximizeHeight.css ==== */
@media print {
    .maximize-height {
        height: auto !important;
    }
}

/* ==== qcode.alert.css ==== */
/* Add a triangular "warning" symbol to alerts */
.ui-dialog.alert .ui-dialog-content::before {
    display: table-cell;
    content: '\e009';
    -webkit-font-smoothing: antialiased;
    font: normal 1.8em/0.5 'qc-font';
    color: rgb(250, 200, 50);
    padding: 0.25em 0.5em 0.25em 0;
    vertical-align: middle;
    min-height: 1.8em;
}
/* Apply a text gradient where supported */
@supports ( -webkit-background-clip: text ) {
    .ui-dialog.alert .ui-dialog-content::before {
        -webkit-background-clip: text;
        background-image: linear-gradient(to bottom, rgb(250, 230, 50) 30%, rgb(250, 150, 50));
        color: transparent;
        background-size: 1em 1em;
        background-position: center center;
    }
}
.ui-dialog.alert .ui-dialog-content {
    display: table !important;
    padding: 1em 1em 0.5em;
}

/* ==== sidebar.css ==== */
/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 250px;
    overflow: hidden;
    max-width: 95%;
    min-width: 50px;
    background: white;
}

/* Sidebar resize handle */
.sidebar .handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -5px;
    width: 10px;
    cursor: w-resize;
    z-index: 10;
}

/* ==== statusFrame.css ==== */
/* css for statusFrame plugin */
@media screen {
    .status-frame {
        overflow-x: auto;
        overflow-y: auto;
    }
    .status-bar {
        position: relative;
        min-height: 1em;
    }
    .status-bar:after {
        /* clearfix - contents are floating */
        display: block;
        clear: both;
        content: "";
    }
    .status-bar .message {
        padding: 3px;
        float: left;
    }
    .status-bar .info {
        padding: 3px;
        text-align: right;
        float:right;
    }
    .status-bar .handle {
        position: absolute;
        left: 0;
        right: 0;
        bottom: -5px;
        height: 10px;
        cursor: ns-resize;
        z-index: 10;
    }
}
@media print {
    .status-frame {
        height: auto !important;
        overflow: visible !important;
        border: none !important;
    }
    .status-bar {
        display: none !important;
    }
}

/* ==== thSortMenu.css ==== */
span.sort {
    color: blue;
    cursor: pointer;
}
.th-sort-menu {
    background: white;
    border: solid 1px #aca899;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 15px;
    padding-right: 15px;
}
.th-sort-menu a {
    display: block;
}
.th-sort-menu a + a {
    margin-top: 4px;
}


/* ==== theadFixed.css ==== */
/*
theadFixed plugin css

Used to create a scrollable table with a fixed thead.
*/

@media screen {
    /* Outermost wrapper, providing an anchor for the head clone */
    .thead-fixed-wrapper {
        position: relative;
        max-height: 100%;
    }

    /* Fix the header clone to the top of the wrapper */
    .thead-fixed-wrapper .thead-fixed-clone {
        position: absolute;
        top: 0;
        left: 0;
    }

    /* provide a scrollbox, use float to stretch if the table overflows horizontally */
    .thead-fixed-wrapper .scroll-box {
        float: left;
        height: 100%;
        min-width: 100%;
        overflow-y: scroll;
        overflow-x: hidden;
    }
}

@media print {
    .thead-fixed-wrapper {
        height: auto !important;
    }
    .thead-fixed-wrapper .thead-fixed-clone {
        display: none;
    }
}

