/* ── Visitor App — INSIGHT portal design (mainpage.html alapján) ────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html.theme-switching, html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: none !important;
}

:root {
  --bg:            #f0f2fa;
  --bg-card:       #ffffff;
  --bg-hover:      #e8eaf6;
  --header-bg:     #13152a;
  --sidebar-bg:    #1a1d35;
  --sidebar-hover: #252a4a;
  --sidebar-active:#c0392b;
  --text:          #1e2340;
  --text-muted:    #5a6280;
  --text-dim:      #9aa0c0;
  --border:        #dde0f0;
  --border-strong: #c0c6e0;
  --accent:        #c0392b;
  --accent-glow:   rgba(192,57,43,0.35);
  --tile-shadow:   0 2px 12px rgba(30,35,64,0.10);
  --tile-hover-shadow: 0 6px 24px rgba(30,35,64,0.18);
  --header-h:      56px;
  --toolbar-h:     50px;
  --toolbar-bg:    #f8f9fe;
  --st-reg-bg:  rgba(52,152,219,0.10); --st-reg-bd:  rgba(52,152,219,0.35);
  --st-arr-bg:  rgba(39,174,96,0.12);  --st-arr-bd:  rgba(39,174,96,0.40);
  --st-left-bg: rgba(149,165,166,0.14); --st-left-bd: rgba(149,165,166,0.42);
}

html.dark {
  --bg:            #1e2030;
  --bg-card:       #252840;
  --bg-hover:      #2d3156;
  --sidebar-bg:    #161828;
  --sidebar-hover: #1e2240;
  --text:          #dde1f0;
  --text-muted:    #8891b4;
  --text-dim:      #555e80;
  --border:        #2e3459;
  --border-strong: #3a4070;
  --tile-shadow:   0 2px 12px rgba(0,0,0,0.30);
  --tile-hover-shadow: 0 6px 24px rgba(0,0,0,0.50);
  --toolbar-bg:    #1a1c30;
  --st-reg-bg:  rgba(52,152,219,0.16); --st-reg-bd:  rgba(52,152,219,0.42);
  --st-arr-bg:  rgba(39,174,96,0.16);  --st-arr-bd:  rgba(39,174,96,0.44);
  --st-left-bg: rgba(120,130,145,0.16); --st-left-bd: rgba(120,130,145,0.42);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 13px;
}

/* ── Scrollbar (egységes, mindenhol) ──────────────────────────── */
:root          { color-scheme: light; }
html.dark      { color-scheme: dark; }
html.dark body { color-scheme: dark; }

* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: var(--border-strong); border: 2px solid transparent;
  background-clip: content-box; border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--text-dim); background-clip: content-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* ── Login screen ─────────────────────────────────────────────── */
