* { box-sizing: border-box; }
body {
    font-family: Arial, sans-serif;
    background: #f2f3f5;
    margin: 0;
    color: #222;
}
.topbalk {
    background: #1f2937;
    color: white;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbalk a { color: white; text-decoration: none; }
.inhoud { max-width: 1100px; margin: 30px auto; padding: 0 20px; }

.login-kader {
    max-width: 340px;
    margin: 100px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}
.login-kader input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.login-kader button, .knop {
    width: 100%;
    padding: 10px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}
.fout { color: #c0392b; font-size: 14px; }

.klantenlijst { list-style: none; padding: 0; }
.klantenlijst li {
    background: white;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.klantenlijst a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    text-decoration: none;
    color: #222;
    font-weight: bold;
}
.kleurbolletje { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }

.layout { display: flex; gap: 20px; align-items: flex-start; }

.zijbalk {
    width: 230px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    flex-shrink: 0;
}
.zijbalk-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}
.zijbalk-header img { height: 28px; max-width: 100px; object-fit: contain; }

.tab-knop {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid #f2f2f2;
    color: #222;
}
.tab-knop.actief { background: #f5f5f5; font-weight: bold; }
.tab-knop:hover { background: #fafafa; }

.zijbalk-groep-titel {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 20px 12px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}
.zijbalk-groep-titel:hover { color: #666; }
.instellingen-submenu { border-bottom: 1px solid #f2f2f2; }
.tab-subknop { padding-left: 34px; font-size: 14px; }

.hoofdinhoud {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    min-width: 0;
}
.tab-paneel { display: none; }
.tab-paneel.actief { display: block; }

label { display: block; margin-top: 14px; font-weight: bold; font-size: 14px; }

.sectie-titel { margin: 0 0 4px 0; font-size: 15px; color: #1f2937; }
.sectie-lijn { margin: 28px 0 4px 0; border: none; border-top: 1px solid #eee; }
input[type=text], input[type=email], input[type=color], textarea {
    width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 6px; margin-top: 4px; font-family: inherit;
}
textarea { min-height: 100px; }
.kleur-blok { width: 60px !important; height: 40px; padding: 2px; cursor: pointer; }
.opslaan-knop { margin-top: 18px; width: auto; padding: 10px 24px; }

.bestandslijst { list-style: none; padding: 0; }
.bestandslijst li { padding: 8px 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }

.stat-inleiding { color: #666; font-size: 14px; margin-bottom: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-kaart { background: #f9fafb; border-radius: 10px; padding: 20px; }
.stat-kaart .getal { font-size: 28px; font-weight: bold; }
.stat-kaart .label { color: #666; font-size: 14px; margin-top: 4px; }
.stat-kaart a { color: inherit; text-decoration: none; }
.stat-vragen-kaart { background: #f9fafb; border-radius: 10px; padding: 20px; }
.stat-vragen-kaart h4 { margin-top: 0; }
.stat-vragen-lijst { list-style: none; padding: 0; margin: 0; }
.stat-vragen-lijst li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eee; }
.stat-vragen-lijst li:last-child { border-bottom: none; }

.gegevens-tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.gegevens-tabel th { text-align: left; padding: 10px; border-bottom: 2px solid #eee; color: #666; font-size: 13px; }
.gegevens-tabel td { padding: 10px; border-bottom: 1px solid #f2f2f2; vertical-align: top; }
.gegevens-tabel tr:hover td { background: #fafafa; }
