.table-row{
    cursor:pointer;
}
.mdi::before {
    font-size: 24px;
    line-height: 14px;
}
.btn .mdi::before {
    position: relative;
    top: 4px;
}
.btn-xs .mdi::before {
    font-size: 18px;
    top: 3px;
}
.btn-sm .mdi::before {
    font-size: 18px;
    top: 3px;
}
.dropdown-menu .mdi {
    width: 18px;
}
.dropdown-menu .mdi::before {
    position: relative;
    top: 4px;
    left: -8px;
}
.nav .mdi::before {
    position: relative;
    top: 4px;
}
.navbar .navbar-toggle .mdi::before {
    position: relative;
    top: 4px;
    color: #FFF;
}
.breadcrumb .mdi::before {
    position: relative;
    top: 4px;
}
.breadcrumb a:hover {
    text-decoration: none;
}
.breadcrumb a:hover span {
    text-decoration: underline;
}
.alert .mdi::before {
    position: relative;
    top: 4px;
    margin-right: 2px;
}
.input-group-addon .mdi::before {
    position: relative;
    top: 3px;
}
.navbar-brand .mdi::before {
    position: relative;
    top: 2px;
    margin-right: 2px;
}
.list-group-item .mdi::before {
    position: relative;
    top: 3px;
    left: -3px
}
.chart-container {
    position: relative;
    height: 150px !important; /* Zorg ervoor dat de hoogte altijd wordt gerespecteerd */
    width: 100%;
}
.marker-toggle-container {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;  /* ✅ Kleinere tekst */
    margin-top: 5px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 35px;  /* ✅ Kleinere switch */
    height: 18px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: red;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: green;
}

input:checked + .slider:before {
    transform: translateX(17px);
}

.active-round {
    background-color: rgba(195, 210, 25, 0.2) !important; /* ✅ Highlight ronde in tabel */
}

/* 🚀 Hover-effect */
.clickable-row:hover td {
    background-color: rgba(25, 118, 210, 0.2) !important; /* Lichtblauw bij hover */
}

/* 🎯 Actieve ronde na selectie */
.clickable-row.active-round td {
    background-color: rgba(25, 118, 210, 0.4) !important; /* Donkerder blauw als geselecteerd */
}

.form-check-input:checked {
    background-color: #d32f2f !important; /* ✅ Rood als markers zichtbaar zijn */
    border-color: #d32f2f !important;
}

.form-check-input:not(:checked) {
    background-color: #757575 !important; /* ✅ Grijs als markers verborgen zijn */
    border-color: #757575 !important;
}

.card-entry {
    background: #f8f9fa;
    border-left: 4px solid var(--accent-color, #1976d2);
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: background-color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

.card-entry:hover {
    background-color: #eef4fb;
    transform: translateY(-2px);
}

.card-entry-header {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-color, #1976d2);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem; /* compacter horizontaal/verticaal */
    line-height: 1.3;
    font-size: 0.82rem;
}

.card-entry-meta i {
    width: 1rem;
    min-width: 1rem;
    text-align: center;
}

.card-entry-meta > div {
    margin: 0;
    padding: 0;
}

.info-group {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.info-group:last-child {
    border-bottom: none;
}

.info-group h6 {
    font-size: 0.95rem;
    color: #1976d2;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.info-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    row-gap: 0.35rem;
    column-gap: 1.2rem;
    font-size: 0.88rem;
}

.info-grid .label {
    color: #666;
    font-weight: 500;
    text-align: right;
    padding-right: 0.5rem;
    border-right: 1px solid #ddd;
}

.info-grid .value {
    color: #222;
    padding-left: 0.6rem;
}

.section-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.section {
    flex: 1 1 320px;
    min-width: 280px;
}

.card-block {
    background: #f8f9fa;
    border-left: 4px solid #1976d2;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card-block:hover {
    background-color: #dbe8fd;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.card-block h6 {
    font-size: 0.85rem;
    color: #1976d2;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.statistics-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* standaard 1 kolom (mobiel) */
}

.tooltip {
    margin: 2px !important;
}

.card-header-primary {
    background-color: #1976d2;
    color: #fff;
    padding: 0.5rem 1rem;
}

.card-header-primary h6 {
    font-size: 0.95rem;
    margin-bottom: 0;
    font-weight: 600;
}

.card-header-primary small {
    font-size: 0.8rem;
    opacity: 0.85;
}

.tabs-scrollable-container {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: -1px; /* zodat het aansluit met de content */
}

.tabs-scrollable {
    margin-bottom: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    flex-wrap: nowrap;
    position: relative;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.tabs-scrollable .nav-link {
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
}

.tabs-scrollable .nav-item {
    flex: 0 0 auto;
}

.tabs-scrollable::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    z-index: 1;
}

.tabs-scrollable .nav-item:last-child {
    margin-right: 12px;
}

#toggle-markers {
    margin-left: 8px;
    margin-top: 0.25rem;
}

.toggle-markers-label {
    font-size: 0.85rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.table-compact {
    font-size: 0.8rem;
    border-collapse: collapse;
    width: 100%;
}

.table-compact thead th {
    background-color: #1976d2;
    color: #fff;
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 0.3rem 0.4rem;
}

.table-compact td {
    padding: 0.3rem 0.4rem;
    vertical-align: middle;
    font-size: 0.78rem;
    line-height: 1.2;
}

.table-compact .clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.table-compact .clickable-row:hover {
    background-color: #f4f4f4;
}

.pagination {
    justify-content: center;
    margin-top: 1rem;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.pagination .page-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    color: #1976d2;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    transition: background-color 0.2s, color 0.2s;
}

.pagination .page-link:hover {
    background-color: #e3f2fd;
    color: #1565c0;
}

.pagination .active .page-link {
    background-color: #1976d2;
    color: #fff;
    border-color: #1976d2;
}

.pagination .disabled .page-link {
    color: #999;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

@media (max-width: 576px) {
    .info-group h6 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .info-grid {
        grid-template-columns: 140px 1fr;
        font-size: 0.82rem;
    }

    .info-grid .label {
        text-align: right;
        border-right: 1px solid #ddd;
        padding-right: 0.5rem;
    }

    .info-grid .value {
        padding-left: 0.5rem;
    }

    .card-header-primary h6 {
        font-size: 0.85rem;
    }

    .card-header-primary small {
        font-size: 0.7rem;
    }

    .table-compact {
        font-size: 0.75rem;
    }

    .table-compact thead th,
    .table-compact td {
        padding: 0.25rem 0.3rem;
        font-size: 0.7rem;
    }

    .pagination .page-link {
        font-size: 0.78rem;
        padding: 0.3rem 0.5rem;
    }
}

@media (min-width: 768px) {
    .statistics-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .tabs-scrollable .nav-link {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}
