html, body {
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: sans-serif;
    font-size: small;
}
#map-container {
    position: relative;
    height: calc(100% - 200px); /* Zorg dat de kaart de volledige hoogte van het scherm vult */
    overflow: hidden !important ;
}

#map {
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

                                                    /*complete attributen tabel*/
:root {
    --background-color: rgba(255, 255, 255, 0.9);
    --primary-color: #4CAF50;
    --secondary-color: #ddd;
    --hover-color: #f1f1f1;
    --font-family: Arial, sans-serif;
}
#attributes-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--background-color);
    z-index: 10;
    max-height: 80vh;
    min-height: 200px;
    height: 250px; /* Standaardhoogte */
    overflow-y: auto;
    overflow-x: auto;
    padding: 0px;
    display: none;
    border: 1px solid var(--secondary-color);
    box-sizing: border-box;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
div.dt-container div.dt-layout-row {
    margin: 0px!important;
}
/* Voeg een grip toe aan de bovenkant */
#attributes-resize-grip {
    margin-top: 0px;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px; /* Hoogte van de grip */
    cursor: row-resize; /* Maakt duidelijk dat dit resizable is */
    background-color: var(--secondary-color); /* Optioneel, voor visuele indicatie */
    z-index: 20; /* Zorg ervoor dat de grip altijd boven de container zit */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}
#attributes-container.show {
    display: block;
    overflow: auto;
}
#attribute-table {
    width: 100%;
    padding: 10px;
    border-collapse: collapse;
    font-family: var(--font-family);
    border: 1px solid var(--secondary-color);
    background-color: #f9f9f9;
    table-layout: auto;
    box-sizing: border-box;
}
.selected-row {
    background-color: hsla(118, 100%, 43%, 0.5) !important;
    color: rgb(0, 0, 0);
    font-weight: bold; /* Optioneel voor extra nadruk */
}
#attribute-table th, #attribute-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--secondary-color);
    border-right: 1px solid var(--secondary-color);
}
#attribute-table th {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: var(--primary-color);
    color: white;
    font-size: 16px;
}
#attribute-table td {
    font-size: 14px;
    white-space: normal;
}
#attribute-table tr:hover {
    background-color: var(--hover-color);
}
#attribute-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}
th.sorting:after {
    content: " ▼";
    color: rgba(146, 146, 146, 0.591);
    margin-left: 5px;
}
th.sorting_asc:after {
    content: " ▲";
    color: white;
}
th.sorting_desc:after {
    content: " ▼";
    color: white;
}
.hidden {
    display: none;
}
/* Stijl voor de dropdown-button om overeen te komen met de andere knoppen */
.dropdown-button {
    width: 165px;
    position: absolute; 
    top: 20px; 
    left: 500px; 
    background-color: rgba(255, 255, 255, 0.8) !important;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #ccc;
}
.dropdown-button:hover {
    background-color: rgba(200, 200, 200, 0.8);
}
/* Stijl voor het dropdown-menu */
.dropdown-menu {
    position: absolute; /* Houd het menu dicht bij de knop */
    top: 40px; /* Onder de knop */
    left: 500px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--secondary-color);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px;
    display: none; /* Standaard verborgen */
    z-index: 1000;
    width: 140px; /* Zorg dat het menu niet te breed is */
}
/* Toon het menu wanneer de class 'show' wordt toegevoegd */
.dropdown-menu.show {
    display: block;
}
/* Stijl voor individuele items in het menu */
.dropdown-item {
    margin: 5px 0;
    display: flex;
    align-items: center;
}
.dropdown-item label {
    margin-left: 5px;
    cursor: pointer;
}
.wegcode-filter {
    top: 50px;
    position: absolute;
    width: 525px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    left: 140px;
}
#attributes-container h3 {
    display: block;
    font-size: 1.17em;
    margin-block-start: 18.5px;
    margin-block-end: 5px;
    margin-inline-start: 5px;
    margin-inline-end: 7.5px;
    font-weight: bold;
    unicode-bidi: isolate;
    padding: 5.5px;
    background-color: var(--secondary-color);
    border: 2px solid #000000;
    border-radius: 5.5px;
}
/* Stijl voor de checkbox */
.ol-selectable {
	z-index: 3;
}
#dropdown-container {
    position: absolute;
    top: 100px;
    margin: 10px; 
    text-align: center; 
    background-color: rgba(255, 255, 255, .5);
}
#layer-dropdown {
    width: 300px; 
    text-align: center;
    padding: 5px 10px; 
    font-size: 16px; 
    font-weight: bolder;
    border: 1px solid #ccc; 
    border-radius: 4px; 
    background-color: #dddddd4d;
    color: #333; 
    box-shadow: 0 6px 10px 0px rgba(0, 0, 0, 0.5);
}
#layer-dropdown:focus {
    outline: none; 
    border-color: #ccc;
    box-shadow: 0 6px 10px 0px rgba(0, 0, 0, 0.5);
}
.layer-selector option {
    padding: 5px; 
    font-size: 14px;
    background-color: #ffffff;
    color: #333;
}
.layer-selector option:hover {
    background-color: #f0f0f0; 
}
#closeAttributesTable {
    padding-left: 5px;
    position: absolute;
    top: 10px;
    right: 0px;
    background: none;
    border: none;
    font-size: 20px;
    color: #444;
    cursor: pointer;
    z-index: 20;
    background-color: white;
}

