/* =====================================================================
   WSNE CRM — app.css
   Vilagos mod: tiszta feher. Sotet mod: valodi fekete.
   Light mode: pure white. Dark mode: true black.
   ===================================================================== */

:root {
  --bg:          #ffffff;
  --surface:     #ffffff;
  --surface-2:   #f6f7f9;
  --surface-3:   #eef0f4;
  --border:      #e2e5ea;
  --border-str:  #cdd2da;
  --text:        #101318;
  --text-2:      #414957;
  --muted:       #6b7280;
  --accent:      #1b3c7a;
  --accent-ink:  #ffffff;
  --accent-soft: #edf2fc;
  --gold:        #8a6d16;
  --ok:          #1b6b3a;
  --ok-soft:     #e8f5ec;
  --warn:        #8a5a06;
  --warn-soft:   #fdf1de;
  --danger:      #a11d2b;
  --danger-soft: #fdecee;
  --shadow-1: 0 1px 2px rgba(16,19,24,.06), 0 1px 3px rgba(16,19,24,.04);
  --shadow-2: 0 6px 24px rgba(16,19,24,.10);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --sidenav-w: 248px;
  --appbar-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  --bg:          #000000;
  --surface:     #0a0c10;
  --surface-2:   #12151b;
  --surface-3:   #1a1e26;
  --border:      #262b34;
  --border-str:  #39404c;
  --text:        #f3f5f8;
  --text-2:      #c7cdd7;
  --muted:       #969ead;
  --accent:      #8fb0ff;
  --accent-ink:  #06101f;
  --accent-soft: #0e1729;
  --gold:        #d8b45c;
  --ok:          #6ddc9a;
  --ok-soft:     #0b1d14;
  --warn:        #f0be6a;
  --warn-soft:   #221a0c;
  --danger:      #ff8a95;
  --danger-soft: #250d11;
  --shadow-1: 0 1px 2px rgba(0,0,0,.6);
  --shadow-2: 0 10px 30px rgba(0,0,0,.7);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg:          #000000;
    --surface:     #0a0c10;
    --surface-2:   #12151b;
    --surface-3:   #1a1e26;
    --border:      #262b34;
    --border-str:  #39404c;
    --text:        #f3f5f8;
    --text-2:      #c7cdd7;
    --muted:       #969ead;
    --accent:      #8fb0ff;
    --accent-ink:  #06101f;
    --accent-soft: #0e1729;
    --gold:        #d8b45c;
    --ok:          #6ddc9a;
    --ok-soft:     #0b1d14;
    --warn:        #f0be6a;
    --warn-soft:   #221a0c;
    --danger:      #ff8a95;
    --danger-soft: #250d11;
    --shadow-1: 0 1px 2px rgba(0,0,0,.6);
    --shadow-2: 0 10px 30px rgba(0,0,0,.7);
  }
}

/* --- alap / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; letter-spacing: -.015em; }
h1 { font-size: 1.5rem; font-weight: 650; }
h2 { font-size: 1.15rem; font-weight: 620; }
h3 { font-size: 1rem; font-weight: 600; }
p  { margin: 0 0 .75rem; }
small { font-size: .8125rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem;
}
.skip-link:focus { left: 0; }

/* --- appbar --------------------------------------------------------- */
.appbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--appbar-h);
  display: flex; align-items: center; gap: .5rem;
  padding: 0 .75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.appbar-spacer { flex: 1; }
.appbar-brand { display: flex; align-items: center; gap: .6rem; color: var(--text); }
.appbar-brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 9px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: .8rem; letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .95rem; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: .7rem; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: transparent; border: 1px solid transparent; border-radius: 10px;
  color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.appbar-menu { display: none; }
.burger, .burger::before, .burger::after {
  display: block; width: 17px; height: 1.8px; background: currentColor; border-radius: 2px;
}
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; }
.burger::after  { top: 5px; }
.theme-ico {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1.8px solid currentColor;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
}

