﻿#examenOpenen {
    position: fixed; right: 12px; top: 12px; z-index: 12; min-height: 44px;
    display: grid; place-items: center; width: 48px; height: 48px;
    padding: 8px; border: 1px solid #e4b59c; border-radius: 50%;
    background: #fff0e4; color: #8c4127;
    font: 14px 'Segoe UI', sans-serif; cursor: pointer;
}
#examenOpenen svg { width: 30px; height: 30px; }
#examenOpenen:hover { background: #ffdfc8; }
#examenFocusTaak {
    position: absolute; bottom: 1%; left: 3%; max-width: 35%; margin: 0;
    padding: 10px; border-radius: 10px; background: #fff3dfed; color: #623c2e;
    font: 14px/1.4 'Segoe UI', sans-serif; overflow-wrap: anywhere;
}
#examenVenster {
    box-sizing: border-box; width: min(740px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
    overflow-y: auto; padding: clamp(18px, 3vw, 32px); border: 1px solid #e2b89c; border-radius: 24px;
    background: #fff1e5; color: #59392e; font: 16px/1.55 'Segoe UI', sans-serif;
}
#examenVenster::backdrop { background: #3d241b88; }
#examenVenster h2 { font: 28px/1.3 Georgia, serif; margin-top: 6px; }
#examenVenster h3 { font: 21px/1.4 Georgia, serif; }
.examenKicker { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 0; }
#examenVenster button, #examenVenster input, #examenVenster select, #examenVenster textarea {
    box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid #e2b89c; border-radius: 10px;
    background: #fffaf5; color: inherit; font: inherit; max-width: 100%;
}
#examenVenster button { cursor: pointer; background: #f9d6bb; margin: 6px 6px 6px 0; }
#examenVenster button:disabled { opacity: .55; cursor: default; }
#examenVenster input:not([type=checkbox]), #examenVenster select, #examenVenster textarea { width: 100%; margin: 4px 0 12px; }
#examenVenster textarea { resize: vertical; }
#examenVenster label { display: block; }
#examenVenster form { padding: 16px; background: #fce3cf; border-radius: 14px; margin: 16px 0; }
#examenVenster #examenSluiten { display: block; margin-left: auto; }
.examenTabs { display: flex; flex-wrap: wrap; gap: 6px; }
#examenVenster .examenTabs button { flex: 1 1 160px; margin: 0; }
#examenVenster [aria-pressed=true], #examenVenster #examenAccepteren { background: #a54d27; color: #fff9f2; }
.examenKaart { border: 1px solid #e8c4ab; border-radius: 14px; padding: 16px; margin: 14px 0; overflow-wrap: anywhere; }
.examenKaart h3 { margin: 0 0 6px; }
.examenKaart ul { padding-left: 20px; }
.examenKaart li { margin-bottom: 12px; }
.examenSubtekst { font-size: 13px; color: #795343; }
.examenWeekDag { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: center; }
#examenVenster .examenWeekDag label:first-child { display: flex; align-items: center; gap: 8px; }
#examenVenster input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: #a54d27; }
#examenStatus:empty, #examenTekort:empty { display: none; }
#examenStatus, #examenTekort { padding: 12px; border-radius: 12px; background: #ffddb8; }
#examenVenster :focus-visible, #examenOpenen:focus-visible { outline: 3px solid #ad4f2b; outline-offset: 3px; }
@media (max-width: 1100px) and (pointer: coarse), (max-width: 700px) {
    #examenFocusTaak { font-size: 11px; padding: 5px; max-width: 60%; }
    .examenWeekDag { grid-template-columns: 1fr 1fr; }
    .examenWeekDag > label:first-child { grid-column: 1 / -1; }
}
/* Agenda: warme vakblokken op een echte tijdlijn. */
#examenVenster:has(#examenPlan:not([hidden])) { width: min(1120px, calc(100vw - 24px)); }
.agendaBediening, .agendaKeuze, .agendaNavigatie { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.agendaBediening { margin-top: 20px; gap: 10px; }
#examenVenster .agendaBediening button { margin: 0; }
#examenVenster #agendaDatum { width: auto; margin: 0; }
#agendaPeriode { margin-bottom: 8px; }
#agendaLegenda { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0; font-size: 13px; }
#agendaLegenda span::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 4px; background: var(--vak); border: 1px solid #59392e35; }
.agendaMaand { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid #e2b89c; border-radius: 12px; overflow: hidden; }
.agendaWeekdag { text-align: center; padding: 8px; background: #f9d6bb; font-size: 13px; }
.agendaDagCel { min-width: 0; min-height: 130px; padding: 5px; border-top: 1px solid #e2b89c; border-right: 1px solid #e2b89c; background: #fffaf5; }
.agendaDagCel:nth-child(7n) { border-right: 0; }
.agendaBuiten { background: #f1e7de; }
.agendaVandaag { box-shadow: inset 0 0 0 2px #bc6035; }
#examenVenster .agendaDagNummer { background: transparent; border: 0; margin: 0; padding: 5px; font-size: 13px; }
#examenVenster .agendaBlok { display: block; min-height: 0; width: 100%; margin: 3px 0; padding: 5px 7px; border: 1px solid #59392e30; border-left: 3px solid #995034; border-radius: 6px; background: var(--vak); color: #382c28; text-align: left; font-size: 12px; line-height: 1.3; overflow: hidden; overflow-wrap: anywhere; }
#examenVenster .agendaBlok:hover { filter: brightness(.96); box-shadow: 0 2px 6px #59392e25; }
#examenVenster .agendaCompact { white-space: nowrap; text-overflow: ellipsis; }
#examenVenster .agendaExamen { font-weight: 700; border-left-width: 5px; }
#examenVenster .agendaKlaar { opacity: .65; text-decoration: line-through; }
#examenVenster .agendaMeer { min-height: 30px; padding: 3px; margin: 0; border: 0; background: transparent; font-size: 12px; }
.agendaScroll { overflow: auto; max-height: min(520px, 60dvh); border: 1px solid #e2b89c; border-radius: 12px; background: #fffaf5; }
.agendaRooster { display: grid; grid-template-columns: 48px repeat(var(--dagen), minmax(100px, 1fr)); min-width: 820px; }
.agendaRooster.agendaEenDag { min-width: 0; grid-template-columns: 48px minmax(0, 1fr); }
.agendaKop { position: sticky; top: 0; z-index: 3; min-width: 0; background: #f9dfc9; border-bottom: 1px solid #e2b89c; border-right: 1px solid #e2b89c; padding: 4px; font-size: 12px; }
.agendaUren { position: relative; font-size: 10px; color: #795343; }
.agendaUren span { position: absolute; left: 4px; }
.agendaTijdDag { position: relative; min-width: 0; border-left: 1px solid #e2b89c; background: repeating-linear-gradient(to bottom, #e2b89c80 0, #e2b89c80 1px, transparent 1px, transparent 90px); }
#examenVenster .agendaTijdDag .agendaBlok { position: absolute; left: 3px; width: calc(100% - 6px); margin: 0; padding: 2px 5px; }
#examenVenster .agendaTijdDag .agendaKort { padding-top: 0; padding-bottom: 0; white-space: nowrap; text-overflow: ellipsis; }
.agendaPauze { position: absolute; left: 5px; right: 3px; overflow: hidden; font-size: 9px; line-height: 1.1; color: #795343; }
.agendaGeen { padding: 12px 6px; font-size: 12px; color: #795343; }
#agendaDetail { box-sizing: border-box; width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 24px; border: 1px solid #e2b89c; border-radius: 20px; background: #fff1e5; color: #59392e; font: 16px/1.55 'Segoe UI', sans-serif; overflow-wrap: anywhere; }
#agendaDetail::backdrop { background: #3d241b88; }
#agendaDetail h2 { font: 26px Georgia, serif; }
#agendaDetail button { min-height: 44px; padding: 10px 14px; border: 1px solid #e2b89c; border-radius: 10px; background: #f9d6bb; color: inherit; font: inherit; cursor: pointer; }
#agendaDetailSluiten { display: block; margin-left: auto; }
#agendaDetail #agendaDetailStart { background: #a54d27; color: #fff9f2; }
#agendaDetail button:disabled { opacity: .55; }
#agendaDetail :focus-visible { outline: 3px solid #ad4f2b; outline-offset: 3px; }
@media (max-width: 600px) {
    .agendaDagCel { padding: 2px; min-height: 100px; }
    #examenVenster .agendaDagCel .agendaBlok { padding: 3px 2px; font-size: 10px; }
    #examenVenster .agendaMeer { font-size: 10px; }
    .agendaWeekdag { padding: 6px 0; }
    .agendaBediening { gap: 8px; }
}
#examenVenster input[type=color] { display: block; width: 64px; height: 44px; padding: 4px; cursor: pointer; }
body.examenRust .studiekamer { background-image: var(--examen-achtergrond, url('examen-bureau-uil.png')) !important; background-size: 100% 100% !important; aspect-ratio: 1672 / 941 !important; }
body.examenRust .studiekamer .laptop { left: 44.5% !important; top: 40.7% !important; width: 21.2% !important; height: 23.5% !important; transform: none !important; }
body.examenRust .studiekamer :is(.zon, .raam, .studiehoekKeuze, .matchaStoom, #geekLichtWissel, #geekLampKnop, #halloweenLampKnop) { display: none !important; }
body.examenRust .studiekamer .tools { left: 31% !important; top: 81% !important; width: 11% !important; aspect-ratio: 2; visibility: visible; }
body.examenRust .studiekamer #toolsKnop { background: transparent; border: 0; border-radius: 15%; }
body.examenRust .studiekamer #toolsKnop svg { display: none; }
body.examenRust .studiekamer #toolsKnop:hover,
body.examenRust .studiekamer #toolsKnop:focus-visible { outline: 2px solid #ffe0be; background: #fff0df26; }
body.examenRust .studiekamer .muziek { left: 84% !important; top: 77% !important; }
body.examenRust .studiekamer .takenlijst { left: 54% !important; top: 80% !important; }
body.examenRust .studiekamer .kopje { left: 36.4% !important; top: 55% !important; }
body.examenRust .studiekamer .uil { left: 23.5% !important; top: 43% !important; width: 3.95% !important; height: auto !important; aspect-ratio: 1; transform: translate(-50%, -50%) !important; }
body.examenRust .studiekamer .kaars { display: block; left: 8.5% !important; top: 57% !important; width: 6% !important; height: 13% !important; }
body.examenRust .studiekamer #hoofdNaamKnop { left: 17% !important; top: 46% !important; width: 13% !important; height: 24% !important; }
body.examenRust .studiekamer :is(#muziekKnop, #takenlijstKnop) { background: #33261dc9; border: 1px solid #ffe0be; border-radius: 50%; color: #fff1e5; }
body.examenRust #muziekKnop::after { content: '♫'; font-size: 2cqw; }
body.examenRust #takenlijstKnop::after { content: '☷'; font-size: 2cqw; }
body.examenRust .mobieleTools :is([data-paneel='studiehoekOpties'], #mobielLicht) { display: none !important; }
body.examenRust .studiekamer #kopjeKnop::before { content: '?' !important; }
body.examenRust .studiekamer #kopjeKnop { background: #33261dc9; border: 1px solid #ffe0be; border-radius: 50%; color: #fff1e5; }
body.examenRust .studiekamer .uil { top: 58% !important; width: 13% !important; height: 24% !important; }
body.examenRust .studiekamer #uilKnop { border-radius: 25%; }
body.examenRust.examenZonderBuddy .studiekamer :is(#hoofdNaamKnop, .kopje) { display: none !important; }
body.examenRust.examenZonderBuddy .studiekamer .uil { display: block !important; }
body:not(.examenRust) .examenGeenBuddyKeuze { display: none !important; }

body.examenRust .studiekamer .laptop { clip-path: none !important; border-radius: .3cqw; }
#examenZonKnop { display: none; }
body.examenRust #examenZonKnop {
    position: absolute; left: 72%; top: 10%; z-index: 5;
    display: grid; place-items: center; width: clamp(44px, 3.5cqw, 58px); aspect-ratio: 1;
    padding: 9px; border: 1px solid #ffe0be; border-radius: 50%;
    background: #33261db8; color: #ffe0ac; cursor: pointer;
}
#examenZonKnop svg { display: block; width: 100%; height: 100%; }
#examenZonKnop:hover, #examenZonKnop:focus-visible { outline: 3px solid #ffe0ac; outline-offset: 3px; }
#examenZonKnop[aria-pressed='true'] { background: #fff0df; color: #98501e; }

/* Het bureau blijft rustig; bediening verschijnt bij het bijbehorende voorwerp. */
body.examenRust .studiekamer .laptop { background: rgb(15 24 34 / 48%); pointer-events: auto; }
body.examenRust .studiekamer :is(#toolsKnop, #muziekKnop, #takenlijstKnop, #kopjeKnop, #uilKnop, #kaarsKnop, #hoofdNaamKnop) {
    opacity: 0;
}
body.examenRust .studiekamer :is(.tools, .muziek, .takenlijst, .kopje, .uil, .kaars):is(:hover, :focus-within, .is-open) > button,
body.examenRust .studiekamer #hoofdNaamKnop:is(:hover, :focus-visible) {
    opacity: 1;
}
