@import '~@gravity-ui/uikit/styles/mixins';

.dl-core-workbook-navigation-minimal {
    width: 416px;
    height: 540px;
    display: flex;
    flex-direction: column;
    position: relative;
    max-height: 70vh;
    max-width: 80vw;

    &__row {
        cursor: pointer;
        height: 40px;
        display: flex;
        align-items: center;
        padding: 0 20px;
        width: 100%;
    }

    &__row_inactive {
        opacity: 0.5;
        cursor: initial;
    }

    &__info {
        padding-right: 0;
        display: flex;
        width: 100%;
        overflow: hidden;
    }

    &__popup {
        border-radius: 4px;
        overflow: hidden;
        background-color: var(--g-color-base-float);
    }

    &__icon {
        margin-right: 12px;
        position: relative;
        bottom: 2px;
        flex: 0 0 auto;
        display: flex;
    }

    &__name {
        flex: 3 1 30%;
        display: flex;
        overflow: hidden;
        min-width: 100px;
        color: var(--g-color-text-primary);

        span {
            @include overflow-ellipsis();
        }
    }

    &__name-line {
        display: flex;
        overflow: hidden;
    }

    &__date {
        flex: 0 0 60px;
        min-width: auto;
    }

    &__loader {
        margin: auto;
    }

    &__empty-entries {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

    &__control {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 20px;
    }

    &__sort-control {
        min-width: fit-content;
    }

    &__sort-select {
        min-width: 140px;
    }
}
