/* Plus Jakarta Sans (OFL-1.1, @fontsource/plus-jakarta-sans 5.3.0) — hosťované lokálne, nie z Google Fonts (R18). */
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext-400-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext-500-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext-600-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext-700-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext-800-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

/* FINVIA – Evidencia náboru a adaptácie. Design tokens per zadanie §4. */

:root {
	--fv-text-primary: #394A58;
	--fv-text-body: #4B5B68;
	--fv-text-muted: #5A6773;
	--fv-text-faint: #8A97A1;
	--fv-card: #F1F4F6;
	--fv-divider: #DFE6EB;
	--fv-divider-2: #EEF1F4;
	--fv-accent: #1B5FEE;
	--fv-accent-teal: #0FA9A1;
	--fv-accent-teal-2: #14CFC5;
	--fv-accent-purple: #7B6BFF;
	--fv-white: #FFFFFF;
	--fv-bg-soft: #FBFCFD;
	--fv-danger: #D65C5C;
}

* { box-sizing: border-box; }

body.naborfin-body {
	margin: 0;
	font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
	background: var(--fv-white);
	color: var(--fv-text-primary);
	-webkit-font-smoothing: antialiased;
}

.naborfin-body a { color: inherit; text-decoration: none; }
.naborfin-body button, .naborfin-body input, .naborfin-body select, .naborfin-body textarea { font-family: inherit; }

/* ---------- App shell ---------- */

.nf-shell { display: flex; min-height: 100vh; }

.nf-sidebar {
	width: 240px;
	flex-shrink: 0;
	background: var(--fv-bg-soft);
	border-right: 1px solid var(--fv-divider);
	display: flex;
	flex-direction: column;
	padding: 28px 20px;
	position: sticky;
	top: 0;
	height: 100vh;
}

.nf-sidebar img.nf-logo { width: 130px; height: auto; margin-bottom: 36px; }

.nf-mobile-topbar { display: none; }
.nf-sidebar-backdrop { display: none; }

.nf-nav { display: flex; flex-direction: column; gap: 4px; }

.nf-navitem {
	display: flex; align-items: center; gap: 10px;
	padding: 11px 12px; border-radius: 9px;
	font-size: 14px; font-weight: 600; color: var(--fv-text-body);
}
.nf-navitem:hover { background: var(--fv-divider-2); }
.nf-navitem.active { background: var(--fv-accent); color: var(--fv-white); }
.nf-navitem.active:hover { background: var(--fv-accent); }

.nf-sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--fv-divider); }
.nf-sidebar-foot .nf-name { font-size: 13px; font-weight: 700; color: var(--fv-text-primary); }
.nf-sidebar-foot .nf-role { font-size: 11.5px; color: var(--fv-text-faint); margin-bottom: 10px; }
.nf-sidebar-foot a.nf-logout,
.nf-sidebar-foot button.nf-logout { font-size: 12.5px; color: var(--fv-text-muted); }
.nf-sidebar-foot a.nf-logout:hover,
.nf-sidebar-foot button.nf-logout:hover { color: var(--fv-accent-teal); }
/* Odhlásenie je POST formulár (R27) — tlačidlo vyzerá ako pôvodný odkaz. */
.nf-logout-form { margin: 0; }
.nf-sidebar-foot button.nf-logout { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; }

.nf-main { flex: 1; min-width: 0; padding: 40px 48px; display: flex; flex-direction: column; gap: 22px; }

.nf-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nf-title { font-size: 26px; font-weight: 800; margin: 0; }
.nf-subtitle { font-size: 14px; color: var(--fv-text-muted); margin-top: 4px; }

.nf-back { font-size: 13px; color: var(--fv-text-muted); font-weight: 600; display: inline-block; }
.nf-back:hover { color: var(--fv-accent); }

/* ---------- Cards / badges / buttons ---------- */

.nf-card { background: var(--fv-card); border-radius: 16px; }
.nf-card-white { background: var(--fv-white); border: 1px solid var(--fv-divider-2); border-radius: 16px; }

