@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f4f4f5;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, .75);
  --surface-solid: #ffffff;
  --surface-hover: rgba(255, 255, 255, .95);
  --border: rgba(63, 63, 70, .12);
  --text: #18181b;
  --text-muted: #71717a;
  --text-faint: #a1a1aa;
  --accent: #3f3f46;
  --accent-2: #52525b;
  --accent-hover: #27272a;
  --accent-soft: rgba(63, 63, 70, .08);
  --accent-grad: linear-gradient(135deg, #52525b, #27272a);
  --on-accent: #ffffff;
  --green: #17a673;
  --green-soft: rgba(23, 166, 115, .13);
  --red: #d9435f;
  --red-soft: rgba(217, 67, 95, .13);
  --yellow: #b8860b;
  --yellow-soft: rgba(184, 134, 11, .15);
  --zinc-soft: rgba(113, 113, 122, .12);
  --blue: #3f7fe0;
  --blue-soft: rgba(63, 127, 224, .13);
  --purple: #7c5cd9;
  --purple-soft: rgba(124, 92, 217, .13);
  --garage-mine: #3f7fe0;
  --shadow: 0 1px 2px rgba(24, 24, 27, .06);
  --shadow-lg: 0 24px 60px -12px rgba(24, 24, 27, .2);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

:root[data-theme="dark"] {
  --bg: #18181b;
  --bg-elevated: #202023;
  --surface: rgba(39, 39, 42, .6);
  --surface-solid: #27272a;
  --surface-hover: rgba(63, 63, 70, .75);
  --border: rgba(161, 161, 170, .16);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-faint: #71717a;
  --accent: #d4d4d8;
  --accent-2: #a1a1aa;
  --accent-hover: #e4e4e7;
  --accent-soft: rgba(212, 212, 216, .12);
  --accent-grad: linear-gradient(135deg, #e4e4e7, #a1a1aa);
  --on-accent: #18181b;
  --green: #3fd6a0;
  --green-soft: rgba(63, 214, 160, .15);
  --red: #ff7195;
  --red-soft: rgba(255, 113, 149, .16);
  --yellow: #f2c15c;
  --yellow-soft: rgba(242, 193, 92, .16);
  --zinc-soft: rgba(169, 165, 207, .13);
  --blue: #7ba8ff;
  --blue-soft: rgba(123, 168, 255, .16);
  --purple: #c3a5ff;
  --purple-soft: rgba(195, 165, 255, .16);
  --garage-mine: #7ba8ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #18181b;
    --bg-elevated: #202023;
    --surface: rgba(39, 39, 42, .6);
    --surface-solid: #27272a;
    --surface-hover: rgba(63, 63, 70, .75);
    --border: rgba(161, 161, 170, .16);
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-faint: #71717a;
    --accent: #d4d4d8;
    --accent-2: #a1a1aa;
    --accent-hover: #e4e4e7;
    --accent-soft: rgba(212, 212, 216, .12);
    --accent-grad: linear-gradient(135deg, #e4e4e7, #a1a1aa);
    --on-accent: #18181b;
    --green: #3fd6a0;
    --green-soft: rgba(63, 214, 160, .15);
    --red: #ff7195;
    --red-soft: rgba(255, 113, 149, .16);
    --yellow: #f2c15c;
    --yellow-soft: rgba(242, 193, 92, .16);
    --zinc-soft: rgba(169, 165, 207, .13);
    --blue: #7ba8ff;
    --blue-soft: rgba(123, 168, 255, .16);
    --purple: #c3a5ff;
    --purple-soft: rgba(195, 165, 255, .16);
    --garage-mine: #7ba8ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(720px circle at 8% -10%, rgba(63, 63, 70, .06), transparent 60%),
    radial-gradient(640px circle at 100% 0%, rgba(63, 63, 70, .05), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }
button { font-family: inherit; }

/* Generikus, kis lista-navigáció (pl. állománytábla szűrő, oldal-szerkesztő oldallista) - nem a globális navigáció része. */
.sidebar-group-title { font-family: var(--font-display); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); padding: 8px 10px 6px; font-weight: 700; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-muted);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.sidebar-link:hover { background: var(--accent-soft); color: var(--text); text-decoration: none; }
.sidebar-link.active { background: var(--accent-grad); color: var(--on-accent); }
.sidebar-link .icon { width: 18px; text-align: center; flex-shrink: 0; }

.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px; background: var(--surface); backdrop-filter: blur(18px);
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--border);
}
.main-content { padding: 28px 24px 60px; max-width: 1360px; width: 100%; margin: 0 auto; }

/* Fő navigáció: kétsoros "appbar" - felül brand + csoport-pirulák, alatta az aktív csoport lapfülei. Nincs sidebar, nincs lenyíló menü. */
.appbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.appbar-row {
  max-width: 1360px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 38px; height: 38px; border-radius: 12px; overflow: hidden; background: var(--accent-grad); padding: 3px; flex-shrink: 0; box-shadow: var(--shadow); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -.01em; color: var(--text); white-space: nowrap; }

.group-switch { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--accent-soft); border-radius: 999px; }
.group-switch::-webkit-scrollbar { display: none; }
.group-pill {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 8px 14px; background: none; border: none; border-radius: 999px;
  color: var(--text-muted); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.group-pill:hover { color: var(--text); }
.group-pill.active { background: var(--surface-solid); color: var(--accent); box-shadow: var(--shadow); }
.group-pill .icon { width: 15px; height: 15px; }

.appbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }

