.browse-navigation {
    font-size: 0.85em;
    margin-bottom: 0px;
    display: inline-block;
    vertical-align: middle;
    float: right;
    padding: 10px 5px;
}

ul.browse-navigation li {
    list-style: none;
    float: left;
}

ul.browse-navigation li::after {
    content: "|";
    display: inline-block;
    padding: 0px 3px;
}

.version-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
    margin-bottom: 18px;
    }

.version-table tr:first-child td {
    font-weight: bold;
    }

.version-table td { 
    border:1px solid #ccc; 
    font-size: 0.9em;
    }

.version-table td:first-child { 
    font-weight: bold;
    width: 162px !important;
    }

ul.browse-navigation li:first-child a { }
ul.browse-navigation li:first-child a:hover { text-decoration:underline; }
ul.browse-navigation li:last-child::after {
    content: "";
    }

.browse-elastic-results th {
    background: var(--cdi-dark-blue, #566b84);;
    font-family: "Open Sans", arial, helvetica, sans-serif;
    font-weight: normal;
    color: #fff;
    text-align: left;
    padding: 5px;
}

#content .version-table td:first-child { background:var(--cdi-dark-blue, #566b84);; color:#fff; }
#content header { position: unset;}

.ol-overviewmap { right:10px !important; bottom:10px !important; }

.navigation-bar    { float:right; }

.browse-elastic-results tr { border-bottom:1px solid #fff; }

#content .detail-text                    {
    padding: 1rem;
    margin-bottom: 0;
}

.results h3 { 
    margin-bottom: 0px;
    display: inline-block;
    padding: 10px 5px;
    padding-left:13px;
    color:var(--cdi-dark-blue, #566b84);;
    text-transform:uppercase;
    font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
}

.browse-elastic-results {
    width:100%;
    border-collapse:separate;
    position: relative;
    display: block;
    height: 100%;
    border-collapse: collapse;
    padding-top: 0px;
    margin-top: 0px;
    border-top: 1px solid #ccc;
}

div.detail-btns { 
    display: flex;
    justify-content: flex-end;
    gap: 10px;

}

div.detail-btns .open-in-other-tab-btn {
    background-color: var(--cdi-dark-blue, #566b84);;
    color:#fff; 
    padding:5px 10px; 
    font-weight:bold;
    cursor:pointer; 
    transition: background-color 0.3s ease 0s;
    display: inline-flex;
    align-items: center; /* vertical centering */
    gap: 0.3em; /* space between text and pseudo */
}

div.detail-btns .open-in-other-tab-btn:hover {
    background-color: var(--cdi-light-blue, #01bbf4);
}

div.detail-btns .open-in-other-tab-btn:after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain ;
    background-position: center;;
}

div.detail-btns .open-in-other-tab-btn.xml:after {
    background-image: url(../grfx/xml-icon.png);
}
div.detail-btns .open-in-other-tab-btn.html:after {
    background-image: url(../grfx/svg/arrow-up-right-from-square-solid-white.svg);
}


.table-gml-objects, .table-dq-objects {
    width:100%;
    display:table;
}

#content .table-dq-objects td { width:42%; padding:5px; }
#content .table-dq-objects td:nth-child(2) { width:15%; }

.browse-elastic-results td { padding:3px 0px; padding-left:15px; padding-right:15px; vertical-align: top; }

.browse-elastic-results td:first-child { background:#f1f1f1; }

.browse-elastic-results td ul {list-style:none;}
.version-table td { padding:10px; }


.browse-elastic-results td.sub-header { 
    background: var(--cdi-light-blue, #01bbf4);
    color:#fff;
    font-family: "Open Sans", helvetica, sans-serif;
    font-weight: bold;
    text-transform:uppercase;
    padding-left:15px;
    width: 28%;
}

.browse-elastic-results td #map.small-map {
    position: relative !important;
    border-left: 0px !important;
    border-top: 0px !important;

    /* min-height: 340px; */
    width: 100%;
    aspect-ratio: 2 / 1;
    max-height: 500px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    background-color: #8cbff2; /* Ocean color */

}


.browse-elastic-results td #map.small-map ul.mapcontrols {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    top: 0;
    left: 0;
    z-index: 2;
    margin: 0;
    padding: 0.5rem;
}

.browse-elastic-results td #map.small-map ul.mapcontrols li {
    border-radius:5px;
    margin: 0;
    background-color: var(--cdi-dark-blue, #566b84);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    transition: background-color 0.3s ease 0s;
}

.browse-elastic-results td #map.small-map ul.mapcontrols li:hover {
    background-color: var(--cdi-light-blue, #01bbf4);
}
.browse-elastic-results td #map.small-map .ol-overviewmap:not(.ol-collapsed) {
    margin-bottom: 3rem;
    margin-right: 0.5rem;
    background-color: var(--cdi-dark-blue-transparent);
}


.ol-custom-overviewmap .ol-overviewmap-map {
	border: none;
	width: 150px !important;
	height: 150px !important;
}

#map .controls {
    position: absolute;
    background: transparent;
    left: 10px;
    z-index: 2;
    opacity: 0.8;
    top: 10px;
    padding: 0px 1px;
    right:auto;
}

#map .controls li {
    border-color: #fff;
    background-color: var(--cdi-dark-blue, #566b84);;
    opacity: 0.8;
    height: 40px;
    margin-bottom: 0px;
    border-bottom: 0px;
}

#map .controls li:last-child { border-bottom:1px solid #fff; }

#map .controls li:hover { opacity:0.6;} 

.warning { font-weight: bold; color: #f00; }


@media only screen and (max-width: 768px) {

	.ol-custom-overviewmap .ol-overviewmap-map {
		width: 100px !important;
		height: 100px !important;
    }
    
    .browse-elastic-results { height: calc(100vh - 250px); }

    ul.footer-btns { position:relative; bottom:0px;}

    #content .version-table td {
        width: 100% !important;
        border: none;
        border-bottom: 1px solid #ccc;
    }

    .version-table { margin-top:10px; }

    .table-dq-objects th,  #content .table-dq-objects td, #content .table-dq-objects td:first-child, #content .table-dq-objects td:nth-child(2) { display:inline-block; width:auto; }

}

@media only screen and (max-width: 480px) {

    .browse-elastic-results td { word-break:break-all; }
    #map .controls li          { height:20px; }

    .browse-navigation {
        padding: 10px 15px;
    }

}


/* print */
@media print {

	@page {
		size: A4 portrait;
		max-height:100%;
		max-width:100%;
		margin: auto 0.8cm;
		}

    body						{ background: #fff; }
    
    /* display none */
    .navigation-bar,
    ul.footer-btns {
        display: none; 
    }

    .browse-elastic-results {
        width:100%;
        border-collapse:separate;
        overflow-y: scroll;
        position: relative;
        display: block;
        height: auto;
        border-collapse: collapse;
        padding-top: 0px;
        margin-top: 0px;
        border-top: 1px solid #ccc;
        border: 0px !important;
    }
    
    .browse-elastic-results td  { padding:3px 0px; padding-left:15px; padding-right:0px; }    
    .browse-elastic-results td a { color: #00f; }
    .browse-elastic-results tr td:first-child { padding-left: 0px; }

    .browse-elastic-results td.sub-header { 
        background: transparent; 
        border-top: 1px solid #000;
        border-bottom: 1px solid #000;
        color:#000;
        font-family: "Open Sans", helvetica, sans-serif;
        text-transform:uppercase;
        padding-left:0px;
        width: 28%;
    }

    .results h3 { 
        margin-bottom: 18px;
        padding: 0px 0px;
        padding-left:0px;
        color:#000;
        text-transform:uppercase;
        font-family: "Open Sans",Helvetica,Arial,sans-serif;
    }

    .version-table {
        border-collapse: collapse;
        border: 1px solid #ccc;
    }
    .version-table td           { padding: 5px; }
    .version-table tr td:first-child { padding-left: 5px; }

    .table-gml-objects {
        border-collapse: collapse;
        border: 1px solid #ccc;    
    }

    .table-gml-objects th,    
    .table-gml-objects td {
        border:1px solid #ccc; 
        padding: 5px;
    }

    .table-gml-objects tr td:first-child { padding-left: 5px; }

}    