/* ==========================================================================
   NSRL Client Dashboard: Reservation view
   Markup and behavior: assets/public/js/ui/Client/reservation-ui.js (API: assets/public/js/api/Client/reservation-api.js)
   Everything is scoped under .nsrl-rsv so the theme and Elementor cannot leak in.
   Two roots use it: .rsv-home (inside the dashboard) and .rsv-flow (full-screen overlay).
   ========================================================================== */

/* ---- Design tokens (NSRL branding) --------------------------------------- */
.nsrl-rsv {
  --rsv-bg: #f8fafc;
  --rsv-surface: #ffffff;
  --rsv-ink: #1e293b;
  --rsv-muted: #64748b;
  --rsv-line: #e2e8f0;
  --rsv-brand: #087f87;        /* cyan 700 */
  --rsv-brand-dark: #076d74;   /* cyan 800 */
  --rsv-on-brand: #ffffff;
  --rsv-tint: #eefbfb;         /* cyan 50 */
  --rsv-tint-border: #8de9ee;  /* cyan 200 */
  --rsv-cyan: #64dde3;         /* cyan 300 */
  --rsv-head: #053b3e;         /* cyan 950 */
  --rsv-danger: #be123c;
  --rsv-booked-bg: #e2e8f0;
  --rsv-booked-ink: #475569;
  --rsv-lunch-bg: #fdf0cf;     /* amber tint */
  --rsv-class-bg: #e9e5f8;     /* lavender tint */
  --rsv-pending-bg: #fdf0cf;
  --rsv-focus: #087f87;
  --rsv-todo-bg: #fff7e0;
  --rsv-todo-line: #e0a82e;
  --rsv-todo-ink: #6b4a00;
  --rsv-radius: 10px;
  --rsv-speed: 150ms;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nsrl-rsv:not([data-theme="light"]) {
    --rsv-bg: #081a1c; --rsv-surface: #0e2a2d; --rsv-ink: #e4f4f4; --rsv-muted: #95b3b4; --rsv-line: #1d4447;
    --rsv-brand: #64dde3; --rsv-brand-dark: #8de9ee; --rsv-on-brand: #053b3e;
    --rsv-tint: #0f3538; --rsv-tint-border: #1d6a70; --rsv-cyan: #1d8f97; --rsv-head: #04282a;
    --rsv-danger: #fb7185; --rsv-booked-bg: #2c4245; --rsv-booked-ink: #a9bfc1;
    --rsv-lunch-bg: #4a3d17; --rsv-class-bg: #342f55; --rsv-pending-bg: #4a3d17;
    --rsv-focus: #64dde3; --rsv-todo-bg: #3a2f10; --rsv-todo-line: #c8932a; --rsv-todo-ink: #f3d68a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] .nsrl-rsv,
.nsrl-rsv[data-theme="dark"] {
  --rsv-bg: #081a1c; --rsv-surface: #0e2a2d; --rsv-ink: #e4f4f4; --rsv-muted: #95b3b4; --rsv-line: #1d4447;
  --rsv-brand: #64dde3; --rsv-brand-dark: #8de9ee; --rsv-on-brand: #053b3e;
  --rsv-tint: #0f3538; --rsv-tint-border: #1d6a70; --rsv-cyan: #1d8f97; --rsv-head: #04282a;
  --rsv-danger: #fb7185; --rsv-booked-bg: #2c4245; --rsv-booked-ink: #a9bfc1;
  --rsv-lunch-bg: #4a3d17; --rsv-class-bg: #342f55; --rsv-pending-bg: #4a3d17;
  --rsv-focus: #64dde3; --rsv-todo-bg: #3a2f10; --rsv-todo-line: #c8932a; --rsv-todo-ink: #f3d68a;
  color-scheme: dark;
}

/* ---- Base and theme resets ------------------------------------------------ */
.nsrl-rsv,
.nsrl-rsv *,
.nsrl-rsv *::before,
.nsrl-rsv *::after { box-sizing: border-box; }

.nsrl-rsv {
  font-family: var(--nsrl-font, "DM Sans", sans-serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--rsv-ink);
  text-align: left;
}
.nsrl-rsv[hidden] { display: none !important; }

.nsrl-rsv h1, .nsrl-rsv h2, .nsrl-rsv h3, .nsrl-rsv p, .nsrl-rsv ul, .nsrl-rsv ol { margin: 0; padding: 0; }
.nsrl-rsv h1, .nsrl-rsv h2, .nsrl-rsv h3 { font-family: inherit; color: var(--rsv-ink); letter-spacing: normal; text-transform: none; line-height: 1.25; }
.nsrl-rsv ul, .nsrl-rsv ol { list-style: none; }

/* Buttons: one rule applies the colors, components only set the --_ variables.
   Listing hover/focus/active here keeps theme button colors from leaking in. */
.nsrl-rsv button {
  --_bg: transparent; --_fg: inherit; --_bd: transparent;
  font: inherit; margin: 0; padding: 0; border-radius: 0; cursor: pointer;
  text-transform: none; letter-spacing: normal; text-decoration: none; box-shadow: none;
  border: 1px solid transparent;
}
.nsrl-rsv button,
.nsrl-rsv button:hover,
.nsrl-rsv button:focus,
.nsrl-rsv button:active {
  background-color: var(--_bg); color: var(--_fg); border-color: var(--_bd);
  text-decoration: none; box-shadow: none;
}
.nsrl-rsv button:disabled { cursor: not-allowed; }

.nsrl-rsv input, .nsrl-rsv textarea {
  font: inherit; color: var(--rsv-ink); background: var(--rsv-surface);
  border: 1px solid var(--rsv-line); border-radius: 8px; padding: 10px 12px; margin: 0;
  width: 100%; box-shadow: none; height: auto;
}
.nsrl-rsv input:disabled { opacity: .7; cursor: not-allowed; }
.nsrl-rsv input[type="checkbox"] { width: 18px; height: 18px; padding: 0; accent-color: var(--rsv-brand); }

.nsrl-rsv :focus-visible { outline: 3px solid var(--rsv-focus); outline-offset: 2px; }

.rsv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Shared components ---------------------------------------------------- */
.nsrl-rsv .rsv-h1 { font-size: 24px; font-weight: 700; margin: 8px 0 4px; }
.nsrl-rsv .rsv-h2 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.nsrl-rsv .rsv-lead { color: var(--rsv-muted); margin: 0 0 16px; }
.nsrl-rsv .rsv-note { font-size: 12.5px; color: var(--rsv-muted); }
.nsrl-rsv .rsv-empty { color: var(--rsv-muted); margin: 6px 0; }
.nsrl-rsv .rsv-stack > * + * { margin-top: 14px; }
.nsrl-rsv .rsv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.nsrl-rsv .rsv-card { background: var(--rsv-surface); border: 1px solid var(--rsv-line); border-radius: var(--rsv-radius); padding: 16px; }
.nsrl-rsv .rsv-callout { background: var(--rsv-tint); border: 1px solid var(--rsv-tint-border); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
.nsrl-rsv .rsv-callout--danger { background: color-mix(in srgb, var(--rsv-danger) 10%, var(--rsv-surface)); border-color: color-mix(in srgb, var(--rsv-danger) 40%, var(--rsv-line)); }
.nsrl-rsv .rsv-callout--warn { background: var(--rsv-lunch-bg); border-color: var(--rsv-todo-line); }

.nsrl-rsv .rsv-btn {
  --_bg: transparent; --_fg: var(--rsv-brand); --_bd: var(--rsv-brand);
  border-width: 1.5px; border-style: solid; border-radius: 8px; padding: 8px 14px; font-weight: 700; line-height: 1.3;
}
.nsrl-rsv .rsv-btn:hover { --_bg: var(--rsv-tint); }
.nsrl-rsv .rsv-btn--p { --_bg: var(--rsv-brand); --_fg: var(--rsv-on-brand); --_bd: var(--rsv-brand); }
.nsrl-rsv .rsv-btn--p:hover { --_bg: var(--rsv-brand-dark); --_bd: var(--rsv-brand-dark); }
.nsrl-rsv .rsv-btn:disabled { opacity: .45; }
.nsrl-rsv .rsv-btn:disabled:hover { --_bg: transparent; }
.nsrl-rsv .rsv-btn--p:disabled:hover { --_bg: var(--rsv-brand); }

.nsrl-rsv .rsv-link { --_fg: var(--rsv-brand); text-decoration: underline; font-weight: 500; padding: 0; border: 0; }
.nsrl-rsv .rsv-link:hover { --_fg: var(--rsv-brand-dark); }

/* Round minus button */
.nsrl-rsv .rsv-rm {
  --_fg: var(--rsv-danger); --_bd: var(--rsv-danger);
  flex: none; width: 24px; height: 24px; border-radius: 50%; border-width: 1.5px; font-size: 16px; line-height: 1;
}
.nsrl-rsv .rsv-rm:hover { --_bg: var(--rsv-danger); --_fg: #ffffff; }

/* Quantity stepper */
.nsrl-rsv .rsv-qty { display: flex; align-items: center; gap: 8px; }
.nsrl-rsv .rsv-qty button { --_bg: var(--rsv-surface); --_bd: var(--rsv-line); width: 30px; height: 30px; border-radius: 6px; font-size: 16px; }
.nsrl-rsv .rsv-qty button:hover { --_bg: var(--rsv-tint); }
.nsrl-rsv .rsv-qty output { min-width: 28px; text-align: center; font-weight: 700; }

/* Tabs */
.nsrl-rsv .rsv-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; border-bottom: 1px solid var(--rsv-line); }
.nsrl-rsv .rsv-tab { --_fg: var(--rsv-muted); padding: 10px 14px; font-weight: 700; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.nsrl-rsv .rsv-tab:hover { --_fg: var(--rsv-ink); }
.nsrl-rsv .rsv-tab[aria-selected="true"] { --_fg: var(--rsv-brand); border-bottom-color: var(--rsv-brand); }
.nsrl-rsv .rsv-tab b { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 5px; border-radius: 10px; background: var(--rsv-brand); color: var(--rsv-on-brand); font-size: 12px; text-align: center; }

/* Status badges */
.nsrl-rsv .rsv-badge { border-radius: 99px; padding: 2px 12px; font-size: 12.5px; font-weight: 700; color: var(--rsv-ink); white-space: nowrap; }
.nsrl-rsv .rsv-badge--pending { background: var(--rsv-pending-bg); }
.nsrl-rsv .rsv-badge--confirmed { background: var(--rsv-tint-border); color: var(--rsv-head); }
.nsrl-rsv .rsv-badge--rejected { background: color-mix(in srgb, var(--rsv-danger) 16%, transparent); color: var(--rsv-danger); }
.nsrl-rsv .rsv-badge--cancelled { background: var(--rsv-booked-bg); color: var(--rsv-booked-ink); }
.nsrl-rsv .rsv-badge--progress { background: var(--rsv-cyan); color: var(--rsv-head); }
.nsrl-rsv .rsv-badge--completed { background: var(--rsv-tint); color: var(--rsv-brand-dark); border: 1px solid var(--rsv-tint-border); }

/* Open-question flags */
.nsrl-rsv .rsv-todo {
  display: inline-block; margin: 4px 0; padding: 3px 10px; border: 1px dashed var(--rsv-todo-line); border-radius: 6px;
  background: var(--rsv-todo-bg); color: var(--rsv-todo-ink); font-size: 12.5px; line-height: 1.4;
}
.nsrl-rsv .rsv-todo b { margin-right: 6px; letter-spacing: .04em; }
.nsrl-rsv .rsv-open { margin-top: 24px; font-size: 13.5px; color: var(--rsv-muted); }
.nsrl-rsv .rsv-open summary { cursor: pointer; font-weight: 700; }
.nsrl-rsv .rsv-open ul { margin-top: 8px; display: grid; gap: 4px; }

/* Item lines (summary, review, cards) */
.nsrl-rsv .rsv-lines .rsv-it { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rsv-line); font-size: 14px; }
.nsrl-rsv .rsv-lines .rsv-it small { display: block; color: var(--rsv-muted); }
.nsrl-rsv .rsv-it.is-on { background: var(--rsv-tint); margin: 0 -8px; padding: 7px 8px; border-radius: 6px; }
.nsrl-rsv .rsv-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; font-weight: 700; }
.nsrl-rsv .rsv-total strong { font-size: 22px; color: var(--rsv-brand); }

/* ==========================================================================
   Page 1: My reservations (lives inside the dashboard, sized by its container)
   ========================================================================== */
.nsrl-rsv.rsv-home { container-type: inline-size; container-name: rsv-home; padding: 24px 28px 48px; background: transparent; }
.nsrl-rsv .rsv-hg { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.nsrl-rsv .rsv-hg__title { font-size: 24px; font-weight: 700; margin: 0; }
.nsrl-rsv .rsv-hg__lead { color: var(--rsv-muted); margin: 4px 0 18px; }
.nsrl-rsv .rsv-og { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nsrl-rsv .rsv-opt {
  --_bg: var(--rsv-surface); --_bd: var(--rsv-line); --_fg: var(--rsv-ink);
  position: relative; text-align: left; border-width: 1.5px; border-radius: var(--rsv-radius);
  padding: 14px 14px 48px; display: flex; flex-direction: column; gap: 4px; min-height: 130px; background: var(--rsv-surface);
}
.nsrl-rsv button.rsv-opt:hover { --_bg: var(--rsv-tint); --_bd: var(--rsv-brand); }
.nsrl-rsv .rsv-opt b { font-size: 15px; }
.nsrl-rsv .rsv-opt span { color: var(--rsv-muted); font-size: 13.5px; }
.nsrl-rsv .rsv-opt i { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--rsv-brand); color: var(--rsv-on-brand); display: grid; place-items: center; font-style: normal; }
.nsrl-rsv .rsv-opt--wide { grid-column: 1 / -1; min-height: 110px; }
.nsrl-rsv .rsv-opt--info { border-style: dashed; padding-bottom: 14px; min-height: 0; grid-column: 1 / -1; }
.nsrl-rsv .rsv-rc { margin-top: 14px; }
.nsrl-rsv .rsv-rc h3 { font-size: 16px; font-weight: 700; margin: 0; }
.nsrl-rsv .rsv-rc .rsv-lines { margin-top: 6px; }
.nsrl-rsv .rsv-rc__when { margin: 8px 0; }
.nsrl-rsv .rsv-rc .rsv-callout { margin: 8px 0; }

@container rsv-home (max-width: 760px) {
  .nsrl-rsv .rsv-hg { grid-template-columns: minmax(0, 1fr); }
  .nsrl-rsv .rsv-hg__make { order: -1; }
}
@container rsv-home (max-width: 460px) {
  .nsrl-rsv .rsv-og { grid-template-columns: minmax(0, 1fr); }
  .nsrl-rsv .rsv-opt { min-height: 0; }
}
@media (max-width: 640px) { .nsrl-rsv.rsv-home { padding: 16px; } }

/* ==========================================================================
   Request flow overlay
   ========================================================================== */
.nsrl-rsv.rsv-flow {
  position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain; background: var(--rsv-bg);
}
html.rsv-lock, html.rsv-lock body { overflow: hidden; }

.nsrl-rsv .rsv-top { width: 100%; max-width: 1120px; margin: 0 auto; padding: 14px 20px 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nsrl-rsv .rsv-leave { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }

.nsrl-rsv .rsv-steps { display: flex; width: 100%; max-width: 1120px; margin: 0 auto; padding: 18px 20px 6px; gap: 8px; }
.nsrl-rsv .rsv-steps li { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--rsv-muted); font-weight: 500; padding-bottom: 10px; border-bottom: 3px solid var(--rsv-line); }
.nsrl-rsv .rsv-steps i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--rsv-line); color: var(--rsv-muted); font-size: 13px; font-weight: 700; flex: none; }
.nsrl-rsv .rsv-steps .is-on { color: var(--rsv-ink); border-color: var(--rsv-brand); }
.nsrl-rsv .rsv-steps .is-on i { background: var(--rsv-brand); color: var(--rsv-on-brand); }
.nsrl-rsv .rsv-steps .is-ok { border-color: var(--rsv-brand); }
.nsrl-rsv .rsv-steps .is-ok i { background: var(--rsv-tint-border); color: var(--rsv-head); }

.nsrl-rsv .rsv-wrap {
  flex: 1 0 auto; width: 100%; max-width: 1120px; margin: 0 auto; padding: 12px 20px 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start;
}
.nsrl-rsv[data-step="2"] .rsv-wrap, .nsrl-rsv[data-step="2"] .rsv-steps, .nsrl-rsv[data-step="2"] .rsv-top { max-width: 1440px; }
.nsrl-rsv[data-step="2"] .rsv-wrap, .nsrl-rsv[data-step="3"] .rsv-wrap, .nsrl-rsv[data-step="done"] .rsv-wrap { grid-template-columns: minmax(0, 1fr); }
.nsrl-rsv[data-step="3"] .rsv-wrap, .nsrl-rsv[data-step="done"] .rsv-wrap { max-width: 760px; }
.nsrl-rsv .rsv-view:focus { outline: none; }
.nsrl-rsv .rsv-side:empty { display: none; }
.nsrl-rsv .rsv-sum { position: sticky; top: 12px; }

/* Sticky bottom bar */
.nsrl-rsv .rsv-bar { position: sticky; bottom: 0; z-index: 5; background: var(--rsv-surface); border-top: 1px solid var(--rsv-line); padding: 12px 20px; }
.nsrl-rsv .rsv-bar__in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.nsrl-rsv[data-step="2"] .rsv-bar__in { max-width: 1440px; }
.nsrl-rsv[data-step="done"] .rsv-bar { display: none; }
.nsrl-rsv .rsv-bar__total small { display: block; color: var(--rsv-muted); font-size: 12px; line-height: 1.2; }
.nsrl-rsv .rsv-bar__total strong { font-size: 19px; }
.nsrl-rsv .rsv-bar__hint { flex: 1; color: var(--rsv-muted); font-size: 13.5px; }

/* Step 1: select */
.nsrl-rsv .rsv-search { margin-bottom: 6px; }
.nsrl-rsv .rsv-grp { font-weight: 700; margin: 18px 0 8px; color: var(--rsv-brand-dark); }
.nsrl-rsv .rsv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nsrl-rsv .rsv-svc { background: var(--rsv-surface); border: 1.5px solid var(--rsv-line); border-radius: var(--rsv-radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.nsrl-rsv .rsv-svc.is-sel { border-color: var(--rsv-brand); background: var(--rsv-tint); }
.nsrl-rsv .rsv-svc h3 { font-size: 15px; font-weight: 700; margin: 0; }
.nsrl-rsv .rsv-svc p { color: var(--rsv-muted); font-size: 13.5px; }
.nsrl-rsv .rsv-pr { font-weight: 700; }
.nsrl-rsv .rsv-pr small { font-weight: 400; color: var(--rsv-muted); }

/* Step 2: schedule */
.nsrl-rsv .rsv-sch { display: grid; grid-template-columns: 260px minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.nsrl-rsv .rsv-paycol { position: sticky; top: 12px; }
.nsrl-rsv .rsv-slist { max-height: 250px; overflow-y: auto; margin: 0 -8px; padding: 0 8px; }
.nsrl-rsv .rsv-ses { flex: 1; text-align: left; padding: 0; border: 0; }
.nsrl-rsv .rsv-ses b { display: block; }

/* Month calendar */
.nsrl-rsv .rsv-ch { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.nsrl-rsv .rsv-ch button { font-size: 20px; width: 30px; height: 30px; border-radius: 6px; border: 0; }
.nsrl-rsv .rsv-ch button:hover:not(:disabled) { --_bg: var(--rsv-tint); }
.nsrl-rsv .rsv-ch button:disabled { opacity: .35; }
.nsrl-rsv .rsv-cg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.nsrl-rsv .rsv-cg i { font-style: normal; font-size: 12px; color: var(--rsv-muted); padding: 4px 0; }
.nsrl-rsv .rsv-cg button { aspect-ratio: 1; border-radius: 6px; font-size: 13px; border: 0; }
.nsrl-rsv .rsv-cg button:hover:not(:disabled) { --_bg: var(--rsv-tint); }
.nsrl-rsv .rsv-cg button:disabled { --_fg: color-mix(in srgb, var(--rsv-muted) 55%, transparent); text-decoration: line-through; text-decoration-color: transparent; }
.nsrl-rsv .rsv-cg .is-wk, .nsrl-rsv .rsv-cg .is-wk:hover { --_bg: color-mix(in srgb, var(--rsv-cyan) 34%, transparent); }
.nsrl-rsv .rsv-cg .is-sl, .nsrl-rsv .rsv-cg .is-sl:hover { --_bg: var(--rsv-brand); --_fg: var(--rsv-on-brand); font-weight: 700; }
.nsrl-rsv .rsv-cg .is-td { box-shadow: inset 0 0 0 1.5px var(--rsv-brand); }
.nsrl-rsv .rsv-cg button.is-td, .nsrl-rsv .rsv-cg button.is-td:hover, .nsrl-rsv .rsv-cg button.is-td:focus { box-shadow: inset 0 0 0 1.5px var(--rsv-brand); }

.nsrl-rsv .rsv-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--rsv-muted); margin: 10px 0 0; }
.nsrl-rsv .rsv-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); border: 1px solid var(--rsv-line); }

/* Weekly grid: 30 minute rows, Sunday to Saturday */
.nsrl-rsv .rsv-scroll { overflow-x: auto; }
.nsrl-rsv .rsv-wg { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); }
.nsrl-rsv .rsv-hd { height: 46px; text-align: center; font-size: 13px; color: var(--rsv-muted); line-height: 1.25; padding-top: 5px; }
.nsrl-rsv .rsv-hd b { display: block; font-size: 16px; color: var(--rsv-ink); }
.nsrl-rsv .rsv-hd.is-sel b { color: var(--rsv-brand); }
.nsrl-rsv .rsv-hd.is-today b { display: table; margin: 0 auto; padding: 0 8px; border-radius: 14px; background: var(--rsv-tint-border); color: var(--rsv-head); }
.nsrl-rsv .rsv-tc { position: sticky; left: 0; z-index: 3; background: var(--rsv-surface); }
.nsrl-rsv .rsv-tc .rsv-tl { height: 26px; font-size: 11.5px; color: var(--rsv-muted); text-align: right; padding-right: 8px; transform: translateY(-8px); white-space: nowrap; }
.nsrl-rsv .rsv-dc { border-left: 1px solid var(--rsv-line); min-width: 0; }
.nsrl-rsv .rsv-dc.is-today { background: color-mix(in srgb, var(--rsv-cyan) 10%, transparent); }
.nsrl-rsv .rsv-col { position: relative; user-select: none; -webkit-user-select: none; }
.nsrl-rsv .rsv-col.is-off { height: calc(26px * var(--rows, 20)); background: repeating-linear-gradient(45deg, transparent 0 6px, var(--rsv-line) 6px 7px); }

