﻿@media (min-height: 1200px) {
    #bsddSearchResultItems, #bsddSelectedItems {
        max-height: 70vh;
    }
}
@media (min-height: 700px) {
    #bsddSearchResultItems, #bsddSelectedItems {
        max-height: 50vh;
    }
}
#specifications .list-group-item,
#customPropertyTypeHintList .list-group-item,
#customPropertyEnumHintList .list-group-item,
#customPropertyDatatypeHintList .list-group-item,
#customPropertyUnitHintList .list-group-item {
    cursor: pointer;
    padding: 4px 10px;
    transition: background 0.3s ease;
}

html[data-bs-theme="light"] #specifications .list-group-item,
html[data-bs-theme="light"] #customPropertyTypeHintList .list-group-item,
html[data-bs-theme="light"] #customPropertyEnumHintList .list-group-item,
html[data-bs-theme="light"] #customPropertyDatatypeHintList .list-group-item,
html[data-bs-theme="light"] #customPropertyUnitHintList .list-group-item {
    background: #eeeeee
}

    html[data-bs-theme="light"] #specifications .list-group-item:hover,
    html[data-bs-theme="light"] #customPropertyTypeHintList .list-group-item:hover,
    html[data-bs-theme="light"] #customPropertyEnumHintList .list-group-item:hover,
    html[data-bs-theme="light"] #customPropertyDatatypeHintList .list-group-item:hover,
    html[data-bs-theme="light"] #customPropertyUnitHintList .list-group-item:hover {
        background: #b8b5d4;
    }

    html[data-bs-theme="light"] #specifications .list-group-item.active,
    html[data-bs-theme="light"] #customPropertyTypeHintList .list-group-item:active,
    html[data-bs-theme="light"] #customPropertyEnumHintList .list-group-item:active,
    html[data-bs-theme="light"] #customPropertyDatatypeHintList .list-group-item:active,
    html[data-bs-theme="light"] #customPropertyUnitHintList .list-group-item:active {
        background: #8f81d9;
        border: 1px solid transparent;
        border-top: none !important;
        color: black;
    }

html[data-bs-theme="dark"] #specifications .list-group-item,
html[data-bs-theme="dark"] #customPropertyTypeHintList .list-group-item,
html[data-bs-theme="dark"] #customPropertyEnumHintList .list-group-item,
html[data-bs-theme="dark"] #customPropertyDatatypeHintList .list-group-item,
html[data-bs-theme="dark"] #customPropertyUnitHintList .list-group-item {
    background: #2e3237;
}

    html[data-bs-theme="dark"] #specifications .list-group-item:hover,
    html[data-bs-theme="dark"] #customPropertyTypeHintList .list-group-item:hover,
    html[data-bs-theme="dark"] #customPropertyEnumHintList .list-group-item:hover,
    html[data-bs-theme="dark"] #customPropertyDatatypeHintList .list-group-item:hover,
    html[data-bs-theme="dark"] #customPropertyUnitHintList .list-group-item:hover {
        background: #54294d;
    }

    html[data-bs-theme="dark"] #specifications .list-group-item.active,
    html[data-bs-theme="dark"] #customPropertyTypeHintList .list-group-item:active,
    html[data-bs-theme="dark"] #customPropertyEnumHintList .list-group-item:active,
    html[data-bs-theme="dark"] #customPropertyDatatypeHintList .list-group-item:active,
    html[data-bs-theme="dark"] #customPropertyUnitHintList .list-group-item:active {
        background: #752967;
        border: 1px solid transparent;
        border-top: none !important;
        color: #dee2e6;
    }

.no-results {
    color: #ca464c;
}

div[id^="specificationSection_"] {
    position:relative;
}

div[id^="newFacetOptions_"] {
    position: absolute;
    z-index: 99;
}

.list-group-item-invisible {
    pointer-events: none;
    visibility: hidden;
}

.list-group-item-bsdd {
    padding: 4px !important;
}

.list-group-item-bsdd img {
    width: 22px !important;
    height: 22px !important;
}

div[id^="newFacetOptionsBody_"] a {
    position: relative;
    border: none;
    border-radius: 12px !important;
    width: 100%;
}

div[id^="newFacetOptionsBody_"] {
    border-radius: 12px;
    margin-top: 6px;
    border: 1px solid;
}

html[data-bs-theme="light"] div[id^="newFacetOptionsBody_"] {
    background-color: #eeeeee;
}

html[data-bs-theme="dark"] div[id^="newFacetOptionsBody_"] {
    background: #2e3237;
}

