/* Belgian Cycling – registration platform */
.kbwb {
    --kb-red: #c8102e;
    --kb-red-dark: #a00c24;
    --kb-ink: #1d1d1f;
    --kb-muted: #6b6f76;
    --kb-line: #e3e5e8;
    --kb-bg: #f6f7f9;
    --kb-ok: #1e7b3a;
    --kb-warn: #8a5a00;
    font-size: 15px;
    line-height: 1.45;
    color: var(--kb-ink);
    /* 1.97.1: as wide as the screen (minus the theme's side margins); no fixed maximum width any more (was 1280px). */
    max-width: none !important;
    width: auto;
    margin: 0 auto;
}
.kbwb *, .kbwb *::before, .kbwb *::after { box-sizing: border-box; }
.kbwb h2 { font-size: 1.35em; margin: 0 0 .5em; }
.kbwb h3 { font-size: 1.1em; margin: 1.2em 0 .5em; }
.kbwb h4 { font-size: 1em; margin: 1em 0 .4em; }
.kbwb a { color: var(--kb-red); }
.kbwb-muted { color: var(--kb-muted); }
.kbwb-small { font-size: .85em; }
.kbwb-sep { margin: 0 .4em; color: var(--kb-muted); }

/* top bar + nav */
.kbwb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--kb-ink); color: #fff; padding: 10px 16px; border-radius: 8px 8px 0 0; }
.kbwb-top .kbwb-muted { color: #c7c9cc; }
.kbwb-lang a { color: #fff; text-decoration: none; padding: 2px 6px; border-radius: 4px; font-size: .85em; }
.kbwb-lang a.is-active { background: var(--kb-red); }
.kbwb-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--kb-line);
    border-top: 0; padding: 6px 10px; margin-bottom: 16px; border-radius: 0 0 8px 8px; }
