.catalog-page {
    width: 100%;
}

.catalog-layout {
    --catalog-detail-width: 34%;
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

.catalog-primary-pane {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 1rem;
}

.catalog-splitter {
    flex: 0 0 12px;
    align-self: stretch;
    cursor: col-resize;
    position: relative;
    outline: none;
}

.catalog-splitter::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: #d0d7e2;
    border-radius: 999px;
}

.catalog-splitter:hover::before,
.catalog-splitter:focus-visible::before {
    background: #2149a1;
}

.catalog-detail-pane {
    flex: 0 0 var(--catalog-detail-width);
    max-width: var(--catalog-detail-width);
    min-width: 320px;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 4rem);
}

.catalog-layout[data-catalog-mode="species"] #map_container {
    display: none;
}

.catalog-detail-shell {
    display: flex;
    flex-direction: column;
    min-height: 24rem;
    max-height: calc(100vh - 4rem);
    border: 1px solid #d9dde4;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.catalog-detail-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e3e6eb;
    background: #f8fafc;
}

.catalog-detail-toolbar #catalog_detail_collapse {
    display: none;
}

.catalog-layout.detail-expanded .catalog-primary-pane,
.catalog-layout.detail-expanded .catalog-splitter {
    display: none;
}

.catalog-layout.detail-expanded .catalog-detail-pane {
    flex-basis: 100%;
    max-width: 100%;
    width: 100%;
    position: relative;
    top: 0;
    max-height: none;
}

.catalog-layout.detail-expanded .catalog-detail-shell {
    max-height: none;
}

.catalog-layout.detail-expanded .catalog-detail-toolbar #catalog_detail_collapse {
    display: inline-flex;
}

.catalog-detail-content {
    overflow: auto;
    padding: 1rem;
    min-width: 0;
    background: #fff;
}

.catalog-detail-empty {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 20rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #5f6877;
}

.catalog-detail-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    width: 100%;
}

.catalog-detail-heading {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.catalog-detail-heading h3,
.catalog-detail-empty h3,
.catalog-meta-section h4,
.catalog-image-card h4 {
    margin: 0;
}

.catalog-bbox-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.catalog-image-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.catalog-image-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    align-self: flex-start;
    text-decoration: none;
}

.catalog-image-surface {
    border: 1px solid #d9dde4;
    border-radius: 8px;
    background: #fff;
    padding: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 14rem;
}

.catalog-image-surface img {
    display: block;
    max-width: 100%;
    max-height: 28rem;
    object-fit: contain;
}

.catalog-original-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.catalog-original-overlay {
    position: absolute;
    border: 2px solid #dc3545;
    pointer-events: none;
}

.catalog-original-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    min-width: 0;
    width: 100%;
}

.catalog-viewer-panel {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.catalog-viewer-shell {
    position: relative;
    border: 1px solid #d9dde4;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
    min-width: 0;
    width: 100%;
}

.catalog-media-viewer {
    display: block;
    width: 100%;
    min-height: 28rem;
    height: min(58vh, 42rem);
    min-width: 0;
}

.catalog-bbox-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex: 1 1 auto;
    max-width: none;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    width: 100%;
}

.catalog-bbox-tile {
    display: flex;
    gap: 0.75rem;
    border: 1px solid #d9dde4;
    border-radius: 8px;
    background: #fff;
    padding: 0.5rem;
    text-align: left;
    cursor: pointer;
    flex: 1 1 14rem;
    max-width: calc(50% - 0.5rem);
    width: 100%;
}

.catalog-bbox-tile.selected {
    border-color: #2149a1;
    box-shadow: 0 0 0 1px rgba(33, 73, 161, 0.18);
}

.catalog-species-bbox-tile {
    flex-direction: column;
    align-items: stretch;
    cursor: default;
}

.catalog-species-bbox-main {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    min-width: 0;
}

.catalog-species-bbox-actions {
    display: flex;
    align-items: center;
}

.catalog-bbox-thumb {
    flex: 0 0 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    border-radius: 6px;
    overflow: hidden;
}

.catalog-bbox-thumb img {
    display: block;
    max-width: 100%;
    max-height: 5rem;
    object-fit: contain;
}

.catalog-bbox-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.catalog-bbox-copy span {
    color: #4b5563;
    font-size: 0.92rem;
    word-break: break-word;
}

