* { box-sizing: border-box; }

body {
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 0;
    color: #222;
}

.container {
    max-width: 640px;
    margin: 40px auto;
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

h1 {
    font-size: 22px;
    margin-top: 0;
}

.topbar {
    max-width: 640px;
    margin: 0 auto;
    padding: 12px 32px 0 32px;
    display: flex;
    justify-content: flex-end;
}

.topbar a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

label {
    display: block;
    margin-top: 16px;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
}

input[type=text], input[type=password], input[type=date], select, textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

.logo {
    width: 100%;
    display: block;
    margin-bottom: 12px;
}

.logo-link {
    display: block;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.textarea-klein {
    min-height: 40px;
}

.required::after {
    content: " *";
    color: #c0392b;
}

.btn {
    display: inline-block;
    background: #2d6cdf;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 20px;
}

.btn:hover { background: #1f56bd; }

.btn-secondary {
    background: #6c757d;
}
.btn-secondary:hover { background: #565e64; }

.btn-danger {
    background: #c0392b;
}
.btn-danger:hover { background: #992d22; }

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.error {
    background: #fdecea;
    color: #c0392b;
    padding: 10px 14px;
    border-radius: 4px;
    margin-top: 16px;
    font-size: 14px;
}

.success {
    background: #eafaf1;
    color: #1e8449;
    padding: 10px 14px;
    border-radius: 4px;
    margin-top: 16px;
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

th, td {
    text-align: left;
    padding: 8px 6px;
    vertical-align: top;
}

tbody tr {
    border-bottom: 1px solid #e2e2e2;
}

th {
    background: #f0f2f5;
}

.row-actions {
    display: flex;
    gap: 6px;
}

.row-actions form { margin: 0; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: none;
    background: #eef1f5;
    color: #444;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.icon-btn:hover {
    background: #dde3ea;
}

.icon-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.icon-btn-danger {
    color: #c0392b;
}

.icon-btn-danger:hover {
    background: #fdecea;
}

.filter-bar {
    margin-top: 20px;
}

.filter-bar label {
    margin-top: 0;
}

.paginatie {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.paginatie .btn {
    margin-top: 0;
    padding: 8px 14px;
}

.paginatie-info {
    font-size: 14px;
    color: #555;
}

.btn-disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.pdf-export-panel {
    margin-top: 20px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 4px 16px 16px 16px;
    background: #fafbfc;
}

.pdf-export-panel summary {
    cursor: pointer;
    font-weight: 600;
    padding: 12px 0;
    font-size: 14px;
}

.pdf-export-row {
    display: flex;
    gap: 12px;
}

.pdf-export-row > div {
    flex: 1;
}

.pdf-export-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.pdf-export-checkbox input {
    width: auto;
}

.pdf-export-checkbox label {
    margin: 0;
    font-weight: normal;
}

.pdf-export-hint {
    font-size: 12px;
    color: #666;
    margin: 4px 0 0 0;
}

.stap-samenvatting {
    background: #eef1f5;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 14px;
    margin-top: 16px;
}

.empty-state {
    color: #666;
    margin-top: 20px;
}

.combobox {
    position: relative;
}

.combobox-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.combobox-option {
    padding: 8px 10px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.combobox-option:hover,
.combobox-option.active {
    background: #eaf1fd;
}

.combobox-option-overig {
    font-style: italic;
    color: #2d6cdf;
    border-bottom: 1px solid #e2e2e2;
}

.combobox-empty {
    padding: 8px 10px;
    font-size: 14px;
    color: #888;
    font-style: italic;
}

.combobox-error {
    color: #c0392b;
    font-size: 13px;
    margin-top: 4px;
}

h2 {
    font-size: 17px;
    margin-top: 28px;
    margin-bottom: 4px;
}

.periode-form {
    margin-top: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e2e2;
}

.periode-form .btn {
    margin-top: 12px;
}

.periode-samenvatting {
    font-size: 14px;
    color: #555;
    margin-top: 12px;
}

.bar-chart-section {
    margin-top: 12px;
}

.bar-chart-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bar-chart-label {
    width: 140px;
    flex-shrink: 0;
    font-size: 13px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bar-chart-track {
    flex: 1;
    background: #eef1f5;
    border-radius: 4px;
    height: 20px;
    overflow: hidden;
}

.bar-chart-fill {
    height: 100%;
    background: #2d6cdf;
    border-radius: 4px 0 0 4px;
}

.bar-chart-fill-alt {
    background: #1e8449;
}

.bar-chart-value {
    width: 120px;
    flex-shrink: 0;
    font-size: 12px;
    color: #444;
}

.filter-fieldset {
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 10px 14px 14px 14px;
    margin-top: 14px;
}

.filter-fieldset legend {
    font-size: 13px;
    font-weight: 600;
    padding: 0 6px;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    margin: 4px 14px 4px 0;
    font-size: 14px;
}

.checkbox-inline input {
    width: auto;
}
