﻿.astrend-legend-attributes  {
}

.astrend-legend-attributes .popup-title {
    cursor: default;
    font-size: 16px;
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.astrend-legend-attributes .popup-content {
    display: grid;
    grid-template-columns: 160px 700px;
    grid-template-rows: auto 400px;
    grid-column-gap: 20px;
    grid-row-gap: 0px;
}

.astrend-legend-attributes .popup-header {
    font-size: 14px;
    border-bottom: 1px solid var(--bs-border-color);
    margin-bottom: 0.25em;
}




.astrend-legend-attributes .list-scroll-box {
    max-height: 500px;
    overflow-y: auto;
}

.astrend-legend-attributes .list-row {
    display: grid;
    grid-template-columns: 180px 1fr 70px;
    grid-column-gap: 5px;
    grid-row-gap: 5px;
    align-items: center;
    margin-bottom: 0.25em;
}

.astrend-legend-attributes .list-header {
    border-bottom: 1px solid var(--bs-border-color);
}


    .astrend-legend-attributes .list-content:hover {
        background-color: var(--bs-tertiary-bg);
    }


    .astrend-legend-attributes .list-content[data-bs-selected] {
            background-color: var(--bs-secondary-bg);
    }


    .astrend-legend-attributes .list-scroll-box:focus .list-content[data-bs-selected] {
        background-color: var(--bs-primary-bg-subtle);
    }


.astrend-legend-attributes .name-list-column-selector {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}



.astrend-legend-attributes .property-list-scroll-box {
    max-height: 500px;
    overflow-y: auto;
}


.astrend-legend-attributes .property-list-content {
    display: grid;
    grid-template-columns: 180px 100px 100px 70px 1fr;
    grid-auto-rows: min-content;
    grid-column-gap: 0px;   /* żeby nie było przerw w wierszu z hover */
    grid-row-gap: 5px;
    align-items: center;
}


.astrend-legend-attributes .property-list-header {
    display: contents; /* causes an element's children to appear as if they were direct children of the element's parent, ignoring the element itself. */
}

.astrend-legend-attributes .property-list-row {
    display: contents; /* causes an element's children to appear as if they were direct children of the element's parent, ignoring the element itself. */
}


    .astrend-legend-attributes .property-list-row:hover > div {
        background-color: var(--bs-tertiary-bg);
    }


.astrend-legend-attributes .property-list-header > div {
    border-bottom: 1px solid var(--bs-border-color);
}

.astrend-legend-attributes .property-list-column-name {
    padding-right: 1em;
    height: 100%;

    display: flex;
    align-items: center;
}


.astrend-legend-attributes .property-list-column-width {
    height: 100%;

    display: flex;
    align-items: center;
}


.astrend-legend-attributes .property-list-column-width-input {
    width: 4rem;
    padding: 0;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);
}


.astrend-legend-attributes .property-list-column-order {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}



.astrend-legend-attributes .property-list-column-selector {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}


.astrend-legend-attributes .property-list-column-empty {
    border-bottom: none !important;
}