@use "variables" as *;

:host {
    width: $content-palette-width;
    min-width: $content-palette-width;
    display: flex;
    flex-direction: column;
    padding: $spacing-1;
    border-left: 1px solid $color-palette-gray-300;
    background: $white;
    transition: all $basic-speed ease-in-out;
    height: 100%;
    text-align: center;
}

.dot-content-palette__items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: $spacing-1;
    grid-auto-rows: 6rem;
    overflow: hidden auto;

    div {
        border: 1px solid $color-palette-gray-300;
        color: $black;
        cursor: grab;
        overflow: hidden;
        padding: 1rem $spacing-1;
        position: relative;
        text-align: center;

        &:hover {
            background: $color-palette-gray-200;
        }

        p {
            font-size: $font-size-sm;
            margin: $spacing-1 0 0;
            overflow: hidden;
            text-align: center;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 100%;
        }

        .arrow {
            background-color: transparent;
            border: none;
            color: $color-palette-gray-700;
            cursor: pointer;
            padding: 0;
            position: absolute;
            right: 0;
            top: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: flex-start;
            justify-content: flex-end;
        }
    }
}

.dot-content-palette__empty {
    text-align: center;
    padding: $spacing-1 0;
    margin: $spacing-4;
}
