﻿table.grid-table {
    margin: 0;
}

    table.grid-table .grid-wrap {
        padding: 0;
        position: relative;
    }

    table.grid-table .grid-empty-text {
        color: #666;
    }

    table.grid-table .grid-header {
        position: relative;
    }

        table.grid-table .grid-header .sorted-asc .grid-sort-arrow:after {
            content: " \2193";
        }

        table.grid-table .grid-header .sorted-desc .grid-sort-arrow:after {
            content: " \2191";
        }

        table.grid-table .grid-header > .grid-header-title {
            width: 100%;
            margin-right: 15px;
            white-space: nowrap;
        }

        table.grid-table .grid-header .grid-col-resizer {
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            width: 7px;
            cursor: col-resize;
            z-index: 3;
            touch-action: none;
            user-select: none;
        }

            table.grid-table .grid-header .grid-col-resizer:hover::after,
            table.grid-table .grid-header .grid-col-resizer.resizing::after {
                content: '';
                position: absolute;
                top: 0;
                bottom: 0;
                right: 0;
                width: 2px;
                background: #4888C2;
            }

    table.grid-table.cols-locked .grid-header > .grid-header-title {
        overflow: hidden;
        width: auto;
    }

    table.grid-table.cols-locked td.grid-cell {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    table.grid-table tr.grid-row-selected td {
        background: #4888C2 !important;
        color: white;
    }

    table.grid-table tr.grid-row-selected a {
        color: white;
    }

input.grid-filter-input {
    padding: 4px;
    font-size: 13px;
}

table.grid-table .grid-filter {
    position: relative;
    margin-top: 2px;
    float: right;
    width: 10px;
    height: 12px;
}

table.grid-table .grid-filter-btn,
.html-table .grid-filter-btn {
    cursor: pointer;
    display: block;
    width: 10px;
    height: 12px;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAMCAYAAABbayygAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAJFJREFUKFNjkJSU/E8MZvj//78DMRhkoj+6bizYH2SiiIeHx2FjY+P/2DBIDqSGAQSOHTtmYWZm9hldEUgMJAdWBAJAHSzt7e056ApBYiA5qDIIAAoIhIaGroYpArFBYlBpVLB3715DmEIQGyqMCUDWwBRiWIkOYAqhXNwApMjX13c7lIsbgBQBrdWAcqGAgQEAdOGTrvsYKXIAAAAASUVORK5CYII=') no-repeat;
}

table.grid-table .grid-filter-btn.filtered,
.html-table .grid-filter-btn.filtered {
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAMCAYAAABbayygAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAJNJREFUKFNjYGj//58o/P//fwdiMIOkpKQ/VhOQMFgNULWIh4fHYWNj4//YMEgOpIYBBI4dO2ZhZmb2GV0RSAwkB1YEAkAdLO3t7TnoCkFiIDmoMggACgiEhoauhikCsUFiUGlUsHfvXkOYQhAbKowJQNbAFGJYiQ5gCqFc3ACkyNfXdzuUixuAFAGt1YByoYCBAQAUDanUpFB4UQAAAABJRU5ErkJggg==') no-repeat;
}

table.grid-table .grid-filter-buttons {
    padding: 0;
}

table.grid-table .grid-filter-datepicker {
    font-size: 12px;
}

    table.grid-table .grid-filter-datepicker table td {
        padding: 1px !important;
    }

    table.grid-table .grid-filter-datepicker .ui-datepicker {
        width: auto;
    }

table.grid-table .grid-dropdown-inner ul.menu-list li a.grid-filter-clear {
    white-space: nowrap;
    padding-left: 23px;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAMCAYAAABbayygAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAARpJREFUKFNjYGj//58o/P//fwdiMIOkpKQ/VhOQMFgNULWIh4fHYWNj4//YMEgOpIYBBI4dO2axOC/396GinP/O+vpwRVbGxl92+vluXm1kuASsEKiD5VB99aG3eTH/HxjL/A/RUPsfrqb6f7e21uutlhbRYEUwAFQskOLmun2+lND/0xxM/7dycXzd6OxoCpVGBduWLjXv4+f/v5WF+f9RbtYvfeysqlApBKhhY2Hcxsy0+xAL038nbe3/m8W4ss/Jcx2GSiPAal6uvGtczP9TFOXBHgGJ7RHlmLGOjy0UrAAGzgT7rn7urP/P3NDgv6+v73aQWAMzM+dqTtbJYAUwsNzeyuhImE8GSBHQYxpQYYYJQCcxMDAwAAB7/bt5uWh9FAAAAABJRU5ErkJggg==');
    background-position: 3px center;
    background-repeat: no-repeat;
}

table.grid-table .grid-filter-choose.choose-selected {
    background-color: white !important;
    cursor: default;
    color: #999;
}

table.grid-table .grid-popup-additional {
    padding: 3px 0 0 0;
}

.grid-dropdown {
    font-weight: normal;
    left: -102px;
    top: 16px !important;
    min-width: 280px;
}

.grid-dropdown-arrow {
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAICAYAAADJEc7MAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABp0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjUuMTAw9HKhAAAAl0lEQVQoU42PMQuFMAyE6xN5gpOjjsIb/P9/o3O3zh27dY25kIPq8DBwmLT35WoQkUEVOmGec84CaW2q7+N+AdCD6M9SisQYTei1jsfyCeCu+vjFVGs1AN++94DRfUOfuNLoKUiyRC5y2F5I8NdaM4P/l0EswvBorQTnfxBhLMRih+2pklIy+eEtjQPu6MNZwIBNbwteMBd5X4ZGHcwL3QAAAABJRU5ErkJggg==") no-repeat;
    height: 8px;
    left: 99px;
    position: absolute;
    top: -8px;
    width: 14px;
}

.grid-dropdown-inner {
    padding: 20px 22px;
}

.grid-dropdown ul.menu-list {
    list-style-type: none;
    margin: 3px 0 0 0;
    padding: 0;
}

    .grid-dropdown ul.menu-list li a {
        text-decoration: none;
        background-position: 6px center;
        background-repeat: no-repeat;
        display: block;
        padding: 4px 5px;
    }

        .grid-dropdown ul.menu-list li a:hover {
            background-color: #EEE;
            text-decoration: none;
        }

td[contenteditable="true"] {
    padding: 8px;
    border: 1px solid #ddd;
    background-color: #fefef0;
    cursor: pointer;
}

.editing {
    color: black;
    background-color: lightyellow !important;
}

.context-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
}

    .context-menu .disabled {
        opacity: 0.5;
        pointer-events: none;
        color: #ccc;
    }

    .context-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .context-menu li {
        display: flex;
        justify-content: space-between;
        padding: 7px 15px;
    }

    .context-menu a {
        text-decoration: none;
        color: #333;
    }

    .context-menu .menu-item:hover {
        background-color: #f0f0f0;
    }

    .context-menu a i.fa-fw {
        color: #808080;
        margin-right: 2px;
    }

