@import "../../styles/modules/importAll";

.DashboardVisualisationList {
    .list, .noVisualisationsMessage {
        padding: 1rem;
    }

    .filterInput {
        padding: 1rem;
        border-bottom: 0.1rem solid $lightGrey;

        label, input {
            display: block;
            margin: 0.5rem 0;
            width: 100%;
        }

        label {
            margin-top: 0;
        }

        input {
            padding: 0.5rem;
            margin-bottom: 0;
        }
    }

    .filterHelpText {
        padding: 1rem;
        text-align: center;

        .buttonContainer {
            margin-top: 1rem;
        }

        button {
            padding: 0.25rem 0.5rem;
            border: 0.1rem solid black;

            @include border-radius(3px);
        }
    }

    .listItem {
        margin: 0.5rem 0;
        padding: 15px 5px 15px 15px;
        width: 100%;
        border: 1px solid rgba($black, 0.2);
        position: relative;
        overflow-y: auto;
        display: flex;

        &.added {
            border: 1px solid rgba($black, 0.05);
            background-color: rgba($black, 0.05);
        }

        .entityIcon {
            display: flex;
            flex-direction: column;
            justify-content: center;

            &,
            img {
                width: 32px;
            }
        }

        .textContent {
            padding-left: 10px;
        }

        &:first-child {
            margin-top: 0;
        }
    }

    h3 {
        font-weight: 400;
        text-transform: capitalize;
        color: black;
    }

    .visualisationType,
    .lastModified {
        font-size: 0.9em;
    }
    .author {
        font-size: 0.9em;
    }

    .visualisationType {
        display: inline;
        font-weight: 600;
        color: $midGrey;
    }

    .lastModified {
        display: inline;
        color: $midLightGrey;
    }
    .author {
        display: inline;
        color: $midGrey;
    }


    .isOnDashboardIndicator {
        padding: 0.5rem;
        position: absolute;
        top: 0;
        right: 0;
    }
}