.catalog-bbox-copy .catalog-bbox-score {
    color: #1f2937;
    font-weight: 600;
}

.catalog-original-detail.detail-bboxes-side .catalog-original-stage {
    flex-direction: row;
    align-items: flex-start;
}

.catalog-original-detail.detail-bboxes-side .catalog-bbox-strip {
    flex: 0 0 18rem;
    max-width: 18rem;
    max-height: min(58vh, 42rem);
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: auto;
    padding-right: 0.25rem;
    width: auto;
}

.catalog-original-detail.detail-bboxes-side .catalog-bbox-tile {
    flex: 0 0 auto;
    max-width: none;
}

.catalog-bbox-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 8rem;
    border: 1px dashed #c8d0db;
    border-radius: 8px;
    color: #64748b;
}

.catalog-detail-meta {
    display: grid;
    gap: 1rem;
}

.catalog-meta-section {
    border: 1px solid #e3e6eb;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    background: #fff;
}

.catalog-info-groups,
.catalog-card-groups {
    display: grid;
    gap: 0.85rem;
}

.catalog-info-groups {
    margin-top: 0.75rem;
}

.catalog-info-group {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.85rem;
}

.catalog-info-group:first-child {
    border-top: none;
    padding-top: 0;
}

.catalog-info-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
    font-weight: 600;
}

.catalog-info-heading i {
    color: #2149a1;
    font-size: 1rem;
}

.catalog-meta-grid,
.catalog-info-grid {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.6rem;
}

.catalog-meta-row,
.catalog-info-row {
    display: grid;
    grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.catalog-meta-label,
.catalog-info-label {
    color: #475569;
    font-weight: 600;
}

.catalog-meta-value,
.catalog-info-value {
    color: #0f172a;
    word-break: break-word;
}

.catalog-info-group--muted .catalog-info-heading,
.catalog-info-group--muted .catalog-info-label,
.catalog-info-group--muted .catalog-info-value {
    color: #6b7280;
}

.catalog-info-group--muted .catalog-info-heading i {
    color: #94a3b8;
}

.catalog-card-groups {
    gap: 0.75rem;
}

.catalog-card-groups .catalog-info-group {
    padding-top: 0.65rem;
}

.catalog-card-groups .catalog-info-heading {
    font-size: 0.92rem;
}

.catalog-card-groups .catalog-info-grid {
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.catalog-card-groups .catalog-info-row {
    grid-template-columns: minmax(6.5rem, 8rem) minmax(0, 1fr);
    gap: 0.6rem;
}

.catalog-card-groups .catalog-info-label,
.catalog-card-groups .catalog-info-value {
    font-size: 0.88rem;
    line-height: 1.35;
}

.canvas-notification {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
}

.canvas-notification.hidden {
    display: none;
}

.catalog-resizing,
.catalog-resizing * {
    cursor: col-resize !important;
}

.search-container {
    padding-bottom: 1%;
    border-bottom: 1px solid #afafaf;
    margin-bottom: 1.5rem;
}

.search-container.is-collapsed {
    padding-bottom: 0.25rem;
}

.search-container.is-collapsed #search_params {
    display: none;
}

.catalog-page-help {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.catalog-page-help .info-icon {
    z-index: 99;
    font-size: xx-large;
    color: #686868;
    width: min-content;
    height: min-content;
    cursor: pointer;
}

.catalog-page-help .info-box {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 1000;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    background-color: #e8e8e8;
    width: min(28rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    min-width: 16rem;
    height: max-content;
    flex-direction: column;
    row-gap: 0.5rem;
    padding: 0.85rem 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.catalog-page-help #usage_info_icon:hover ~ .info-box,
.catalog-page-help #usage_info_icon:focus ~ .info-box {
    display: flex;
}

.catalog-page-help .info-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.catalog-page-help .info-box li + li {
    margin-top: 0.35rem;
}

.split-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-right: 2%;
    gap: 1rem;
}

.catalog-search-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#search_params {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: start;
    column-gap: 3%;
    padding: 1%;
}

.sliders-container {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    column-gap: 4em;
    row-gap: 2em;
    flex-wrap: wrap;
    padding: 1%;
}

.input-grid-quadruple {
    display: grid;
    grid-column-gap: 45px;
    grid-template-columns: 12em auto auto auto;
    align-items: flex-start;
}

.slider {
    width: 300px;
}

.slider .noUi-handle-lower {
    right: 0;
}

.slider .noUi-handle-upper {
    right: -34px;
}

[disabled].slider {
    cursor: not-allowed;
    opacity: 0.5;
}

.slider-value {
    font-size: smaller;
    color: #5a5a5a;
    padding-top: 10px;
}

.slider-reset {
    border: none;
    background-color: transparent;
}

.slider-reset:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.catalog {
    margin-bottom: 7%;
}

.catalog-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 1%;
}

