/* ==========================================================================
   BVA Jury Planner — Standalone Stylesheet (BVA Huisstijl)
   Primary: #04ABE4 (BVA blauw)  |  Secondary: #037DAA  |  Accent: #1A3A5C
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: #04ABE4; text-decoration: none; }
a:hover { color: #037DAA; text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* --- Header --- */
.bva-header {
    background: linear-gradient(135deg, #04ABE4 0%, #037DAA 100%);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.bva-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 56px;
}
.bva-header__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}
.bva-header__logo {
    height: 32px;
    width: auto;
}
.bva-header__title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.bva-header__nav {
    display: flex;
    gap: 0.25rem;
    flex: 1;
}
.bva-nav-link {
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s;
    text-decoration: none;
}
.bva-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
    text-decoration: none;
}
.bva-nav-link--active {
    color: #fff;
    background: rgba(255,255,255,0.2);
    font-weight: 600;
}
.bva-header__user {
    flex-shrink: 0;
}
/* --- Hamburger Button (hidden on desktop) --- */
.bva-header__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 4px;
    order: 2;
    margin-left: auto;
}
.bva-header__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.bva-nav-open .bva-header__hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.bva-nav-open .bva-header__hamburger span:nth-child(2) { opacity: 0; }
.bva-nav-open .bva-header__hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.bva-header__username {
    font-size: 0.85rem;
    opacity: 0.9;
}
.bva-btn--login {
    display: inline-block;
    padding: 0.4em 1em;
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.4);
    transition: background 0.2s;
}
.bva-btn--login:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.bva-btn--logout {
    display: inline-block;
    padding: 0.3em 0.7em;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.3);
    transition: background 0.2s;
    margin-left: 0.5rem;
}
.bva-btn--logout:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* --- Main Content --- */
.bva-main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
}

/* --- Footer --- */
.bva-footer {
    background: #1A3A5C;
    color: rgba(255,255,255,0.7);
    padding: 1rem 0;
    margin-top: auto;
    font-size: 0.85rem;
}
.bva-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bva-footer a {
    color: rgba(255,255,255,0.8);
}
.bva-footer a:hover {
    color: #fff;
}

/* --- Page Title --- */
.bva-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A3A5C;
    margin: 0 0 1.5rem;
}

/* --- Messages --- */
.bva-message {
    padding: 0.75em 1em;
    border-radius: 8px;
    margin-bottom: 1.5em;
    font-weight: 500;
    font-size: 0.95rem;
}
.bva-message--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.bva-message--error {
    background: #ffeef0;
    color: #c62828;
    border: 1px solid #ef9a9a;
}
.bva-message--info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* --- Instructions Block --- */
.bva-instructions {
    background: #f0f7ff;
    border: 1px solid #b3d4fc;
    border-radius: 8px;
    padding: 1em 1.5em;
    margin-bottom: 1.5em;
}
.bva-instructions h3 {
    margin: 0 0 0.5em;
    font-size: 1rem;
    color: #1A3A5C;
}
.bva-instructions ol {
    margin: 0;
    padding-left: 1.5em;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.7;
}
.bva-instructions li {
    margin-bottom: 0.2em;
}

/* --- Identity Fields --- */
.bva-identity {
    display: flex;
    gap: 1em;
    margin-bottom: 1.5em;
    flex-wrap: wrap;
}
.bva-field {
    flex: 1;
    min-width: 220px;
}
.bva-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3em;
    font-size: 0.9rem;
    color: #333;
}
.bva-field input,
.bva-field select {
    width: 100%;
    padding: 0.6em 0.8em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s;
}
.bva-field input:focus,
.bva-field select:focus {
    outline: none;
    border-color: #04ABE4;
    box-shadow: 0 0 0 3px rgba(4, 171, 228, 0.15);
}

/* Email row with lookup button */
.bva-email-row {
    display: flex;
    gap: 0.5em;
}
.bva-email-row input { flex: 1; }

