﻿body .grid-container {
    position: relative;
    padding-right: 1px;
}

    body .grid-container .grid {
        width: 100%;
        /*overflow-x: auto;*/
    }

        body .grid-container .grid hot-table {
            display: inline-block;
        }

            body .grid-container .grid hot-table > div {
            }

body .grid:not(.no-excel-btn) hot-table:before {
    content: '';
    display: block;
    padding: 10px;
}

body .grid-container .grid hot-table .handsontable-container .handsontableInputHolder .ht_master {
    direction: ltr;
}

body .grid-container .grid hot-table .handsontable-container .ht_master,
body .grid-container .grid hot-table .handsontable-container .ht_master .wtHolder {
    height: inherit !important;
}

body .grid-container .grid hot-table .handsontable-container .ht_clone_top {
    width: calc(100% - 20px);
    pointer-events: none;
}

.handsontable td.htSearchResult {
    background: #fcedd9 !important;
    color: #583707 !important;
}

.grid-container .grid,
.grid {
    display: inline-block;
    vertical-align: top;
    position: relative;
}

    .grid-container .grid:not(.no-excel-btn),
    .grid:not(.no-excel-btn) {
        margin: 10px 0 10px 10px;
        padding-top: 15px;
    }

    .grid-container:hover .grid .grid-action,
    .grid:hover .grid-action {
        opacity: 1;
    }

    .grid-container .grid .grid-action,
    .grid .grid-action {
        position: absolute;
        z-index: 10;
        top: 0px;
        color: green;
        transition: all .2s linear;
        cursor: pointer;
        text-align: center;
        font-size: .7em;
    }

    .grid-container .grid .title {
        padding-bottom: 5px;
    }

    .grid-container .grid .grid-export,
    .grid .grid-export {
        right: 0;
    }

    .grid-container .grid .grid-feeder, .grid .grid-feeder {
        right: 100px;
    }

        .grid .grid-feeder button {
            height: 29px;
        }

    .grid .grid-action button {
        padding: 5px;
        border: 1px solid rgba(0, 128, 0, .4);
        transition: all .2s ease-in-out;
    }

    .grid .grid-action .fa-file-excel,
    .grid .grid-action .fa-magic {
        font-size: 1.5em;
    }

    .grid .grid-action:hover button {
        background-color: green;
        color: white;
    }

    .grid-container .grid .hot-field {
        position: absolute;
        top: 0;
        right: 98px;
        padding: 5px 10px;
        height: 31px;
        max-height: 200px;
        line-height: 20px;
        color: black;
        border: 1px solid #CDCDCF;
    }

.ht_clone_top, .ht_clone_left {
    right: 0;
}

.innerTable-cell {
    padding: 5px 10px;
    display: inline-block;
}

.grid-container .handsontable-container .ht_master .current {
    box-shadow: 0 0 0 2px #5292F7 inset;
}

.grid-container .handsontable-container .handsontableInputHolder .ht_master .current {
    background-color: #eee;
    box-shadow: none;
}

/*.handsontable.listbox:after {
    content: '';
    width: calc(100% - 37px);
    height: 2px;
    background-color: #ccc;
    position: absolute;
    bottom: 0;
    left: 0;
}*/

.th-center th div,
#hotTooltip .th-center th div {
    text-align: center;
}


.expand-btn {
    color: #5292F7;
    cursor: pointer;
    text-decoration: underline;
    text-align: center;
}

.htCommentTextArea {
    padding: 5px;
    resize: none;
    text-align: center;
}

.handsontableInputHolder {
    text-align: left;
}

.handsontableInput {
    padding-top: 5px !important;
    height: 26px !important;
}

/* גורם לבעיה בטפסים ברזולוציה נמוכה, סכומים זזים ימינה */
/*.ltr {
    direction: ltr;
    text-align: right;
}*/

.htAutocomplete {
    position: relative;
}

    .htAutocomplete.htNoWrap {
        text-overflow: ellipsis;
    }

.htAutocompleteArrow {
    /*float: left !important;*/
    position: absolute;
    left: 0;
    top: 5px;
}

select {
    direction: rtl;
}

.htCore tr th {
    color: #89898C;
    background-color: #ffffff;
    border-left: hidden;
    border-right: hidden;
}

.handsontable .htCore {
    font-size: .8em;
    font-weight: normal;
}

    .handsontable .htCore td {
        font-size: .95em;
    }

.handsontable thead th {
    text-align: right !important;
    padding-right: 2px !important;
    color: white;
    background-color: #118dcf;
}

.is-disabled .handsontable thead th {
    background-color: #6da9ca;
}

.ht_clone_corner, .ht_clone_left {
    display: none;
}

.htSelectEditor {
    font-size: .7em;
}

.ui-autocomplete {
    font-size: .7em;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    direction: rtl;
}

.ui-menu .ui-menu-item {
    padding: 3px 5px 2px 5px;
}

.grid-container.hide-scroll .ht_master .wtHolder {
    overflow-y: hidden;
}

.grid-container.hide-scroll .handsontableEditor .ht_master .wtHolder {
    overflow-y: auto;
}

/* autoheigth width fix */
.grid-container.auto-height .handsontable-container > .ht_master .wtHolder {
    width: inherit !important;
}

/* Handsontable row filter - hide filtered rows */
/* IMPORTANT: Do NOT use 'display: none' as it causes Handsontable to remove rows from DOM */
/* Use visibility:collapse to hide rows while keeping them in DOM */
tr.ht-filtered-hidden {
    height: 0 !important;
    line-height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    visibility: collapse !important;
    overflow: hidden !important;
    border: none !important;
    padding: 0 !important;
    pointer-events: none !important;
}

tr.ht-filtered-hidden td,
tr.ht-filtered-hidden th {
    height: 0 !important;
    line-height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    font-size: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    visibility: collapse !important;
}

tr.ht-filtered-hidden * {
    /* Collapse all child elements to prevent any space usage */
    height: 0 !important;
    max-height: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: hidden !important;
}

/* Status filter dot in preferences menu */
.status-filter-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}