.nsrl-rsv .rsv-slot { display: block; width: 100%; height: 26px; padding: 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--rsv-line) 50%, transparent); border-radius: 0; touch-action: manipulation; }
.nsrl-rsv .rsv-slot:nth-child(even) { border-top-color: var(--rsv-line); }
.nsrl-rsv .rsv-slot:hover:not(:disabled) { --_bg: var(--rsv-tint); }
.nsrl-rsv .rsv-slot.is-pv, .nsrl-rsv .rsv-slot.is-pv:hover { --_bg: color-mix(in srgb, var(--rsv-cyan) 45%, transparent); }
.nsrl-rsv .rsv-slot.is-an, .nsrl-rsv .rsv-slot.is-an:hover { --_bg: var(--rsv-cyan); box-shadow: inset 0 0 0 2px var(--rsv-brand); }
.nsrl-rsv .rsv-slot.is-an, .nsrl-rsv .rsv-slot.is-an:hover, .nsrl-rsv .rsv-slot.is-an:focus { box-shadow: inset 0 0 0 2px var(--rsv-brand); }

/* Blocks drawn over the grid. Booked blocks show only the time range. */
.nsrl-rsv .rsv-bk, .nsrl-rsv .rsv-me { position: absolute; left: 3px; right: 3px; border-radius: 5px; padding: 3px 6px; font-size: 11.5px; line-height: 1.3; overflow: hidden; pointer-events: none; text-align: left; }
.nsrl-rsv .rsv-bk { background: var(--rsv-booked-bg); color: var(--rsv-booked-ink); }
.nsrl-rsv .rsv-bk--closed { left: 0; right: 0; padding: 0; border-radius: 0; background: repeating-linear-gradient(45deg, transparent 0 6px, var(--rsv-line) 6px 7px); }
.nsrl-rsv .rsv-bk--lunch { background: var(--rsv-lunch-bg); color: var(--rsv-ink); }
.nsrl-rsv .rsv-bk--class { background: var(--rsv-class-bg); color: var(--rsv-ink); }
.nsrl-rsv .rsv-me, .nsrl-rsv .rsv-me:hover, .nsrl-rsv .rsv-me:focus {
  --_bg: var(--rsv-cyan); --_fg: var(--rsv-head); --_bd: var(--rsv-brand);
  border-width: 2px; font-weight: 700; pointer-events: auto; cursor: pointer; box-shadow: 0 2px 8px rgb(8 127 135 / .35);
}
.nsrl-rsv .rsv-me.is-hl, .nsrl-rsv .rsv-me.is-hl:hover, .nsrl-rsv .rsv-me.is-hl:focus { box-shadow: 0 0 0 3px var(--rsv-brand-dark), 0 4px 14px rgb(8 127 135 / .5); }
:root[data-theme="dark"] .nsrl-rsv .rsv-me { --_fg: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nsrl-rsv:not([data-theme="light"]) .rsv-me { --_fg: #ffffff; } }

/* Step 3: confirm */
.nsrl-rsv .rsv-fld { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nsrl-rsv .rsv-fld label { display: block; font-weight: 700; font-size: 13.5px; }
.nsrl-rsv .rsv-fld label.is-w { grid-column: 1 / -1; }
.nsrl-rsv .rsv-fld input, .nsrl-rsv .rsv-fld textarea { display: block; margin-top: 4px; font-weight: 400; }
.nsrl-rsv .rsv-req { color: var(--rsv-danger); font-weight: 700; }
.nsrl-rsv .rsv-members { margin-top: 12px; }
.nsrl-rsv .rsv-member { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.nsrl-rsv .rsv-ntc { padding-left: 20px; font-size: 14px; list-style: disc; }
.nsrl-rsv .rsv-ntc li + li { margin-top: 4px; }
.nsrl-rsv .rsv-chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin-top: 12px; }
.nsrl-rsv .rsv-chk input { margin-top: 3px; flex: none; }

/* Success screen */
.nsrl-rsv .rsv-ok { width: 52px; height: 52px; border-radius: 50%; background: var(--rsv-brand); color: var(--rsv-on-brand); display: grid; place-items: center; font-size: 28px; margin-bottom: 10px; }
.nsrl-rsv .rsv-ref { font-weight: 700; font-size: 20px; letter-spacing: .5px; color: var(--rsv-brand); }

/* Reservation cards on My reservations */
.nsrl-rsv .rsv-rc__purpose { margin: 4px 0 0; color: var(--rsv-muted); font-size: 14px; overflow-wrap: anywhere; }
.nsrl-rsv .rsv-rc__use { text-align: right; font-size: 13.5px; overflow-wrap: anywhere; min-width: 0; }
.nsrl-rsv .rsv-rc__foot { margin-top: 10px; }
.nsrl-rsv .rsv-confirm { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nsrl-rsv .rsv-more { margin-top: 14px; text-align: center; }
.nsrl-rsv .rsv-warn-text { color: var(--rsv-danger); font-weight: 700; }

/* Step 2: equipment ticked per session */
.nsrl-rsv .rsv-pick__list { display: grid; gap: 2px; }
.nsrl-rsv .rsv-pick__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--rsv-line); }
.nsrl-rsv .rsv-pick__row:last-child { border-bottom: 0; }
.nsrl-rsv .rsv-pick__it { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 260px; min-width: 0; cursor: pointer; font-weight: 600; }
.nsrl-rsv .rsv-pick__it input { margin-top: 2px; flex: none; }
.nsrl-rsv .rsv-pick__it small { display: block; font-weight: 400; color: var(--rsv-muted); font-size: 12.5px; }
.nsrl-rsv .rsv-pick__st { font-size: 12.5px; color: var(--rsv-muted); }
.nsrl-rsv .rsv-pick__row.is-na .rsv-pick__it { cursor: default; }
.nsrl-rsv .rsv-pick__row.is-na .rsv-pick__st { color: var(--rsv-danger); font-weight: 600; }
.nsrl-rsv .rsv-me.is-empty, .nsrl-rsv .rsv-me.is-empty:hover, .nsrl-rsv .rsv-me.is-empty:focus { --_bd: var(--rsv-danger); border-style: dashed; }

/* ---- Breakpoints ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .nsrl-rsv .rsv-sch { grid-template-columns: 260px minmax(0, 1fr); }
  .nsrl-rsv .rsv-sch .rsv-paycol { grid-column: 2; }
  .nsrl-rsv .rsv-wg { min-width: 560px; }
}
@media (max-width: 860px) {
  .nsrl-rsv .rsv-wrap { grid-template-columns: minmax(0, 1fr); }
  .nsrl-rsv .rsv-sum { position: static; }
  .nsrl-rsv .rsv-sch { grid-template-columns: minmax(0, 1fr); }
  .nsrl-rsv .rsv-sch .rsv-paycol { grid-column: auto; position: static; }
  .nsrl-rsv .rsv-list { grid-template-columns: minmax(0, 1fr); }
  .nsrl-rsv .rsv-steps span { display: none; }
  .nsrl-rsv .rsv-steps .is-on span { display: inline; }
  .nsrl-rsv .rsv-fld { grid-template-columns: minmax(0, 1fr); }
  .nsrl-rsv .rsv-wg { min-width: 640px; }
  .nsrl-rsv .rsv-bar__in { flex-wrap: wrap; gap: 8px 12px; }
  .nsrl-rsv .rsv-bar__hint { order: 3; flex: 1 0 100%; }
  .nsrl-rsv .rsv-bar__total { margin-right: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .nsrl-rsv .rsv-svc, .nsrl-rsv .rsv-btn, .nsrl-rsv .rsv-opt, .nsrl-rsv .rsv-slot { transition: background-color var(--rsv-speed), border-color var(--rsv-speed), color var(--rsv-speed); }
}
@media (prefers-reduced-motion: reduce) {
  .nsrl-rsv *, .nsrl-rsv *::before, .nsrl-rsv *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