#closeAttributesTable:hover {
    color: #ff0000; /* Maak het kruisje rood bij hover */
    background-color:#ffffff39 ;
    scale: 1.5;
}

#closeAttributesTable:focus {
    outline: none; /* Verwijder de standaard focus outline */
}
#button-container {
    margin-top: -10px;
    position: sticky; 
    display: flex;
    z-index: 12;
    margin-bottom: 25px;
}

                                /* einde attributen tabel*/
#top-left-container {
    position: absolute;
    left: 0;
    top: 0;
}
#bottom-left-container {
    position: absolute;
    left: 0;
    bottom: 0;
}
#top-right-container {
    position: absolute;
    right: 0;
    top: 0;
    display: contents;
}
#bottom-right-container {
    position: absolute;
    right: 0;
    bottom: 0;
}

.top-left-title, .top-left-abstract  {
    position: relative;
    float: left;
    margin-top: 8px;
    margin-left: 8px;
}
.bottom-left-title, .bottom-left-abstract  {
    position: relative;
    float: left;
    margin-bottom: 8px;
    margin-left: 8px;
}
.top-right-title, .top-right-abstract  {
    position: relative;
    float: right;
    margin-top: 8px;
    margin-right: 8px;
}
.bottom-right-title, .bottom-right-abstract  {
    position: relative;
    float: right;
    margin-bottom: 8px;
    margin-right: 8px;
}
.ol-control.custom-button {
    position: absolute;
    top: 90px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.8) !important;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #ccc;
}
.ol-control.custom-button:hover {
    background-color: rgba(200, 200, 200, 0.8);
}

.ol-zoom {
	position: fixed;
    float: left;
    top: unset;
    left: unset;
    margin-top: 14px;
    margin-left: 8px;
}

.ol-attribution {
	display: block;
}
.bottom-attribution {
	float: right;
	position: relative;
	display: flex;
	}
.bottom-attribution ul {
	padding: unset;
	margin: unset;
	display: flex;
	list-style: none;
	} 	
.bottom-attribution > li {
	padding-left: 8px !important;
	list-style: none;	
	}

div.dt-container div.dt-layout-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: -10px;
}




/* Alle button styling */

#resetTableHeight {
    position: absolute;
    top: 20px;
    right: 25px;
    background-color: rgba(255, 255, 255, 0.8) !important;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #ccc;
}
.ol-control.custom-button1{
    width: 220px;
    position: absolute;
    top: 20px;
    left: 140px;
    background-color: rgba(255, 255, 255, 0.8) !important;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #ccc;
}
.ol-control.custom-button1:hover {
    background-color: rgba(200, 200, 200, 0.8);
}

.ol-control.custom-button2{
    width: 140px;
    position: absolute;
    top: 20px;
    left: 360px;
    background-color: rgba(255, 255, 255, 0.8) !important;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #ccc;
}
.ol-control.custom-button2:hover {
    background-color: rgba(200, 200, 200, 0.8);
}
.bottom-attribution button {
	display: none;
	}