.catalog-header-bar,
.catalog-footer-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.catalog-results-summary {
    font-weight: 600;
    color: #334155;
}

.catalog-selection-actions,
.catalog-pagination,
.catalog-page-size {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.catalog-selection-count,
.catalog-page-indicator,
.catalog-page-size label {
    color: #475569;
    font-size: 0.95rem;
}

.catalog-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1.2fr));
    gap: 10px;
    padding: 1%;
}

.catalog-layout[data-catalog-mode="species"] .catalog-body {
    grid-template-columns: minmax(0, 1fr);
}

#map_container {
    grid-row: 1 / 2;
    grid-column: 1 / span 2;
    min-height: 18rem;
    //align-self: start;
    //position: sticky;
    //top: 1rem;
    z-index: 20;
    background: #fff;
    border-radius: 15px;
}

#map {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 18rem;
}

.map-popup-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1990;
}

.map-popup-backdrop.is-open {
    display: block;
}

body.map-popup-active {
    overflow: hidden;
}

#map_container.map-popup-open {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(70vw, calc(100vw - 2rem));
    height: min(70vh, calc(100vh - 2rem));
    min-height: 0;
    transform: translate(-50%, -50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 3rem 0.75rem 0.75rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.35);
}

#map_container.map-popup-open #map {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}

#map_container .map-popup-close {
    display: none;
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 1001;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#map_container.map-popup-open .map-popup-close {
    display: inline-flex;
}

.ol-viewport {
    border-radius: 15px;
    width: 100%;
    height: 100%;
}