.attribute-hint-list,
.entity-hint-list,
.entityPType-hint-list,
.relation-entity-hint-list,
.relation-entityPType-hint-list,
.property-set-hint-list,
.property-hint-list,
.datatype-hint-list,
#customPropertyTypeHintList,
#customPropertyEnumHintList,
#customPropertyDatatypeHintList,
#customPropertyUnitHintList {
    margin-top: 8px;
    z-index: 3;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

html[data-bs-theme="light"] .matching-text {
    color: #6857c6;
}

html[data-bs-theme="dark"] .matching-text {
    color: #d041b8;
}

#xmlContainer {
    border: 1px solid;
    border-radius: 12px;
    padding: 10px 10px;
    flex: 1;
}

#xmlCodeContainer {
    display: flex;
    flex-direction: column;
}

#idsNavigationSidebar:not(.collapsed) ~ #idsMainSection #xmlContainer {
    max-width: calc(100vw - 300px);
}

html[data-bs-theme="light"] #xmlLineCountContainer {
    background: #e6e6e6;
}

html[data-bs-theme="dark"] #xmlLineCountContainer {
    background: #121416;
}

html[data-bs-theme="light"] .xmlStriped {
    background: #f0f0f0;
}

html[data-bs-theme="dark"] .xmlStriped {
    background: #1d2123;
}

@-moz-document url-prefix() {
    #bsddSelectedItems, #bsddSearchResultItems {
        padding-right: 12px;
    }
}

.firefox-padding-bsdd {
    padding-right: 0.5rem !important
}

#bsddSelectedItems {
    overflow-y: auto;
}

#bsddSearchResultItems {
    overflow-x: hidden;
    overflow-y: auto;
}

#bsddSearchResults {
    position: relative;
}

#bsddSelectedItems {
    transition: all 0.3s ease;
}

#bsddSelectedItemsBlock:not(:has(#bsddSelectedItems.d-none)):has(div.justify-content-between) {
    width: 50%;
    padding-left: 10px;
}

nav[aria-label="pagination"] .page-link {
    cursor: pointer;
}

html[data-bs-theme="dark"] nav[aria-label="pagination"] .page-link {
    color: #dee2e6;
    border-color: #ad318e;
    background: #332630;
}

html[data-bs-theme="dark"] nav[aria-label="pagination"] .page-item.disabled .page-link {
    background: #2a2f34!important;
}

html[data-bs-theme="dark"] nav[aria-label="pagination"] .page-item.active .page-link {
    background: #5a2f51;
}

html[data-bs-theme="light"] nav[aria-label="pagination"] .page-link {
    color: #212529;
    border-color: #9975ff;
    background: #e4daff;
}

html[data-bs-theme="light"] nav[aria-label="pagination"] .page-item.disabled .page-link {
    background: #dfdfdf;
}

html[data-bs-theme="light"] nav[aria-label="pagination"] .page-item.active .page-link {
    background: #cbb8ff;
}

.bsdd-element {
    transition: background 0.3s ease;
}

html[data-bs-theme="light"] .bsdd-element:hover {
    background: #c6c6c6;
}

html[data-bs-theme="dark"] .bsdd-element:hover {
    background: #3c454b;
}

#aiHelpList {
    margin-top: 12px;
}

    #aiHelpList li {
        padding: 0px;
        font-size: 14px;
        border: none;
    }

        #aiHelpList li div {
            padding: 3px;
            margin-bottom: 5px;
            padding-left: 5px;
            flex: 1;
        }

html[data-bs-theme="light"] #aiHelpList li {
    background-color: #cff4fc;
}

    html[data-bs-theme="light"] #aiHelpList li div {
        background-color: #b5e1fc;
    }

html[data-bs-theme="dark"] #aiHelpList li {
    background-color: #032830;
}

    html[data-bs-theme="dark"] #aiHelpList li div {
        background-color: #043d49;
    }

li.nav-item[role="presentation"] {
    padding-top: 0px !important;
}

#aiApplicabilityList li, #aiRequirementsList li {
    padding: 4px 10px;
    transition: background 0.3s ease;
}
    #aiApplicabilityList li span::before, #aiRequirementsList li span::before {
        content: "•";
        margin-right: 10px;
    }

html[data-bs-theme="light"] #aiApplicabilityList li:hover, html[data-bs-theme="light"] #aiRequirementsList li:hover {
    background: #b8b5d4;
}

html[data-bs-theme="dark"] #aiApplicabilityList li:hover, html[data-bs-theme="dark"] #aiRequirementsList li:hover {
    background: #54294d;
}

html[data-bs-theme="light"] .accordion-button:not(.collapsed) {
    background: #e7deff;
    color: #5349b2;
}

html[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background: #332935;
    color: #d12eb7;
}