.seg { display: flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.seg-item {
  padding: .3rem .5rem; font-size: .72rem; font-weight: 650; letter-spacing: .05em;
  color: var(--muted); background: var(--surface);
}
.seg-item:hover { background: var(--surface-2); text-decoration: none; }
.seg-item.is-on { background: var(--accent); color: var(--accent-ink); }

.usermenu { position: relative; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border-str); background: var(--surface-2); color: var(--text);
  font-weight: 650; font-size: .85rem;
}
.usermenu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 50;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-2); padding: .35rem; display: flex; flex-direction: column;
}
.usermenu-panel[hidden] { display: none; }
.usermenu-head { padding: .6rem .65rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; display: grid; gap: .3rem; }
.usermenu-panel a { padding: .55rem .65rem; border-radius: 8px; color: var(--text); font-size: .9rem; }
.usermenu-panel a:hover { background: var(--surface-2); text-decoration: none; }
.usermenu-panel a.danger { color: var(--danger); }

/* --- shell / sidenav ------------------------------------------------ */
.shell { display: grid; grid-template-columns: var(--sidenav-w) minmax(0, 1fr); min-height: calc(100vh - var(--appbar-h)); }
.sidenav {
  position: sticky; top: var(--appbar-h); align-self: start;
  height: calc(100vh - var(--appbar-h));
  overflow-y: auto;
  padding: 1rem .7rem 1.5rem;
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 2px;
}
.nav-label {
  margin: 1rem .6rem .35rem; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); font-weight: 650;
}
.nav-label:first-child { margin-top: .25rem; }
.nav-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .65rem; border-radius: 10px;
  color: var(--text-2); font-size: .9rem; font-weight: 500;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-item.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 620; }
.nav-ico { width: 18px; text-align: center; opacity: .75; font-size: .95rem; }
.nav-foot {
  margin-top: auto; padding: .9rem .65rem 0; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem;
}
.nav-scrim { display: none; }

.main { padding: 1.25rem 1.5rem 3rem; max-width: 1280px; width: 100%; }

/* --- lapfejlec / page head ------------------------------------------ */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.page-head .eyebrow { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 650; margin-bottom: .2rem; }
.page-head p { color: var(--muted); margin: .15rem 0 0; font-size: .875rem; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* --- gombok / buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .5rem .85rem; border-radius: 10px; border: 1px solid var(--border-str);
  background: var(--surface); color: var(--text); font: inherit; font-size: .875rem; font-weight: 550;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn--danger { color: var(--danger); border-color: var(--border-str); }
.btn--danger:hover { background: var(--danger-soft); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { padding: .32rem .6rem; font-size: .8rem; border-radius: 8px; }
.btn--block { width: 100%; }

/* --- kartyak / cards ------------------------------------------------ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  margin-bottom: 1rem; overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.card-head h2, .card-head h3 { margin: 0; }
.card-body { padding: 1.1rem; }
.card-body > :last-child { margin-bottom: 0; }
.card-foot { padding: .8rem 1.1rem; border-top: 1px solid var(--border); background: var(--surface-2); }

.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* --- statisztika / stat tiles --------------------------------------- */
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1rem 1.1rem; box-shadow: var(--shadow-1);
}
.stat-num { font-size: 2rem; font-weight: 680; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-lbl { color: var(--muted); font-size: .82rem; }
.stat--warn .stat-num { color: var(--warn); }
.stat--danger .stat-num { color: var(--danger); }

/* --- leltari szam plaketta (jelzoelem) / inventory tag -------------- */
.invtag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  padding: .18rem .5rem .18rem .42rem;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-str);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  white-space: nowrap;
}
.invtag--lg { font-size: .95rem; padding: .35rem .7rem .35rem .6rem; border-left-width: 4px; }
a.invtag:hover { background: var(--surface-3); text-decoration: none; }