/* --- Buttons --- */
.bva-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.6em 1.2em;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.4;
}
.bva-btn--primary {
    background: #04ABE4;
    color: #fff;
}
.bva-btn--primary:hover {
    background: #037DAA;
    color: #fff;
    text-decoration: none;
}
.bva-btn--secondary {
    background: #fff;
    color: #04ABE4;
    border: 2px solid #04ABE4;
}
.bva-btn--secondary:hover {
    background: #f0f7ff;
    text-decoration: none;
}
.bva-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* --- Functies Checkboxes --- */
.bva-functies {
    background: #f8fbfd;
    border: 1px solid #e0eef5;
    border-radius: 8px;
    padding: 1em 1.25em;
    margin-bottom: 1.5em;
}
.bva-functies__title {
    display: block;
    margin-bottom: 0.75em;
    font-size: 0.95rem;
}
.bva-functies__grid {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}
.bva-functies__group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em 1em;
    align-items: center;
}
.bva-functies__group-label {
    font-size: 0.82rem;
    color: #04ABE4;
    font-weight: 600;
    width: 100%;
    margin-bottom: 0.1em;
}
.bva-functie-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 0.25em 0.5em;
    border-radius: 4px;
    transition: background 0.15s;
}
.bva-functie-label:hover {
    background: #e8f4fd;
}

/* --- Bulk Actions --- */
.bva-bulk-actions {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin-bottom: 1em;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #555;
}
.bva-bulk-btn {
    padding: 0.4em 1em;
    border: 2px solid #ddd;
    border-radius: 50px;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}
.bva-bulk-btn--yes:hover {
    border-color: #4caf50;
    background: #e8f5e9;
    color: #2e7d32;
}
.bva-bulk-btn--no:hover {
    border-color: #f44336;
    background: #ffeef0;
    color: #c62828;
}

/* --- Event Cards --- */
.bva-events {
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.bva-event {
    background: #fff;
    border: 1px solid #e8eff3;
    border-radius: 8px;
    padding: 1.25em;
    transition: box-shadow 0.2s ease;
}
.bva-event:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.bva-event--assigned {
    border-left: 4px solid #4caf50;
    background: #f8fdf8;
}
.bva-event__header {
    display: flex;
    gap: 1em;
    margin-bottom: 0.75em;
}
.bva-event__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #04ABE4;
    color: #fff;
    border-radius: 6px;
    padding: 0.4em 0.65em;
    min-width: 50px;
    flex-shrink: 0;
    line-height: 1.2;
}
.bva-event__day {
    font-size: 1.3rem;
    font-weight: 700;
}
.bva-event__month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.bva-event__info {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
}
.bva-event__title {
    font-size: 1.05rem;
    color: #1A1A1A;
    font-weight: 600;
}
.bva-event__meta {
    font-size: 0.82rem;
    color: #888;
}
.bva-event__desc {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.2em;
}
.bva-event__badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    margin-top: 0.3em;
}

/* --- Radio Buttons --- */
.bva-event__response {
    display: flex;
    gap: 0.75em;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0.5em;
    border-top: 1px solid #f0f0f0;
}
.bva-radio-group {
    display: flex;
    gap: 0.5em;
}
.bva-radio {
    cursor: pointer;
}
.bva-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    pointer-events: none;
}
.bva-radio__label {
    display: inline-block;
    padding: 0.4em 0.9em;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid #ddd;
    transition: all 0.15s ease;
    user-select: none;
}
.bva-radio--yes input:checked + .bva-radio__label {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}
.bva-radio--maybe input:checked + .bva-radio__label {
    background: #fff8e1;
    border-color: #ff9800;
    color: #e65100;
}
.bva-radio--no input:checked + .bva-radio__label {
    background: #ffeef0;
    border-color: #f44336;
    color: #c62828;
}
.bva-radio__label:hover {
    border-color: #04ABE4;
}
.bva-opmerking {
    flex: 1;
    min-width: 200px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.4em 0.7em;
    font-size: 0.85rem;
    font-family: inherit;
}
.bva-opmerking:focus {
    outline: none;
    border-color: #04ABE4;
    box-shadow: 0 0 0 3px rgba(4, 171, 228, 0.15);
}

