@import '@project-one/components/lib/variables.scss';

.DigimapFlightTable {
    position: relative;
    overflow-x: scroll;
    background-color: $white;

    :root[data-obtrusive-scrollbars] & {
        @supports not selector(::-webkit-scrollbar) {
            scrollbar-width: thin;
        }
    }

    &-Wrapper {
        overflow-x: visible;
        display: grid;
        height: 100%;
    }

    &-Row {
        border-bottom: 1px solid $backGrey;
        display: grid;
        grid-template-columns: 2.1875rem 5.25rem 5.875rem 3.5rem 2.1875rem 4.875rem 4.125rem 5rem 5.5rem 6rem 6.875rem 21.75rem 9.25rem;
        color: $grey;
        background-color: $white;

        &_head {
            white-space: nowrap;
            color: $grey70Clear;
            position: sticky;
            top: 0;
            z-index: 1;
        }

        &_current {
            background-color: $primary5Clear;
        }

        > div {
            padding: 0.25rem 0.5rem;
            word-wrap: break-word;
        }
    }

    &-Icon {
        width: 1rem;
        height: 1rem;
        margin-bottom: -0.125rem;
    }

    &-Circle {
        display: inline-flex;
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        border: 1px solid currentColor;
        align-items: center;
        justify-content: center;
        margin-bottom: -0.125rem;
    }

    &-Circle &-Icon {
        width: 0.75rem;
        height: 0.75rem;
        margin-bottom: 0;
    }

    &-Scrollable {
        overflow-y: scroll;
        overflow-x: hidden;

        :root[data-obtrusive-scrollbars] & {
            @supports not selector(::-webkit-scrollbar) {
                scrollbar-width: thin;
            }
        }
    }

    &-Grey {
        color: $grey70Clear;
    }
}
