/* Room bookings (Owen, 12 September 2026): the Timetables hourly grid (timetables.css) with the room's lessons
   locked and hatched, bookings in blue, and the free time between them as dashed click-to-book blocks. */
.rbk .rbk-tile{font:inherit;text-align:left;justify-content:center}
.rbk-tile-name{font-size:16px;font-weight:700;letter-spacing:-.01em;line-height:1.3}
.rbk-key{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:11.5px;color:var(--muted)}
.rbk-key span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.rbk-key i{display:inline-block;width:16px;height:11px;border-radius:3px}
.rbk-key .k-lesson{background:repeating-linear-gradient(135deg,#d9dfdb 0 3px,#eef1ef 3px 6px);border:1px solid #8e9b94}
.rbk-key .k-booking{background:#dcebfb;border:1px solid #3a78c2}
.rbk-key .k-free{background:#f3faf5;border:1px dashed #5d9a6f}
.rbk .ttv-hours{flex:0 0 auto;height:max(520px,calc(100dvh - var(--rbk-top,240px) - 14px))}
.rbk .ttv-day-col.is-past{background-color:#f3f4f3}
/* A timetabled lesson: fixed, so it reads as blocked out rather than as something to click. */
.rbk .rbk-lesson{display:flex;flex-direction:column;justify-content:center;padding:2px 8px;border-left:4px solid #5f6d66;border-radius:4px;background:repeating-linear-gradient(135deg,#e1e6e3 0 6px,#eef1ef 6px 12px);color:#26322c;line-height:1.15;box-sizing:border-box;cursor:not-allowed}
.rbk .rbk-lesson strong,.rbk .rbk-booking strong{font-size:12px;line-height:1.15}
.rbk .rbk-lesson small,.rbk .rbk-booking small{font-size:10px;color:#4d5a53}
.rbk .ttv-block-wrap .rbk-when{display:flex;align-items:center;gap:4px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset}
.rbk .rbk-lesson .rbk-when{color:#3d4a43}
.rbk-lock{width:10px;height:10px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8}
.rbk .rbk-booking{display:flex;flex-direction:column;justify-content:center;width:100%;padding:2px 8px;border:0;border-left:4px solid #3a78c2;border-radius:4px;background:#dcebfb;color:#163d6b;font:inherit;text-align:left;line-height:1.15;cursor:pointer;min-height:0}
.rbk .rbk-booking .rbk-when,.rbk .rbk-booking small{color:#2d5d93}
.rbk .rbk-booking.is-mine{background:#c9def8;border-left-color:#164c91}
.rbk .rbk-booking:hover{filter:brightness(.95)}
/* Free time: an open dashed block; the whole block is the button. */
.rbk-block-free{z-index:0}
.rbk .rbk-free{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;padding:1px 6px;border:1px dashed #9cc4a8;border-radius:5px;background:transparent;color:#2f6a42;font:inherit;line-height:1.2;cursor:pointer;min-height:0}
.rbk .rbk-free .rbk-plus{font-size:12px;font-weight:700;opacity:.75}
.rbk .rbk-free small{font-size:10px;color:#4f7c5d}
.rbk .rbk-free:hover,.rbk .rbk-free:focus-visible{background:#e8f5ec;border-style:solid;border-color:#5d9a6f}
.rbk .rbk-free:hover .rbk-plus{opacity:1}
.rbk .ttv-fit-1 .rbk-free,.rbk .is-short .rbk-free{flex-direction:row;gap:6px}
.rbk .ttv-fit-1 .rbk-free small,.rbk .is-short .rbk-free small{display:none}
.rbk .ttv-fit-1 .rbk-when,.rbk .is-short .rbk-when{flex:0 0 auto}
/* Your upcoming bookings, under the week. */
.rbk-mine{margin-top:12px;padding:10px 14px;border:1px solid #d5e0da;border-radius:12px;background:#fff}
.rbk-mine h2{margin:0;font-size:14px}
.rbk-mine ul{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 0;padding:0;list-style:none}
.rbk-mine-item{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:6px 12px;border:1px solid #cfdbd5;border-left:4px solid #164c91;border-radius:8px;background:#f5f9fe;font:inherit;font-size:12.5px;text-align:left;cursor:pointer;min-height:0}
.rbk-mine-item span{font-size:12px;color:#3b5548}
.rbk-mine-item:hover{background:#e7f0fb}
.rbk-small{margin:6px 0 0;font-size:12px;color:var(--muted)}
/* The booking form and a booking's details. */
.rbk-dialog{width:min(540px,calc(100% - 32px));border:0;border-radius:14px;padding:18px 20px;box-shadow:0 18px 50px rgba(20,40,30,.28)}
.rbk-dialog::backdrop{background:rgba(20,32,26,.35)}
.rbk-dialog form,.rbk-detail{display:grid;gap:10px}
.rbk-dialog label{display:grid;gap:3px;font-size:13px;font-weight:600;color:#2c3d34}
.rbk-dialog label small{font-weight:400;color:var(--muted)}
.rbk-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.rbk-dialog-head h2{margin:0;font-size:18px}
.rbk-fields{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:8px}
.rbk-choices{display:grid;gap:5px}
.rbk-choices-label{font-size:13px;font-weight:600;color:#2c3d34}
.rbk-chips{display:flex;flex-wrap:wrap;gap:5px}
.rbk-chip{min-height:0;padding:4px 10px;border:1px solid #cfdbd5;border-radius:999px;background:#fff;font:inherit;font-size:12px;color:#243129;cursor:pointer}
.rbk-chip span{color:#66786f;font-variant-numeric:tabular-nums}
.rbk-chip-primary{border-color:#e2cf94;background:#fffaf0}
.rbk-chip-secondary{border-color:#b7cde8;background:#f5f9fe}
.rbk-chip[aria-pressed=true]{background:#244f35;border-color:#244f35;color:#fff}
.rbk-chip[aria-pressed=true] span{color:#d5e3d9}
.rbk-check{margin:0;padding:6px 10px;border-radius:8px;font-size:12.5px;background:#f3f6f4;color:#4b5c53}
.rbk-check.is-ok{background:#e6f4ea;color:#23603a}
.rbk-check.is-clash{background:#fbe9e7;color:#8a2d1c}
.rbk-facts{display:grid;gap:6px;margin:0}
.rbk-facts div{display:grid;grid-template-columns:96px 1fr;gap:8px}
.rbk-facts dt{font-size:12px;font-weight:700;color:#5c6f66}
.rbk-facts dd{margin:0;font-size:13.5px}
/* Bookings in the Room view of Timetables, and its free periods that open this page. */
.ttv .tt-slot.ttv-booking,.ttv-chip-booking{--lesson-bg:#dcebfb;--lesson-accent:#3a78c2}
.ttv .tt-slot.ttv-booking small{color:#2d5d93}
.ttv a.ttv-book{text-decoration:none;border-radius:4px}
.ttv a.ttv-book:hover{background:#eaf6ee}
.ttv a.ttv-book:hover .tt-empty::after{content:' · book';color:#2f6a42}
@media(max-width:560px){.rbk-fields{grid-template-columns:1fr 1fr}.rbk-fields label:first-child{grid-column:1/-1}}