.subnav-row {
  max-width: 1360px; margin: 0 auto; padding: 0 24px 14px;
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.subnav-row::-webkit-scrollbar { display: none; }
.subnav-group { display: flex; gap: 6px; }
.subnav-group[hidden] { display: none; }
.subnav-link {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 7px 14px; border-radius: 999px; color: var(--text-muted);
  font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid transparent;
}
.subnav-link:hover { background: var(--accent-soft); color: var(--text); text-decoration: none; }
.subnav-link.active { background: var(--surface-solid); color: var(--accent); border-color: var(--border); box-shadow: var(--shadow); }
.subnav-link .icon { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .stat-grid, .form-grid { grid-template-columns: 1fr !important; }
  .page-header h1 { font-size: 19px; }
  .page-header { align-items: flex-start; }
  .modal-backdrop { padding: 10px; }
  .modal-header, .modal-body, .modal-footer { padding-left: 16px; padding-right: 16px; }
  .card-pad { padding: 16px; }
  .notif-panel, .profile-panel { position: fixed; left: 10px; right: 10px; width: auto; top: 64px; }
  .appbar-row, .subnav-row { padding-left: 14px; padding-right: 14px; }
  .brand-text { display: none; }
  .main-content { padding: 18px 14px 48px; }
}

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-header .eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.page-header h1 { font-size: 24px; }
.page-header .subtitle { color: var(--text-muted); margin-top: 6px; font-size: 13.5px; font-weight: 500; }
.page-header .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card { position: relative; background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); }
.stat-card .icon { width: 40px; height: 40px; border-radius: 14px; background: var(--accent-grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.stat-card .value { font-size: 20px; font-weight: 800; }
.stat-card .label { color: var(--text-muted); font-size: 12px; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 18px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  background: var(--surface-solid); color: var(--text);
}
.btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); text-decoration: none; }
.btn.btn-sm { padding: 6px 13px; font-size: 12.5px; }
.btn-primary { background: var(--accent-grad); border-color: transparent; color: var(--on-accent); box-shadow: 0 8px 20px -6px rgba(24, 24, 27, .35); }
.btn-primary:hover { filter: brightness(1.1); color: var(--on-accent); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); color: #fff; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { filter: brightness(1.1); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--accent-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; padding: 0; border-radius: 999px; background: transparent; border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge-zinc { background: var(--zinc-soft); color: var(--text-muted); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.field .hint { font-size: 11.5px; color: var(--text-faint); }
.field .error { font-size: 11.5px; color: var(--red); }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=datetime-local], input[type=url], input[type=search],
select, textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-solid); color: var(--text); font-size: 14px; font-family: var(--font-body); font-weight: 600;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(16px); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
thead th { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
tbody tr:hover { background: var(--accent-soft); }
tbody tr:last-child td { border-bottom: none; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(20, 16, 40, .45); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { position: relative; background: var(--surface-solid); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.modal.modal-wide { max-width: 780px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 16px; }
.modal-body { padding: 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 22px; border-top: 1px solid var(--border); }

#toast-root { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--surface-solid); border: 1px solid var(--border); border-left: 3px solid var(--accent); box-shadow: var(--shadow-lg); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; min-width: 240px; }
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; }
.pagination button { min-width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-solid); color: var(--text); cursor: pointer; }
.pagination button.active { background: var(--accent-grad); border-color: transparent; color: var(--on-accent); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

.empty-state { text-align: center; padding: 44px 20px; color: var(--text-muted); font-size: 13px; font-weight: 600; }

.tabs { display: flex; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; background: var(--accent-soft); border-radius: 999px; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab-link { padding: 8px 16px; border-radius: 999px; color: var(--text-muted); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.tab-link.active { color: var(--accent); background: var(--surface-solid); box-shadow: var(--shadow); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12.5px; }
.w-full { width: 100%; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--zinc-soft); overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--accent-grad); }

.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background:
    linear-gradient(180deg, rgba(8, 7, 15, .6), rgba(8, 7, 15, .8)),
    url('/assets/login-bg.jpg') center / cover no-repeat fixed;
}
.login-card { position: relative; background: var(--surface); backdrop-filter: blur(24px); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 44px 36px; width: 100%; max-width: 400px; text-align: center; }

.garage-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: #1a1830;
  background-image:
    radial-gradient(500px circle at 20% 20%, rgba(161, 161, 170, .15), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px, transparent 1px, transparent 12.5%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 20%);
  overflow: hidden;
  touch-action: none;
}
.garage-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: default;
  user-select: none;
  z-index: 1;
}
.garage-spot[data-editable] { cursor: grab; }
.garage-spot[data-editable]:active { cursor: grabbing; z-index: 5; }
.garage-spot-marker {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  border: 2px solid rgba(63, 214, 160, .7);
  color: rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 700;
}
.garage-spot.occupied .garage-spot-marker {
  border: 2px solid rgba(255, 113, 149, .85);
  background: rgba(255, 113, 149, .18);
  color: #fff;
}
.garage-spot.occupied.mine .garage-spot-marker {
  border: 2px solid var(--garage-mine);
  background: rgba(63, 127, 224, .28);
  color: #fff;
}
.garage-spot-marker img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.garage-entrance-marker { border-style: solid; border-color: rgba(242, 197, 49, .8); background: rgba(242, 197, 49, .18); color: #f2c531; }
.garage-spot.type-line { z-index: 0; }
.garage-line-marker { width: 90px; height: 5px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 10px, transparent 10px 16px); }
.garage-spot-new .garage-spot-marker, .garage-spot-new .garage-line-marker { animation: garage-spot-pulse 1s ease-in-out 3; }
@keyframes garage-spot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(161, 161, 170, .9); }
  50% { box-shadow: 0 0 0 10px rgba(161, 161, 170, 0); }
}
.garage-spot-plate { font-size: 10px; font-family: monospace; color: #fff; background: rgba(0,0,0,.5); padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.garage-tooltip { position: relative; }
.garage-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #201f3c;
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 11.5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
  z-index: 10;
}
.garage-tooltip:hover::after { opacity: 1; }
.garage-legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text-muted); }
.garage-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-weekday { text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); padding-bottom: 4px; }
.calendar-cell { min-height: 90px; border: 1px solid var(--border); border-radius: 14px; padding: 6px; background: var(--surface); }