.nf-badge {
	display: inline-flex; align-items: center; padding: 4px 10px;
	border-radius: 20px; font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.nf-badge-blue { background: rgba(27,95,238,.10); color: var(--fv-accent); }
.nf-badge-teal { background: rgba(15,169,161,.12); color: var(--fv-accent-teal); }
.nf-badge-purple { background: rgba(123,107,255,.12); color: var(--fv-accent-purple); }
.nf-badge-grey { background: var(--fv-card); color: var(--fv-text-body); }
.nf-badge-grey-faint { background: var(--fv-card); color: var(--fv-text-faint); }
.nf-badge-danger { background: rgba(214,92,92,.12); color: var(--fv-danger); }

.nf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 20px; border-radius: 10px; border: none;
	font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
	text-decoration: none; white-space: nowrap;
}
.nf-btn-primary { background: var(--fv-accent); color: var(--fv-white); }
.nf-btn-primary:hover { background: #1650c9; }
/* `.naborfin-body a { color: inherit }` má vyššiu špecificitu než .nf-btn-primary → tlačidlá-odkazy mali tmavý text na modrom pozadí. */
.naborfin-body a.nf-btn-primary { color: var(--fv-white); }
.naborfin-body a.nf-btn-danger { color: var(--fv-danger); }
.nf-btn-outline { background: var(--fv-white); color: var(--fv-text-primary); border: 1px solid var(--fv-divider); }
.nf-btn-outline:hover { background: var(--fv-divider-2); }
.nf-btn-danger { background: var(--fv-white); color: var(--fv-danger); border: 1px solid rgba(214,92,92,.35); }
.nf-btn-sm { height: 34px; padding: 0 14px; font-size: 12.5px; border-radius: 8px; }
.nf-btn-block { width: 100%; }
.nf-btn[disabled] { opacity: .5; cursor: not-allowed; }

form.nf-inline { display: inline; }

/* ---------- Forms ---------- */

.nf-field { display: flex; flex-direction: column; gap: 6px; }
.nf-label { font-size: 12.5px; font-weight: 700; color: var(--fv-text-body); }
.nf-input, .nf-select, .nf-textarea {
	height: 44px; border-radius: 10px; border: 1px solid var(--fv-divider);
	padding: 0 14px; font-size: 14px; color: var(--fv-text-primary);
	background: var(--fv-white); outline: none; width: 100%;
}
.nf-input:focus, .nf-select:focus, .nf-textarea:focus { border-color: var(--fv-accent); }
.nf-textarea { height: auto; padding: 12px 14px; min-height: 90px; resize: vertical; font-family: inherit; }
.nf-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.nf-form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.nf-hint { font-size: 11.5px; color: var(--fv-text-faint); }
.nf-input-invalid { border-color: #D65C5C !important; background: rgba(214,92,92,.06); }
.nf-field-error { color: #B84545; font-size: 12px; font-weight: 600; }
.nf-error {
	background: rgba(214,92,92,.08); color: #B84545; border: 1px solid rgba(214,92,92,.25);
	border-radius: 10px; padding: 12px 16px; font-size: 13.5px; font-weight: 600;
}
.nf-notice-success {
	background: rgba(15,169,161,.10); color: #0C8880; border: 1px solid rgba(15,169,161,.25);
	border-radius: 10px; padding: 12px 16px; font-size: 13.5px; font-weight: 600;
}

/* ---------- Tables ---------- */

.nf-table-wrap { border: 1px solid var(--fv-divider-2); border-radius: 16px; overflow: hidden; }
.nf-th-row, .nf-row {
	display: grid; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--fv-divider-2);
	column-gap: 10px;
}
.nf-row:last-child { border-bottom: none; }
.nf-row:hover { background: var(--fv-bg-soft); }
a.nf-row { text-decoration: none; color: inherit; }
.nf-th { font-size: 11px; font-weight: 700; color: var(--fv-text-faint); letter-spacing: .4px; text-transform: uppercase; }
.nf-th-row { background: var(--fv-bg-soft); }
.nf-cell-name { font-weight: 700; font-size: 14px; }
.nf-cell-muted { font-size: 13px; color: var(--fv-text-muted); }

/* ---------- Progress bar ---------- */

.nf-progress-track { flex: 1; background: #E4E9EE; border-radius: 6px; height: 10px; overflow: hidden; }
.nf-progress-fill { height: 100%; border-radius: 6px; background: var(--fv-accent-teal); }

/* ---------- Task rows ---------- */

.nf-taskrow {
	display: flex; align-items: center; gap: 14px; background: var(--fv-white);
	border-radius: 10px; padding: 12px 14px;
}
.nf-task-icon {
	width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 800; color: var(--fv-white);
}
.nf-task-icon.done { background: var(--fv-accent-teal); }
.nf-task-icon.pending { background: var(--fv-divider); }
.nf-task-icon.missed { background: var(--fv-accent-purple); }

/* ---------- Auth screens ---------- */

.nf-auth-shell { width: 100%; display: flex; min-height: 100vh; overflow: hidden; }
.nf-auth-visual {
	width: 42%; min-width: 420px; position: relative; overflow: hidden; flex-shrink: 0;
	background:
		radial-gradient(62% 46% at 73% 26%, rgba(61,91,246,.9) 0%, rgba(27,95,238,.55) 45%, rgba(20,207,197,0) 75%),
		radial-gradient(55% 40% at 25% 62%, rgba(123,107,255,.55) 0%, rgba(27,95,238,.22) 50%, rgba(27,95,238,0) 75%),
		#101E33;
}
.nf-auth-visual-top { position: absolute; left: 56px; top: 56px; right: 56px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px; opacity: .85; }
.nf-auth-visual-bottom { position: absolute; left: 56px; bottom: 72px; right: 56px; }
.nf-auth-visual-bottom h1 { color: #fff; font-size: 34px; font-weight: 800; line-height: 1.18; margin: 0 0 16px; }
.nf-auth-visual-bottom p { color: #E7ECF5; font-size: 15px; font-weight: 400; max-width: 420px; line-height: 1.5; margin: 0; }
.nf-auth-form-side { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 48px; }
.nf-auth-box { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 24px; }
.nf-auth-box img.nf-logo { width: 170px; height: auto; }
.nf-auth-heading { font-size: 24px; font-weight: 800; color: var(--fv-text-primary); margin: 0 0 6px; }
.nf-auth-sub { font-size: 14px; color: var(--fv-text-muted); }
.nf-auth-footer { font-size: 12px; color: var(--fv-text-faint); text-align: center; }

/* ---------- Misc ---------- */

.nf-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.nf-kpi-grid .nf-card { padding: 22px; }
.nf-kpi-grid.nf-kpi-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 640px; }

/* Reusable layout grids (replace one-off inline grid-template-columns so they can respond on mobile) */
.nf-dashboard-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.nf-detail-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; align-items: start; }
.nf-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.nf-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.nf-kpi-label { font-size: 12.5px; font-weight: 700; color: var(--fv-text-faint); letter-spacing: .3px; }
.nf-kpi-value { font-size: 36px; font-weight: 800; margin-top: 10px; }

.nf-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }

.nf-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nf-filters .nf-input, .nf-filters .nf-select { height: 42px; width: auto; }

.nf-empty { color: var(--fv-text-faint); font-size: 13.5px; padding: 24px; text-align: center; }

.nf-kpi-grid a.nf-card { display: block; transition: transform .1s ease, box-shadow .1s ease; }
.nf-kpi-grid a.nf-card:hover { box-shadow: 0 4px 14px rgba(20,30,50,.08); transform: translateY(-1px); }

.nf-stat-tabs { display: flex; gap: 8px; }
.nf-stat-tab {
	padding: 10px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 700;
	color: var(--fv-text-body); background: var(--fv-card);
}
.nf-stat-tab.active { background: var(--fv-accent); color: var(--fv-white); }

.nf-weakest-row { background: rgba(214,92,92,.06); }

@media (max-width: 1100px) {
	.nf-form-grid { grid-template-columns: 1fr; }
	.nf-kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.nf-dashboard-grid, .nf-detail-grid { grid-template-columns: 1fr; }
	.nf-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---------- Mobile (phones / narrow tablets) ---------- */

@media (max-width: 860px) {
	.nf-kpi-grid, .nf-kpi-grid.nf-kpi-grid-2 { grid-template-columns: 1fr; }
	.nf-grid-3 { grid-template-columns: 1fr; }
	.nf-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }

	/* Collapsible sidebar: off-canvas drawer instead of a permanent column. */
	.nf-mobile-topbar {
		display: flex; align-items: center; justify-content: space-between;
		padding: 14px 16px; background: var(--fv-bg-soft); border-bottom: 1px solid var(--fv-divider);
		position: sticky; top: 0; z-index: 40;
	}
	.nf-mobile-topbar img.nf-logo { width: 108px; height: auto; }
	.nf-hamburger {
		width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--fv-divider);
		background: var(--fv-white); display: flex; align-items: center; justify-content: center;
		cursor: pointer; flex-shrink: 0;
	}
	.nf-hamburger span, .nf-hamburger span::before, .nf-hamburger span::after {
		content: ""; display: block; width: 18px; height: 2px; background: var(--fv-text-primary);
		position: relative;
	}
	.nf-hamburger span::before { position: absolute; top: -6px; }
	.nf-hamburger span::after { position: absolute; top: 6px; }

	.nf-shell { flex-direction: column; min-height: auto; }

	.nf-sidebar {
		position: fixed; top: 0; left: 0; height: 100vh; width: 78vw; max-width: 300px;
		z-index: 60; transform: translateX(-100%); transition: transform .2s ease;
	}
	.nf-sidebar.nf-sidebar-open { transform: translateX(0); box-shadow: 12px 0 32px rgba(20,30,50,.22); }

	.nf-sidebar-backdrop.nf-visible {
		display: block; position: fixed; inset: 0; background: rgba(20,30,50,.4); z-index: 50;
	}

	.nf-main { padding: 20px 16px; gap: 18px; }

	.nf-title { font-size: 21px; }
	.nf-kpi-value { font-size: 28px; }

	/* Tables scroll horizontally instead of crushing every column unreadably narrow. */
	.nf-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.nf-table-wrap .nf-th-row, .nf-table-wrap .nf-row { min-width: 640px; }

	/* The "Zmeniť stav" popover becomes a centered sheet instead of an absolutely-positioned
	   panel anchored to a button that may sit near the screen edge. */
	.nf-popover {
		position: fixed !important;
		left: 16px !important;
		right: 16px !important;
		top: 78px !important;
		width: auto !important;
		max-height: calc(100vh - 110px);
		overflow-y: auto;
		z-index: 45;
	}

	.nf-form-actions { flex-wrap: wrap; }
	.nf-page-head { gap: 12px; }
}

/* ---------- Auth screens on mobile ---------- */

@media (max-width: 760px) {
	.nf-auth-shell { flex-direction: column; min-height: auto; }
	.nf-auth-visual { display: none; }
	.nf-auth-form-side { padding: 32px 20px; min-height: 100vh; }
}

/* ---------- Admin: editor sadzobníka (§11) ---------- */
.nf-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--fv-divider); overflow-x: auto; }
.nf-tab { border: 0; background: transparent; padding: 12px 16px; font-size: 13.5px; font-weight: 700; color: var(--fv-text-faint); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nf-tab.active { color: var(--fv-accent); border-bottom-color: var(--fv-accent); }
.nf-tab-panel { display: none; }
.nf-tab-panel.active { display: block; }
.nf-admin-card { background: var(--fv-white); border: 1px solid var(--fv-divider-2); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.nf-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.nf-admin-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nf-admin-row-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.nf-icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--fv-divider); background: var(--fv-white); color: var(--fv-text-body); cursor: pointer; font-size: 13px; line-height: 1; }
.nf-icon-btn:hover { background: var(--fv-divider-2); }
.nf-icon-btn:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 700px) {
	.nf-admin-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Zdieľaný "pracujem…" prekryv (§6, generovanie PDF) ---------- */
#nfLoadingOverlay { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(20, 29, 35, .35); backdrop-filter: blur(2px); }
#nfLoadingOverlay.on { display: flex; }
.nf-loading-box { background: var(--fv-white); border-radius: 16px; padding: 28px 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .35); }
.nf-loading-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--fv-divider-2); border-top-color: var(--fv-accent); animation: nf-spin .8s linear infinite; }
.nf-loading-text { font-size: 13.5px; font-weight: 700; color: var(--fv-text-body); }
@keyframes nf-spin { to { transform: rotate(360deg); } }

