/* NBM Projektek – stíluslap. Márkaszínek: newbusinessmotion.hu (kék → cián, sötét navy). */
:root {
  --bg: #ffffff; --bg2: #f5f7fb; --bg3: #ebeef5; --line: #e2e6ef; --line2: #edf0f6;
  --text: #131826; --muted: #5f687d; --faint: #97a0b5;
  --accent: #2f6bff; --accent-2: #22b8d8; --accent-soft: #eaf0ff; --accent-text: #ffffff;
  --danger: #d92d3a; --danger-soft: #fdecee; --ok: #12996a; --ok-soft: #e6f6ef; --warn: #b7791f; --warn-soft: #fdf3dc;
  --sb-bg: #0b1020; --sb-hover: rgba(255, 255, 255, .07); --sb-line: rgba(255, 255, 255, .09);
  --sb-text: #c7cfe3; --sb-muted: #7c88a6; --sb-active-bg: rgba(79, 141, 255, .2); --sb-active: #ffffff;
  --grad: linear-gradient(135deg, #2f6bff 0%, #3b9eff 55%, #22d3ee 130%);
  --shadow: 0 12px 32px rgba(16, 22, 40, .14), 0 2px 6px rgba(16, 22, 40, .08);
  --shadow-sm: 0 1px 2px rgba(16, 22, 40, .06), 0 1px 1px rgba(16, 22, 40, .04);
  --radius: 10px; --row: 40px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111727; --bg2: #0b0f1b; --bg3: #1b2236; --line: #273048; --line2: #1d2439;
    --text: #e8ebf4; --muted: #9aa3ba; --faint: #6c7691;
    --accent: #5f96ff; --accent-soft: #19264a; --accent-text: #0b1020;
    --danger: #ff6b76; --danger-soft: #3a1820; --ok: #3ddc97; --ok-soft: #10301f; --warn: #f0b955; --warn-soft: #33270f;
    --sb-bg: #070a14;
    --shadow: 0 12px 32px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg2); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.grow { flex: 1 1 auto; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
svg.ic { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* gombok, mezők */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; white-space: nowrap; font-weight: 500; transition: background .12s, border-color .12s, transform .05s; }
.btn:hover { background: var(--bg2); border-color: var(--faint); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; box-shadow: var(--shadow-sm); }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn.danger { color: var(--danger); }
.btn.danger-bg { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--bg3); border-color: transparent; }
.btn.sm { height: 28px; padding: 0 9px; font-size: 13px; border-radius: 7px; }
.btn.icon { width: 34px; padding: 0; justify-content: center; }
.btn.sm.icon { width: 28px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.input, .select, textarea.input { width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); outline: none; transition: border-color .12s, box-shadow .12s; }
textarea.input { height: auto; padding: 8px 11px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 500; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sb-toggle { display: none; }

/* belépés */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px; background: radial-gradient(1100px 520px at 50% -10%, rgba(47, 107, 255, .32), transparent 60%), #070a14; }
.auth-card { width: 100%; max-width: 400px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 22px; margin-bottom: 4px; }
.auth-card p { margin: 0 0 18px; color: var(--muted); }
.auth-logo { display: block; height: 34px; margin: 0 auto 22px; }
.auth-wrap { width: 100%; max-width: 400px; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin: 4px 0 8px; }

/* váz */
.shell { display: grid; grid-template-columns: 272px 1fr; height: 100%; }
.sidebar { background: var(--sb-bg); color: var(--sb-text); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.sb-head { padding: 18px 16px 12px; }
.sb-logo { display: flex; align-items: center; gap: 10px; color: var(--sb-muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sb-logo img { height: 26px; display: block; }
.sb-logo:hover { text-decoration: none; }
.sb-search { margin-top: 14px; position: relative; }
.sb-search .input { padding-left: 32px; height: 34px; background: rgba(255, 255, 255, .06); border-color: transparent; color: #fff; }
.sb-search .input::placeholder { color: var(--sb-muted); }
.sb-search .input:focus { border-color: var(--accent); box-shadow: none; background: rgba(255, 255, 255, .1); }
.sb-search svg { position: absolute; left: 10px; top: 9px; color: var(--sb-muted); }
.sb-nav { padding: 0 10px 8px; }
.sb-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--sb-text); cursor: pointer; user-select: none; font-weight: 500; }
.sb-link:hover { background: var(--sb-hover); text-decoration: none; }
.sb-link.active { background: var(--sb-active-bg); color: var(--sb-active); }
.sb-link.active svg { color: #7fb0ff; }
.badge { min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.badge.soft { background: rgba(255, 255, 255, .14); color: var(--sb-text); }
.sb-tree { flex: 1; overflow: auto; padding: 4px 10px 14px; border-top: 1px solid var(--sb-line); scrollbar-color: #2a3350 transparent; }
.sb-sect { padding: 14px 8px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sb-muted); }
.sb-ws { margin-top: 4px; }
.sb-ws-head, .sb-folder-head { display: flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 8px; cursor: pointer; user-select: none; }
.sb-ws-head { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sb-muted); margin-top: 6px; }
.sb-ws-head:hover, .sb-folder-head:hover { background: var(--sb-hover); }
.sb-ws-head .acts, .sb-folder-head .acts, .sb-board .acts { margin-left: auto; display: none; gap: 2px; }
.sb-ws-head:hover .acts, .sb-folder-head:hover .acts, .sb-board:hover .acts { display: flex; }
.caret { width: 14px; height: 14px; flex: none; transition: transform .12s; color: var(--faint); }
.caret.open { transform: rotate(90deg); }
.sidebar .caret { color: var(--sb-muted); }
.sb-folder-head { font-weight: 600; color: var(--sb-text); }
.sb-folder-head > svg:not(.caret) { color: var(--sb-muted); }
.sb-board { display: flex; align-items: center; gap: 9px; padding: 6px 8px 6px 12px; border-radius: 8px; color: var(--sb-text); cursor: pointer; }
.sb-folder .sb-board { margin-left: 16px; }
.sb-board:hover { background: var(--sb-hover); text-decoration: none; }
.sb-board.active { background: var(--sb-active-bg); color: var(--sb-active); font-weight: 600; }
.sb-board.arch { color: var(--sb-muted); }
.sb-board .dot { width: 7px; height: 7px; border-radius: 2px; background: #46527a; flex: none; }
.sb-board.active .dot { background: #5aa2ff; }
.mini { width: 22px; height: 22px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; display: grid; place-items: center; color: var(--muted); padding: 0; }
.mini:hover { background: var(--bg3); color: var(--text); }
.sidebar .mini { color: var(--sb-muted); }
.sidebar .mini:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.sidebar .btn.ghost { color: var(--sb-muted); }
.sidebar .btn.ghost:hover { background: var(--sb-hover); color: #fff; }
.sb-foot { border-top: 1px solid var(--sb-line); padding: 10px; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; min-width: 0; color: #fff; }
.sb-user:hover { background: var(--sb-hover); }
.sb-user .muted { color: var(--sb-muted); }
.sb-user .av { border-color: var(--sb-bg); }
.main { min-width: 0; display: flex; flex-direction: column; height: 100%; overflow: hidden; position: relative; background: var(--bg2); }
.page { padding: 28px 32px 60px; overflow: auto; flex: 1; }
.page-in { max-width: 1040px; margin: 0 auto; }
.page h1 { font-size: 24px; margin-bottom: 4px; }
.page .lead { color: var(--muted); margin: 0 0 20px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.empty.big { padding: 46px 20px; background: var(--bg); border: 1px dashed var(--line); border-radius: 14px; }
.empty.big b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

/* avatar */
.av { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 10.5px; font-weight: 700; flex: none; text-transform: uppercase; border: 2px solid var(--bg); }
.av.lg { width: 32px; height: 32px; font-size: 12.5px; }
.av.off { filter: grayscale(1); opacity: .65; }
.avs { display: inline-flex; }
.avs .av + .av { margin-left: -7px; }

/* kezdőlap, kártyák */
.hello { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.hello h1 { font-size: 26px; margin: 0; }
.hello .date { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--text); display: block; box-shadow: var(--shadow-sm); transition: border-color .12s, transform .08s; }
a.stat:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.stat .n { font-size: 30px; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 2px; }
.stat.alert .n { color: var(--danger); }
.stat.good .n { color: var(--ok); }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 18px; }
.card-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; }
.card-h h2 { font-size: 15px; }
.card-h a { font-size: 13px; font-weight: 500; }
.card .empty { padding: 22px 16px 26px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--text); margin-bottom: 18px; font-size: 13.5px; }
.note svg { margin-top: 2px; color: var(--accent); }
.note.warn { background: var(--warn-soft); }
.note.warn svg { color: var(--warn); }

/* feladatsorok */
.task { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line2); color: var(--text); cursor: pointer; }
.task:hover { background: var(--bg2); text-decoration: none; }
.task .tname { font-weight: 500; }
.task .sub { font-size: 12.5px; color: var(--muted); }
.task .sub .gdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.tcheck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--faint); background: transparent; cursor: pointer; flex: none; display: grid; place-items: center; color: transparent; padding: 0; transition: all .12s; }
.tcheck:hover { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.tcheck.none { visibility: hidden; }
.tcheck svg { width: 12px; height: 12px; stroke-width: 2.6; }
.due { font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 10px; background: var(--bg3); color: var(--muted); white-space: nowrap; flex: none; }
.due.over { background: var(--danger-soft); color: var(--danger); }
.due.today { background: var(--warn-soft); color: var(--warn); }
.cmt { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--faint); flex: none; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 10px; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; flex: none; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.sect { margin: 22px 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.sect .cnt { background: var(--bg3); border-radius: 9px; padding: 0 7px; font-weight: 600; }
.sect.over { color: var(--danger); }
details.fold { margin-top: 26px; }
details.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .caret { transition: transform .12s; }
details.fold[open] > summary .caret { transform: rotate(90deg); }
details.fold > summary small { font-weight: 400; color: var(--muted); }
details.fold[open] > summary { border-radius: 12px 12px 0 0; }
details.fold .card { border-radius: 0 0 14px 14px; border-top: 0; }

/* tábla fejléc */
.bhead { padding: 16px 24px 12px; border-bottom: 1px solid var(--line); flex: none; background: var(--bg); }
.bhead-top { display: flex; align-items: center; gap: 10px; }
.btitle { font-size: 21px; font-weight: 700; letter-spacing: -.01em; border: 1px solid transparent; border-radius: 8px; padding: 2px 8px; margin-left: -8px; background: transparent; min-width: 80px; max-width: 100%; }
.btitle:hover { border-color: var(--line); }
.btitle:focus { border-color: var(--accent); outline: none; }
.bdesc { color: var(--muted); font-size: 13px; margin: 2px 0 0; max-width: 900px; white-space: pre-wrap; }
.btools { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tabs { display: inline-flex; background: var(--bg3); border-radius: 9px; padding: 3px; }
.tabs button { border: 0; background: transparent; height: 28px; padding: 0 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; color: var(--muted); font-weight: 500; }
.tabs button.on { background: var(--bg); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }
.filter { position: relative; width: 230px; }
.filter .input { height: 34px; padding-left: 32px; }
.filter svg { position: absolute; left: 10px; top: 9px; color: var(--faint); }
.banner { background: var(--accent-soft); color: var(--text); padding: 9px 24px; font-size: 13px; display: flex; align-items: center; gap: 10px; flex: none; }

/* táblázat */
.bbody { flex: 1; overflow: auto; position: relative; background: var(--bg); }
table.grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; margin: 0 24px 80px 24px; }
table.grid td, table.grid th { height: var(--row); padding: 0; border-bottom: 1px solid var(--line2); border-right: 1px solid var(--line2); background: var(--bg); vertical-align: middle; overflow: hidden; }
tr.ghead td { border: 0; height: 48px; background: var(--bg); position: sticky; left: 0; padding-top: 16px; overflow: visible; }
.gtitle { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; position: sticky; left: 24px; }
.gtitle input { font: inherit; color: inherit; border: 1px solid var(--accent); border-radius: 6px; padding: 1px 6px; background: var(--bg); width: 320px; }
.gcount { font-size: 12px; font-weight: 500; color: var(--faint); margin-left: 4px; }
.gclosed { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--bg3); border-radius: 8px; padding: 1px 8px; margin-left: 4px; text-transform: uppercase; letter-spacing: .04em; }
tr.chead th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; border-top: 1px solid var(--line2); position: relative; user-select: none; background: var(--bg2); }
tr.chead th .cht { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 18px 0 8px; height: 100%; cursor: pointer; }
tr.chead th .cht:hover { background: var(--bg3); }
tr.chead th .sorted { color: var(--accent); }
.resizer { position: absolute; right: -3px; top: 0; bottom: 0; width: 7px; cursor: col-resize; z-index: 3; }
.resizer:hover, .resizer.drag { background: var(--accent); opacity: .5; }
td.c-first, th.c-first { position: sticky; left: 0; z-index: 2; border-left: 4px solid var(--gc, var(--line)); }
th.c-first { text-align: left; }
tbody > tr.chead:nth-child(2) th.c-first { border-top-left-radius: 8px; }
tr.irow:hover td { background: var(--bg2); }
tr.irow.sel td { background: var(--accent-soft); }
tr.irow.drop-before td { box-shadow: inset 0 2px 0 var(--accent); }
tr.irow.done .iname-t { color: var(--muted); }
.iname { display: flex; align-items: center; height: 100%; gap: 4px; padding: 0 6px 0 2px; }
.iname .chk { width: 15px; height: 15px; margin: 0 2px; flex: none; opacity: 0; cursor: pointer; accent-color: var(--accent); }
tr.irow:hover .chk, .chk:checked { opacity: 1; }
.iname .grip { cursor: grab; color: var(--faint); opacity: 0; display: grid; place-items: center; width: 14px; flex: none; }
tr.irow:hover .grip { opacity: 1; }
.iname .exp { width: 20px; height: 20px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; border-radius: 5px; color: var(--muted); padding: 0; flex: none; }
.iname .exp:hover { background: var(--bg3); }
.iname .exp.none { opacity: 0; }
tr.irow:hover .exp.none { opacity: .7; }
.iname .mini { opacity: 0; }
tr.irow:hover .iname .mini { opacity: 1; }
.iname-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; font-weight: 500; }
.iname-t:hover { color: var(--accent); }
.iname input.edit { flex: 1; min-width: 0; height: 28px; border: 1px solid var(--accent); border-radius: 6px; padding: 0 6px; background: var(--bg); outline: none; }
.subn { font-size: 11px; color: var(--muted); background: var(--bg3); border-radius: 8px; padding: 0 6px; flex: none; }
.ucnt { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--faint); border: 0; background: transparent; cursor: pointer; padding: 2px 4px; border-radius: 5px; flex: none; }
.ucnt.has { color: var(--accent); }
.ucnt:hover { background: var(--bg3); }
tr.addrow td { color: var(--faint); }
tr.addrow input { width: 100%; height: 100%; border: 0; background: transparent; padding: 0 12px; outline: none; }
tr.addrow input::placeholder { color: var(--faint); }
tr.addrow input:focus { background: var(--accent-soft); }
tr.sumrow td { border: 0; height: 30px; font-size: 12px; color: var(--muted); text-align: center; background: transparent; }
tr.srow td { background: var(--bg2); }
tr.srow td.c-first { padding-left: 34px; }
tr.srow.shead th { background: var(--bg2); font-size: 12px; }
tr.srow.shead th.c-first { padding-left: 40px; color: var(--faint); }
th.addcol { width: 44px; border-right: 0 !important; }
td.fill, th.fill { border-right: 0 !important; }

/* cellák */
.cell { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; padding: 0 8px; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; position: relative; }
.cell.ro { cursor: default; color: var(--muted); }
.cell.left { justify-content: flex-start; }
.cell:hover:not(.ro) { box-shadow: inset 0 0 0 1px var(--faint); }
.cell.editing { box-shadow: inset 0 0 0 2px var(--accent) !important; padding: 0; }
.cell input.inl { width: 100%; height: 100%; border: 0; outline: none; background: var(--bg); padding: 0 8px; text-align: inherit; }
.cell.status { color: #fff; font-weight: 600; font-size: 12.5px; padding: 0 8px; width: calc(100% - 12px); height: calc(100% - 12px); margin: 0 auto; border-radius: 7px; letter-spacing: .01em; }
.cell.status:hover:not(.ro) { box-shadow: none; filter: brightness(1.06); }
.cell.status.none:hover:not(.ro) { box-shadow: inset 0 0 0 1px var(--faint); filter: none; }
.cell.status span { overflow: hidden; text-overflow: ellipsis; }
.cell.status.none { color: var(--faint); }
.cell .ph { color: var(--faint); opacity: 0; }
.cell:hover .ph { opacity: 1; }
.cell.overdue { color: var(--danger); font-weight: 600; }
.tl { display: inline-block; max-width: 100%; padding: 2px 10px; border-radius: 12px; background: var(--accent); color: var(--accent-text); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.tl.past { background: var(--faint); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--bg3); font-size: 12.5px; margin-right: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip.tag { color: var(--accent); background: var(--accent-soft); }
.fcount { display: inline-flex; align-items: center; gap: 4px; }

/* felugrók */
.pop { position: fixed; z-index: 60; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 200px; max-width: 360px; max-height: min(480px, calc(100vh - 16px)); overflow: auto; }
.pop h4 { margin: 2px 6px 8px; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.menu-i { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px; border: 0; background: transparent; border-radius: 7px; cursor: pointer; text-align: left; }
.menu-i:hover, .menu-i.kb { background: var(--bg2); }
.menu-i svg { color: var(--muted); }
.menu-i.danger, .menu-i.danger svg { color: var(--danger); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 0; }
.st-opt { display: block; width: 100%; height: 32px; border: 0; border-radius: 7px; color: #fff; font-weight: 600; cursor: pointer; margin-bottom: 5px; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-opt:hover { filter: brightness(1.1); }
.st-opt.none { background: var(--bg3); color: var(--muted); }
.lbl-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.lbl-row input[type=color] { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: none; flex: none; }
.lbl-row .input { height: 32px; }

/* modális, üzenetek */
.overlay { position: fixed; inset: 0; background: rgba(8, 12, 24, .5); z-index: 80; display: grid; place-items: center; padding: 20px; backdrop-filter: blur(2px); }
.modal { background: var(--bg); border-radius: 16px; box-shadow: var(--shadow); width: 100%; max-width: 460px; padding: 24px; max-height: calc(100vh - 40px); overflow: auto; }
.modal h3 { font-size: 18px; margin-bottom: 14px; }
.modal .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #131826; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 13.5px; max-width: 520px; display: flex; align-items: center; gap: 14px; }
.toast.err { background: var(--danger); }
.toast button { border: 0; background: transparent; color: #8fc0ff; font-weight: 700; cursor: pointer; padding: 0; }

/* tömeges műveletek */
.bulk { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); background: #131826; color: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px 10px 8px 16px; display: flex; align-items: center; gap: 10px; z-index: 20; }
.bulk .btn { background: transparent; color: inherit; border-color: rgba(255, 255, 255, .28); }
.bulk .btn:hover { background: rgba(255, 255, 255, .12); }

/* kanban */
.kanban { display: flex; gap: 12px; padding: 16px 24px 30px; align-items: flex-start; min-height: 100%; background: var(--bg2); }
.kcol { width: 290px; flex: none; background: var(--bg3); border-radius: 12px; display: flex; flex-direction: column; max-height: 100%; }
.kcol.over { outline: 2px dashed var(--accent); }
.kcol-h { padding: 11px 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.kcol-h .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.kcards { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 8px; overflow: auto; min-height: 30px; }
.kcard { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; cursor: pointer; box-shadow: var(--shadow-sm); font-weight: 500; }
.kcard:hover { border-color: var(--accent); }
.kcard.dragging { opacity: .4; }
.kcard .kmeta { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 12px; color: var(--muted); font-weight: 400; }
.kgroup { display: inline-block; font-size: 11px; padding: 0 7px; border-radius: 8px; color: #fff; }

/* elem panel */
.drawer-bg { position: absolute; inset: 0; background: rgba(8, 12, 24, .32); z-index: 30; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(740px, 100%); background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--shadow); z-index: 31; display: flex; flex-direction: column; }
.dr-head { padding: 16px 22px 12px; border-bottom: 1px solid var(--line); }
.dr-crumb { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.dr-title { width: 100%; font-size: 20px; font-weight: 700; letter-spacing: -.01em; border: 1px solid transparent; border-radius: 8px; padding: 3px 8px; margin: 6px 0 0 -8px; background: transparent; }
.dr-title:hover { border-color: var(--line); }
.dr-title:focus { border-color: var(--accent); outline: none; }
.dr-body { flex: 1; overflow: auto; padding: 16px 22px 30px; }
.fields { display: grid; grid-template-columns: 160px 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.fields .fl { padding: 0 12px; display: flex; align-items: center; color: var(--muted); font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--line2); background: var(--bg2); min-height: 38px; }
.fields .fv { border-bottom: 1px solid var(--line2); min-height: 38px; min-width: 0; }
.fields .fv .cell { justify-content: flex-start; min-height: 38px; white-space: normal; padding: 0 12px; }
.fields .fv .cell.status { justify-content: center; height: 30px; min-height: 30px; margin: 4px 6px; width: calc(100% - 12px); }
.fields > :nth-last-child(-n+2) { border-bottom: 0; }
.dr-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.dr-tabs button { border: 0; background: transparent; padding: 8px 0; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.dr-tabs button.on { color: var(--accent); border-color: var(--accent); }
.composer { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; background: var(--bg); }
.composer.focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer .ed { min-height: 64px; max-height: 300px; overflow: auto; padding: 11px 13px; outline: none; }
.composer.sm .ed { min-height: 38px; }
.composer .ed:empty::before { content: attr(data-ph); color: var(--faint); }
.composer .bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-top: 1px solid var(--line2); }
.composer .atts { padding: 0 10px 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.att { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; font-size: 12.5px; max-width: 100%; background: var(--bg); }
.att a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.att .x { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 0 2px; }
.upd { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.upd-main { padding: 13px 15px; }
.upd-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.upd-h b { font-weight: 650; }
.upd-h time { color: var(--faint); font-size: 12px; }
.upd-h .acts { margin-left: auto; display: flex; gap: 2px; opacity: 0; }
.upd-main:hover .upd-h .acts, .reply:hover .upd-h .acts { opacity: 1; }
.ubody { overflow-wrap: anywhere; }
.ubody p { margin: 0 0 6px; min-height: 1em; }
.ubody img { max-width: 100%; border-radius: 8px; }
.ubody ul, .ubody ol { margin: 0 0 6px; padding-left: 22px; }
.ubody blockquote { margin: 0 0 6px; padding-left: 10px; border-left: 3px solid var(--line); color: var(--muted); }
.ubody table { border-collapse: collapse; }
.ubody td, .ubody th { border: 1px solid var(--line); padding: 3px 6px; }
.mention { color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 0 4px; font-weight: 600; }
.upd-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.replies { border-top: 1px solid var(--line2); background: var(--bg2); padding: 10px 15px; border-radius: 0 0 12px 12px; }
.reply { padding: 6px 0; }
.reply + .reply { border-top: 1px solid var(--line); }
.act-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line2); font-size: 13px; }
.act-row time { color: var(--faint); width: 120px; flex: none; font-size: 12px; }
.sublist { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; overflow: hidden; }
.sublist .sl-h { padding: 9px 13px; font-weight: 650; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line2); background: var(--bg2); }
.sublist .sl-i { display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.sublist .sl-i:hover { background: var(--bg2); }

/* listák */
.list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow-sm); }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line2); cursor: pointer; color: var(--text); }
.li:last-child { border-bottom: 0; }
.li:hover { background: var(--bg2); text-decoration: none; }
.li.unread { background: var(--accent-soft); }
.li .sub { font-size: 12.5px; color: var(--muted); }
table.simple { width: 100%; border-collapse: collapse; background: var(--bg); }
table.simple th, table.simple td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line2); }
table.simple th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tablecard { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow-sm); }
.tablecard table.simple tr:last-child td { border-bottom: 0; }
.linkbox { font: 12.5px ui-monospace, monospace; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 9px; word-break: break-all; user-select: all; }

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 0 1fr; }
  .shell.sbopen { grid-template-columns: 272px 1fr; }
  .sb-toggle { display: inline-flex; }
  .page { padding: 18px 16px 50px; }
  .fields { grid-template-columns: 112px 1fr; }
  .stats { grid-template-columns: 1fr; }
  .bhead { padding: 14px 16px 10px; }
  table.grid { margin-left: 12px; }
  .gtitle { left: 12px; }
}