/* --- Form Actions --- */
.bva-form__actions {
    margin-top: 1.5em;
    display: flex;
    align-items: center;
    gap: 1em;
}
.bva-form__hint {
    color: #999;
    font-size: 0.82rem;
}

/* --- Overview Shortcode --- */
.bva-overview {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}
.bva-overview__event {
    display: flex;
    align-items: center;
    gap: 1em;
    background: #fff;
    border: 1px solid #e8eff3;
    border-radius: 8px;
    padding: 0.75em 1em;
    transition: box-shadow 0.2s ease;
}
.bva-overview__event:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.bva-overview__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #04ABE4;
    color: #fff;
    border-radius: 6px;
    padding: 0.3em 0.5em;
    min-width: 44px;
    line-height: 1.2;
}
.bva-overview__day {
    font-size: 1.1rem;
    font-weight: 700;
}
.bva-overview__month {
    font-size: 0.65rem;
    text-transform: uppercase;
}
.bva-overview__info {
    flex: 1;
    font-size: 0.9rem;
}
.bva-overview__count {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3em 0.7em;
    border-radius: 50px;
    white-space: nowrap;
}
.bva-overview__count--ok {
    background: #e8f5e9;
    color: #2e7d32;
}
.bva-overview__count--need {
    background: #fff3e0;
    color: #e65100;
}
.bva-overview__my-roles {
    margin-top: 0.3em;
}
.bva-overview__assigned-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2e7d32;
    margin-right: 0.3em;
}
.bva-overview__role-tag {
    display: inline-block;
    font-size: 0.75rem;
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.15em 0.5em;
    border-radius: 4px;
    margin: 0.1em 0.2em;
}
.bva-overview__vacancy-notice {
    font-size: 0.8rem;
    color: #e65100;
    margin-top: 0.3em;
}
.bva-overview__vacancy-notice a {
    color: #e65100;
    font-weight: 600;
    text-decoration: underline;
}