/* NNI akta (robotzsaru) dokumentum-szerkesztő */
.doc-letterhead { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px; overflow: hidden; }
.doc-letterhead-img { display: block; width: calc(100% + 48px); max-width: none; height: auto; margin: -20px -24px 16px; }
.doc-letterhead-img-page { width: calc(100% + 36px); max-width: none; margin: -18px -18px 16px; }
.doc-letterhead-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.doc-letterhead-meta span { display: block; font-size: 10.5px; text-transform: uppercase; font-weight: 700; color: var(--text-muted); margin-bottom: 2px; }
.doc-letterhead-meta strong { font-size: 13.5px; }

.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.doc-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.doc-main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; overflow: hidden; }
.doc-page-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.doc-page-title-input { font-weight: 800; font-size: 15px; border: none; background: transparent; flex: 1; min-width: 160px; color: var(--text); }
.doc-page-title-input:focus { outline: none; }
.doc-toolbar { display: flex; gap: 4px; flex-wrap: wrap; }
.doc-toolbar button { min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-solid); color: var(--text); cursor: pointer; font-size: 12.5px; }
.doc-editor { min-height: 100px; padding: 10px 4px; font-size: 14px; line-height: 1.65; }
.doc-editor:focus { outline: none; }
.doc-editor ul, .doc-editor ol { padding-left: 22px; }
.doc-block { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 14px; }
.doc-block .doc-toolbar { margin-bottom: 4px; }
.doc-block .doc-editor { min-height: 80px; }
@media (max-width: 720px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-letterhead-img, .doc-letterhead-img-page { width: 100%; }
}
/* Weboldal szerkesztés mód - menü szerkesztő */
.nav-group-card { cursor: grab; }
.nav-group-card.dragging { opacity: .4; }
.nav-items-list { min-height: 36px; border-radius: var(--radius-sm); }
.nav-items-list:empty { border: 1px dashed var(--border); }
.nav-items-list:empty::after { content: "Húzz ide menüpontokat"; display: block; padding: 8px 10px; font-size: 12.5px; color: var(--text-muted); }
.nav-item-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 6px; background: var(--surface-solid); cursor: grab; }
.nav-item-row.dragging { opacity: .4; }
.nav-item-row input[type=text] { flex: 1; background: transparent; border: none; color: var(--text); font-size: 13.5px; }
.nav-item-row input[type=text]:focus, .nav-group-label-input:focus { outline: none; }
.drag-handle { color: var(--text-muted); user-select: none; flex-shrink: 0; }