#map_highlight {
    position: absolute;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.map-device-popover {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.map-device-popover span {
    color: #4a5568;
    font-size: 0.85rem;
}

.card {
    border: 1px solid #999999;
    border-radius: 5px;
    padding: 8px;
    display: grid;
    grid-template-rows: 200px 1fr;
    width: 100%;
    cursor: pointer;
}

.catalog-species-table-wrapper {
    background-color: #fff;
    padding: 1rem;
    overflow-x: auto;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.catalog-species-table {
    width: 100%;
    margin-bottom: 0;
}

.catalog-species-table th,
.catalog-species-table td {
    vertical-align: top;
    word-break: break-word;
}

.catalog-species-table th {
    background: #f8fafc;
    white-space: nowrap;
}

.catalog-species-sort {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-align: left;
    cursor: pointer;
}

.catalog-species-sort-indicator {
    min-width: 0.75rem;
    color: #94a3b8;
    font-size: 0.8rem;
    text-align: right;
}

.catalog-species-sort.is-active .catalog-species-sort-indicator {
    color: #2149a1;
    font-weight: 600;
}

.catalog-species-row {
    cursor: pointer;
}

.catalog-species-row.selected > td {
    background-color: rgba(33, 73, 161, 0.08);
}

.catalog-species-table td.catalog-species-score-highlight,
.catalog-species-row.selected > td.catalog-species-score-highlight {
    background-color: #C0E5CD;
}

.catalog-species-name-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.catalog-species-gbif-link {
    display: inline-flex;
    align-items: center;
    color: #2149a1;
    text-decoration: none;
}

.catalog-species-gbif-link:hover,
.catalog-species-gbif-link:focus-visible {
    color: #16336f;
}

.catalog-species-detail-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.catalog-species-empty {
    width: 100%;
    padding: 1.5rem;
    border: 1px dashed #c8d0db;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    text-align: center;
}

.card.selected {
    border: 3px solid #2149a1;
    padding: 6px;
    box-shadow: 0 0 0 1px rgba(33, 73, 161, 0.12);
}

.card.bulk-selected {
    border: 3px solid #0f766e;
    padding: 6px;
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.card.highlight-hover {
    border: 3px solid #3399CC;
    padding: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.card.highlight-click {
    border: 3px solid #710000;
    padding: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.image-container {
    position: relative;
    display: inline-block;
}

.catalog-card-select {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 3;
    cursor: pointer;
}

.catalog-card-select input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.catalog-card-select span {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    border: 1px solid var(--laup-action-color);
    background: rgba(255, 255, 255, 0.94);
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.catalog-card-select input:checked + span {
    background: var(--laup-btn-confirm-bg);
    border-color: var(--laup-btn-confirm-border);
    color: var(--bs-white);
}

.image-container img {
    display: inline;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: scale-down;
}

.label-container {
    cursor: default;
    position: absolute;
    top: 1%;
    right: 1%;
    display: flex;
    flex-direction: column;
    row-gap: 2px;
    align-items: end;
}

.overlay-label {
    color: white;
    padding: 3px 5px;
    border-radius: 5px;
    font-size: 12px;
    text-align: end;
    width: max-content;
}

.overlay-label.type {
    background-color: rgba(59, 103, 214, 0.8);
}

.overlay-label.label {
    background-color: rgba(29, 129, 181, 0.8);
}

.overlay-link {
    position: absolute;
    top: 140px;
    right: 1%;
    opacity: 0.75;
}

.card-content {
    padding: 0.5rem;
    max-height: 100%;
}

.card-content-body {
    display: flex;
    flex-direction: column;
    justify-content: start;
    row-gap: 0.5rem;
}

.card-content-body > div {
    display: flex;
    flex-direction: column;
}

.catalog-track-summary {
    align-items: flex-start;
}

.catalog-track-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    color: #0f766e;
    font-weight: 600;
}

.catalog-footer {
    margin-top: 1rem;
}

.catalog-page-size select {
    min-width: 5.5rem;
}

.catalog-selection-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.catalog-selection-panel-section {
    border: 1px solid #e3e6eb;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    background: #ffffff;
}

.catalog-selection-panel-section h4 {
    margin: 0 0 0.75rem 0;
}

.catalog-selection-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.catalog-selection-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid #d9dde4;
    border-radius: 8px;
    background: #f8fafc;
}

.catalog-selection-stat-label {
    color: #475569;
    font-size: 0.9rem;
}

.catalog-selection-stats-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.catalog-selection-stats-list li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.catalog-selection-stats-name {
    font-weight: 600;
    color: #0f172a;
}

.catalog-selection-stats-meta,
.catalog-selection-empty {
    color: #475569;
    font-size: 0.92rem;
}

.catalog-selection-search {
    margin-bottom: 0.75rem;
}

.catalog-selection-search input {
    width: 100%;
}

.catalog-selection-label-list-container {
    max-height: 24rem;
    overflow-y: auto;
}

.catalog-selection-editor-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.catalog-selection-login p {
    margin-bottom: 0.75rem;
}

.catalog-selection-panel .search-info-icon {
    position: relative;
    display: flex;
    align-items: center;
    color: #475569;
    cursor: help;
}

.catalog-selection-panel .search-info-container {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    min-width: 16rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d9dde4;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
    z-index: 5;
}

.catalog-selection-panel .search-info-icon:hover + .search-info-container {
    display: block;
}

.catalog-selection-panel .label-list-container {
    overflow-y: auto;
}

.catalog-selection-panel .label-list {
    display: flex;
    flex-direction: column;
    row-gap: 0.5em;
    flex-shrink: 1;
}

.catalog-selection-panel .label-item {
    display: flex;
    flex-direction: row;
    justify-content: left;
}

.catalog-selection-panel .label-item-div {
    padding: 0.5em;
    color: white;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.catalog-selection-panel .label-item.no-animal {
    margin-bottom: 0.5em;
}

.catalog-selection-panel .label-item.no-animal .label-item-div {
    background-color: #c35a5a;
}

.catalog-selection-panel .label-item-div.reg {
    background-color: #021043;
}

.catalog-selection-panel .label-item-div.phyl_div {
    background-color: #041d7c;
}

.catalog-selection-panel .label-item-div.subphyl_div {
    background-color: #06299f;
}

.catalog-selection-panel .label-item-div.cl,
.catalog-selection-panel .label-item-div.infracl {
    background-color: #0939c1;
}

.catalog-selection-panel .label-item-div.ord {
    background-color: #1842bf;
}

.catalog-selection-panel .label-item-div.fam {
    background-color: #2950d5;
}

.catalog-selection-panel .label-item-div.gen {
    background-color: #3a61df;
}

.catalog-selection-panel .label-item-div.sp,
.catalog-selection-panel .label-item-div.subsp,
.catalog-selection-panel .label-item-div.sp_group {
    background-color: #5c7ce1;
}

.catalog-selection-panel .label-item-div.selected {
    background-color: #345330 !important;
}

.catalog-selection-panel .label-name-div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.catalog-selection-panel .label-name-div .minor-info {
    color: #dfdfdf;
}

.catalog-selection-panel .label-common-name-div {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.5em;
}

.catalog-selection-panel .label-common-name-div > span {
    font-size: small;
}

.catalog-selection-panel .label-select-div {
    border-radius: 0 5px 5px 0;
    background-color: #9d9d9d;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 0.25em 0 0.2em;
    color: white;
    font-size: 1.2em;
    min-width: 25px;
}

.catalog-selection-panel .gbif-logo {
    max-width: 18px;
    height: auto;
}

@media (max-width: 900px) {
    .catalog-selection-stats-grid {
        grid-template-columns: 1fr;
    }
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

#filters {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

.filters-container {
    padding: 1%;
}

#facet_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1em;
    row-gap: 1em;
    justify-content: flex-start;
    width: 100%;
}

#facet_container > div {
    display: flex;
    flex-direction: row;
    align-content: flex-start;
    flex-wrap: wrap;
    flex-grow: 1;
    column-gap: 0.5em;
}

.facet-title {
    display: flex;
    background: rgb(223, 223, 223);
    border: 1px solid #d6d6d6;
    font-size: 0.9em;
    margin-bottom: 0.6em;
    margin-top: 0.2em;
    padding-left: 0.2em;
}

.facet-list {
    padding-left: 0;
    column-count: 2;
    column-width: 12em;
    column-gap: 0.5em;
    list-style: none;
    column-fill: balance;
}

.nested-container {
    display: flex;
    flex-direction: column;
}

.nested-children {
    margin-bottom: 0.5rem;
}

.nested-container .collapse {
    padding-left: 0.5rem;
}

.nested-item .btn {
    color: #333333;
    padding: 0.2rem;
}

.facet {
    background: none;
    border: none;
    overflow: hidden;
    padding: 0 0.2em 0 1.2em;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.facet:hover {
    background-color: #ececec;
    padding: 0 0.2em 0 0.35em;
    position: relative;
    z-index: 99;
}

.facet:hover:before {
    color: #31C728;
    content: "\2714";
    width: 1em;
}

.disabled {
    background: none;
    border: none;
    opacity: 60%;
}

.disabled:hover {
    background: none;
}

.disabled:hover:before {
    content: none !important;
}

#used_facets_container {
    display: none;
    margin-bottom: 1.5em;
}

#used_facets {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1em;
}

.used-facet {
    display: flex;
    margin: 0 0 0.5em 0;
    cursor: pointer;
    font-size: 1em;
    line-height: 1.4em;
    height: min-content;
    border: none;
    background-color: #ececec;
}

.used-facet:hover:before {
    content: "\2717";
    color: #ff0000;
}

.used-facet:before {
    color: #31C728;
    content: "\2714";
}

.facet-overlay {
    max-height: 70%;
    background-color: rgb(255, 255, 255);
    border: 1px solid #d6d6d6;
    border-radius: 10px;
}

@media (max-width: 1280px) {
    .catalog-layout {
        flex-direction: column;
    }

    .catalog-primary-pane {
        width: 100%;
        padding-right: 0;
    }

    .catalog-splitter {
        display: none;
    }

    .catalog-detail-pane {
        position: relative;
        top: 0;
        flex-basis: auto;
        max-width: none;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .catalog-bbox-image-grid,
    .catalog-original-stage,
    .catalog-bbox-strip {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .catalog-species-table {
        min-width: 42rem;
    }

    .catalog-bbox-strip,
    .catalog-bbox-tile {
        max-width: none;
        width: 100%;
    }

    .catalog-meta-row,
    .catalog-info-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .input-grid-quadruple {
        grid-template-columns: 1fr;
        row-gap: 0.4rem;
    }

    .slider {
        width: min(100%, 300px);
    }
}