/* --- Planning Matrix --- */
.bva-planning-header {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.bva-planning-header .bva-page-title {
    margin-bottom: 0;
}
.bva-planning-header .bva-season-form {
    margin-bottom: 0;
}

.bva-planning-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    flex-wrap: wrap;
}
.bva-toolbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.bva-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.bva-toolbar-legend {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: #666;
}
.bva-legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    vertical-align: middle;
}
.bva-legend-dot--full { background: #c8e6c9; border: 1px solid #a5d6a7; }
.bva-legend-dot--partial { background: #fff9c4; border: 1px solid #fff176; }
.bva-legend-dot--empty { background: #ffcdd2; border: 1px solid #ef9a9a; }

.bva-change-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e65100;
    background: #fff3e0;
    padding: 0.3em 0.8em;
    border-radius: 50px;
    white-space: nowrap;
}

.bva-btn--sm {
    padding: 0.4em 0.9em;
    font-size: 0.82rem;
}

.bva-planning-wrap {
    overflow: auto;
    max-height: calc(100vh - 130px);
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    background: #fff;
}
.bva-planning-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
}
.bva-planning-table th {
    background: #f5f7fa;
    padding: 0.7rem 0.6rem;
    text-align: center;
    font-size: 0.82rem;
    border: 1px solid #e0e0e0;
    border-top: none;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}
.bva-planning-table th.bva-th-functie,
.bva-planning-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 11;
    text-align: left;
    min-width: 180px;
    background: #eef1f5;
}
.bva-planning-table td {
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-top: none;
    vertical-align: top;
    min-width: 170px;
    max-width: 220px;
}
.bva-planning-table td:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    font-weight: 600;
    text-align: left;
    border-right: 2px solid #d0d0d0;
    min-width: 180px;
    white-space: nowrap;
}
.bva-planning-table .bva-section-row td {
    background: #f0f2f5;
    font-weight: 700;
    font-size: 0.82rem;
    color: #555;
    padding: 6px 10px;
    position: sticky;
    left: 0;
}
.bva-cell--full { background: #e8f5e9; }
.bva-cell--partial { background: #fff8e1; }
.bva-cell--empty { background: #fce4ec; }

.bva-assigned {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    padding: 3px 6px 3px 8px;
    margin: 2px;
    font-size: 0.8rem;
    line-height: 1.3;
    max-width: 100%;
    white-space: nowrap;
}
.bva-assigned__name {
    overflow: hidden;
    text-overflow: ellipsis;
}
.bva-assigned__remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 2px;
    flex-shrink: 0;
    transition: color 0.15s;
}
.bva-assigned__remove:hover {
    color: #c62828;
}

.bva-planning-select {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    margin-top: 4px;
    padding: 4px 6px;
    border: 1px dashed #bbb;
    border-radius: 4px;
    background: #fafafa;
    color: #666;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.bva-planning-select:hover {
    border-color: #04ABE4;
    background: #f0f7ff;
}
.bva-planning-select:focus {
    outline: none;
    border-color: #04ABE4;
    border-style: solid;
    background: #fff;
}

.bva-cell-empty-label {
    color: #ccc;
    font-size: 0.85rem;
}

.bva-functie-count {
    color: #999;
    font-weight: 400;
    font-size: 0.8rem;
}

.bva-planning-footer-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

/* --- Manual Add Button --- */
.bva-manual-add-btn {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    margin-top: 3px;
    padding: 3px 6px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background: transparent;
    color: #999;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.bva-manual-add-btn:hover {
    border-color: #04ABE4;
    color: #04ABE4;
    background: #f0f7ff;
}

/* --- Event header jury count --- */
.bva-th-jury-count {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15em 0.5em;
    border-radius: 50px;
    margin-top: 2px;
}
.bva-th-status--ok {
    background: #e8f5e9;
    color: #2e7d32;
}
.bva-th-status--partial {
    background: #fff3e0;
    color: #e65100;
}
.bva-th-status--empty {
    background: #fce4ec;
    color: #c62828;
}

/* --- Manual Add Dialog --- */
.bva-dialog-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bva-dialog {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    min-width: 340px;
    max-width: 420px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.bva-dialog h3 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: #1A3A5C;
}
.bva-dialog__field {
    margin-bottom: 0.75rem;
}
.bva-dialog__field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}
.bva-dialog__field input {
    width: 100%;
    padding: 0.5em 0.7em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
}
.bva-dialog__field input:focus {
    outline: none;
    border-color: #04ABE4;
    box-shadow: 0 0 0 3px rgba(4, 171, 228, 0.15);
}
.bva-dialog__actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}
.bva-dialog__error {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #c62828;
}

/* Suggestions dropdown for manual add dialog */
.bva-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
.bva-suggestion-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}
.bva-suggestion-item:last-child {
    border-bottom: none;
}
.bva-suggestion-item:hover {
    background: #e3f2fd;
}
.bva-suggestion-meta {
    color: #888;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* --- Print Page --- */
.bva-print-actions {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
}
.bva-print-header {
    border-bottom: 3px solid #04ABE4;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}
.bva-print-header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #1A3A5C;
}
.bva-print-header h2 {
    margin: 0.25rem 0 0;
    font-size: 1.1rem;
    color: #04ABE4;
}
.bva-print-header p {
    margin: 0.5rem 0 0;
    color: #666;
    font-size: 0.9rem;
}

.bva-print-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.bva-print-table th {
    background: #f5f5f5;
    padding: 0.4rem 0.6rem;
    text-align: left;
    font-size: 0.85rem;
    border: 1px solid #ddd;
}
.bva-print-table td {
    padding: 0.5rem 0.6rem;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}
.bva-print-signature {
    min-height: 40px;
    border-bottom: 1px solid #999;
}

/* Event selector table */
.bva-table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8eff3;
}
.bva-table th {
    background: #f5f7fa;
    padding: 0.6rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
}
.bva-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}
.bva-table tr:last-child td {
    border-bottom: none;
}
.bva-table tr:hover td {
    background: #f8fbfd;
}

