/* ===================================================== */
/* GLOBAL STYLES */
/* ===================================================== */

body {
    margin: 0;
    padding: 0;
    background-color: #F8F9FB;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #003366;
}

/* ===================================================== */
/* TEKST */
/* ===================================================== */

.bodyText {
    font-size: 14px;
    line-height: 1.6;
    color: #003366;
    padding: 8px;
    margin-bottom: 12px;
}

.pageName {
    font-size: 20px;
    font-weight: bold;
    color: #3366CC;
    line-height: 24px;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
    display: block;
}

/* ===================================================== */
/* LINKS */
/* ===================================================== */

a {
    color: #0000FF;
    font-weight: bold;
    text-decoration: none;
}

a:visited {
    color: #000000;
}

a:hover {
    color: #FF6600;
}

/* Links in bodytekst */

.bodyText a {
    color: #CC0000;
    text-decoration: underline;
}

.bodyText a:hover {
    color: #003366;
    text-decoration: none;
}

/* ===================================================== */
/* TABELLEN */
/* ===================================================== */

table {
    border-collapse: collapse;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
}

td {
    border: 1px solid #CCCCCC;
    padding: 6px;
}

/* Scrollbare tabel */

.tabel-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabel-scroll table {
    min-width: 900px;
}

/* Sticky header */

.tabel-scroll table tr:first-child {
    position: sticky;
    top: 0;
    background: #FFFFFF;
    z-index: 5;
    font-weight: bold;
}

/* Rij highlight */

.tabel-scroll tr:active {
    background-color: #E6F3FF;
}

/* ===================================================== */
/* HEADER */
/* ===================================================== */

.mes-header {
    background-color: #3366CC;
}

.header-container {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
}

.logo img {
    width: 180px;
    height: auto;
}

.organisatie-naam h1 {
    margin: 0;
    color: white;
    font-size: 24px;
}

.organisatie-naam h2 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.header-line {
    background-color: #003366;
    height: 4px;
}

/* ===================================================== */
/* NAVIGATIEMENU */
/* ===================================================== */

#navigation {
    width: 165px;
    background-color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#navigation td {
    padding: 0;
    margin: 0;
}

#navigation a {
    display: block;
    font-size: 14px;
    font-weight: normal;
    color: #003366;
    text-decoration: none;
    padding: 10px 12px 10px 26px;
    border-bottom: 1px solid #C0DFFD;
    background: url("mm_arrow.gif") 14px center no-repeat;
    box-sizing: border-box;
}

#navigation a:hover {
    background-color: #E6F3FF;
    color: #FF6600;
}

/* ===================================================== */
/* FLEX LAYOUT */
/* ===================================================== */

.main-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.sidebar {
    width: 200px;
    background-color: #F7F9FB;
    min-height: 100vh;
}

.content-area {
    flex: 1;
    padding: 20px;
    min-width: 300px;
}

/* ===================================================== */
/* AFBEELDINGEN */
/* ===================================================== */

img {
    max-width: 100%;
    height: auto;
}

/* ===================================================== */
/* ZOEKVELD */
/* ===================================================== */

.zoekblok {
    margin: 15px 0;
}

#zoekveld {
    width: 100%;
    max-width: 300px;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
}

/* ===================================================== */
/* KNOPPEN */
/* ===================================================== */

.printknop,
.pdfknop {
    background-color: #3366CC;
    color: white;
    border: none;
    padding: 10px 14px;
    margin-right: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.printknop:hover,
.pdfknop:hover {
    background-color: #003366;
}

/* Naar boven knop */

#topKnop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3366CC;
    color: white;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    display: none;
    z-index: 1000;
}

#topKnop:hover {
    background: #003366;
}

/* ===================================================== */
/* PRINT */
/* ===================================================== */

@media print {

#navigation {
    display: none;
}

.actieknoppen {
    display: none;
}

body {
    font-size: 12pt;
}

a {
    color: black;
    text-decoration: none;
}

}

/* ===================================================== */
/* MOBIEL */
/* ===================================================== */

@media only screen and (max-width: 768px) {

body {
    font-size: 18px;
}

/* Menu horizontaal */

#navigation {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

#navigation a {
    flex: 1 1 45%;
    text-align: center;
    font-size: 16px;
    background: #E6F3FF;
    margin: 2px;
    border-radius: 6px;
}

/* Header mobiel */

.header-container {
    flex-direction: column;
    text-align: center;
}

.logo img {
    width: 140px;
}

.organisatie-naam h1 {
    font-size: 18px;
}

.organisatie-naam h2 {
    font-size: 14px;
}

/* Tekst groter */

.bodyText {
    font-size: 17px;
}

.pageName {
    font-size: 22px;
}

/* Tabel blijft tabel — maar scrollt */

.tabel-scroll {
    overflow-x: auto;
}

.tabel-scroll table {
    min-width: 900px;
}

}