﻿.table {
    --color-table-fill: rgb(var(--color-secondary-600-rgb));
    --color-table-header-footer: rgb(var(--color-secondary-300-rgb));
    --size-table-content-padding: 0 var(--size-spacing-8);
    display: flex;
    flex-direction: column;
    gap: var(--size-spacing-2);
}

.table-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-table-fill);
    width: fit-content;
    border-radius: var(--size-radius-base);
    width: 100%;
}

.table-container {
    display: flex;
    flex-direction: column;
    background-color: var(--color-table-fill);
}

.table-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.table-header {
    position: sticky;
    top: 0;
    /*z-index: 2;*/
    border-bottom: 1px solid var(--color-table-fill);
}

.table-header-content {
    display: flex;
    flex-direction: row;
    gap: 1px;
}

.table-field {
    display: flex;
    flex-direction: row;
    background-color: var(--color-table-header-footer);
    height: 30px;
    align-items: center;
    padding: var(--size-table-content-padding);
    box-sizing: border-box;
    flex-shrink: 0;
}

    .table-field p {
        color: rgb(var(--color-neutral-600-rgb));
    }

.table-row {
    display: flex;
    flex-direction: row;
    gap: 1px;
    flex-shrink: 0;
}



    .table-cell {
        display: flex;
        flex-direction: row;
        height: 30px;
        background-color: white;
        align-items: center;
        padding: var(--size-table-content-padding);
        box-sizing: border-box;
        flex-shrink: 0;
        border: 1px solid transparent;
    }

.table-row:hover .table-cell {
    background-color: rgb(var(--color-secondary-50-rgb));
}

.table-cell.input-in-progress {
    border: 1px solid rgb(var(--color-primary-500-rgb));
}

    .table-cell input {
        font-family: var(--main-fonts);
        font-size: var(--size-font-p);
        line-height: var(--size-line-height-p);
        color: rgb(var(--color-neutral-900-rgb));
        font-weight: 500;
        width: 100%;
        outline: none;
        background-color: transparent;
    }

.table-cell.regex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

    .table-cell.regex input {
        font-family: var(--font-family-regex);
    }

    .table-cell.regex p {
        font-family: var(--font-family-regex);
    }

.table-cell.dragable-and-number {
    display: flex;
    flex-direction: row;
    gap: var(--size-spacing-8);
    --icon-color: transparent;
}

    .table-cell.dragable-and-number p {
        color: rgb(var(--color-neutral-400-rgb));
        font-size: var(--size-font-small);
    }

.table-cell.move-and-number {
    display: flex;
    flex-direction: row;
    gap: var(--size-spacing-4);
}


.table-cell.move-and-number .move-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--size-spacing-0);
    width: 16px;
    height: 16px;
    --icon-color: transparent;
}


    .table-cell.move-and-number p {
        color: rgb(var(--color-neutral-400-rgb));
        font-size: var(--size-font-small);
    }

.table-row:hover .move-buttons {
    --icon-color: rgb(var(--color-neutral-200-rgb));
}

    .table-cell.move-and-number .move-buttons .move-button:hover {
        --icon-color: rgb(var(--color-primary-500-rgb));
    }

    .table-cell.move-and-number .move-buttons .move-button:active {
        --icon-color: rgb(var(--color-primary-700-rgb));
    }




    .table-cell.bool {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

.table-row:hover .table-cell.dragable-and-number {
    --icon-color: rgb(var(--color-neutral-300-rgb));
    cursor: grab;
}

.table-row:active .table-cell.dragable-and-number {
    cursor: grabbing;
}

    .table-cell.order {
        justify-content: center;
    }


.table-cell.order p {
    color: rgb(var(--color-neutral-400-rgb));
    font-size: var(--size-font-small);
}

.table-cell.dropdown {
    justify-content: space-between;
}


.table-footer {
    width: 100%;
    height: var(--size-spacing-8);
    background-color: var(--color-table-header-footer);
    border-top: 1px solid var(--color-table-fill);
}

.dropdown-table-cell {
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: var(--size-spacing-2);
}

    .dropdown-table-cell .list {
        display: flex;
        flex-direction: column;
        border-radius: var(--size-radius-base);
        overflow: hidden;
        background-color: rgb(var(--color-primary-0-rgb));
        position: absolute;
        margin-top: 2px;
        box-shadow: 0 2px 5px 0 var(--color-mask-shade-20);
        width: 100%;
        z-index: 9999;
    }

        .dropdown-table-cell .list .item {
            background-color: var(--color-mask-shade-0);
            padding: var(--size-spacing-6) var(--size-spacing-12);
            cursor: pointer;
        }

            .dropdown-table-cell .list .item:hover {
                background-color: rgba(var(--color-primary-50-rgb) / 0.50);
            }

            .dropdown-table-cell .list .item:active {
                background-color: rgb(var(--color-primary-50-rgb));
            }

            .dropdown-table-cell .list .item.selected {
                background-color: rgb(var(--color-primary-50-rgb));
            }