/* Season selector */
.bva-season-form {
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.bva-season-form select {
    padding: 0.4em 0.7em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
}

/* Empty state */
.bva-empty {
    color: #999;
    font-style: italic;
    padding: 2rem;
    text-align: center;
}

/* Description text */
.bva-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* --- Focus & Accessibility --- */
.bva-radio input[type="radio"]:focus-visible + .bva-radio__label {
    outline: 2px solid #04ABE4;
    outline-offset: 2px;
}
.bva-btn:focus-visible,
.bva-nav-link:focus-visible,
.bva-bulk-btn:focus-visible,
.bva-planning-select:focus-visible {
    outline: 2px solid #04ABE4;
    outline-offset: 2px;
}
html {
    scroll-padding-top: 70px;
}

/* --- Dashboard (Mijn Planning) --- */
.bva-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.bva-dashboard-welcome {
    font-size: 1.2rem;
    color: #1A3A5C;
}
.bva-dashboard-greeting {
    font-weight: 700;
}
.bva-dashboard-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.bva-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.bva-stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.2rem 1rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #e8eff3;
}
.bva-stat-card__value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #04ABE4;
    line-height: 1.2;
}
.bva-stat-card__label {
    display: block;
    font-size: 0.82rem;
    color: #666;
    margin-top: 0.2rem;
}
.bva-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A3A5C;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}
.bva-section-divider {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2rem 0;
}
.bva-dash-event {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e8eff3;
    transition: box-shadow 0.2s;
}
.bva-dash-event:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.bva-dash-event__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #04ABE4;
    color: #fff;
    border-radius: 8px;
    padding: 0.4em 0.6em;
    min-width: 48px;
    line-height: 1.2;
    flex-shrink: 0;
}
.bva-dash-event__day {
    font-size: 1.2rem;
    font-weight: 700;
}
.bva-dash-event__month {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.bva-dash-event__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    min-width: 0;
}
.bva-dash-event__title {
    font-weight: 600;
    color: #1A3A5C;
    font-size: 1rem;
}
.bva-dash-event__meta {
    font-size: 0.82rem;
    color: #888;
}
.bva-dash-event__rol {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.15em 0.6em;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.2em;
    width: fit-content;
}
.bva-dash-event__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}
.bva-btn--ics {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.4em 0.6em;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}
.bva-btn--ics:hover {
    background: #e3f2fd;
    border-color: #90caf9;
}
.bva-btn--afmelden {
    background: #fff;
    border: 1px solid #ef9a9a;
    color: #c62828;
    border-radius: 6px;
    padding: 0.4em 0.8em;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.bva-btn--afmelden:hover {
    background: #ffeef0;
    border-color: #f44336;
}
.bva-btn--danger {
    background: #f44336 !important;
    color: #fff !important;
    border-color: #d32f2f !important;
}
.bva-btn--danger:hover {
    background: #d32f2f !important;
}

/* Vacancies */
.bva-dash-vacancy {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fffce6;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.6rem;
    border: 1px dashed #ffd54f;
    transition: box-shadow 0.2s;
}
.bva-dash-vacancy:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.bva-dash-vacancy .bva-dash-event__date {
    background: #ff9800;
}
.bva-dash-vacancy__detail {
    font-size: 0.85rem;
    color: #e65100;
    margin-top: 0.2em;
}
.bva-btn--overnemen {
    background: #fff;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    border-radius: 6px;
    padding: 0.4em 0.8em;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.bva-btn--overnemen:hover {
    background: #e8f5e9;
    border-color: #4caf50;
}

/* Auto-plan button */
.bva-btn--autoplan {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.bva-btn--autoplan:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    box-shadow: 0 2px 6px rgba(255,152,0,0.3);
}

/* Cancellations notice */
.bva-cancellations-notice {
    background: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1rem;
}
.bva-cancellations-notice h3 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    color: #e65100;
}
.bva-cancellations-notice ul {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 0.85rem;
    color: #555;
}
.bva-cancellations-notice li {
    margin-bottom: 0.2rem;
}

/* Dialog textarea */
.bva-dialog textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5em 0.7em;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}
.bva-dialog textarea:focus {
    outline: none;
    border-color: #04ABE4;
    box-shadow: 0 0 0 3px rgba(4, 171, 228, 0.15);
}

