/* Custom CSS voor Waterscouting Beheer & Frontend */

/* ------ FRONTEND ------- */

nav.navbar {
    position: sticky !important;
    top: 0;
    z-index: 1030; /* Zorgt dat de navbar altijd boven alle content zweeft */
}

/* Zorgt dat anker-links niet achter de sticky header vallen */
html {
    scroll-padding-top: 70px; 
}

/* Zorg dat de navbar en dropdown-menu's altijd boven de sticky tabelkop vallen */
.navbar {
    position: relative;
    z-index: 1030; /* Of hoger dan de sticky-top van de tabel */
}

.navbar .dropdown-menu {
    z-index: 1035;
}

/* Styling voor de 'Go Top' knop */
#btn-back-to-top {
	position: fixed;
	bottom: 25px;
	right: 25px;
	display: none;
	z-index: 1000;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	box-shadow: 0px 4px 10px rgba(0,0,0,0.25);
}

/* Blauwe tooltip voor maritiem thema */
.custom-tooltip-blue .tooltip-inner {
	background-color: #0d6efd;
	color: #ffffff;
	font-weight: 500;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.custom-tooltip-blue .tooltip-arrow::before {
	border-top-color: #0d6efd !important;
	border-bottom-color: #0d6efd !important;
}

/* Nautische blauwe tabelkop */
.table-header-nautic {
    background-color: #0d6efd !important; /* Bootstrap primair blauw */
    color: #ffffff !important;
}

.table-header-nautic th {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border-bottom: 2px solid #0b5ed7;
}

/* Statestieken pagina */
/* Nautische Popover voor Bouwer details */
.popover-nautical {
    border: 1px solid #0b5ed7 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    min-width: 220px;
}

.popover-nautical .popover-header {
    background-color: #0b5ed7 !important; /* Nautisch blauw */
    color: #ffffff !important;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 0;
    padding: 8px 12px;
}

.popover-nautical .popover-body {
    background-color: #f8f9fa !important; /* Lichtgrijze achtergrond */
    color: #212529;
    padding: 8px 12px;
}

/* Minitabel binnen de popover */
.nautical-pop-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.nautical-pop-table td {
    padding: 3px 0;
    border-bottom: 1px solid #dee2e6;
}

.nautical-pop-table tr:last-child td {
    border-bottom: 0;
}