.calendar-cell.empty { border: none; background: none; }
.calendar-cell.today { border-color: var(--accent); background: var(--accent-soft); }
.calendar-day-num { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.login-card h1 { font-size: 20px; margin-bottom: 6px; }
.login-card p { color: var(--text-muted); margin-bottom: 24px; font-size: 13.5px; font-weight: 500; }
.login-card .field { text-align: left; }

.duty-badge-wrap { position: fixed; bottom: 18px; right: 18px; z-index: 60; display: flex; align-items: center; gap: 8px; }
.duty-badge { background: var(--accent-grad); color: var(--on-accent); padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.duty-badge:hover { text-decoration: none; filter: brightness(1.05); }
.beep-volume-toggle { background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }

.notif-wrap { position: relative; }
.notif-dot { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg-elevated); }
.notif-panel { position: absolute; right: 0; top: 46px; width: 320px; max-height: 400px; overflow-y: auto; background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; z-index: 50; }
.notif-panel.open { display: block; }
.notif-item { padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.notif-item.unread { background: var(--accent-soft); }
.notif-item .title { font-weight: 700; margin-bottom: 2px; font-size: 12.5px; }
.notif-item .time { color: var(--text-faint); font-size: 11px; margin-top: 4px; }

.profile-btn { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; color: var(--text); }
.avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--accent-grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-panel { position: absolute; right: 0; top: 46px; width: 260px; background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; z-index: 50; padding: 8px; }
.profile-panel.open { display: block; }
.profile-panel .pp-header { padding: 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.profile-panel a, .profile-panel button.pp-link { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--text); background: none; border: none; font-size: 13px; cursor: pointer; }
.profile-panel a:hover, .profile-panel button.pp-link:hover { background: var(--accent-soft); text-decoration: none; }

.site-footer { max-width: 1360px; margin: 40px auto 0; padding: 18px 24px 28px; text-align: center; }
.site-footer p { color: var(--text-faint); font-size: 11.5px; line-height: 1.6; }
@media (max-width: 640px) { .site-footer { padding: 16px 14px 24px; } }