/* --- Print Media --- */
@media print {
    @page { margin: 1.5cm; size: A4; }
    .bva-header,
    .bva-footer,
    .bva-print-actions,
    .bva-season-form { display: none !important; }
    .bva-main { padding: 0; max-width: none; }
    body { background: #fff; }
    .bva-print-signature { min-height: 50px; }
    .bva-print-table { page-break-inside: auto; }
    .bva-print-table tr { page-break-inside: avoid; }
    .bva-print-timestamp { display: block !important; }
}

.bva-print-timestamp {
    display: none;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #999;
    text-align: right;
}

/* --- Statistics Page --- */
.bva-stats-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
}
.bva-stats-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8eff3;
}
.bva-stats-table th {
    background: #f5f7fa;
    padding: 0.6rem 1rem;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}
.bva-stats-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}
.bva-stats-table tr:last-child td {
    border-bottom: none;
}
.bva-stats-table tr:hover td {
    background: #f8fbfd;
}
.bva-col-rank {
    width: 2.5rem;
    text-align: center;
    font-weight: 700;
    color: #04ABE4;
}
.bva-col-num {
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
}
.bva-col-bar {
    width: 40%;
    min-width: 120px;
}
.bva-bar {
    height: 10px;
    background: #04ABE4;
    border-radius: 5px;
    min-width: 4px;
    transition: width 0.3s ease;
}
.bva-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.bva-bar-wrap .bva-bar {
    flex: 1;
    max-width: calc(100% - 3rem);
}
.bva-bar-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}
.bva-bar--green { background: #4caf50; }
.bva-bar--orange { background: #ff9800; }
.bva-bar--red { background: #f44336; }
.bva-ratio-badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}
.bva-ratio--low { background: #ffeef0; color: #c62828; }
.bva-ratio--mid { background: #fff3e0; color: #e65100; }
.bva-ratio--ok { background: #e8f5e9; color: #2e7d32; }

/* --- Responsive --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 768px) {
    .bva-header__inner {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    .bva-header__hamburger {
        display: flex;
    }
    .bva-header__nav {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding-bottom: 0.5rem;
    }
    .bva-nav-open .bva-header__nav {
        display: flex;
    }
    .bva-nav-link {
        padding: 0.7rem 0.9rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .bva-header__user {
        order: 1;
        margin-left: auto;
    }
    .bva-main {
        padding: 1.5rem 1rem;
    }

    /* Planning table: full-width scroll with hint */
    .bva-planning-wrap {
        max-height: none;
        border-radius: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .bva-planning-table td,
    .bva-planning-table th {
        min-width: 140px;
    }
    .bva-planning-table td:first-child,
    .bva-planning-table th:first-child,
    .bva-planning-table th.bva-th-functie {
        min-width: 120px;
        font-size: 0.78rem;
    }

    /* Toolbar stacks */
    .bva-planning-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .bva-toolbar-left,
    .bva-toolbar-right {
        justify-content: center;
        flex-wrap: wrap;
    }
    .bva-toolbar-legend {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Planning header stacks */
    .bva-planning-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Tables: horizontal scroll */
    .bva-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    /* Dialogs: full-screen on mobile */
    .bva-dialog {
        min-width: 0;
        max-width: calc(100vw - 2rem);
        width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    /* Season selector wrap */
    .bva-season-form {
        flex-wrap: wrap;
    }

    /* Overview events stack */
    .bva-overview__event {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.5rem;
    }
    .bva-overview__date {
        flex-direction: row;
        gap: 0.4em;
        justify-content: center;
        padding: 0.4em 0.8em;
        width: fit-content;
        margin: 0 auto;
    }
    .bva-overview__count {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .bva-identity {
        flex-direction: column;
    }
    .bva-email-row {
        flex-direction: column;
    }
    .bva-event__response {
        flex-direction: column;
        align-items: stretch;
    }
    .bva-radio-group {
        justify-content: center;
    }
    .bva-opmerking {
        min-width: 0;
    }
    .bva-form__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .bva-bulk-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .bva-footer__inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .bva-dash-event,
    .bva-dash-vacancy {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .bva-dash-event__date {
        flex-direction: row;
        gap: 0.4em;
        justify-content: center;
    }
    .bva-dash-event__actions {
        justify-content: center;
    }
    .bva-dashboard-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .bva-dashboard-actions {
        justify-content: center;
    }

    /* Event card header stacks on small screens */
    .bva-event__header {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Touch-friendly tap targets */
    .bva-radio__label {
        padding: 0.5em 1.1em;
        font-size: 0.9rem;
    }
    .bva-btn {
        padding: 0.7em 1.3em;
        font-size: 0.95rem;
    }
    .bva-bulk-btn {
        padding: 0.5em 1.2em;
        font-size: 0.85rem;
    }
    .bva-nav-link {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    /* Page title smaller on mobile */
    .bva-page-title {
        font-size: 1.25rem;
    }

    /* Stats grid: 2 columns minimum */
    .bva-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .bva-stat-card {
        padding: 0.9rem 0.6rem;
    }
    .bva-stat-card__value {
        font-size: 1.4rem;
    }

    /* Club planners modal full-width */
    #bva-modal-overlay > div {
        width: calc(100vw - 1.5rem) !important;
        max-width: none !important;
        padding: 1.5rem !important;
        border-radius: 8px !important;
    }

    /* Planning select bigger touch target */
    .bva-planning-select {
        padding: 8px 6px;
        font-size: 0.85rem;
    }

    /* Assigned pill wraps */
    .bva-assigned {
        white-space: normal;
        word-break: break-word;
    }

    /* Cancellations notice compact */
    .bva-cancellations-notice {
        padding: 0.6rem 0.8rem;
    }
}

/* --- Extra small screens (< 380px, e.g. iPhone SE) --- */
@media (max-width: 380px) {
    .bva-main {
        padding: 1rem 0.6rem;
    }
    .bva-header__inner {
        padding: 0.4rem 0.6rem;
    }
    .bva-header__title {
        font-size: 1rem;
    }
    .bva-event {
        padding: 1em 0.8em;
    }
    .bva-dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }
    .bva-stat-card__value {
        font-size: 1.2rem;
    }
    .bva-stat-card__label {
        font-size: 0.75rem;
    }
}

/* --- Mobile scroll hint for planning table --- */
.bva-scroll-hint {
    display: none;
    text-align: center;
    font-size: 0.82rem;
    color: #888;
    padding: 0.5rem;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}
@media (max-width: 768px) {
    .bva-scroll-hint {
        display: block;
    }
    .bva-planning-toolbar {
        border-radius: 0;
    }
}
