/*
    Colors from template

    Highlighted background color: fbfcfd
    Highlighted background border: e9eef1
*/

div#pattern-result-list-c {
    border-right: 1px solid #e9eef1;
    position: sticky;
    top: 0;
    align-self: flex-start; /* doesn't seem to do anything */
    height:100vh;
    overflow-y: auto;   /* scroll if too long */
}
div#pattern-result-list-c h3 {
    font-weight: bold;
    font-size: 90%;
}
div#results-main-c {
    border-top: 1px solid rgb(220, 220, 220);
}

#results-main-c, #annotation-and-grid-c {
    width: 100%; /* ensure full width for the main layout and content */
    box-sizing: border-box; /* include padding and border in element's total width */
    min-width: 0; /* allow flex items to shrink */
}

#result-panel {
    overflow-x: auto; /* allow horizontal scrolling if needed */
    width: 100%;
}

section#result-panel {
    background-color: #fbfcfd;
    border: 1px solid #e9eef1;
}
span.option-label {
    font-weight: bold;
    font-size: 90%;
}
ul#pattern-result-list {
    list-style: none;
}
ul#pattern-result-list li {
    padding: 0.3em 0 0.3em 1em;
    border-top: 1px solid #e9eef1;
    font-size: 90%;
}
ul#pattern-result-list li:last-child {
    border-bottom: 1px solid #e9eef1;
}
ul#pattern-result-list li.is-selected {
    /* TODO: Make this a variable */
    background-color: #483285;
    color: white;
}
ul#go-terms {
    max-height: 17em;
    overflow-y: scroll;
}
ul#go-terms li {
    border-bottom: 1px solid #e9eef1;
}

/* tSNE plots */
.js-tile .card-image img {
    width: fit-content;
    height: 100%;
    margin: auto;
}

/* spatial embeds */
#result-panel-grid .js-tile .card-image iframe {
    width: 100%;
    height: 100%;
    margin: auto;
}

#zoomed-panel-grid .js-tile .card-image iframe {
    width: 100%;
    height: 1750px;  /* Enough room for the Panel app to be fully displayed without scrolling */
    margin: auto;
}

.js-tile .card-image .svg svg {
    height: inherit;    /* match the height set by the SVG container (after legend applied) */
}


.js-tile .card-image .js-plotly-plot {
    width: 100%;
    height: 100%;
}

/* Loading info or error message */
.js-tile .card-image p {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dropdown settings */

.js-tile .dropdown-content {
    width: max-content;
}

.js-tile .dropdown-item {
    padding: 0.125rem 1rem;
}

.js-modal-display figure {
    border-color: darkgray;
    border-width: thin;
    border-style: solid;
}

.js-modal-display.is-selected figure{
    border-color: lightblue;
    border-width: thick;
    border-style: solid;

}

.js-choose-display-modal .modal-content {
    width: 70%; /* make wider, which makes preview images larger */
}