.login-screen {
  position: fixed; inset: 0;
  background: var(--header-bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
}
.login-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 40px 44px;
  width: 380px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.login-logo { display: flex; align-items: center; gap: 14px; align-self: flex-start; }
.login-icon-box {
  width: 48px; height: 48px;
  background: #c0392b; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(192,57,43,0.5);
  flex-shrink: 0;
}
.login-icon-box img { width: 30px; height: 30px; object-fit: contain; }
.login-brand { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: 1px; }
.brand-version { font-size: 12px; color: var(--text-dim); font-weight: 500; margin-left: 4px; }
.login-tagline { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.login-divider { width: 100%; height: 1px; background: var(--border); }
.login-desc { font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.6; }
.login-desc strong { color: var(--text); }
.login-error { font-size: 12px; color: #c0392b; min-height: 16px; text-align: center; }

/* ── App shell ────────────────────────────────────────────────── */
#appShell { display: none; height: 100vh; flex-direction: column; }
#appShell.visible { display: flex; }

/* ── Header ───────────────────────────────────────────────────── */
.app-header {
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; flex-shrink: 0; gap: 16px;
}
.header-left  { display: flex; align-items: center; }
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.header-icon-box {
  width: 42px; height: 42px; background: #c0392b; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-right: 12px;
  box-shadow: 0 2px 8px rgba(192,57,43,0.45);
}
.header-icon { width: 26px; height: 26px; object-fit: contain; }
.header-titles { display: flex; flex-direction: column; gap: 2px; }
.header-brand-line { display: flex; align-items: baseline; gap: 5px; }
.brand-main    { font-size: 21px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.brand-tagline { font-size: 11px; color: #a0a8c8; letter-spacing: 0.2px; }
.hamburger-btn {
  display: none; width: 34px; height: 34px; border-radius: 6px;
  background: transparent; border: none; color: rgba(255,255,255,0.7);
  font-size: 16px; cursor: pointer; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s; margin-right: 4px;
}
.hamburger-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
@media (max-width: 768px) { .hamburger-btn { display: flex; } }

.header-user-info { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #c0392b; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.header-user-name {
  font-size: 12px; color: #c8ccde;
  white-space: nowrap; max-width: 180px;
  overflow: hidden; text-overflow: ellipsis;
}
.header-sep { width: 1px; height: 24px; background: rgba(255,255,255,0.12); margin: 0 4px; }
.theme-label-wrap { display: flex; align-items: center; gap: 8px; }
.theme-label { font-size: 12px; color: #c8ccde; white-space: nowrap; }
.theme-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #3a4070; background: #252840; color: #8891b4;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: #fff; border-color: #5a6290; background: #2d3156; }
.btn-logout {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: rgba(192,57,43,0.15);
  color: #e8a09a; border: 1px solid rgba(192,57,43,0.35);
  border-radius: 5px; font-size: 12px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.btn-logout:hover { background: rgba(192,57,43,0.3); color: #fff; }

/* ── Body layout ──────────────────────────────────────────────── */
.app-body { display: flex; flex: 1; overflow: hidden; }

/* ── Sidebar (simple) ─────────────────────────────────────────── */
.sidebar {
  width: 210px; flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  box-shadow: 2px 0 8px rgba(0,0,0,0.04);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
}
.sidebar-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px;
  color: var(--text-dim); text-transform: uppercase;
  padding: 16px 16px 6px; user-select: none;
}
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; cursor: pointer;
  color: var(--text-muted); font-size: 13px;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
  text-decoration: none; background: none; border-top: none; border-right: none; border-bottom: none;
  width: 100%; text-align: left; font-family: inherit;
}
.sidebar-item i { width: 16px; text-align: center; font-size: 13px; flex-shrink: 0; }
.sidebar-item:hover  { background: var(--bg-hover); color: var(--text); }
.sidebar-item.active { background: var(--bg-hover); color: var(--text); border-left-color: var(--accent); font-weight: 600; }
.sidebar-divider { height: 1px; background: var(--border); margin: 8px 0; }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 99; }
.sidebar-overlay.open { display: block; }

/* ── Main content ─────────────────────────────────────────────── */
.main-content { flex: 1; overflow-y: auto; padding: 32px 36px; }
.page-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; letter-spacing: 0.2px; }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

/* ── Form card ────────────────────────────────────────────────── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--tile-shadow);
  padding: 26px 28px;
  max-width: 760px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; margin-bottom: 5px;
  font-size: 12px; font-weight: 600; color: var(--text);
}
.form-desc { font-size: 11px; color: var(--text-dim); font-weight: 400; margin-left: 6px; }
.form-control {
  width: 100%; box-sizing: border-box;
  padding: 9px 12px; font-size: 13px;
  border: 1px solid var(--border-strong); border-radius: 6px;
  background: var(--bg); color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-control:disabled { opacity: 0.7; cursor: not-allowed; }
select.form-control { cursor: pointer; }

.name-row { display: flex; align-items: center; gap: 8px; }
.name-row .form-control { flex: 1; }
.btn-icon {
  width: 40px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--border-strong); border-radius: 6px;
  background: var(--bg-card); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-icon:hover { background: var(--bg-hover); color: var(--accent); border-color: var(--accent); }

.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }

.btn-primary {
  width: 100%; margin-top: 8px;
  padding: 11px 16px; font-size: 14px; font-weight: 600;
  background: var(--accent); color: #fff;
  border: none; border-radius: 6px; cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-primary:hover { background: #a53123; box-shadow: 0 4px 16px var(--accent-glow); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

/* ── Read-only banner ─────────────────────────────────────────── */
.ro-banner {
  display: none; align-items: center; gap: 10px;
  padding: 11px 16px; margin-bottom: 18px; max-width: 760px;
  background: rgba(52,152,219,0.12); border: 1px solid rgba(52,152,219,0.35);
  border-radius: 8px; color: var(--text); font-size: 13px;
}
.ro-banner i { color: #3498db; }
.ro-banner.visible { display: flex; }

/* ── Confirm / status ─────────────────────────────────────────── */
.status-msg { font-size: 12px; min-height: 16px; margin-top: 10px; text-align: center; }
.status-msg.error { color: #c0392b; }
.status-msg.ok { color: #27ae60; }

.confirm-wrap { display: none; justify-content: flex-start; }
.confirm-wrap.visible { display: flex; }
.confirm-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--tile-shadow);
  padding: 40px 36px; max-width: 640px; width: 100%; text-align: center;
}
.confirm-lead { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.policy {
  text-align: left; width: 100%; margin-top: 8px;
  border-top: 1px solid var(--border); padding-top: 18px;
  font-size: 12.5px; color: var(--text-muted); line-height: 1.65;
}
.policy p { margin-bottom: 12px; }
.policy strong { color: var(--text); }
.policy-h {
  font-size: 15px; font-weight: 700; color: var(--text);
  text-align: center; margin-bottom: 16px !important;
}
.confirm-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(39,174,96,0.15); color: #27ae60;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.confirm-title { font-size: 18px; font-weight: 700; color: var(--text); }
.confirm-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── Footer note ──────────────────────────────────────────────── */
.form-footer {
  max-width: 760px; margin-top: 18px;
  font-size: 11px; color: var(--text-dim); text-align: center; line-height: 1.6;
}
.form-footer a { color: var(--text-muted); }

/* ── Responsive ───────────────────────────────────────────────── */
.hide-mobile { }
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .sidebar {
    position: fixed; top: var(--header-h); left: -220px; height: calc(100vh - var(--header-h));
    z-index: 100; transition: left 0.25s ease; box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  }
  .sidebar.open { left: 0; }
  .main-content { padding: 16px; }
  .form-card, .form-row { }
  .form-row { flex-direction: column; gap: 0; }
  .reg-layout { flex-direction: column; }
  .sub-toolbar { padding: 0 10px; }
  .tb-label { display: none; }
}

/* ── Sub-toolbar (PDCA-stílus) ────────────────────────────────── */
.sub-toolbar {
  height: var(--toolbar-h);
  background: var(--toolbar-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 14px; gap: 8px; flex-shrink: 0;
  position: relative;
  overflow-x: auto; overflow-y: hidden;
}
.sub-toolbar::-webkit-scrollbar { height: 3px; }
.sub-toolbar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
.tb-back-btn, .tb-sep { flex-shrink: 0; }

/* ── Contact person combo (kereshető, stílusozott) ────────────── */
.combo { position: relative; }
.combo-list {
  display: none; position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 280px; overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: 8px; box-shadow: var(--tile-hover-shadow); padding: 4px;
}
.combo-list.open { display: block; }
.admin-combo { flex: 1 1 320px; max-width: 440px; }
/* admin-only menü nem-adminnak: látszik, de szürke és nem kattintható */
.sidebar-item.locked, .sidebar-item.locked:hover { opacity: .45; cursor: not-allowed; background: transparent; }
.sidebar-item.locked::after { content: "\f023"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; margin-left: auto; }
.combo-opt {
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 10px; border-radius: 6px; cursor: pointer;
}
.combo-opt:hover, .combo-opt.active { background: var(--bg-hover); }
/* közös betöltő-overlay (site + kontakt fölött), áttetsző, pörgő ikonnal */
.loading-wrap { position: relative; }
.loading-overlay {
  position: absolute; inset: -2px; z-index: 30;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.55); border-radius: 8px;
}
html.dark .loading-overlay { background: rgba(20,22,40,0.5); }
.loading-overlay i { font-size: 28px; color: var(--accent); }
.combo-name { font-size: 13px; font-weight: 700; color: var(--text); }
.combo-mail { font-size: 11px; color: var(--text-dim); }
.combo-empty { padding: 8px 10px; font-size: 12px; color: var(--text-dim); font-style: italic; }
.tb-back-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 6px; border: 1px solid var(--border);
  color: var(--text-dim); text-decoration: none; font-size: 12px;
  transition: color 0.15s, border-color 0.15s;
}
.tb-back-btn:hover { color: var(--accent); border-color: var(--accent); }
.tb-sep { width: 1px; height: 28px; background: var(--border-strong); flex-shrink: 0; margin: 0 4px; }
.tb-label { font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
/* mode-switch a toolbarban */
.tb-mode { margin-bottom: 0 !important; flex-shrink: 0; }
.tb-mode .mode-btn { padding: 5px 12px; font-size: 11.5px; }

/* nyelvgombok zászlóval (mainpage-stílus) */
.lang-btn-row { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-muted); font-size: 12px; font-weight: 500; font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.lang-btn:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border-strong); }
.lang-btn.active { background: rgba(192,57,43,0.10); border-color: rgba(192,57,43,0.45); color: #c0392b; }
html.dark .lang-btn.active { color: #e8a09a; }
.lang-flag { width: 16px; height: 12px; object-fit: cover; border-radius: 1px; }
.lang-shimmer { width: 16px; height: 16px; opacity: 0; }
.lang-shimmer.active {
  opacity: 1; border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: lang-spin 0.7s linear infinite;
}
@keyframes lang-spin { to { transform: rotate(360deg); } }

/* ── Mode switch (single / group) ─────────────────────────────── */
.mode-switch { display: inline-flex; gap: 0; margin-bottom: 20px; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.mode-btn {
  padding: 8px 16px; font-size: 12.5px; font-weight: 600; font-family: inherit;
  background: var(--bg-card); color: var(--text-muted); border: none; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mode-btn + .mode-btn { border-left: 1px solid var(--border-strong); }
.mode-btn.active { background: var(--accent); color: #fff; }

/* ── Registration layout (form + group panel side by side) ────── */
.reg-layout { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.reg-layout .form-card { flex: 1; min-width: 320px; }
.card-hd { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; font-size: 13px; font-weight: 600; font-family: inherit;
  background: var(--bg-hover); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 6px; cursor: pointer;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--border); }

.member-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.member-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg);
}
.member-row .m-name { font-weight: 600; color: var(--text); font-size: 12.5px; }
.member-row .m-sub { font-size: 11px; color: var(--text-muted); }
.member-row .m-del {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 14px;
}
.member-row .m-del:hover { color: var(--accent); }
.member-empty { font-size: 12px; color: var(--text-dim); font-style: italic; }

/* ── Visitor list table ───────────────────────────────────────── */
.list-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; max-width: 100%; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); max-width: 100%; }
.v-table th, .v-table td { padding-left: 14px; padding-right: 14px; }
.v-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.v-table th {
  text-align: left; padding: 10px 12px; background: var(--bg-hover);
  color: var(--text-muted); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap;
  position: sticky; top: 0;
}
.v-table td { padding: 9px 12px; border-top: 1px solid var(--border); color: var(--text); white-space: nowrap; }
.v-table tbody tr:hover { background: var(--bg-hover); }
.v-badge { padding: 1px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; }
.v-badge.arrived { background: rgba(39,174,96,0.15); color: #27ae60; }
.v-badge.left { background: rgba(149,165,166,0.18); color: var(--text-muted); }

/* ── Reception ────────────────────────────────────────────────── */
.rec-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.rec-scan { flex: 0 1 340px; min-width: 220px; }
.rec-daterange { display: flex; align-items: center; gap: 6px; }
.rec-daterange .form-control { max-width: 165px; }
.rec-dr-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }

.rec-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.rec-cards-empty { font-size: 13px; color: var(--text-dim); font-style: italic; padding: 20px 4px; }
.rec-card {
  display: flex; align-items: stretch; gap: 16px; width: 100%;
  border: 1px solid var(--border); border-left-width: 4px;
  border-radius: 10px; padding: 14px 18px;
  background: var(--bg-card); box-shadow: var(--tile-shadow);
  transition: box-shadow 0.2s;
}
.rec-card.status-registered { background: var(--st-reg-bg);  border-color: var(--st-reg-bd);  border-left-color: #3498db; }
.rec-card.status-arrived    { background: var(--st-arr-bg);  border-color: var(--st-arr-bd);  border-left-color: #27ae60; }
.rec-card.status-left       { background: var(--st-left-bg); border-color: var(--st-left-bd); border-left-color: #95a5a6; }
.rec-card.flash { box-shadow: 0 0 0 3px var(--accent-glow); }

.rec-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rec-card-hdr { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.rec-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 16px; }
.rec-id { font-size: 12px; font-weight: 700; color: var(--text-dim); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.rec-nm { font-size: 16px; font-weight: 700; color: var(--text); }
.rec-fld { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); min-width: 0; }
.rec-fld i { color: var(--accent); font-size: 12px; width: 14px; text-align: center; flex-shrink: 0; }
.rec-fld .fl-label { color: var(--text-dim); font-weight: 600; flex-shrink: 0; }
.rec-fld .fl-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rec-status-pill { padding: 2px 10px; border-radius: 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.rec-status-pill.status-registered { background: rgba(52,152,219,0.18); color: #2980b9; }
.rec-status-pill.status-arrived    { background: rgba(39,174,96,0.18);  color: #1e8449; }
.rec-status-pill.status-left       { background: rgba(149,165,166,0.22); color: var(--text-muted); }
html.dark .rec-status-pill.status-registered { color: #5dade2; }
html.dark .rec-status-pill.status-arrived    { color: #58d68d; }

.rec-card-act { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding-left: 16px; border-left: 1px solid var(--border); }
.rec-card-act input { width: 96px; }
.rec-mini-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 12px; font-size: 12.5px; font-weight: 600; font-family: inherit;
  border-radius: 6px; cursor: pointer; white-space: nowrap; border: 1px solid transparent;
}
.rec-mini-btn.arr { background: #27ae60; color: #fff; }
.rec-mini-btn.arr:hover { background: #219150; }
.rec-mini-btn.dep { background: var(--bg-hover); color: var(--text); border-color: var(--border-strong); }
.rec-mini-btn.dep:hover { background: var(--border); }

/* toolbar site filter */
.tb-site-filter {
  padding: 5px 10px; border-radius: 6px; cursor: pointer; flex-shrink: 0;
  border: 1px solid var(--border-strong); background: var(--bg-card);
  color: var(--text); font-size: 12px; font-weight: 600; font-family: inherit; max-width: 220px;
}

/* session timer — a sidebar alján, a főoldal (mainpage) dizájnja szerint */
.session-timer-box {
  margin-top: auto;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
}
.session-timer-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.7px; color: var(--text-dim);
  display: flex; align-items: center; gap: 6px; margin-bottom: 7px;
}
.session-timer-value {
  font-size: 10px; font-weight: 700; color: var(--text-dim);
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums; margin-left: auto;
}
.session-timer-bar-wrap { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.session-timer-bar { height: 100%; border-radius: 2px; background: #27ae60; transition: width 1s linear, background 0.5s; }

.rec-card-main { cursor: pointer; }

/* ── Detail popup ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 12px 48px rgba(0,0,0,0.4);
  width: 460px; max-width: 100%; max-height: 88vh; display: flex; flex-direction: column;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 16px; font-weight: 700; color: var(--text); }
.modal-close {
  width: 30px; height: 30px; border-radius: 6px; border: none; cursor: pointer;
  background: var(--bg-hover); color: var(--text-muted); font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body { padding: 8px 20px 18px; overflow-y: auto; }
.modal-row { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.modal-row:last-child { border-bottom: none; }
.modal-row .mr-ic { width: 22px; text-align: center; color: var(--accent); font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.modal-row .mr-body { min-width: 0; flex: 1; }
.modal-row .mr-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); }
.modal-row .mr-val { font-size: 14px; color: var(--text); word-break: break-word; }
.modal-status { padding: 3px 12px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; }

/* ── List status radios ───────────────────────────────────────── */
.radio-group { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; background: var(--bg-card); white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.radio-pill + .radio-pill { border-left: 1px solid var(--border-strong); }
.radio-pill input { display: none; }
.radio-pill:has(input:checked) { background: var(--accent); color: #fff; }
.radio-pill.checked { background: var(--accent); color: #fff; }
.radio-pill:hover { background: var(--bg-hover); }
.radio-pill.checked:hover, .radio-pill:has(input:checked):hover { background: var(--accent); }

/* delete (trash) button in list */
.v-del-btn {
  background: none; border: none; cursor: pointer; padding: 4px 6px;
  color: var(--text-dim); font-size: 14px; border-radius: 5px;
}
.v-del-btn:hover { color: #c0392b; background: rgba(192,57,43,0.12); }
.v-table td.v-del-cell { text-align: center; }

@media (max-width: 768px) {
  .rec-card { flex-direction: column; }
  .rec-card-act { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 10px; }
}
