@import 'variables';

.table-grid [draggable='true'] {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.table-grid__root {
    opacity: 0.0012;
    overflow: hidden;
    position: relative;
    transition: opacity 0.5s ease;
    transform: translate(0);
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--ngx-table-border-color);

    &--is-rendered .table-grid {
        overflow: auto;
        transition: all 0.2s;
    }

    &.table-grid__root--content-is-init {
        opacity: 0.4;
    }

    &.table-grid__root--is-rendered {
        opacity: 1;
        transition: all 0.2s;
    }

    &-empty-after-filter {
        top: 50%;
        left: 50%;
        z-index: 1000000;
        position: absolute;
        transform: translate(-50%, -50%);
    }

    &-filtering {
        padding: 5px;
        width: 70px;
        background: #fff;
        position: absolute;
        top: 10px;
        right: 10px;
        height: fit-content;
        z-index: 1000000;
        font-size: 10px;
        filter: drop-shadow(0px 0px 1px white) drop-shadow(0px 0px 1px white) drop-shadow(0px 0px 1px white)
            drop-shadow(0px 0px 1px white);
        text-align: right;
    }
}

.table-grid__column-area-content {
    width: 100%;
}

// prevent calculate all rows
.table-grid__root-auto-height {
    height: 0;
}

.table-grid__root:not(.table-grid__root--is-rendered),
.table-grid__root--is-scrolling {
    table-tbody,
    table-cell {
        pointer-events: none;
    }
}

.table-grid__root:not(.table-grid__root--is-rendered) {
    cursor: wait;
}

.total-viewport-padding {
    height: 100%;
    width: 1px;
    opacity: 0;
}

.cdk-drag-preview .scrollable-viewport-content {
    top: 0 !important;
    backface-visibility: hidden;
}

.scrollable-viewport-content {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    position: absolute;
    overflow: hidden;
    width: 100%;
    left: 0;
    top: 0;
}

.vertical-align {
    vertical-align: middle;
    margin: auto 0;
    box-sizing: border-box;
}

.table-close__button {
    height: 20px;
    width: 20px;
    text-indent: -9999px;
    text-decoration: none;
    border-radius: 50%;
    position: absolute;
    right: 8px;
    top: 8px;
    transition: opacity 0.3s;
    opacity: 0.5;

    background: #fff
        url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgaWQ9Ik91dGxpbmVkIiB2aWV3Qm94PSIwIDAgMzIgMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlLz48ZyBpZD0iRmlsbCI+PHBhdGggZD0iTTE2LDJBMTQsMTQsMCwxLDAsMzAsMTYsMTQsMTQsMCwwLDAsMTYsMlptMCwyNkExMiwxMiwwLDEsMSwyOCwxNiwxMiwxMiwwLDAsMSwxNiwyOFoiLz48cG9seWdvbiBwb2ludHM9IjE5LjU0IDExLjA1IDE2IDE0LjU5IDEyLjQ2IDExLjA1IDExLjA1IDEyLjQ2IDE0LjU5IDE2IDExLjA1IDE5LjU0IDEyLjQ2IDIwLjk1IDE2IDE3LjQxIDE5LjU0IDIwLjk1IDIwLjk1IDE5LjU0IDE3LjQxIDE2IDIwLjk1IDEyLjQ2IDE5LjU0IDExLjA1Ii8+PC9nPjwvc3ZnPg==')
        no-repeat center center;

    &:hover {
        opacity: 1;
        cursor: pointer;
    }
}

@keyframes slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.filter-founded {
    border-bottom: 1px dotted #000;
}

.table-grid__background-flat {
    background: transparent;
    position: fixed;
    width: 100%;
    z-index: 5;
    height: 100%;
    top: 0;
    left: 0;
}