/* keskeny kijelző: felső sáv a nem-tábla oldalakon */
.mobilebar { display: none; align-items: center; gap: 10px; padding: 8px 12px; background: var(--sb-bg); flex: none; }
.mobilebar .btn { color: #fff; }
@media (max-width: 820px) { .mobilebar { display: flex; } }

/* kanban: alelem kártyán a szülő neve */
.kparent { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
/* naptár */
.cal { padding: 14px 24px 30px; background: var(--bg2); min-height: 100%; }
.cal-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.cal-title { font-size: 17px; margin-left: 6px; text-transform: capitalize; }
.flip { transform: rotate(180deg); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); gap: 1px; }
.cal-wd { background: var(--bg2); padding: 7px 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cal-day { background: var(--bg); min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.out { background: var(--bg2); }
.cal-day.out .cal-num { color: var(--faint); }
.cal-num { font-size: 12.5px; font-weight: 600; color: var(--muted); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .cal-num { background: var(--accent); color: var(--accent-text); }
.cal-chip { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--faint); background: var(--bg2); border-radius: 5px; padding: 3px 7px; font-size: 12.5px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.cal-chip:hover { background: var(--accent-soft); }
.cal-chip.done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.cal-more { border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; text-align: left; padding: 1px 4px; }
.pop .cal-chip { margin-bottom: 4px; }
@media (max-width: 820px) { .cal { padding: 10px 8px 24px; } .cal-day { min-height: 84px; padding: 3px; } .cal-wd { padding: 5px 4px; font-size: 11px; overflow: hidden; } .cal-chip { padding: 2px 4px; font-size: 11.5px; } }

/* ismétlődő feladat */
.recur { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; font-size: 13.5px; }
.recur > svg { color: var(--faint); }
.recur.on { background: var(--accent-soft); border-color: transparent; }
.recur.on > svg { color: var(--accent); }
.recur-ic { color: var(--accent); display: inline-grid; place-items: center; flex: none; }
.recur-ic svg, .av svg { width: 13px; height: 13px; }

/* ===== felső sáv ===== */
.right { display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden; }
.main { height: auto; flex: 1; min-height: 0; }
.shell.sbhide { grid-template-columns: 0 1fr; }
.topbar { height: 56px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 10px; background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.top-search { position: relative; flex: 1 1 420px; max-width: 560px; }
.top-search .input { height: 38px; padding-left: 36px; border-radius: 19px; background: var(--bg2); border-color: transparent; }
.top-search .input:focus { background: var(--bg); border-color: var(--accent); }
.top-search svg { position: absolute; left: 13px; top: 11px; color: var(--faint); }
.icon-btn { width: 38px; height: 38px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--muted); position: relative; flex: none; }
.icon-btn:hover { background: var(--bg3); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .badge { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; font-size: 10.5px; padding: 0 4px; border: 2px solid var(--bg); box-sizing: content-box; }
.top-user { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 3px 8px 3px 3px; border-radius: 20px; cursor: pointer; max-width: 220px; color: var(--text); }
.top-user:hover { background: var(--bg3); }
.top-user-name { font-weight: 600; font-size: 13.5px; }
.top-user > svg { color: var(--faint); }
.bell-list { margin: 0 -8px; max-height: 420px; overflow: auto; }
.bell-list .li { padding: 10px 14px; }
.help-i { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.help-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.help-i .muted { font-size: 13px; }
.sb-head { padding-bottom: 16px; }
@media (max-width: 820px) { .top-user-name, .top-user > svg { display: none; } .topbar { padding: 0 8px 0 4px; } .shell.sbhide { grid-template-columns: 0 1fr; } }

/* ===== tábla fejléc: nézetfülek + eszköztár ===== */
.bhead { padding: 14px 24px 0; }
.vtabs { display: flex; align-items: flex-end; gap: 4px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.vtabs::-webkit-scrollbar { display: none; }
.vtab { display: inline-flex; align-items: center; gap: 7px; height: 38px; flex: none; white-space: nowrap; padding: 0 12px; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; }
.vtab:hover { background: var(--bg2); color: var(--text); }
.vtab.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.btoolbar { display: flex; align-items: center; gap: 6px; padding: 10px 24px; background: var(--bg); border-bottom: 1px solid var(--line); flex: none; flex-wrap: wrap; }
.btoolbar .filter { width: 240px; margin: 0 4px; }
.tbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid transparent; background: transparent; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 500; white-space: nowrap; max-width: 260px; }
.tbtn:hover { background: var(--bg3); color: var(--text); }
.tbtn.on { background: var(--accent-soft); color: var(--accent); }
.tbtn.clear { color: var(--danger); }
@media (max-width: 820px) { .bhead { padding: 12px 14px 0; } .btoolbar { padding: 8px 12px; } .btoolbar .filter { width: 100%; order: 5; margin: 0; } .vtab { padding: 0 8px; } }

/* ===== összesítő ===== */
.ov-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ov-card { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow-sm); color: var(--text); transition: border-color .12s, transform .08s; min-width: 0; }
.ov-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.ov-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ov-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.ov-nums { display: flex; gap: 12px; font-size: 13px; color: var(--muted); }
.ov-nums b { font-size: 18px; color: var(--text); }
.ov-nums .over, .ov-nums .over b { color: var(--danger); }
.ov-money { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.ov-stale { font-size: 12px; color: var(--faint); margin-top: 4px; }
.links { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; overflow: hidden; }
.links .sl-h { padding: 9px 13px; font-weight: 650; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line2); background: var(--bg2); }

.links .sl-i { display: flex; align-items: center; gap: 10px; padding: 8px 13px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.links .sl-i:last-child { border-bottom: 0; }
.links .sl-i:hover { background: var(--bg2); }
.links .sl-i > svg { color: var(--accent); }

/* kapcsoló a menükben */
.sw { flex: none; width: 30px; height: 18px; border-radius: 9px; background: var(--line); position: relative; transition: background .15s; }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.sw.on { background: var(--accent); }
.sw.on::after { transform: translateX(12px); }

.ho-list { max-height: 220px; overflow: auto; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }

/* ---------- beépített fájlnéző ---------- */
.fv-ov { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: rgba(10, 14, 26, .88); backdrop-filter: blur(3px); }
.fv-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); flex: none; }
.fv-head > .ic { color: var(--muted); flex: none; }
.fv-title { font-weight: 600; }
.fv-meta { font-size: 12.5px; color: var(--muted); }
.fv-head .ic.flip { transform: rotate(180deg); }
.fv-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: auto; padding: 16px; }
.fv-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #fff; cursor: zoom-in; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.fv-img.zoom { max-width: none; max-height: none; cursor: zoom-out; align-self: flex-start; }
.fv-frame { flex: 1; width: 100%; max-width: 1100px; border: 0; border-radius: 8px; background: #fff; }
.fv-media { max-width: 100%; max-height: 100%; border-radius: 8px; background: #000; }
.fv-msg { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; text-align: center; max-width: 460px; }
.fv-msg > .ic { width: 40px; height: 40px; opacity: .7; }
.fv-sheets, .fv-scroll { align-self: stretch; flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 1200px; margin: 0 auto; }
.fv-scroll { overflow: auto; gap: 14px; }
.fv-tabs { display: flex; gap: 4px; overflow-x: auto; flex: none; padding-bottom: 8px; }
.fv-tabs button { flex: none; border: 0; background: rgba(255,255,255,.12); color: #fff; padding: 6px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.fv-tabs button.on { background: var(--bg); color: var(--text); font-weight: 600; }
.fv-grid { flex: 1; min-height: 0; overflow: auto; background: var(--bg); border-radius: 8px; border: 1px solid var(--line); }
.fv-grid table { border-collapse: separate; border-spacing: 0; font-size: 13px; width: max-content; }
.fv-grid th, .fv-grid td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 5px 9px; min-width: 64px; max-width: 360px; white-space: pre-wrap; overflow-wrap: break-word; vertical-align: top; text-align: left; }
.fv-grid thead th { position: sticky; top: 0; background: var(--bg2); color: var(--muted); font-weight: 600; text-align: center; z-index: 1; }
.fv-grid th.rn { position: sticky; left: 0; background: var(--bg2); color: var(--muted); font-weight: 500; text-align: right; min-width: 38px; }
.fv-grid thead th.rn { z-index: 2; }
.fv-grid td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fv-grid tr.gap th, .fv-grid tr.gap td { background: var(--bg2); padding: 1px 9px; }
.fv-grid.plain { flex: none; margin: 10px 0; max-width: 100%; }
.fv-grid.plain table { width: auto; }
.fv-page, .fv-slide { background: var(--bg); color: var(--text); border-radius: 10px; padding: 34px 44px; width: 100%; max-width: 820px; margin: 0 auto; line-height: 1.6; overflow-wrap: anywhere; flex: none; }
.fv-page p { margin: 0 0 10px; white-space: pre-wrap; }
.fv-page h2, .fv-page h3, .fv-page h4, .fv-page h5 { margin: 18px 0 8px; line-height: 1.3; }
.fv-page h2 { font-size: 22px; } .fv-page h3 { font-size: 18px; } .fv-page h4, .fv-page h5 { font-size: 15.5px; }
.fv-page ul, .fv-slide ul { margin: 0 0 10px; padding-left: 22px; }
.fv-slide { padding: 22px 28px; }
.fv-slide h3 { font-size: 18px; margin-bottom: 8px; }
.fv-slide li { white-space: pre-wrap; margin-bottom: 3px; }
.fv-slide-n { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.fv-text { background: var(--bg); color: var(--text); border-radius: 10px; padding: 20px 24px; margin: 0 auto; width: 100%; max-width: 980px; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.55 ui-monospace, monospace; flex: none; }
.fv-note { display: flex; align-items: flex-start; gap: 8px; color: rgba(255,255,255,.82); font-size: 12.5px; padding: 8px 2px 0; flex: none; max-width: 820px; margin: 0 auto; }
.fv-note.under { max-width: 1100px; width: 100%; }
@media (max-width: 700px) { .fv-head .lbl { display: none; } .fv-body { padding: 8px; } .fv-page, .fv-slide { padding: 18px 16px; } }

/* ---------- szabadság-nyilvántartás ---------- */
.ic.flip { transform: rotate(180deg); }
.list.flush { border: 0; border-radius: 0; box-shadow: none; }
.lv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.lv-stat { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.lv-stat .v { font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lv-stat .l { color: var(--muted); font-size: 13px; margin-top: 2px; }
.lv-stat.accent .v { color: var(--accent); }
.lv-stat.zero .v, .lv-zero { color: var(--danger); }
.lv-cal { overflow-x: auto; padding: 0 12px 6px; }
.lv-row { display: grid; min-width: 760px; align-items: stretch; }
.lv-name { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 4px; position: sticky; left: 0; background: var(--bg); z-index: 1; font-size: 13.5px; min-width: 0; }
.lv-day { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted); padding: 2px 0 5px; line-height: 1.25; }
.lv-day b { font-size: 12.5px; color: var(--text); font-weight: 600; }
.lv-day.off, .lv-day.off b { color: var(--faint); }
.lv-day.today b { background: var(--accent); color: #fff; border-radius: 6px; padding: 0 4px; }
.lv-cell { height: 30px; border-left: 1px solid var(--line2, var(--line)); border-top: 1px solid var(--line2, var(--line)); position: relative; }
.lv-cell.off { background: var(--bg2); }
.lv-cell.today { box-shadow: inset 1px 0 0 var(--accent), inset -1px 0 0 var(--accent); }
.lv-cell.on::after { content: ''; position: absolute; inset: 5px 0; background: var(--accent); }
.lv-cell.on.k-sick::after { background: #f5a524; }
.lv-cell.on.k-other::after, .lv-cell.on.k-away::after { background: #8b5cf6; }
.lv-cell.on.pending::after { opacity: .45; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 4px, transparent 4px 8px); }
.lv-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px 16px 14px; color: var(--muted); font-size: 12.5px; }
.lv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lv-legend i.lv-cell { display: inline-block; width: 22px; height: 16px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lv-legend i.lv-cell.on::after { inset: 0; }
.lv-req { align-items: center; gap: 10px; flex-wrap: wrap; cursor: default; }
.lv-st.pending { background: #fff4d6; color: #8a5a00; }
.lv-st.approved { background: #dcf5e7; color: #0b6b3a; }
.lv-st.rejected, .lv-st.cancelled { background: var(--bg3); color: var(--muted); }
.lv-table { overflow-x: auto; padding: 0 8px; }
.lv-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lv-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lv-table td { padding: 6px 8px; border-bottom: 1px solid var(--line2, var(--line)); white-space: nowrap; }
.lv-num { width: 76px; height: 32px; text-align: right; display: inline-block; }
.lv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-chips .chip.work { background: var(--accent-soft); color: var(--accent); }
.lv-chips .chip .x { border: 0; background: transparent; cursor: pointer; color: inherit; margin-left: 4px; font-size: 15px; line-height: 1; }
@media (max-width: 700px) { .lv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lv-name { width: 110px; } }
@media (prefers-color-scheme: dark) { .lv-st.pending { background: #4a3a10; color: #ffd98a; } .lv-st.approved { background: #12402a; color: #9be7bd; } }

.linkbtn { border: 0; background: transparent; padding: 0; color: var(--accent); cursor: pointer; font-size: inherit; }
.linkbtn:hover { text-decoration: underline; }

.modal .sl-h { font-weight: 650; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* profilkép */
.av.pic { position: relative; overflow: hidden; }
.av.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.av-prev { flex: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--bg2); border: 1px solid var(--line); }
.av-prev img { width: 100%; height: 100%; object-fit: cover; }
.av-prev .av { width: 96px; height: 96px; font-size: 32px; border: 0; }
