/* evidence_maps/map_summary.css */

.formContainer {
    background-color: var(--lightest);
    padding: var(--xs-space);
    border-radius: var(--small-border-radius);
    margin-bottom: var(--xs-space);
}

.formContainer form {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.filterGroupContainer {
    display: flex;
    flex-wrap: wrap;
    gap: var(--xs-space);
}

form .filter {
    display: flex;
    flex-direction: column;
    gap: var(--xs-space);
}

form input {
    padding: var(--xs-space);
}

form select[multiple] option {
    border: none;
}

.choices {
    border: 1pt solid var(--medium);
    border-radius: var(--small-border-radius);
    margin-bottom: var(--s-space);
    background-color: white;
    min-width: 240pt;
}

.choices__inner {
    width: unset !important;
    min-height: var(--body-text-size) !important;
    border: none !important;
    background: none !important;
}

.choices__input--cloned {
    background: none !important;
}

.choices .choices__list--dropdown .choices__item--choice {
    color: var(--body-text-colour);
    font-size: var(--body-text-size);
    font-weight: var(--body-text-weight);
    word-wrap: normal;
}

.choices__list {
    border-radius: var(--small-border-radius);
}

.choices .choices__list--dropdown .choices__item--choice {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.choices .choices__list--dropdown .choices__item__select-text {
    font-size: 0;
}

.choices .choices__list--multiple .choices__item {
    margin-bottom: 0;
    background-color: var(--phw-royal-blue);
    border: none;
    color: white;
    font-size: var(--body-text-size);
    font-weight: var(--body-text-weight);
}

.choices .choices__list--multiple .choices__item .choices__button {
    font-size: var(--body-text-size);
    color: white;
    margin-left: 0;
    opacity: 1;
}

.choices .choices__list--multiple .choices__item .choices__button:hover {
    background: none;
    outline: none;
    color: white;
}

form .clearFilters,
input[type=submit] {
    font-family: inherit;
    font-size: var(--body-text-size);
    font-weight: var(--body-text-weight);
    padding: var(--xs-space);
    background-color: var(--phw-royal-blue);
    color: white;
    border: none;
    border-radius: var(--medium-border-radius);
    margin: 0;
}

form .clearFilters:hover,
input[type=submit]:hover {
    background-color: white;
    color: var(--phw-royal-blue);
    outline: 1pt solid var(--phw-royal-blue);
}

.topScrollbarContainer {
    overflow-x: auto;
}

.topScrollbar {
    height: var(--xs-space);
}

.tableContainer {
    margin-top: 0;
}

table {
    border-spacing: 0;
    padding: 0;
    overflow-y: hidden;
}

th {
    width: var(--s-space);
    background-color: var(--lightest);
    border-bottom: 1pt solid var(--light);
    border-right: 1pt solid var(--light);
    padding: var(--xs-space);
}

.axisLabel {
    background-color: var(--lightest);
    align-items: center;
    border-bottom: none;
    padding: var(--xs-space);
}

.axisLabel h2 {
    margin: 0;
}

td {
    padding: 0;
    border: none;
}

table th:nth-child(1),
table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 0;
}

.heatmapCell {
    position: relative;
    padding: 0;
    border: none;
    height: 2.5rem;
    min-height: 2.5rem;
    background-clip: padding-box;
}

.evidenceCountContainer {
    position: absolute;
    inset: 0;
    display: block;
}

.evidencePopupOpenButton {
    appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    font-size: var(--body-text-size);
    font-weight: var(--body-text-weight);
    color: var(--body-text-colour);
    display: block;
    width: 100%;
    height: 100%;
    min-height: 2.5rem;
    outline: 0.5pt solid var(--light);
    border: 0;
    border-radius: 0;
    background-color: white;
    padding: 0;
    margin: 0;
}

.evidencePopupOpenButton:hover {
    filter: brightness(95%);
    transition: filter 0.2s ease-in-out;
}

.evidencePopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    overflow: auto;
    box-sizing: border-box;
    padding: 0 var(--s-space);
}

.evidencePopup.show {
    display: block;
}

.evidencePopupInner {
    position: relative;
    margin: 5vh auto;
    left: 0;
    right: 0;
    background-color: white;
    border: 1pt solid var(--phw-royal-blue-40);
    border-radius: var(--small-border-radius);
    padding: var(--s-space);
    min-width: 256pt;
    max-width: 512pt;
    width: 90%;
    pointer-events: auto;
}

.evidencePopupHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.evidencePopupContent {
    max-height: 60vh;
    overflow-y: auto;
}

.evidencePopupCloseButton {
    color: white;
    padding: var(--xs-space);
    margin: 0;
    border-radius: var(--small-border-radius);
    font-size: var(--body-text-size);
    font-weight: var(--body-text-weight);
}

.evidencePopupCloseButton:hover {
    color: var(--phw-royal-blue);
}

.evidencePopupList {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.evidencePopupListItem {
    display: table-row;
}

.evidencePopupListItemLink {
    display: table-cell;
    padding: var(--xs-space);
    color: var(--body-text-colour);
    text-decoration: none;
    border-bottom: 1pt solid var(--phw-royal-blue-40);
    cursor: pointer;
}

.evidencePopupListItemLink:hover {
    filter: brightness(15%);
}