/* LED Wall reservations (app/ledwall.py). Uses the theme colours of style.css, so it follows Light / Dark / Futuristic. */
.led-month { margin: 6px 0 10px; }
.led-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 20px; }
.led-dow { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); text-align: center; padding: 4px 0; }
.led-day { min-height: 104px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; padding: 4px 5px 6px; display: grid; gap: 3px; align-content: start; min-width: 0; }
html.dark .led-day { border-color: var(--border); }
.led-day.is-other { opacity: .5; }
.led-day.is-closed { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(148, 163, 184, .13) 8px 16px); }
.led-day.is-past .led-num { opacity: .55; }
.led-day.is-today { border-color: var(--btn); box-shadow: inset 0 0 0 1px var(--btn); }
.led-day.is-picked { background: var(--hover); border-color: var(--link); }
.led-num { font-size: .75rem; font-weight: 800; color: var(--muted); text-decoration: none; justify-self: start; }
.led-chip { display: block; font-size: .68rem; font-weight: 700; line-height: 1.25; border-radius: 6px; padding: 3px 5px; overflow: hidden; text-decoration: none; border-left: 3px solid; overflow-wrap: anywhere; }
.led-chip:hover { text-decoration: none; filter: brightness(.96); }
.led-time { font-weight: 800; opacity: .85; display: block; }
.led-booked { background: #dcfce7; color: #166534; border-color: #16a34a; }
.led-pending { background: #fef3c7; color: #92400e; border-color: #f59e0b; }
.led-closed { background: #e2e8f0; color: #475569; border-color: #94a3b8; }
html.dark .led-booked { background: rgba(34, 197, 94, .18); color: #86efac; }
html.dark .led-pending { background: rgba(245, 158, 11, .2); color: #fcd34d; }
html.dark .led-closed { background: rgba(148, 163, 184, .18); color: #cbd5e1; }
.led-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 12px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.led-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; border-left: 4px solid; }
.led-legend .l-booked::before { background: #dcfce7; border-color: #16a34a; }
.led-legend .l-pending::before { background: #fef3c7; border-color: #f59e0b; }
.led-legend .l-closed::before { background: #e2e8f0; border-color: #94a3b8; }
.led-legend .l-free::before { background: var(--surface); border-color: var(--border); border-left-width: 1px; }
.led-slots { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.led-slot { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-soft); border-left-width: 4px; background: var(--surface); }
.led-slot.free { border-left-color: #16a34a; }
.led-slot.booked { border-left-color: #16a34a; background: rgba(22, 163, 74, .08); }
.led-slot.pending { border-left-color: #f59e0b; background: rgba(245, 158, 11, .08); }
.led-slot.closed { border-left-color: #94a3b8; background: rgba(148, 163, 184, .1); }
.led-slot strong { color: var(--heading); }
.led-slot .grow { flex: 1 1 200px; min-width: 0; }
.ls { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.ls-pending { background: #fef3c7; color: #92400e; }
.ls-needs-revision { background: #e0f2fe; color: #075985; }
.ls-approved { background: #dcfce7; color: #166534; }
.ls-rejected, .ls-cancelled { background: #e2e8f0; color: #475569; }
html.dark .ls-pending { background: rgba(251, 191, 36, .16); color: #fcd34d; }
html.dark .ls-needs-revision { background: rgba(56, 189, 248, .16); color: #7dd3fc; }
html.dark .ls-approved { background: rgba(74, 222, 128, .16); color: #86efac; }
html.dark .ls-rejected, html.dark .ls-cancelled { background: rgba(148, 163, 184, .16); color: #cbd5e1; }
.led-free-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.led-free-picks button { cursor: pointer; }
.led-rules { white-space: pre-line; }
.led-clash { color: #b91c1c; font-weight: 700; font-size: .74rem; }
@media (max-width: 760px) {
  .led-cal { gap: 2px; }
  .led-day { min-height: 70px; padding: 3px; }
  .led-chip { font-size: .6rem; }
  .led-chip .led-time { display: none; }
}

/* the Preview of a document on the reservation page */
.led-preview { flex: 1 1 100%; }
.led-preview-bar { margin: 2px 0 6px; font-size: .8rem; }
.led-preview iframe { display: block; width: 100%; height: 72vh; min-height: 420px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.led-preview img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

/* the monthly report (templates/led/report.html): on paper only the report itself is printed */
.led-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; }
.led-nav .inline-form { display: inline-flex; gap: 6px; align-items: center; margin-left: 8px; }
.led-nav .inline-form input { width: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.report-title { margin: 6px 0 12px; font-size: 1.15rem; }
.report-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.report-cols .card { margin: 0; }
.table th.num, .table td.num { text-align: right; white-space: nowrap; }
.stat small { font-weight: 500; text-transform: none; letter-spacing: normal; color: var(--muted); }
.print-only { display: none; }
@media print {
  .topbar, .footer, .chat, .no-print, .nav-toggle, .theme-toggle { display: none !important; }
  body { background: #fff !important; color: #000; }
  main.container { padding: 0; animation: none; }
  .card, .stat { box-shadow: none !important; break-inside: avoid; border-color: #bbb !important; background: #fff !important; }
  .print-only { display: block; }
}

/* who will assist at the event: check boxes of the OIT staff */
.assist-pick { border: 1px solid var(--border); border-radius: 12px; padding: 8px 14px 12px; margin: 0; }
.assist-pick legend { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 6px; }
.assist-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px; }
.assist-opts .check { margin: 0; }

/* the event report: photos as proof that the event happened */
.led-photos { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.led-photos li { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.led-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.led-photo-cap { display: grid; gap: 2px; padding: 8px 10px 10px; font-size: .78rem; }
.led-photo-cap form { margin-top: 4px; }
.led-nothappen { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.led-photos img { height: auto; }
