﻿.mj-grid {
    width: 100%;
    height: 100%;
    max-height: inherit; /* dont use absolute or the grid cant grow in height dynamically */
    border: 1px solid transparent;
    /*box-sizing: border-box;*/
    overflow: hidden;
}

.mj-grid .mj-grid-container {
    position: relative; /* dont use absolute or the grid cant grow in height dynamically */
    left: 0px;
}

.mj-grid .mj-grid-table {
    position: relative;
    width: 100%;
    display: table; 
}

.mj-grid-header-row {
    display: table-row;
}

.mj-grid-row {
    white-space: nowrap;
    display: table-row;
}

.mj-grid-head { display: table-header-group; }

.mj-grid-body { display: table-row-group; }

.mj-grid .mj-grid-header-cell { 
    position: relative;             /* need this for scrolling */
    display: table-cell;
    padding-left: 4px;   
    padding-right: 4px;
    padding-top: 5px;     
    padding-bottom: 5px;
    font-size: 11px;
    vertical-align: middle;
    box-sizing: border-box;   
}

.mj-grid .mj-grid-cell { 
    position: relative;      /* need this for scrolling */
    display: table-cell;
    padding: 4px;     
    font-size: 11px;
    vertical-align: middle;
    box-sizing: border-box;    
}

.mj-grid .mj-grid-row.mj-selected { background: #F3F1F1; }

.mj-grid .mj-grid-cell.mj-selected { background: #F3F1F1; }

.mj-grid .mj-grid-header-cell {     
    text-align: center; 
    border-bottom: 1px solid transparent;
    border-right: 1px solid transparent;
    font-weight: normal;
    height: 15px;

    /* http://www.colorzilla.com/gradient-editor/ */

    background: #e8e8e8;
    background: rgb(255,255,255); /* Old browsers */
    background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(47%,rgba(246,246,246,1)), color-stop(100%,rgba(237,237,237,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* IE10+ */
    background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */

    /* gradient destroys border */

    background-origin: padding-box;
    background-clip: padding-box;
}

.mj-grid .mj-grid-header-cell .mj-text {  }

.mj-grid .mj-grid-cell {
    border-right: 1px solid transparent;
    border-bottom: 1px solid transparent;  
}

.mj-grid .mj-grid-vertical-scrollbar-container { position: absolute; right: 0px; top: 0px; }

.mj-grid .mj-grid-horizontal-scrollbar-container { position: absolute; left: 0px; bottom: 0px; }

.mj-grid .mj-grid-header-cell .mj-arrow-container {
    position: absolute;
    top: 50%;
    bottom: 50%;
    right: 0px;
}

.mj-grid .mj-grid-header-cell .mj-arrow {
    width: 12px;
    height: 12px;
    position: absolute;
    right: 2px;
    top: -6px;
    bottom: -6px;
    display: none;
}

.mj-grid .mj-grid-header-cell img.delete-column {
    cursor: pointer;
}

.mj-grid .mj-checkbox-box { display: inline-block; }

.mj-grid .mj-select { border-radius: 5px; outline: none; width: 100%; }

.mj-grid .mj-fixed-col {
    /*position: absolute;
    left:0;
    top:auto;*/

    z-index: 1;
    height: inherit;
    border-right: 1px solid #ccc;    
    background: #e8e8e8;
    background: rgb(255,255,255); /* Old browsers */
    background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(47%,rgba(246,246,246,1)), color-stop(100%,rgba(237,237,237,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* IE10+ */
    background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */
}

.mj-grid .mj-input { width: 100%; outline: none;  padding: 2px; }