/* opmaak.css - afgeronde hoeken voor alle tabellen */

/* Google Font Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* Basisinstellingen */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    margin: 20px;
    background: #fff;
    color: #222;
    line-height: 1.6;
}
tbody tr {
    transition: background-color 0.3s ease;
}

h2 {
    color: #000;
    margin: 24px 0 12px;
    font-weight: 700;
    font-size: 1.5rem;
	text-align: center;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Algemene tabelopmaak met afgeronde hoeken */
table {
    width: 100%;
    border-collapse: separate;  /* Belangrijk voor afgeronde hoeken */
    border-spacing: 0;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 8px;
    border: none;
}

thead {
    background-color: #000;
    color: #fff;
}

thead th {
    padding: 10px 12px;
    text-align: center;
    border: none;
    word-break: break-word;
}

/* Afgeronde hoeken voor de bovenste headercellen */
thead th:first-child {
    border-top-left-radius: 8px;
}

thead th:last-child {
    border-top-right-radius: 8px;
}

tbody td {
    padding: 10px 12px;
    text-align: center;
    border: none;
    word-break: break-word;
    background-color: #fff;
}

/* Afwisselende achtergrondkleur voor rijen */
tbody tr:nth-child(even) td {
    background-color: #f4f4f4;
}

tbody tr:hover td {
    background-color: #dcdcdc;
    cursor: pointer;
}

/* Afgeronde hoeken voor onderste cellen in de laatste rij */
tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* Kleine disclaimer-tekst of onderregel */
td.small {
    font-size: 10px;
    color: #194EC2;
}

/* Specifieke styling voor voet-tabel zonder randen, met afgeronde hoeken */
table.voet {
    width: 40%;
    font-size: 0.6em;
    color: #ff0b0b;
    font-style: italic;
    margin: 1px auto 0 auto;
    background-color: #fff5f5;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 1px 3px rgba(255, 11, 11, 0.2);
}

table.voet th,
table.voet td,
table.voet tr {
    border: none !important;
    padding: 6px 8px;
    text-align: center;
}

/* Afgeronde hoeken bij .voet tabel ook */
table.voet thead th:first-child,
table.voet tbody tr:last-child td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

table.voet thead th:last-child,
table.voet tbody tr:last-child td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Mobiele optimalisatie */
@media (max-width: 600px) {
    body {
        margin: 10px;
    }

    h2 {
        font-size: 0.9rem;
    }

    table {
        font-size: 0.5rem;
    }

    th, td {
        padding: 3px 4px;
        white-space: nowrap;
    }

    /* Kolommen 9 en 10 verbergen op mobiel */
    td:nth-child(8),
    th:nth-child(8),
	td:nth-child(9),
    th:nth-child(9),
    td:nth-child(10),
    th:nth-child(10) {
        display: none;
    }

    table.voet {
        width: 90%;
        font-size: 0.55em;
    }
	@media (max-width: 400px) {
    table {
        font-size: 0.5rem;  /* nog kleiner */
    }

    th, td {
        padding: 2px 3px;
    }

    h2 {
        font-size: 0.75rem;
    }

    table.voet {
        font-size: 0.45em;
    }

		@media (max-width: 400px) {
    body {
        margin: 6px;
    }

    h2 {
        font-size: 0.75rem;
    }

    table {
        font-size: 0.5rem;
    }

    th, td {
        padding: 2px 3px;
    }

    .container {
        padding: 0 4px;
    }

    table.voet {
        font-size: 0.3em;
        width: 95%;
    }
}