#customPropertySetsList, #customPropertySetPropertiesList {
    overflow-x: auto;
}

    #customPropertySetsList, #customPropertySetPropertiesList, #customPropertyDataContent {
        border: 1px solid;
        border-radius: 12px;
    }

        #customPropertySetsList, #customPropertySetPropertiesList {
            display: flex;
            flex-direction: column;
            max-height: 35vh;
            min-height: 15vh;
        }

#customPropertySetsListContent, #customPropertySetPropertiesListContent, #customPropertyDataContent {
    padding: 10px;
}

    #customPropertySetsListContent, #customPropertySetPropertiesListContent {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

#customPropertyDataContent{
}

#customPropertySetsListButtonsPanel, #customPropertySetPropertiesListButtonPanel {
    padding: 4px 10px;
}

html[data-bs-theme="light"] #xmlContainer,
html[data-bs-theme="light"] div[id^="newFacetOptionsBody_"] {
    border-color: #dee2e6;
}

html[data-bs-theme="light"] #customPropertySetsList,
html[data-bs-theme="light"] #customPropertySetPropertiesList,
html[data-bs-theme="light"] #customPropertyDataContent,
html[data-bs-theme="light"] .custom-property-set-name,
html[data-bs-theme="light"] .custom-property-set-property-count,
html[data-bs-theme="light"] .custom-property-name,
html[data-bs-theme="light"] .custom-property-value-type,
html[data-bs-theme="light"] .custom-property-db-datatype,
html[data-bs-theme="light"] .custom-property-unit,
html[data-bs-theme="light"] .custom-property-unit-symbol {
    border-color: #b2b2b2;
}

html[data-bs-theme="dark"] #customPropertySetsList,
html[data-bs-theme="dark"] #customPropertySetPropertiesList,
html[data-bs-theme="dark"] #customPropertyDataContent,
html[data-bs-theme="dark"] #xmlContainer,
html[data-bs-theme="dark"] div[id^="newFacetOptionsBody_"],
html[data-bs-theme="dark"] .custom-property-set-name,
html[data-bs-theme="dark"] .custom-property-set-property-count,
html[data-bs-theme="dark"] .custom-property-name,
html[data-bs-theme="dark"] .custom-property-value-type,
html[data-bs-theme="dark"] .custom-property-db-datatype,
html[data-bs-theme="dark"] .custom-property-unit,
html[data-bs-theme="dark"] .custom-property-unit-symbol {
    border-color: #495057;
}
.custom-property-set-name,
.custom-property-set-property-count,
.custom-property-name,
.custom-property-value-type,
.custom-property-db-datatype,
.custom-property-unit,
.custom-property-unit-symbol,
.custom-property-actions {
    padding: 2px 10px;
    display: flex;
    align-items: center;
}
.custom-property-set-name {
    width: 300px;
}

    .custom-property-set-name span {
        display: inline-block;
        width: 280px;
    }

.custom-property-set-property-count {
    width: 120px;
}

    .custom-property-set-property-count span {
        display: inline-block;
        width: 100px;
    }

.custom-property-value-type,
.custom-property-name {
    width: 280px
}

    .custom-property-value-type span,
    .custom-property-name span {
        display: inline-block;
        width: 260px;
    }

.custom-property-unit-symbol {
    width: 180px;
}

    .custom-property-unit-symbol span {
        display: inline-block;
        width: 160px;
    }

.custom-property-unit {
    width: 270px;
}

    .custom-property-unit span {
        width: 250px;
    }

.custom-property-db-datatype {
    width: 170px;
}

    .custom-property-db-datatype span {
        width: 150px;
    }

.custom-property-set-name,
.custom-property-name {
    border-left: 1px solid;
    margin-left: 10px;
}

    .custom-property-name:not(.fw-bold),
    .custom-property-set-name:not(.fw-bold) {
        border-start-start-radius: 12px;
        border-end-start-radius: 12px;
        border: 1px solid;
        border-right: none !important;
    }

.custom-property-value-type:not(.fw-bold),
.custom-property-db-datatype:not(.fw-bold),
.custom-property-unit:not(.fw-bold) {
    border: 1px solid;
    border-right: none !important;
}

.custom-property-set-property-count:not(.fw-bold),
.custom-property-unit-symbol:not(.fw-bold) {
    border: 1px solid;
    border-start-end-radius: 12px;
    border-end-end-radius: 12px;
}

.custom-property-definition[disabled] {
    border-color:transparent !important;
}

html[data-bs-theme="light"] .custom-property-definition[disabled] {
    color: #a2a2a2
}

html[data-bs-theme="dark"] .custom-property-definition[disabled] {
    color: #6b7987
}