/* --- cimkek / badges ------------------------------------------------ */
.badge {
  display: inline-block; padding: .16rem .5rem; border-radius: 999px;
  font-size: .74rem; font-weight: 600; line-height: 1.5;
  background: var(--surface-3); color: var(--text-2); white-space: nowrap;
}
.badge--ok      { background: var(--ok-soft); color: var(--ok); }
.badge--warn    { background: var(--warn-soft); color: var(--warn); }
.badge--danger  { background: var(--danger-soft); color: var(--danger); }
.badge--accent  { background: var(--accent-soft); color: var(--accent); }
.badge--muted   { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.badge--neutral { background: var(--surface-3); color: var(--text-2); }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .6rem; border-radius: 999px; font-size: .78rem;
  border: 1px solid var(--border); color: var(--text-2); background: var(--surface);
}
.chip--on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* --- urlapok / forms ------------------------------------------------ */
.form-grid { display: grid; gap: .9rem 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > label { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: .75rem; color: var(--muted); }
.req { color: var(--danger); }

input[type=text], input[type=password], input[type=email], input[type=number],
input[type=date], input[type=search], input[type=tel], select, textarea {
  width: 100%; padding: .5rem .65rem; font: inherit; font-size: .9rem;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-str); border-radius: 10px;
  appearance: none;
}
textarea { min-height: 88px; resize: vertical; }
select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 2rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }

.check { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--text-2); cursor: pointer; }
.check input { flex: none; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .5rem .9rem; }

.form-actions {
  display: flex; gap: .6rem; flex-wrap: wrap; align-items: center;
  padding-top: .25rem;
}
.fieldset-title {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 650; margin: 1.4rem 0 .6rem;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.fieldset-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* --- szurosav / filter bar ------------------------------------------ */
.filterbar {
  display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end; padding: .9rem 1.1rem; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: 1rem;
}
.filterbar .field > label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.filterbar .filter-actions { display: flex; gap: .5rem; }
.filterbar .search-field { grid-column: span 2; }

/* --- tablazat / table ----------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.data th, table.data td { padding: .6rem .8rem; text-align: left; vertical-align: middle; }
table.data thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 650; border-bottom: 1px solid var(--border);
  background: var(--surface); position: sticky; top: 0;
}
table.data tbody tr { border-bottom: 1px solid var(--border); }
table.data tbody tr:last-child { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.acts { text-align: right; white-space: nowrap; }
.t-sub { color: var(--muted); font-size: .8rem; }

/* --- lista mobil kartyakent / table becomes cards on phones --------- */
@media (max-width: 760px) {
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data thead { display: none; }
  table.data tbody tr {
    border: 1px solid var(--border); border-radius: var(--r-md);
    padding: .7rem .85rem; margin-bottom: .6rem; background: var(--surface);
  }
  table.data td { padding: .22rem 0; text-align: left !important; }
  table.data td[data-label]::before {
    content: attr(data-label) " ";
    display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); font-weight: 650;
  }
  table.data td.acts { padding-top: .6rem; display: flex; gap: .4rem; }
}