/* Stavový pás (kandidát, ponuka, spolupracovník) — jeden komponent pre všetky tri časti. */
.nf-stepper { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding: 4px 2px 2px; }
.nf-step { flex: 1 1 0; min-width: 62px; text-align: center; font: inherit; font-size: 11.5px; line-height: 1.25; color: var(--fv-text-faint, #8A97A1); background: none; border: 0; padding: 0 2px; cursor: default; }
.nf-step i { display: block; width: 14px; height: 14px; border-radius: 50%; margin: 0 auto 6px; background: #fff; border: 2px solid #C5CED6; box-sizing: border-box; }
.nf-step.is-done { color: #4B5B68; }
.nf-step.is-done i { background: var(--fv-accent, #1B5FEE); border-color: var(--fv-accent, #1B5FEE); }
.nf-step.is-current { color: #15202B; font-weight: 700; }
.nf-step.is-current i { border: 4px solid var(--fv-accent, #1B5FEE); background: #fff; }
.nf-step.is-next { color: var(--fv-accent, #1B5FEE); font-weight: 700; }
.nf-step.is-next i { border-color: var(--fv-accent, #1B5FEE); border-style: dashed; }
button.nf-step { cursor: pointer; border-radius: 8px; padding-bottom: 4px; }
button.nf-step:hover { background: rgba(27, 95, 238, .07); }
button.nf-step:focus-visible { outline: 2px solid var(--fv-accent, #1B5FEE); outline-offset: 1px; }
.nf-step-line { flex: 0 0 10px; height: 2px; background: #C5CED6; margin-top: 6px; }
.nf-step-line.is-on { background: var(--fv-accent, #1B5FEE); }
.nf-stepper.is-muted .nf-step.is-done i { background: #C5CED6; border-color: #C5CED6; }
.nf-stepper.is-muted .nf-step-line.is-on { background: #C5CED6; }
.nf-stepper.is-muted .nf-step.is-done { color: #8A97A1; }
.nf-step-card { padding: 20px 24px; margin-bottom: 20px; position: relative; }
.nf-step-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.nf-step-pop { position: absolute; left: 24px; right: 24px; top: calc(100% - 6px); max-width: 360px; z-index: 12; padding: 16px; box-shadow: 0 8px 24px rgba(20,30,50,.14); }
.nf-step-pop[hidden] { display: none; }
.nf-undo { display: inline; margin-left: 10px; }
.nf-undo-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; color: inherit; cursor: pointer; }
.nf-flash { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.nf-next-hint { font-size: 11px; color: var(--fv-accent, #1B5FEE); margin-top: 3px; font-weight: 700; }

.nf-stepper-sm .nf-step { min-width: 46px; font-size: 11px; }
.nf-stepper-sm .nf-step i { width: 12px; height: 12px; margin-bottom: 4px; }
.nf-step.tone-ok i { border-color: #1F9254; background: #1F9254; }
.nf-step.tone-ok { color: #1F9254; }
.nf-step.tone-bad i { border-color: #B0392F; background: #B0392F; }
.nf-step.tone-bad { color: #B0392F; }
.nf-stav-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.nf-undo-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #15202B; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 13.5px; z-index: 300; display: flex; gap: 14px; align-items: center; transition: .25s; max-width: 90vw; }
.nf-undo-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.nf-undo-toast button { background: none; border: 0; color: #fff; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }

/* Hinty (data-hint): jeden tooltip pre celú aplikáciu — myš, klávesnica (fokus) aj dlhé podržanie na dotyku. Vypnuté tlačidlo musí byť v obale .nf-hintwrap. */
.nf-tip { position: fixed; z-index: 400; max-width: 260px; background: #15202B; color: #fff; font-size: 12px; font-weight: 500; line-height: 1.4; padding: 7px 11px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .12s; box-shadow: 0 6px 18px rgba(20, 30, 50, .25); }
.nf-tip.on { opacity: 1; }
.nf-hintwrap { display: inline-block; }
.nf-hintwrap > button[disabled], .nf-hintwrap > .nf-btn[disabled], .nf-hintwrap > .nf-ponuka-btn[disabled] { pointer-events: none; }

/* ---------- Zoznamy: tablet (stĺpce sa skracujú) a mobil (riadok = karta) ----------
   Značky: .nf-hide-md / .nf-only-md (do 1100 px), .nf-hide-sm / .nf-only-sm (do 860 px),
   data-label = popisok riadka v karte, .nf-m-stav = odznak vpravo hore, .nf-m-contents = obal,
   ktorého deti sa v karte rozložia samostatne. Šírky stĺpcov sú inline, preto !important. */
.nf-only-md, .nf-only-sm, .nf-only-tab { display: none; }
.nf-cell-sub { font-size: 12.5px; font-weight: 400; color: var(--fv-text-muted); margin-top: 2px; }

@media (min-width: 861px) and (max-width: 1100px) {
	.nf-hide-md, .nf-hide-tab { display: none !important; }
	.nf-only-md, .nf-only-tab { display: block; }
	.nf-table-wrap.nf-cards-cand .nf-th-row, .nf-table-wrap.nf-cards-cand .nf-row { grid-template-columns: 1.8fr .6fr 1.5fr 1fr .9fr !important; }
	.nf-table-wrap.nf-cards-emp .nf-th-row, .nf-table-wrap.nf-cards-emp .nf-row { grid-template-columns: 1.3fr .9fr 1fr 1fr 1.5fr !important; }
	.nf-table-wrap.nf-cards-off .nf-th-row, .nf-table-wrap.nf-cards-off .nf-row { grid-template-columns: .9fr 1.4fr .9fr .9fr 2.2fr 1.3fr !important; }
}

@media (max-width: 860px) {
	.nf-hide-md, .nf-hide-sm { display: none !important; }
	.nf-only-md { display: block; }
	.nf-only-sm { display: inline-block; }

	.nf-filters .nf-input { width: 100%; max-width: none !important; }
	.nf-filters .nf-select { flex: 1 1 calc(50% - 10px); min-width: 140px; }
	.nf-stat-tabs { flex-wrap: wrap; }

	.nf-table-wrap.nf-cards { border: 0; border-radius: 0; overflow: visible; display: flex; flex-direction: column; gap: 10px; }
	.nf-table-wrap.nf-cards .nf-th-row { display: none; }
	.nf-table-wrap.nf-cards .nf-row {
		min-width: 0; grid-template-columns: minmax(0, 1fr) auto !important; align-items: start;
		gap: 4px 12px; padding: 14px; border: 1px solid var(--fv-divider-2); border-radius: 12px; background: var(--fv-white);
	}
	.nf-table-wrap.nf-cards .nf-row:last-child { border-bottom: 1px solid var(--fv-divider-2); }
	.nf-table-wrap.nf-cards .nf-row > * { grid-column: 1 / -1; min-width: 0; }
	.nf-table-wrap.nf-cards .nf-row > .nf-cell-name { grid-column: 1; grid-row: 1; font-size: 15px; line-height: 1.3; }
	.nf-table-wrap.nf-cards .nf-m-stav { grid-column: 2 !important; grid-row: 1; justify-self: end; align-self: start; white-space: nowrap; }
	.nf-table-wrap.nf-cards .nf-m-contents { display: contents; }
	.nf-table-wrap.nf-cards [data-label] { display: flex; gap: 12px; align-items: baseline; font-size: 13px; }
	.nf-table-wrap.nf-cards [data-label]::before { content: attr(data-label); flex: 0 0 96px; font-size: 12.5px; font-weight: 400; color: var(--fv-text-faint); }
	.nf-table-wrap.nf-cards [data-label]:empty { display: none; }
	.nf-table-wrap.nf-cards [data-label="Progres"] { align-items: center; }
	.nf-table-wrap.nf-cards .nf-m-foot { order: 10; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--fv-divider-2); }
	.nf-table-wrap.nf-cards .nf-m-foot-l { grid-column: 1; order: 10; align-self: center; }
	.nf-table-wrap.nf-cards .nf-m-foot-r { grid-column: 2 !important; order: 11; justify-self: end; }
	.nf-table-wrap.nf-cards .nf-m-actions { margin-top: 8px; }
	.nf-table-wrap.nf-cards .nf-m-actions .nf-btn { flex: 1 1 auto; justify-content: center; text-align: center; }
	.nf-table-wrap.nf-cards .nf-empty { border: 1px solid var(--fv-divider-2); border-radius: 12px; }
}