.shortcut {
    margin-left: 30px;
    font-size: 12px;
    color: #999;
}

.separator {
    width: 100%;
    border-top: 1px solid #ccc;
    margin: 3 !important;
    padding: 0px 15px !important;
}



.grid-header.draggable {
    width: 50px;
}

.grid-header.selectable {
    width: 10px;
    margin-right: 0px;
}

    .grid-header.selectable > .grid-header-title {
        margin-right: 0px !important;
    }

.grid-header.primarykey {
    width: 75px;
}

.column-picker-modal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.column-picker-list {
    margin: 0;
    padding: 0;
}

.column-picker-item {
    padding: 7px 4px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    background: #fff;
}

.column-picker-item:last-child {
    border-bottom: none;
}

.column-picker-item.ui-sortable-helper {
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

.column-picker-handle {
    cursor: move;
    color: #bbb;
    margin-right: 10px;
    flex-shrink: 0;
}

.column-picker-handle:hover {
    color: #888;
}

body.html-table-fullscreen-on {
    overflow: hidden;
}

.html-table-fullscreen > .html-table,
.html-table.html-table-fullscreen {
    position: fixed;
    inset: 46px 0 0 0;
    z-index: 1050;
    background: #fff;
    padding: 15px;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.html-table-fullscreen > .html-table > .grid-wrap,
.html-table.html-table-fullscreen > .grid-wrap {
    flex: 1 1 auto;
    overflow: auto;
    max-height: none !important;
    min-height: 0 !important;
}

.grid-wrap.table-scrollable:focus,
.grid-wrap.table-scrollable:focus-visible {
    outline: none;
}

.html-table-fullscreen .chart-grid-container,
.html-table.html-table-fullscreen .chart-grid-container {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 !important;
    display: flex;
}

.html-table-fullscreen .chart-grid-container > [id^="chart-"],
.html-table.html-table-fullscreen .chart-grid-container > [id^="chart-"] {
    flex: 1 1 auto;
    min-height: 0 !important;
    width: 100%;
}

.grid-fullscreen-floating {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 10;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 3px 7px;
    color: #555;
    font-size: 12px;
    line-height: 1;
}

.grid-fullscreen-floating:hover {
    background: #fff;
    color: #000;
}

.html-table-fullscreen .grid-fullscreen-floating,
.html-table.html-table-fullscreen .grid-fullscreen-floating {
    display: none;
}

.grid-fullscreen-close {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 1051;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 4px 9px;
    color: #555;
    font-size: 14px;
    line-height: 1;
}

.grid-fullscreen-close:hover {
    background: #fff;
    color: #000;
}