/* --- ures allapot / empty state ------------------------------------- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-mark {
  font-family: var(--mono); font-size: 2.5rem; font-weight: 700;
  color: var(--border-str); letter-spacing: -.03em;
}
.empty h2 { color: var(--text); margin-top: .5rem; }

/* --- flash ----------------------------------------------------------- */
.flash {
  padding: .7rem 1rem; border-radius: var(--r-md); margin-bottom: 1rem;
  border: 1px solid var(--border); background: var(--surface-2); font-size: .9rem;
}
.flash--success { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.flash--error   { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.flash--info    { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.flash--warn    { background: var(--warn-soft); border-color: transparent; color: var(--warn); }

/* --- adatlista / definition list ------------------------------------ */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem 1.5rem; }
.dl-item { min-width: 0; }
.dl-item dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; margin-bottom: .12rem; }
.dl-item dd { margin: 0; font-size: .92rem; word-break: break-word; }

/* --- idovonal / timeline -------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative; padding: 0 0 1rem 1.2rem; border-left: 2px solid var(--border);
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: .35rem;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.timeline .tl-date { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.timeline .tl-title { font-weight: 600; }
.timeline .tl-body { color: var(--text-2); font-size: .88rem; }

/* --- meroallas sav / meter bar -------------------------------------- */
.meter { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; min-width: 90px; }
.meter > span { display: block; height: 100%; background: var(--ok); }
.meter--warn > span { background: var(--warn); }
.meter--danger > span { background: var(--danger); }

/* --- eszkozvalaszto / asset picker ---------------------------------- */
.picker { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.picker-search { padding: .55rem .7rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.picker-list { max-height: 340px; overflow-y: auto; }
.picker-row {
  display: flex; align-items: center; gap: .7rem; padding: .5rem .75rem;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.picker-row:last-child { border-bottom: 0; }
.picker-row:hover { background: var(--surface-2); }
.picker-row.is-hidden { display: none; }
.picker-row .pr-main { flex: 1; min-width: 0; }
.picker-row .pr-name { font-size: .88rem; }
.picker-row .pr-meta { font-size: .76rem; color: var(--muted); }

/* --- lapozo / pager -------------------------------------------------- */
.pager { display: flex; gap: .3rem; justify-content: center; padding: 1rem 0 0; flex-wrap: wrap; }
.pager-btn {
  min-width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0 .5rem;
  border: 1px solid var(--border); border-radius: 9px; color: var(--text-2);
  font-size: .85rem; font-variant-numeric: tabular-nums;
}
.pager-btn:hover { background: var(--surface-2); text-decoration: none; }
.pager-btn.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pager-btn.is-off { opacity: .4; pointer-events: none; }

/* --- belepes / login ------------------------------------------------- */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background: var(--bg);
}
.auth-card {
  width: 100%; max-width: 400px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem;
  box-shadow: var(--shadow-2);
}
.auth-head { text-align: center; margin-bottom: 1.4rem; }
.auth-head .brand-mark { width: 46px; height: 46px; margin: 0 auto .75rem; font-size: 1rem; border-radius: 13px; }
.auth-head h1 { font-size: 1.2rem; }
.auth-head p { color: var(--muted); font-size: .85rem; margin: 0; }
.auth-foot { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); text-align: center; font-size: .8rem; color: var(--muted); }
.auth-foot a { margin: 0 .4rem; }
.auth-hint {
  margin-top: 1rem; padding: .6rem .75rem; border-radius: var(--r-md);
  background: var(--surface-2); font-size: .78rem; color: var(--muted);
  font-family: var(--mono);
}

/* --- nyilvanos telefonkonyv / public phonebook ---------------------- */
.pub { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.pub-head { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.pub-head .eyebrow { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 650; }
.pub-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: .35rem 0 .5rem; }
.pub-head p { color: var(--muted); max-width: 60ch; }
.pub-topbar { display: flex; align-items: center; gap: .5rem; padding: .6rem 0; }

.dept-group { margin-bottom: 2rem; }
.dept-title {
  display: flex; align-items: baseline; gap: .6rem; margin-bottom: .75rem;
  padding-bottom: .4rem; border-bottom: 2px solid var(--accent);
}
.dept-title h2 { margin: 0; font-size: 1rem; }
.dept-title .count { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }

.people { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.person {
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: .9rem 1rem;
  background: var(--surface);
}
.person h3 { font-size: .98rem; margin-bottom: .1rem; }
.person .p-title { color: var(--muted); font-size: .82rem; margin-bottom: .6rem; }
.person dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .6rem; margin: 0; font-size: .84rem; }
.person dt { color: var(--muted); }
.person dd { margin: 0; word-break: break-word; }

/* --- mobil tabbar / bottom tab bar ---------------------------------- */
.tabbar { display: none; }

@media (max-width: 900px) {
  .appbar-menu { display: grid; }
  .brand-text small { display: none; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidenav {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
    width: 268px; height: 100%; transform: translateX(-102%);
    transition: transform .22s ease; box-shadow: var(--shadow-2);
    padding-top: 1.25rem;
  }
  body.nav-open .sidenav { transform: none; }
  .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(0,0,0,.45); border: 0;
  }
  .nav-scrim[hidden] { display: none; }
  .main { padding: 1rem 1rem 5.5rem; }
  .filterbar .search-field { grid-column: 1 / -1; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--surface); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: .5rem .25rem .55rem; font-size: .66rem; color: var(--muted); font-weight: 550;
    text-align: center;
  }
  .tab:hover { text-decoration: none; }
  .tab-ico { font-size: 1.05rem; line-height: 1; }
  .tab.is-active { color: var(--accent); }
}

@media (max-width: 420px) {
  .brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* --- nyomtatas / print ---------------------------------------------- */
@media print {
  .appbar, .sidenav, .tabbar, .filterbar, .pub-topbar, .head-actions, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .main, .pub { padding: 0; max-width: none; }
  .person, .card { border-color: #ccc; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
