@font-face { font-family: Montserrat; src: local("Montserrat"); font-display: swap; }
* { box-sizing: border-box; }
:root { --ink:#101412; --muted:#66706a; --line:#dfe5e1; --paper:#fff; --wash:#f4f7f4; --green:#6e925c; --green-dark:#4e703e; --blue:#288fd7; --danger:#a33b36; --radius:16px; --shadow:0 12px 36px rgba(10,25,15,.08); --calendar-gutter:58px; }
body { margin:0; font-family:Montserrat,system-ui,sans-serif; color:var(--ink); background:var(--wash); line-height:1.55; }
a { color:var(--green-dark); }
header { background:#050706; color:#fff; padding:22px clamp(20px,5vw,64px); display:flex; justify-content:space-between; align-items:center; }
.brand { font-size:1.6rem; letter-spacing:-.04em; }
.shell { width:min(1120px,calc(100% - 32px)); margin:38px auto 80px; }
.narrow { width:min(760px,calc(100% - 32px)); }
.hero { margin-bottom:28px; }
.eyebrow { color:var(--green-dark); font-weight:700; text-transform:uppercase; letter-spacing:.08em; font-size:.78rem; }
h1 { font-size:clamp(2rem,5vw,3.5rem); line-height:1.08; margin:.25em 0; }
h2 { margin-top:0; }
.card { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:clamp(20px,4vw,34px); box-shadow:var(--shadow); margin:18px 0; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }
.theme { border:2px solid var(--line); border-radius:14px; padding:18px; cursor:pointer; background:#fff; color:var(--ink); text-align:left; transition:.15s; min-height:112px; }
.theme:hover:not(:disabled),.theme:focus-visible { border-color:var(--green); background:var(--green-dark); color:#fff; }
.theme:hover:not(:disabled) small,.theme:hover:not(:disabled) .status,.theme:focus-visible small,.theme:focus-visible .status { color:#fff; }
.theme:hover:not(:disabled) .status,.theme:focus-visible .status { background:rgba(255,255,255,.18); }
.theme.selected { border-color:var(--green); background:var(--green); color:#fff; }
.theme.selected small,.theme.selected .status { color:#fff; }
.theme.selected .status { background:rgba(255,255,255,.18); }
.theme[disabled] { opacity:.55; cursor:not-allowed; }
.theme small,.muted { color:var(--muted); }
.status { display:inline-block; border-radius:999px; padding:3px 9px; font-size:.72rem; font-weight:700; background:#e8f1e4; color:var(--green-dark); }
.status.limited { background:#fff2d3; color:#795900; }
.status.full { background:#eee; color:#555; }
.steps { display:flex; gap:8px; margin:20px 0; }
.step { height:5px; background:#dce3dd; flex:1; border-radius:9px; }
.step.active { background:var(--green); }
button,.button { appearance:none; border:0; border-radius:10px; padding:12px 18px; background:var(--green); color:#fff; font:inherit; font-weight:700; cursor:pointer; text-decoration:none; display:inline-block; }
button:hover { background:var(--green-dark); }
button.secondary { background:#edf1ee; color:var(--ink); }
button.danger { background:var(--danger); }
button:disabled { opacity:.5; cursor:not-allowed; }
button.compact { padding:7px 10px; font-size:.8rem; }
label { display:block; font-weight:650; margin:13px 0 5px; }
.field-label { display:block; margin-bottom:5px; }
.check-label { display:flex; align-items:flex-start; gap:8px; font-weight:500; }
.check-label input { width:auto; margin-top:.32em; flex:0 0 auto; }
.help-tip { position:relative; display:inline-grid; place-items:center; width:18px; height:18px; border-radius:50%; background:#eceeed; color:#59605c; font-size:.72rem; font-weight:800; cursor:help; vertical-align:middle; }
.help-tip::after { content:attr(data-tip); position:absolute; z-index:20; left:50%; bottom:calc(100% + 9px); width:min(300px,70vw); padding:10px 12px; border-radius:9px; background:#101412; color:#fff; font-size:.78rem; font-weight:500; line-height:1.4; box-shadow:var(--shadow); opacity:0; visibility:hidden; transform:translate(-50%,5px); transition:.12s; pointer-events:none; }
.help-tip:hover::after,.help-tip:focus::after { opacity:1; visibility:visible; transform:translate(-50%,0); }
fieldset { border:1px solid var(--line); border-radius:12px; margin:18px 0; padding:14px; }
fieldset label { font-weight:500; }
input,textarea,select { width:100%; padding:11px 12px; border:1px solid #bfc9c2; border-radius:9px; background:#fff; font:inherit; }
input:focus,textarea:focus,select:focus,button:focus-visible { outline:3px solid rgba(40,143,215,.3); outline-offset:2px; }
.actions { display:flex; gap:10px; justify-content:flex-end; margin-top:22px; flex-wrap:wrap; }
.hidden { display:none!important; }
.alert { padding:13px 15px; border-radius:10px; background:#edf5e9; border-left:4px solid var(--green); margin:14px 0; }
.alert.error { background:#fbeceb; border-color:var(--danger); }
.message-notification { display:flex; align-items:center; justify-content:space-between; gap:14px; transition:opacity .35s ease, transform .35s ease; }
.message-notification.is-dismissing { opacity:0; transform:translateY(-6px); }
.notification-close { flex:0 0 auto; width:28px; height:28px; padding:0; border-radius:50%; background:transparent; color:inherit; font-size:1.35rem; font-weight:500; line-height:1; }
.notification-close:hover { background:rgba(0,0,0,.08); color:inherit; }
.slot { display:flex; justify-content:space-between; gap:16px; align-items:center; border:1px solid var(--line); padding:14px; border-radius:11px; margin:8px 0; }
.slot input { width:auto; }
.slot-view-switch { display:flex; gap:8px; margin:0 0 14px; }
.slot-view-switch button.active { background:var(--green-dark); color:#fff; }
.slot-list-public { display:grid; gap:8px; }
.slot-choice { display:flex; width:100%; justify-content:space-between; align-items:center; gap:16px; border:1px solid var(--line); padding:14px; border-radius:11px; background:#fff; color:var(--ink); text-align:left; }
.slot-choice:hover,.calendar-slot:hover { border-color:var(--green); background:var(--green-dark); color:#fff; }
.slot-choice.selected,.calendar-slot.selected { border-color:var(--green); background:var(--green); color:#fff; }
.slot-calendar-toolbar { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; margin-bottom:12px; text-align:center; }
.slot-calendar { border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.slot-calendar-weekdays,.slot-calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.slot-calendar-weekdays { background:#f7f8f7; border-bottom:1px solid var(--line); color:var(--muted); font-size:.72rem; font-weight:700; text-align:center; text-transform:uppercase; }
.slot-calendar-weekdays span { padding:8px 3px; }
.slot-calendar-day { min-height:96px; padding:7px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.slot-calendar-day:nth-child(7n) { border-right:0; }
.slot-calendar-day:nth-last-child(-n+7) { border-bottom:0; }
.slot-calendar-day.empty { background:#fafbfa; }
.slot-calendar-date { display:block; margin-bottom:6px; font-size:.82rem; }
.calendar-slot { width:100%; margin:3px 0; padding:6px 4px; border:1px solid #b8cfaa; border-radius:7px; background:#e8f1e4; color:#263421; font-size:.72rem; }
.topbar { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.lang button { background:transparent; border:1px solid #777; padding:7px 10px; }
.lang button.active { background:#fff; color:#111; }
.admin-layout { display:grid; grid-template-columns:240px 1fr; gap:20px; }
.sidebar button { display:block; width:100%; margin:7px 0; text-align:left; background:transparent; color:var(--ink); }
.sidebar button.active { background:#e9f0e6; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; }
th,td { text-align:left; padding:11px; border-bottom:1px solid var(--line); font-size:.9rem; }
.table-sort { display:inline-flex; align-items:center; gap:3px; padding:0; border:0; border-radius:0; background:transparent; color:inherit; font:inherit; font-weight:700; text-align:left; }
.table-sort:hover,.table-sort:focus-visible { background:var(--green-dark); color:#fff; text-decoration:underline; }
.slot-actions { white-space:nowrap; text-align:right; }
.icon-button { min-width:34px; padding:6px 8px; color:var(--danger); }
.icon-button:hover { border-color:var(--danger); background:#fbeceb; color:var(--danger); }
.participant-details { min-width:180px; }
.participant-details div + div { margin-top:4px; }
.booking-actions { white-space:nowrap; text-align:right; }
.view-switch { display:flex; gap:8px; flex-wrap:wrap; }
.view-switch button.active { background:var(--green-dark); color:#fff; }
.booking-status-legend { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 18px; }
.booking-status-filter { display:inline-flex; align-items:center; gap:7px; padding:7px 10px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--ink); font-size:.8rem; }
.booking-status-filter:hover { filter:brightness(.96); }
.booking-status-filter.active { border-color:currentColor; box-shadow:inset 0 0 0 1px currentColor; }
.booking-status-view-all { border-style:dashed; }
.booking-status-dot { width:9px; height:9px; border-radius:50%; background:currentColor; }
.booking-status-count { min-width:1.4em; padding:1px 5px; border-radius:999px; background:rgba(0,0,0,.08); text-align:center; }
.booking-status { white-space:nowrap; }
.booking-status-confirmed { background:#e8f1e4; color:#355e29; border-color:#93b981; }
.booking-status-pending_verification { background:#fff2d3; color:#795900; border-color:#d2a539; }
.booking-status-no_show { background:#f2eafa; color:#654184; border-color:#b8a0d0; }
.booking-status-cancelled { background:#fbeceb; color:#8a302c; border-color:#d18c89; }
.booking-status-expired { background:#eceeed; color:#59605c; border-color:#c8ccca; }
.booking-item-code { border-bottom:1px dotted currentColor; cursor:help; text-decoration:none; }
.booking-calendar-toolbar { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; margin:0 0 12px; text-align:center; }
.booking-calendar { border:1px solid var(--line); border-radius:12px; overflow:auto; }
.booking-calendar-weekdays,.booking-calendar-days { display:grid; grid-template-columns:repeat(7,minmax(120px,1fr)); min-width:840px; }
.booking-calendar-weekdays { background:#f7f8f7; border-bottom:1px solid var(--line); color:var(--muted); font-size:.72rem; font-weight:700; text-align:center; text-transform:uppercase; }
.booking-calendar-weekdays span { padding:8px 3px; }
.booking-calendar-cell { min-height:128px; padding:7px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.booking-calendar-cell:nth-child(7n) { border-right:0; }
.booking-calendar-cell.empty { background:#fafbfa; }
.booking-calendar-date { display:block; margin-bottom:6px; font-size:.82rem; }
.booking-calendar-entry { display:grid; gap:1px; margin:4px 0; padding:5px 6px; border:1px solid #b8cfaa; border-radius:7px; background:#e8f1e4; color:#263421; font-size:.72rem; line-height:1.25; }
.booking-calendar-entry.booking-status-confirmed { background:#e8f1e4; color:#355e29; border-color:#93b981; }
.booking-calendar-entry.booking-status-pending_verification { background:#fff2d3; color:#795900; border-color:#d2a539; }
.booking-calendar-entry.booking-status-no_show { background:#f2eafa; color:#654184; border-color:#b8a0d0; }
.booking-calendar-entry.booking-status-cancelled { background:#fbeceb; color:#8a302c; border-color:#d18c89; }
.booking-calendar-entry.booking-status-expired { background:#eceeed; color:#59605c; border-color:#c8ccca; }
.booking-calendar-entry time { font-weight:700; }
.draft-row { background:#fffbef; }
.row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.row.three { grid-template-columns:repeat(3,1fr); }
.row.four { grid-template-columns:repeat(4,1fr); }
.calendar-toolbar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:14px; margin-top:24px; }
.calendar-toolbar .actions { justify-content:flex-start; margin:0; }
.calendar-legend { justify-self:end; display:flex; gap:8px; font-size:.72rem; }
.calendar-legend span { padding:3px 7px; border-radius:6px; }
.legend-new { background:#fff2d3; }
.legend-edited { background:#dceef9; }
.legend-locked { background:#eceeed; }
.calendar-help { margin:10px 0; font-size:.86rem; }
.calendar-scroll { overflow-x:auto; border-radius:12px; }
.week-calendar { display:grid; grid-template-columns:var(--calendar-gutter) repeat(7,minmax(92px,1fr)); grid-template-rows:58px calc(13 * 64px); min-width:760px; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff; user-select:none; touch-action:none; }
.calendar-header-spacer,.calendar-day-heading { border-bottom:1px solid var(--line); background:#f7f8f7; }
.calendar-day-heading { display:flex; flex-direction:column; justify-content:center; align-items:center; border-left:1px solid var(--line); font-size:.78rem; color:var(--muted); }
.calendar-day-heading strong { color:var(--ink); font-size:1rem; }
.calendar-time-gutter { position:relative; grid-column:1; grid-row:2; border-right:1px solid var(--line); background:#fafbfa; }
.calendar-time-gutter span { position:absolute; right:7px; transform:translateY(-50%); color:var(--muted); font-size:.67rem; }
.calendar-day { position:relative; grid-row:2; height:calc(13 * 64px); border-right:1px solid var(--line); background:repeating-linear-gradient(to bottom,transparent 0,transparent 63px,var(--line) 64px); cursor:crosshair; }
.calendar-event { position:absolute; z-index:2; left:4px; right:4px; min-height:16px; overflow:hidden; border:1px solid #93b981; border-radius:7px; padding:5px 28px 9px 6px; background:#e8f1e4; color:#263421; cursor:grab; font-size:.7rem; line-height:1.2; box-shadow:0 2px 6px rgba(10,25,15,.1); }
.calendar-event strong,.calendar-event small { display:block; }
.calendar-event small { opacity:.78; margin-top:3px; }
.calendar-event.is-draft { border-color:#d2a539; background:#fff2d3; color:#5e4700; }
.calendar-event.is-edited { border-color:#288fd7; background:#dceef9; color:#164d72; }
.calendar-event.is-locked { border-color:#c8ccca; background:#eceeed; color:#59605c; cursor:not-allowed; }
.calendar-event.dragging { z-index:5; opacity:.8; cursor:grabbing; }
.calendar-event-delete { position:absolute; top:2px; right:2px; width:22px; height:22px; padding:0; border:0; border-radius:5px; background:transparent; color:inherit; font-size:.78rem; line-height:1; cursor:pointer; }
.calendar-event-delete:hover,.calendar-event-delete:focus-visible { background:rgba(163,59,54,.16); color:var(--danger); }
.resize-handle { position:absolute; left:5px; right:5px; bottom:1px; height:7px; border-bottom:2px solid currentColor; cursor:ns-resize; opacity:.7; }
.calendar-selection { position:absolute; z-index:1; left:4px; right:4px; border:1px dashed var(--blue); border-radius:7px; background:rgba(40,143,215,.15); pointer-events:none; }
.slot-list { margin-top:18px; }
.slot-list summary { cursor:pointer; font-weight:700; }
.sticky-save { position:sticky; z-index:10; bottom:12px; display:flex; justify-content:flex-end; align-items:center; gap:14px; margin-top:18px; padding:12px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.94); box-shadow:var(--shadow); backdrop-filter:blur(8px); }
.kpi { font-size:1.8rem; font-weight:750; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.spinner,button.is-busy::before { content:""; display:inline-block; width:1em; height:1em; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:spin .7s linear infinite; }
.spinner { margin-right:.4em; vertical-align:-.15em; color:var(--green); }
button { position:relative; }
button.is-pending:disabled { opacity:1; cursor:progress; }
button.is-busy,button.secondary.is-busy { color:transparent; }
button.is-busy::before { position:absolute; left:50%; top:50%; margin:-.5em 0 0 -.5em; border-color:#fff; border-right-color:transparent; }
button.secondary.is-busy::before { border-color:var(--ink); border-right-color:transparent; }
.is-loading body { cursor:progress; }
.is-loading body::before { content:""; position:fixed; z-index:1000; top:0; left:0; right:0; height:3px; pointer-events:none; background:linear-gradient(90deg,transparent,var(--blue),transparent) no-repeat; background-size:40% 100%; animation:loading-bar 1.1s linear infinite,loading-fade .15s both; }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes loading-bar { from { background-position:-40% 0; } to { background-position:140% 0; } }
@keyframes loading-fade { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) { .spinner,button.is-busy::before { animation-duration:1.6s; } .is-loading body::before { animation:loading-fade .15s both; background:var(--blue); } .message-notification { transition:none; } }
dialog.modal { width:min(560px,90vw); min-width:0; max-height:calc(100vh - 48px); overflow:auto; }
dialog.modal[open] { position:fixed; inset:0; margin:auto; }
.modal-close { float:right; }
.clipboard-helper { position:fixed; opacity:0; }
/* Keep contextual help inside a scrollable modal instead of clipping it at an edge. */
.modal .help-tip::after { left:0; transform:translate(0,5px); }
.modal .help-tip:hover::after,.modal .help-tip:focus::after { transform:translate(0,0); }
.modal .row > label:nth-child(even) .help-tip::after { left:100%; transform:translate(-100%,5px); }
.modal .row > label:nth-child(even) .help-tip:hover::after,.modal .row > label:nth-child(even) .help-tip:focus::after { transform:translate(-100%,0); }
dialog::backdrop { background:rgba(5,7,6,.55); }
@media (max-width:760px) { .admin-layout{grid-template-columns:1fr}.sidebar{display:flex;overflow:auto}.sidebar button{white-space:nowrap}.row,.row.three,.row.four{grid-template-columns:1fr}.shell{margin-top:22px}header{padding:16px 20px}.slot{align-items:flex-start}.topbar{align-items:flex-start;flex-direction:column}.topbar .actions{margin-top:0}.calendar-toolbar{grid-template-columns:1fr}.calendar-toolbar .calendar-legend{justify-self:start}.week-calendar{min-width:720px}.sticky-save{justify-content:space-between}.slot-calendar-day{min-height:82px;padding:4px}.calendar-slot{font-size:.65rem;padding:5px 2px}.slot-calendar-weekdays{font-size:.62rem} }