.kbwb-nav a { text-decoration: none; color: var(--kb-ink); padding: 6px 10px; border-radius: 6px; }
.kbwb-nav a.is-active, .kbwb-nav a:hover { background: var(--kb-bg); color: var(--kb-red); }
.kbwb-logout { margin-left: auto; }
.kbwb-badge { display: inline-block; font-size: .75em; padding: 1px 8px; border-radius: 10px; background: #e9eaec; color: var(--kb-ink); margin-left: 6px; }
.kbwb-badge-ok { background: #dff2e5; color: var(--kb-ok); }
.kbwb-badge-err { background: #fbe1e4; color: var(--kb-red-dark); }
.kbwb-top .kbwb-badge { background: rgba(255,255,255,.15); color: #fff; }

/* cards, messages */
.kbwb-card { background: #fff; border: 1px solid var(--kb-line); border-radius: 8px; padding: 18px 20px; margin-bottom: 16px; }
.kbwb-narrow { max-width: 440px; margin-left: auto; margin-right: auto; }
.kbwb-msg { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; border-left: 4px solid; }
.kbwb-msg-ok { background: #eef8f1; border-color: var(--kb-ok); }
.kbwb-msg-error { background: #fdeef0; border-color: var(--kb-red); }
.kbwb-msg-warning { background: #fff6e0; border-color: #e0a000; }
.kbwb-reg { background: var(--kb-bg); border-left: 4px solid var(--kb-red); padding: 10px 14px; margin: 10px 0; font-size: .9em; }

/* forms */
.kbwb label { display: block; font-weight: 600; font-size: .9em; margin-bottom: 10px; }
.kbwb label.kbwb-check { display: inline-flex; align-items: center; gap: 6px; font-weight: normal; margin-right: 14px; }
.kbwb input[type=text], .kbwb input[type=email], .kbwb input[type=password], .kbwb input[type=number], .kbwb input[type=date],
.kbwb input[type=url], .kbwb input[type=search], .kbwb select, .kbwb textarea {
    width: 100%; padding: 7px 9px; border: 1px solid #c9ccd1; border-radius: 6px; font: inherit; font-weight: normal; background: #fff; margin-top: 3px; }
.kbwb textarea.kbwb-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; }
.kbwb input:focus, .kbwb select:focus, .kbwb textarea:focus { outline: none; }
.kbwb input.is-error { border-color: var(--kb-red); background: #fff1f3; }
.kbwb-err { display: block; color: var(--kb-red); font-size: .78em; margin-top: 2px; }
.kbwb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 16px; }
.kbwb-checks { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 12px; }
/* Entries page of a race: compact overview of the clubs, bib range per club, teams as fold-outs. */
.kbwb-entries td { vertical-align: middle; }
.kbwb-bibs { white-space: nowrap; font-size: .85em; }
.kbwb .kbwb-bibs input[type=text] { width: 4.5em; padding: 2px 5px; margin: 0; font-size: 1em; }
.kbwb-ok { color: var(--kb-ok); font-weight: 700; }
.kbwb .kbwb-entries-title { margin: 0 0 6px; }
.kbwb-entry { border-top: 1px solid var(--kb-line); }
.kbwb-entry summary { cursor: pointer; padding: 7px 2px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.kbwb-entry summary::-webkit-details-marker { color: var(--kb-muted); }
.kbwb-entry-club { font-weight: 700; }
.kbwb-entry[open] summary { background: var(--kb-bg); }
.kbwb-entry .kbwb-table-wrap { margin: 4px 0 10px; }
/* Form in two even columns (e.g. user form): fields line up, hints go below the field. */
.kbwb-form2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.kbwb-form-title { border-bottom: 1px solid var(--kb-line); padding-bottom: 4px; }
.kbwb-hint { display: block; font-weight: normal; font-size: .85em; color: var(--kb-muted); margin: 3px 0 0; }
p.kbwb-hint { margin: -4px 0 8px; }
.kbwb-form-checks { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; }
@media (max-width: 760px) { .kbwb-form2 { grid-template-columns: 1fr; } .kbwb-form-checks { padding-top: 0; margin-bottom: 10px; } }
.kbwb-scroll { max-height: 260px; overflow: auto; border: 1px solid var(--kb-line); border-radius: 6px; padding: 8px; flex-direction: column; flex-wrap: nowrap; }
.kbwb-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.kbwb-filter input, .kbwb-filter select { width: auto; min-width: 200px; margin: 0; }
.kbwb-inline { display: inline; }
.kbwb-right { text-align: right; }
.kbwb-row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.kbwb-btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.kbwb-submit { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; }
.kbwb-form-status.is-error { color: var(--kb-red); font-weight: 600; }

.kbwb-btn { display: inline-block; padding: 8px 14px; border-radius: 6px; border: 1px solid #c9ccd1; background: #fff; color: var(--kb-ink) !important;
    font: inherit; font-size: .9em; cursor: pointer; text-decoration: none; line-height: 1.2; }
.kbwb-btn:hover { border-color: var(--kb-ink); }
.kbwb-btn-primary { background: var(--kb-red); border-color: var(--kb-red); color: #fff !important; font-weight: 600; }
.kbwb-btn-primary:hover { background: var(--kb-red-dark); border-color: var(--kb-red-dark); }
.kbwb-btn-small { padding: 4px 9px; font-size: .8em; }
.kbwb-link { background: none; border: 0; padding: 0; color: var(--kb-red); cursor: pointer; font: inherit; text-decoration: underline; }
.kbwb-danger { color: var(--kb-red-dark); }

/* tabs and steps */
.kbwb-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.kbwb-tabs a { padding: 7px 14px; border-radius: 6px 6px 0 0; text-decoration: none; color: var(--kb-ink); border-bottom: 2px solid transparent; }
.kbwb-tabs a.is-active { border-color: var(--kb-red); color: var(--kb-red); font-weight: 600; }
.kbwb-steps { display: grid; gap: 10px; }
.kbwb-step { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.kbwb-step-label { min-width: 120px; font-weight: 600; padding-top: 4px; }
.kbwb-chip { background: var(--kb-ink); color: #fff; padding: 4px 12px; border-radius: 14px; }
.kbwb-step .kbwb-small { padding-top: 6px; }
.kbwb-choice { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kbwb-choice li.is-closed a { color: var(--kb-muted); }
.kbwb-list { margin: 0; padding-left: 18px; }

/* tables */
.kbwb-table-wrap { overflow-x: auto; }
.kbwb-table { width: 100%; border-collapse: collapse; font-size: .9em; }
.kbwb-table th { text-align: left; font-size: .8em; text-transform: uppercase; letter-spacing: .03em; color: var(--kb-muted);
    border-bottom: 2px solid var(--kb-line); padding: 6px; white-space: nowrap; }
.kbwb-table td { border-bottom: 1px solid var(--kb-line); padding: 5px 6px; vertical-align: top; }
.kbwb-table tr.is-inactive td { color: var(--kb-muted); text-decoration: line-through; }
.kbwb-compact td { padding: 3px 6px; }
.kbwb-lines input { margin: 0; padding: 5px 6px; }
.kbwb-lines select { margin: 0; padding: 5px 4px; }
.kbwb-pos { font-weight: 600; color: var(--kb-muted); width: 2.5em; }
.kbwb-uci-cell { min-width: 150px; }
.kbwb-uci-info { font-size: .8em; color: var(--kb-muted); display: block; }
.kbwb-ptype[hidden] { display: none !important; }
.kbwb-ptype { display: block; margin-top: 4px; padding: 4px 6px; background: #fff6e0; border: 1px solid #e0a000; border-radius: 4px; }
.kbwb-ptype-label { display: block; font-size: .75em; font-weight: 600; color: #5c3d00; }
.kbwb .kbwb-ptype select { margin-top: 2px; padding: 3px 4px; font-size: .85em; }
.kbwb-actions { white-space: nowrap; text-align: right; }
.kbwb-icon { border: 1px solid var(--kb-line); background: #fff; border-radius: 4px; width: 28px; height: 28px; cursor: pointer; color: var(--kb-muted); }
.kbwb-icon:hover { color: var(--kb-red); border-color: var(--kb-red); }
.kbwb-ac-toggle[aria-pressed=false] { opacity: .4; text-decoration: line-through; }

/* autocomplete */
.kbwb-ac-list { position: fixed !important; z-index: 2147483000 !important; list-style: none !important; margin: 0 !important; padding: 4px 0 !important;
    background: #fff !important; border: 1px solid #c9ccd1; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.15); overflow-y: auto;
    font: 14px/1.35 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #1d1d1f; text-align: left; box-sizing: border-box; }
.kbwb-ac-list li { list-style: none !important; margin: 0 !important; padding: 6px 10px !important; cursor: pointer; display: flex !important; flex-direction: column; border: 0 !important; background: none; }
.kbwb-ac-list li::before, .kbwb-ac-list li::marker { content: none !important; }
.kbwb-ac-list li small { color: #6b6f76; font-size: 12px; }
.kbwb-ac-list li.is-active, .kbwb-ac-list li:hover { background: #f6f7f9; }
.kbwb-ac-list li.is-empty { color: #6b6f76; cursor: default; }

/* mobile: tables become stacked cards */
@media (max-width: 760px) {
    .kbwb-card { padding: 14px; }
    .kbwb-table thead { display: none; }
    .kbwb-table, .kbwb-table tbody, .kbwb-table tr, .kbwb-table td { display: block; width: 100%; }
    .kbwb-table tr { border: 1px solid var(--kb-line); border-radius: 6px; margin-bottom: 10px; padding: 6px; }
    .kbwb-table td { border: 0; padding: 3px 4px; }
    .kbwb-table td[data-label]::before { content: attr(data-label); display: block; font-size: .75em; color: var(--kb-muted); text-transform: uppercase; }
    .kbwb-actions { text-align: left; }
    .kbwb-lines input, .kbwb-lines select { width: 100% !important; }
    .kbwb-step-label { min-width: 100%; }
    .kbwb-logout { margin-left: 0; }
    .kbwb-filter input, .kbwb-filter select { min-width: 0; width: 100%; }
}

/* import box */
.kbwb-import { margin: 6px 0 12px; border: 1px dashed #c9ccd1; border-radius: 6px; padding: 8px 12px; background: var(--kb-bg); }
.kbwb-import summary { cursor: pointer; font-weight: 600; color: var(--kb-red); }
.kbwb-import-form { margin-top: 8px; }
.kbwb-import input[type=file] { font-size: .85em; }

/* fields filled in from UCI DataRide */
.kbwb input.is-uci { background: #eef6ff; border-color: #9cc3ea; }
@keyframes kbwb-flash { from { background: #fff3b0; } to { background: #eef6ff; } }
.kbwb input.is-uci-updated { animation: kbwb-flash 1.2s ease-out; }

/* test mode */
.kbwb-testbar { background: repeating-linear-gradient(45deg, #fff3c4, #fff3c4 12px, #ffe9a0 12px, #ffe9a0 24px); border: 1px solid #e0a000; color: #5c3d00; padding: 8px 14px; border-radius: 6px; margin-bottom: 14px; font-size: .9em; }
.kbwb-card-test { border-color: #e0a000; box-shadow: inset 4px 0 0 #e0a000; }
.kbwb-card-danger { border-color: #e7a3ad; box-shadow: inset 4px 0 0 var(--kb-red); }

.kbwb-span2 { grid-column: 1 / -1; margin-bottom: 10px; }
.kbwb-label { display: block; font-weight: 600; font-size: .9em; margin-bottom: 4px; }

/* =====================================================================
   Belgian Cycling house style (as on belgiancycling.be):
   black / yellow / red, light blue blocks, Bebas Neue capitals for titles,
   Calibri for text, square corners, yellow buttons with black text.
   ===================================================================== */
@font-face {
    font-family: "KBWB Bebas";
    src: url("fonts/bebas-neue-latin-400-normal.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
.kbwb {
    --kb-black: #0B0204;
    --kb-yellow: #FFD41C;
    --kb-yellow-dark: #E8BE00;
    --kb-red: #D91A32;
    --kb-red-dark: #A90F21;
    --kb-sky: #D4EFFC;
    --kb-ink: #0B0204;
    --kb-muted: #606266;
    --kb-line: #E2E2E2;
    --kb-bg: #F6F6F6;
    --kb-head: "KBWB Bebas", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
    font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
    font-size: 16px;
}
.kbwb input, .kbwb select, .kbwb textarea, .kbwb button { font-family: inherit; }

/* titles */
.kbwb h2, .kbwb h3, .kbwb-brand-title, .kbwb-nav a, .kbwb-tabs a, .kbwb-step-label, .kbwb-import summary {
    font-family: var(--kb-head); font-weight: 400; text-transform: uppercase; letter-spacing: .03em;
}
.kbwb h2 { font-size: 2em; line-height: 1; margin: 0 0 .45em; }
.kbwb h3 { font-size: 1.45em; line-height: 1; margin: 1.1em 0 .45em; }
.kbwb-step-label { font-size: 1.25em; padding-top: 2px; }

/* links */
.kbwb a { color: var(--kb-black); text-decoration-color: var(--kb-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.kbwb a:hover { color: var(--kb-red); }

/* brand header: logo on white, tricolour band */
.kbwb-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--kb-sky); padding: 14px 18px; } /* light blue like the bar below (1.61.0) */
.kbwb-brand-logo { display: inline-block; line-height: 0; }
.kbwb-brand-logo img { height: 52px; width: auto; display: block; }
.kbwb-brand-title { font-size: 1.6em; color: var(--kb-black); text-align: right; }
.kbwb-tricolor span { display: block; height: 5px; }
.kbwb-tricolor span:nth-child(1) { background: var(--kb-black); }
.kbwb-tricolor span:nth-child(2) { background: var(--kb-yellow); }
.kbwb-tricolor span:nth-child(3) { background: var(--kb-red); }

/* user bar (light blue, like the header of the website) */
.kbwb-top { background: var(--kb-sky); color: var(--kb-black); border-radius: 0; padding: 10px 18px; }
.kbwb-top .kbwb-muted { color: #3e4a52; }
.kbwb-top .kbwb-badge { background: var(--kb-black); color: var(--kb-yellow); }
.kbwb-lang { display: flex; gap: 6px; }
.kbwb-lang a { color: var(--kb-black); border: 2px solid var(--kb-black); border-radius: 0; padding: 1px 7px; font-family: var(--kb-head); font-size: 1.05em; letter-spacing: .05em; text-decoration: none; }
.kbwb-lang a.is-active, .kbwb-lang a:hover { background: var(--kb-black); color: var(--kb-yellow); }

/* navigation */
.kbwb-nav { border-radius: 0; border: 0; border-bottom: 1px solid var(--kb-line); padding: 0 10px; margin-bottom: 22px; gap: 0; }
.kbwb-nav a { font-size: 1.25em; color: var(--kb-black); border-radius: 0; padding: 12px 14px 9px; border-bottom: 4px solid transparent; }
.kbwb-nav a.is-active, .kbwb-nav a:hover { background: none; color: var(--kb-black); border-bottom-color: var(--kb-yellow); }
.kbwb-logout .kbwb-link { color: var(--kb-black); text-decoration-color: var(--kb-red); }

/* cards, badges, chips, messages */
.kbwb-card { border-radius: 0; border: 1px solid var(--kb-line); padding: 22px 24px; }
.kbwb-badge { border-radius: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.kbwb-badge-ok { background: var(--kb-yellow); color: var(--kb-black); }
.kbwb-badge-err { background: var(--kb-red); color: #fff; }
.kbwb-chip { border-radius: 0; background: var(--kb-black); color: #fff; padding: 4px 12px; }
.kbwb-msg { border-radius: 0; border-left-width: 5px; }
.kbwb-msg-ok { background: var(--kb-sky); border-color: var(--kb-black); }
.kbwb-msg-error { background: #FCE8EB; border-color: var(--kb-red); }
.kbwb-msg-warning { background: #FFF6CC; border-color: var(--kb-yellow-dark); }
.kbwb-reg { background: var(--kb-sky); border-left: 5px solid var(--kb-black); }

/* forms */
.kbwb input[type=text], .kbwb input[type=email], .kbwb input[type=password], .kbwb input[type=number], .kbwb input[type=date],
.kbwb input[type=url], .kbwb input[type=search], .kbwb select, .kbwb textarea { border-radius: 0; border-color: #BDBDBD; }
/* Focus mark only on the platform's own visible fields: fields that browser extensions (password managers)
   slip into the page stay without a yellow line. */
.kbwb input[type=text]:focus, .kbwb input[type=email]:focus, .kbwb input[type=password]:focus, .kbwb input[type=number]:focus,
.kbwb input[type=date]:focus, .kbwb input[type=url]:focus, .kbwb input[type=search]:focus, .kbwb select:focus, .kbwb textarea:focus {
    outline: 3px solid rgba(255,212,28,.55); outline-offset: 0; border-color: var(--kb-black); }
.kbwb input[type=checkbox]:focus-visible, .kbwb input[type=radio]:focus-visible { outline: 3px solid rgba(255,212,28,.8); }
.kbwb input:not([type]):focus, .kbwb input[style*="height: 0"]:focus, .kbwb input[style*="height:0"]:focus { outline: none !important; }
.kbwb input.is-error { border-color: var(--kb-red); background: #FDEEF0; }
.kbwb-err, .kbwb-form-status.is-error { color: var(--kb-red); }
.kbwb input.is-uci { background: var(--kb-sky); border-color: #8CC7E6; }
@keyframes kbwb-flash { from { background: var(--kb-yellow); } to { background: var(--kb-sky); } }
.kbwb-scroll, .kbwb-import { border-radius: 0; }
.kbwb-import summary { color: var(--kb-black); font-size: 1.15em; }
.kbwb-import summary::marker { color: var(--kb-red); }

/* buttons: yellow with black capitals, square (like "Lees verder" on the website) */
.kbwb .kbwb-btn { border-radius: 0; border: 2px solid var(--kb-yellow); background: var(--kb-yellow); color: var(--kb-black) !important;
    font-family: var(--kb-head); font-size: 1.15em; letter-spacing: .05em; text-transform: uppercase; padding: 8px 16px 6px; }
.kbwb .kbwb-btn:hover { background: var(--kb-black); border-color: var(--kb-black); color: var(--kb-yellow) !important; }
.kbwb .kbwb-btn-primary { background: var(--kb-yellow); border-color: var(--kb-yellow); color: var(--kb-black) !important; font-weight: 400; }
.kbwb .kbwb-btn-primary:hover { background: var(--kb-black); border-color: var(--kb-black); color: var(--kb-yellow) !important; }
.kbwb .kbwb-btn-small { font-size: .95em; padding: 4px 10px 3px; }
.kbwb-link { color: var(--kb-black); text-decoration-color: var(--kb-yellow); text-decoration-thickness: 2px; }
.kbwb-danger, .kbwb-link.kbwb-danger { color: var(--kb-red-dark); }

/* tabs */
.kbwb-tabs { border-bottom: 1px solid var(--kb-line); gap: 0; }
.kbwb-tabs a { font-size: 1.2em; border-radius: 0; border-bottom: 4px solid transparent; color: var(--kb-black); }
.kbwb-tabs a.is-active { border-color: var(--kb-yellow); color: var(--kb-black); font-weight: 400; }

/* tables */
.kbwb-table th { color: var(--kb-black); font-weight: 700; border-bottom: 2px solid var(--kb-black); }
.kbwb-pos { color: var(--kb-black); }
.kbwb-icon { border-radius: 0; }
.kbwb-icon:hover { color: var(--kb-black); border-color: var(--kb-black); background: var(--kb-yellow); }
.kbwb-ptype { border-radius: 0; background: #FFF6CC; border-color: var(--kb-yellow-dark); }
.kbwb-ptype-label { color: var(--kb-black); }

/* autocomplete */
.kbwb-ac-list { border-radius: 0 !important; border: 1px solid var(--kb-black) !important;
    font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif !important; font-size: 15px !important; color: #0B0204 !important; }
.kbwb-ac-list li.is-active, .kbwb-ac-list li:hover { background: #FFF3B8 !important; box-shadow: inset 4px 0 0 #FFD41C; }

/* test mode: black and yellow stripes */
.kbwb-testbar { background: repeating-linear-gradient(45deg, #FFD41C, #FFD41C 14px, #FFE36B 14px, #FFE36B 28px);
    border: 2px solid var(--kb-black); color: var(--kb-black); border-radius: 0; }
.kbwb-card-test { border-color: var(--kb-yellow-dark); box-shadow: inset 5px 0 0 var(--kb-yellow); }
.kbwb-card-danger { border-color: #E7A3AD; box-shadow: inset 5px 0 0 var(--kb-red); }

/* footer */
.kbwb-footer { margin-top: 28px; }
.kbwb-footer-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--kb-sky); padding: 12px 18px; font-size: .9em; }
.kbwb-footer-bar span { font-family: var(--kb-head); font-size: 1.2em; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 760px) {
    .kbwb-brand { padding: 10px 12px; }
    .kbwb-brand-logo img { height: 40px; }
    .kbwb-brand-title { font-size: 1.2em; }
    .kbwb-table tr { border-radius: 0; }
    .kbwb-nav a { font-size: 1.1em; padding: 10px 10px 7px; }
}

/* administrator working as another user */
.kbwb-impbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--kb-red); color: #fff; padding: 10px 16px; margin-bottom: 14px; }
.kbwb-impbar strong { font-family: var(--kb-head); font-weight: 400; font-size: 1.25em; letter-spacing: .04em; text-transform: uppercase; }
.kbwb .kbwb-impbar .kbwb-btn { background: var(--kb-yellow); border-color: var(--kb-yellow); color: var(--kb-black) !important; }
.kbwb .kbwb-impbar .kbwb-btn:hover { background: var(--kb-black); border-color: var(--kb-black); color: var(--kb-yellow) !important; }

/* The site's theme may decorate headings and buttons (lines after titles, own colours):
   keep the platform's own look inside .kbwb. */
.kbwb h1::before, .kbwb h1::after, .kbwb h2::before, .kbwb h2::after,
.kbwb h3::before, .kbwb h3::after, .kbwb h4::before, .kbwb h4::after { content: none !important; display: none !important; }
.kbwb h1, .kbwb h2, .kbwb h3, .kbwb h4 { color: var(--kb-black) !important; background: none !important; border: 0 !important;
    padding: 0 !important; box-shadow: none !important; text-decoration: none !important; }
/* 1.97.0: every button is yellow (also the ordinary .kbwb-btn), also when the theme styles buttons itself. */
.kbwb button.kbwb-btn, .kbwb a.kbwb-btn, .kbwb input[type=submit].kbwb-btn {
    background: var(--kb-yellow) !important; border-color: var(--kb-yellow) !important; color: var(--kb-black) !important; }
.kbwb button.kbwb-btn:hover, .kbwb a.kbwb-btn:hover, .kbwb input[type=submit].kbwb-btn:hover {
    background: var(--kb-black) !important; border-color: var(--kb-black) !important; color: var(--kb-yellow) !important; }
/* Exceptions: delete buttons stay white with red text; a language choice that is not active is white. */
.kbwb button.kbwb-btn.kbwb-danger, .kbwb a.kbwb-btn.kbwb-danger {
    background: #fff !important; border-color: var(--kb-red-dark) !important; color: var(--kb-red-dark) !important; }
.kbwb button.kbwb-btn.kbwb-danger:hover, .kbwb a.kbwb-btn.kbwb-danger:hover {
    background: var(--kb-red-dark) !important; border-color: var(--kb-red-dark) !important; color: #fff !important; }
.kbwb a.kbwb-btn.kbwb-btn-off { background: #fff !important; border-color: var(--kb-black) !important; color: var(--kb-black) !important; }
.kbwb a.kbwb-btn.kbwb-btn-off:hover { background: var(--kb-black) !important; color: var(--kb-yellow) !important; }

/* =====================================================================
   Same structure on every screen:
   1. page title (back link, title, info line, main buttons) with a yellow line below;
   2. tabs (if any);
   3. blocks (cards) that each start with a title with a black line below;
   4. forms end with the buttons on the right; deleting is a separate, small row below.
   ===================================================================== */
.kbwb-pagehead { margin: 0 0 20px; }
.kbwb .kbwb-back { display: inline-block; font-size: .95em; margin-bottom: 8px; text-decoration: none; }
.kbwb .kbwb-back:hover { text-decoration: underline; }
.kbwb-pagehead-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap;
    border-bottom: 5px solid var(--kb-yellow); padding-bottom: 12px; }
.kbwb .kbwb-pagehead h2 { font-size: 2.6em; line-height: .95; margin: 0 !important; }
.kbwb-pagehead-meta { margin: 6px 0 0; color: var(--kb-muted); }
.kbwb-pagehead + .kbwb-tabs { margin-top: -12px; }
.kbwb-tabs { margin-bottom: 18px; }

/* block titles: the first title of a block, with a black line below */
.kbwb .kbwb-card > h2:first-child, .kbwb .kbwb-card > h3:first-child {
    font-size: 1.6em; margin: 0 0 16px !important; padding-bottom: 7px !important; border-bottom: 2px solid var(--kb-black) !important; }
.kbwb .kbwb-card > .kbwb-row-between:first-child { align-items: flex-end; border-bottom: 2px solid var(--kb-black); padding-bottom: 7px; margin-bottom: 16px; }
.kbwb .kbwb-card > .kbwb-row-between:first-child h2, .kbwb .kbwb-card > .kbwb-row-between:first-child h3 { font-size: 1.6em; margin: 0 !important; }
.kbwb .kbwb-card > .kbwb-row-between:first-child p { margin: 4px 0 0; }
/* sub-titles inside a block */
.kbwb h3.kbwb-form-title, .kbwb .kbwb-card h4 { font-family: var(--kb-head); font-weight: 400; text-transform: uppercase; letter-spacing: .03em;
    font-size: 1.25em; margin: 22px 0 10px !important; padding-bottom: 4px !important; border-bottom: 1px solid var(--kb-line) !important; }
.kbwb .kbwb-card > h3.kbwb-form-title:first-child { margin-top: 0 !important; }
.kbwb .kbwb-card p.kbwb-hint { margin: -4px 0 10px; }

/* buttons at the end of a form, and a separate row for deleting */
.kbwb-submit { border-top: 1px solid var(--kb-line); padding-top: 14px; margin-top: 18px; }
.kbwb-danger-row { margin-top: 10px; text-align: right; font-size: .9em; }
.kbwb-card-test .kbwb-submit, .kbwb-card-danger .kbwb-submit { border-top: 0; padding-top: 0; }

/* filter bar above a list */
.kbwb-filter { background: var(--kb-bg); padding: 10px 12px; margin: 0 0 14px; align-items: center; }

@media (max-width: 760px) {
    .kbwb .kbwb-pagehead h2 { font-size: 2em; }
}
/* a form that starts with a sub-title (e.g. user form): no extra space above it */
.kbwb .kbwb-card > form > h3.kbwb-form-title:first-of-type { margin-top: 0 !important; }
/* back link above a block (e.g. a rider within Settings) */
.kbwb > .kbwb-back, .kbwb-card + .kbwb-back { margin-top: 4px; }
/* filter bar: fields next to each other (the general rule makes fields 100% wide) */
.kbwb .kbwb-filter input, .kbwb .kbwb-filter select { width: auto; min-width: 200px; margin: 0; }
.kbwb .kbwb-filter input[type=search] { flex: 1 1 220px; max-width: 360px; }
@media (max-width: 760px) { .kbwb .kbwb-filter input, .kbwb .kbwb-filter select { width: 100%; max-width: none; } }

/* Foreign admissions (buitenlandse toelatingen) */
.kbwb label.kbwb-block { display: block; margin: 12px 0; }
.kbwb label.kbwb-block textarea { display: block; width: 100%; margin-top: 4px; }
.kbwb-fa-steps { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0 0 10px; padding: 0; counter-reset: fa; }
.kbwb-fa-steps li { flex: 1 1 140px; position: relative; padding: 8px 10px 8px 34px; margin: 0; border-bottom: 4px solid var(--kb-line, #ddd); color: #606266; font-size: .95em; }
.kbwb-fa-steps li::before { counter-increment: fa; content: counter(fa); position: absolute; left: 6px; top: 7px; width: 22px; height: 22px; line-height: 22px; text-align: center; background: #e9eaec; color: #0B0204; font-weight: 700; font-size: .85em; }
.kbwb-fa-steps li.is-done { border-color: #0B0204; color: #0B0204; }
.kbwb-fa-steps li.is-done::before { content: '\2714'; background: #0B0204; color: #fff; }
.kbwb-fa-steps li.is-current { border-color: var(--kb-yellow, #FFD41C); color: #0B0204; font-weight: 700; }
.kbwb-fa-steps li.is-current::before { background: var(--kb-yellow, #FFD41C); }
.kbwb-fa-data th { width: 30%; text-align: left; white-space: normal; }
.kbwb-fa-amount { font-size: 1.4em; }
/* Flags (country of a foreign race) */
img.kbwb-flag { display: inline-block !important; width: 20px !important; height: 15px !important; vertical-align: -2px; border: 1px solid #ddd !important; margin: 0 !important; box-shadow: none !important; }
select.kbwb-fsel-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.kbwb-fsel { position: relative; }
.kbwb-fsel .kbwb-fsel-input { width: 100% !important; box-sizing: border-box !important; }
.kbwb-fsel.has-flag .kbwb-fsel-input { padding-left: 40px !important; }
.kbwb-fsel.is-error .kbwb-fsel-input { border-color: var(--kb-red, #D91A32) !important; }
img.kbwb-fsel-flag { position: absolute !important; left: 10px; top: 50%; transform: translateY(-50%); width: 22px !important; height: 16.5px !important; border: 1px solid #ddd !important; margin: 0 !important; pointer-events: none; }
img.kbwb-fsel-flag[hidden] { display: none !important; }
ul.kbwb-fsel-list { position: absolute !important; z-index: 1000 !important; left: 0; right: 0; top: 100%; max-height: 300px; overflow-y: auto; list-style: none !important; margin: 2px 0 0 !important; padding: 4px 0 !important; background: #fff !important; border: 1px solid var(--kb-black, #0B0204) !important; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
ul.kbwb-fsel-list[hidden] { display: none !important; }
ul.kbwb-fsel-list li { display: flex !important; align-items: center; gap: 10px; list-style: none !important; margin: 0 !important; padding: 6px 10px !important; cursor: pointer; border: 0 !important; background: none; }
ul.kbwb-fsel-list li[hidden] { display: none !important; }
ul.kbwb-fsel-list li::before, ul.kbwb-fsel-list li::marker { content: none !important; }
ul.kbwb-fsel-list li img { width: 22px !important; height: 16.5px !important; border: 1px solid #ddd !important; margin: 0 !important; flex: 0 0 auto; }
ul.kbwb-fsel-list li.is-active, ul.kbwb-fsel-list li:hover { background: #FFF3B8 !important; box-shadow: inset 4px 0 0 #FFD41C; }
.kbwb-fam-lang { border: 1px solid #ddd; padding: 8px 14px 4px; margin: 14px 0; }
.kbwb-fam-lang legend { font-weight: 700; padding: 0 6px; }
/* List: the PDF links next to the status; they only go to a next line when the column is too narrow (the table keeps its width). */
.kbwb-fa-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.kbwb-fa-status .kbwb-badge { margin-left: 0; }
.kbwb-fa-status a { white-space: nowrap; }
.kbwb-fa-lines input[type=text] { width: 100%; box-sizing: border-box; }
.kbwb-fa-admin .kbwb-form-title { margin-top: 22px; }

/* Settings → Mails foreign admissions */
.kbwb-fam { display: flex; gap: 20px; align-items: flex-start; }
.kbwb-fam-list { flex: 0 0 240px; border: 1px solid var(--kb-line, #e3e5e8); padding: 6px 0; }
.kbwb-fam-list h4 { margin: 10px 12px 4px; font-size: .8em; text-transform: uppercase; color: #6b6f76; }
.kbwb-fam-list a { display: block; padding: 6px 12px; text-decoration: none; color: #0B0204; }
.kbwb-fam-list a.is-active { background: var(--kb-yellow, #FFD41C); font-weight: 700; }
.kbwb-fam-main { flex: 1; min-width: 0; }
.kbwb-fam-main .wp-editor-wrap { margin-bottom: 8px; }
.kbwb-fam-ph code { display: inline-block; margin: 0 4px 4px 0; font-size: .85em; }
.kbwb-fam-preview { width: 100%; height: 700px; border: 1px solid var(--kb-line, #e3e5e8); background: #f6f6f6; }
@media (max-width: 900px) { .kbwb-fam { display: block; } .kbwb-fam-list { margin-bottom: 14px; } }

.kbwb-fa-uciinfo:empty { display: none; }
.kbwb-fa-uciinfo { display: block; margin-top: 2px; font-size: 12px; }

/* Club switcher in the top bar (1.75.0) */
.kbwb .kbwb-clubswitch select { width: auto; max-width: 260px; padding: 2px 6px; font-size: .95em; display: inline-block; }
.kbwb .kbwb-clubswitch label { display: inline; font-weight: normal; }

/* Riders added by hand (not from the riders database), for the administrators (1.85.0) */
.kbwb .kbwb-manual-name { color: #c00; font-weight: 600; }
.kbwb .kbwb-line.kbwb-manual input.kbwb-f-name { color: #c00 !important; font-weight: 600; }
