.bhsc-vr { --bhsc-navy:#14314c; --bhsc-teal:#087e83; --bhsc-border:#dce4eb; --bhsc-muted:#576777; --bhsc-bg:#f5f8fb; box-sizing:border-box; max-width:1250px; margin:20px auto; color:#1d3040; font-size:15px; line-height:1.5; }
.bhsc-vr *, .bhsc-vr *::before, .bhsc-vr *::after { box-sizing:inherit; }
.bhsc-vr p { margin:7px 0 14px; color:var(--bhsc-muted); }
.bhsc-vr h1,.bhsc-vr h2,.bhsc-vr h3 { color:var(--bhsc-navy); line-height:1.2; margin:0 0 14px; }
.bhsc-vr h1 { font-size:28px; margin:4px 0 4px; }
.bhsc-vr h2 { font-size:22px; }
.bhsc-vr h3 { font-size:18px; }
.bhsc-vr a { color:#176e8b; text-decoration:none; }
.bhsc-vr a:hover { text-decoration:underline; }
.bhsc-vr-head { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:22px 24px; border-radius:14px 14px 0 0; background:var(--bhsc-navy); color:white; }
.bhsc-vr-head h1,.bhsc-vr-head p { color:white; }
.bhsc-vr-head p { margin:0; opacity:.8; }
.bhsc-vr-kicker { font-size:11px; text-transform:uppercase; letter-spacing:.11em; color:#aad9e4; font-weight:700; }
.bhsc-vr-nav { display:flex; flex-wrap:wrap; gap:4px; background:white; border:1px solid var(--bhsc-border); border-top:0; padding:10px; margin-bottom:24px; border-radius:0 0 12px 12px; }
.bhsc-vr-nav a { font-size:13px; font-weight:600; padding:10px 13px; border-radius:7px; white-space:nowrap; }
.bhsc-vr-nav a.is-active { background:#e1f4f3; color:#086c70; }
.bhsc-vr-nav a:hover { background:#eff4f7; text-decoration:none; }
.bhsc-vr-btn,.bhsc-vr button.bhsc-vr-btn { display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:8px 13px; border:1px solid #bbcbd5; border-radius:7px; color:var(--bhsc-navy); background:white; font-weight:600; font-size:13px; min-height:38px; text-decoration:none; line-height:1.3; box-shadow:none; }
.bhsc-vr-btn:hover { background:#f0f6fa; text-decoration:none!important; }
.bhsc-vr .bhsc-vr-btn-primary { background:var(--bhsc-teal); border-color:var(--bhsc-teal); color:white; }
.bhsc-vr .bhsc-vr-btn-primary:hover { background:#066b70; color:white; }
.bhsc-vr .bhsc-vr-btn-danger { color:#a32c39; border-color:#deb3b6; }
.bhsc-vr-head .bhsc-vr-btn-primary { background:#f3fbfb; border-color:#f3fbfb; color:var(--bhsc-navy); }
.bhsc-vr-between { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.bhsc-vr-between h2,.bhsc-vr-between h3,.bhsc-vr-between p { margin-bottom:4px; }
.bhsc-vr-panel { background:white; border:1px solid var(--bhsc-border); padding:21px; border-radius:12px; min-width:0; }
.bhsc-vr-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.bhsc-vr-space { margin-top:20px; }
.bhsc-vr-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:20px; }
.bhsc-vr-stat { background:white; border:1px solid var(--bhsc-border); border-radius:11px; padding:18px; }
.bhsc-vr-stat span { display:block; color:var(--bhsc-muted); font-size:13px; }
.bhsc-vr-stat strong { display:block; margin-top:8px; font-size:29px; line-height:1.1; color:var(--bhsc-navy); }
.bhsc-vr-actions,.bhsc-vr-inline-form { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.bhsc-vr-inline-form { margin-top:8px; }
.bhsc-vr-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:17px; }
.bhsc-vr label { font-weight:600; font-size:13px; display:block; color:var(--bhsc-navy); }
.bhsc-vr label span { color:#af3030; }
.bhsc-vr input[type=text],.bhsc-vr input[type=email],.bhsc-vr input[type=date],.bhsc-vr input[type=time],.bhsc-vr input[type=search],.bhsc-vr input[type=number],.bhsc-vr input:not([type]),.bhsc-vr select,.bhsc-vr textarea { display:block; background:#fff; border:1px solid #b8c7d3; border-radius:6px; padding:8px 9px; color:#192d3c; margin-top:6px; width:100%; max-width:none; height:auto; min-height:39px; font-size:14px; line-height:1.4; box-shadow:none; }
.bhsc-vr input[type=checkbox] { accent-color:var(--bhsc-teal); margin-right:4px; }
.bhsc-vr input:focus,.bhsc-vr select:focus,.bhsc-vr textarea:focus { border-color:var(--bhsc-teal); outline:2px solid #b4dfe0; outline-offset:1px; }
.bhsc-vr .bhsc-vr-block-label { margin-bottom:16px; }
.bhsc-vr fieldset { border:1px solid var(--bhsc-border); padding:12px 15px 14px; margin:15px 0; border-radius:8px; }
.bhsc-vr legend { font-size:13px; font-weight:700; padding:0 6px; color:var(--bhsc-navy); }
.bhsc-vr-checks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px 12px; }
.bhsc-vr-checks label { font-weight:400; font-size:13px; }
.bhsc-vr-qualification-heading { margin:13px 0 8px; font-size:13px; }
.bhsc-vr-qualification-heading:first-of-type { margin-top:8px; }
.bhsc-vr-scroll { max-width:100%; overflow-x:auto; }
.bhsc-vr table { width:100%; border-collapse:collapse; text-align:left; margin:0; background:white; font-size:13px; }
.bhsc-vr th { color:var(--bhsc-navy); font-weight:700; background:#eff4f8; white-space:nowrap; }
.bhsc-vr th,.bhsc-vr td { padding:11px 12px; border-bottom:1px solid var(--bhsc-border); vertical-align:top; }
.bhsc-vr td small,.bhsc-vr-coordinator small { display:block; color:var(--bhsc-muted); margin-top:3px; font-size:12px; overflow-wrap:anywhere; }
.bhsc-vr td { overflow-wrap:anywhere; }
.bhsc-vr tr[hidden] { display:none!important; }
.bhsc-vr-tag { font-size:11px; display:inline-block; background:#edf2f4; color:#4e6173; padding:3px 7px; border-radius:999px; }
.bhsc-vr .bhsc-vr-search { max-width:250px; margin:0; }
.bhsc-vr-hint { font-size:12px; color:#617181; }
.bhsc-vr-notice { border-radius:8px; padding:12px 15px; margin:0 0 18px; border:1px solid; }
.bhsc-vr-success { background:#f2faf6; color:#145c40; border-color:#bae7ce; }
.bhsc-vr-error { background:#fff4f3; color:#a2212c; border-color:#edc4c4; }
.bhsc-vr-rule-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:16px 0 20px; }
.bhsc-vr-rule-grid input { max-width:130px!important; }
.bhsc-vr-coordinator { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid var(--bhsc-border); }
.bhsc-vr-details summary { cursor:pointer; color:#176e8b; white-space:nowrap; }
.bhsc-vr-details form { margin-top:8px; min-width:210px; }
.bhsc-vr-details button { margin-top:6px; }
.bhsc-vr-pagination { display:flex; align-items:center; justify-content:center; gap:15px; margin-top:18px; }
.bhsc-vr-footer { font-size:12px; color:#697e90; padding:20px 6px; text-align:center; }
.bhsc-vr-access { padding:20px; background:#f5f8fb; border:1px solid #dce4eb; border-radius:12px; }
.bhsc-vr .bhsc-vr-inline-form select { width:auto; min-width:170px; margin:0; }
.bhsc-vr .bhsc-vr-inline-form label { margin:0; }
.bhsc-vr .bhsc-vr-inline-form input[type=file] { max-width:350px; }
@media (max-width:900px) { .bhsc-vr-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .bhsc-vr-columns { grid-template-columns:1fr; } .bhsc-vr-checks { grid-template-columns:repeat(2,minmax(0,1fr)); } .bhsc-vr-rule-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:540px) { .bhsc-vr-head { flex-direction:column; align-items:start; } .bhsc-vr-stats,.bhsc-vr-fields,.bhsc-vr-rule-grid { grid-template-columns:1fr; } .bhsc-vr-checks { grid-template-columns:1fr; } .bhsc-vr-panel { padding:14px; } .bhsc-vr h1 { font-size:24px; } }
.bhsc-vr-audit-detail { white-space:pre-wrap; overflow-wrap:anywhere; max-width:410px; max-height:350px; overflow:auto; background:#f5f8fb; padding:10px; border:1px solid #dce4eb; border-radius:7px; font-size:11px; }

/* Linked swimmer records: one line per sibling, editable by administrators and coordinators. */
.bhsc-vr .bhsc-vr-swimmers { margin:18px 0; }
.bhsc-vr-swimmer-row { display:grid; grid-template-columns:minmax(180px,1.35fr) minmax(135px,1fr) minmax(190px,1.25fr) auto; gap:12px; align-items:end; padding:13px 0; border-bottom:1px solid var(--bhsc-border); }
.bhsc-vr-swimmer-row:last-child { margin-bottom:14px; }
.bhsc-vr-swimmer-row label { min-width:0; }
.bhsc-vr-swimmer-row .bhsc-vr-btn { margin-bottom:1px; }
@media (max-width:900px) { .bhsc-vr-swimmer-row { grid-template-columns:repeat(2,minmax(0,1fr)); } .bhsc-vr-swimmer-row .bhsc-vr-btn { justify-self:start; } }
@media (max-width:540px) { .bhsc-vr-swimmer-row { grid-template-columns:1fr; } }

/* Multi-session gala awarding: choose any combination of sessions from the selected meet. */
.bhsc-vr .bhsc-vr-required { color:#af3030; }
.bhsc-vr-session-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; padding:0 0 12px; font-size:13px; color:var(--bhsc-muted); }
.bhsc-vr-session-toolbar .bhsc-vr-btn { min-height:32px; padding:5px 10px; }
.bhsc-vr-session-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.bhsc-vr .bhsc-vr-session-choice { display:flex; align-items:flex-start; gap:9px; padding:11px 12px; border:1px solid var(--bhsc-border); background:#f8fafc; border-radius:8px; cursor:pointer; font-size:13px; font-weight:400; min-width:0; }
.bhsc-vr .bhsc-vr-session-choice:has(input:checked) { background:#edf9f7; border-color:#72b9b2; }
.bhsc-vr .bhsc-vr-session-choice[hidden] { display:none!important; }
.bhsc-vr-session-choice input[type=checkbox] { flex:none; margin-top:3px; }
.bhsc-vr .bhsc-vr-session-info { display:block; min-width:0; color:var(--bhsc-navy); }
.bhsc-vr-session-info strong { display:block; font-weight:600; overflow-wrap:anywhere; }
.bhsc-vr-session-info small { display:block; font-size:12px; font-weight:400; color:var(--bhsc-muted); margin-top:3px; }
.bhsc-vr .bhsc-vr-btn:disabled { cursor:not-allowed; opacity:.55; }
@media (max-width:900px) { .bhsc-vr-session-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:540px) { .bhsc-vr-session-grid { grid-template-columns:1fr; } }
