/*
 * Notify admin theme on top of Bootstrap 5.3 (ADR-027).
 * Visual language of the Gogo template (purple palette, light mode, single-layer menu, boxed content),
 * written from scratch: tokens below, then layout, then components.
 */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face { font-family: Mulish; font-style: normal; font-weight: 400; font-display: swap; src: url(../vendor/fonts/mulish-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: Mulish; font-style: normal; font-weight: 400; font-display: swap; src: url(../vendor/fonts/mulish-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: Mulish; font-style: normal; font-weight: 600; font-display: swap; src: url(../vendor/fonts/mulish-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: Mulish; font-style: normal; font-weight: 600; font-display: swap; src: url(../vendor/fonts/mulish-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: Mulish; font-style: normal; font-weight: 700; font-display: swap; src: url(../vendor/fonts/mulish-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: Mulish; font-style: normal; font-weight: 700; font-display: swap; src: url(../vendor/fonts/mulish-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: Urbanist; font-style: normal; font-weight: 600; font-display: swap; src: url(../vendor/fonts/urbanist-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: Urbanist; font-style: normal; font-weight: 600; font-display: swap; src: url(../vendor/fonts/urbanist-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: Urbanist; font-style: normal; font-weight: 700; font-display: swap; src: url(../vendor/fonts/urbanist-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: Urbanist; font-style: normal; font-weight: 700; font-display: swap; src: url(../vendor/fonts/urbanist-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; }

/* ---------- tokens ---------- */
:root {
	--nf-primary: #bd32af;
	--nf-primary-strong: #95288a;
	--nf-primary-soft: rgba(189, 50, 175, .1);
	--nf-primary-ring: rgba(189, 50, 175, .25);
	--nf-success: #59b143;
	--nf-info: #22acd3;
	--nf-warning: #e86e17;
	--nf-danger: #bc2949;
	--nf-text: #1c1c21;
	--nf-muted: #5f5f66;
	--nf-bg: #f5f5f7;
	--nf-surface: #fff;
	--nf-fill: #f5f5f5;
	--nf-line: #dedede;
	--nf-line-soft: #f2f2f2;
	--nf-radius-card: 28px;
	--nf-radius-row: 24px;
	--nf-radius-menu: 18px;
	--nf-radius-control: 16px;
	--nf-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 10px rgba(0, 0, 0, .07);
	--nf-input-line: #dadada;
	--nf-font: Mulish, ui-sans-serif, system-ui, sans-serif;
	--nf-font-heading: Urbanist, ui-sans-serif, system-ui, sans-serif;
	--nf-sidebar-width: 272px;
	--nf-sidebar-bg: #1f1b2e;
	--nf-sidebar-text: #dedbe8;
	--nf-sidebar-muted: #a19cb3;
	--nf-sidebar-hover: rgba(255, 255, 255, .06);
	--nf-sidebar-active: rgba(189, 50, 175, .28);
	--nf-sidebar-line: rgba(255, 255, 255, .1);

	/* Bootstrap mapped to the tokens */
	--bs-primary: var(--nf-primary);
	--bs-primary-rgb: 189, 50, 175;
	--bs-link-color: var(--nf-primary);
	--bs-link-color-rgb: 189, 50, 175;
	--bs-link-hover-color: var(--nf-primary-strong);
	--bs-link-hover-color-rgb: 149, 40, 138;
	--bs-body-font-family: var(--nf-font);
	--bs-body-font-size: 1rem;
	--bs-body-color: var(--nf-text);
	--bs-body-bg: var(--nf-bg);
	--bs-border-color: var(--nf-line);
	--bs-secondary-color: var(--nf-muted);
	--bs-success: var(--nf-success);
	--bs-danger: var(--nf-danger);
	--bs-focus-ring-color: var(--nf-primary-ring);
}

body { font-family: var(--nf-font); font-size: 1rem; color: var(--nf-text); background: var(--nf-bg); }
h1, h2, h3, h4, .nf-heading { font-family: var(--nf-font-heading); font-weight: 700; color: var(--nf-text); }
a { color: var(--nf-primary); text-decoration: none; }
a:hover { color: var(--nf-primary-strong); }
code { color: var(--nf-primary-strong); background: var(--nf-primary-soft); padding: .1rem .4rem; border-radius: 8px; font-size: .85em; }
.text-muted, .nf-muted { color: var(--nf-muted) !important; }
::selection { background: var(--nf-primary-soft); }

/* ---------- layout: single-layer sidebar + top bar + boxed content ---------- */
.nf-shell { display: flex; min-height: calc(100vh - var(--nf-bypass-h, 0px)); }
.nf-sidebar {
	position: fixed; inset: var(--nf-bypass-h, 0px) auto 0 0; z-index: 1030; width: var(--nf-sidebar-width);
	display: flex; flex-direction: column; padding: 1.25rem .9rem;
	background: var(--nf-sidebar-bg); box-shadow: var(--nf-shadow); color: var(--nf-sidebar-text);
	overflow-y: auto;
}
.nf-sidebar .nf-brand, .nf-sidebar .nf-brand:hover { color: #fff; }
.nf-brand { display: flex; align-items: center; gap: .6rem; padding: .25rem .75rem 1.5rem; font-family: var(--nf-font-heading); font-weight: 700; font-size: 1.5rem; color: var(--nf-text); }
.nf-brand:hover { color: var(--nf-text); }
.nf-brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--nf-primary); color: #fff; font-size: 1.05rem; }
.nf-nav-divider { height: 1px; margin: .6rem .75rem; background: var(--nf-sidebar-line); }
.nf-nav { list-style: none; margin: 0; padding: 0; }
.nf-nav a {
	display: flex; align-items: center; gap: .75rem; height: 42px; padding: 0 1rem; margin-bottom: 2px;
	border-radius: var(--nf-radius-menu); color: var(--nf-sidebar-text); font-size: 1rem;
}
.nf-nav a i { font-size: 1.4rem; opacity: .85; }
.nf-nav a:hover { background: var(--nf-sidebar-hover); color: #fff; }
.nf-nav a.active { background: var(--nf-sidebar-active); color: #fff; font-weight: 600; }
.nf-nav a.active i { opacity: 1; }
.nf-sidebar-footer { margin-top: auto; padding: 1rem .75rem 0; font-size: .8125rem; color: var(--nf-sidebar-muted); }
.nf-sidebar-footer a { color: var(--nf-sidebar-text); }
.nf-sidebar-footer a:hover { color: #fff; }

.nf-main { flex: 1; min-width: 0; margin-left: var(--nf-sidebar-width); display: flex; flex-direction: column; }
.nf-topbar { display: flex; align-items: center; gap: 1rem; height: 64px; padding: 0 2rem; }
.nf-topbar .nf-spacer { flex: 1; }
.nf-pill {
	display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 1.1rem;
	border: 1px solid var(--nf-line); border-radius: var(--nf-radius-control); background: var(--nf-surface);
	color: var(--nf-text); font-size: .9375rem; line-height: 1;
}
.nf-pill:hover, .nf-pill:focus, .nf-pill.show { border-color: var(--nf-primary); color: var(--nf-text); }
.nf-user { display: inline-flex; align-items: center; gap: .6rem; color: var(--nf-text); }
.nf-avatar {
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	background: var(--nf-primary-soft); color: var(--nf-primary-strong); font-weight: 700; font-size: .875rem;
}

.nf-page-header {
	display: flex; align-items: center; gap: 1rem; padding: 1.25rem 2rem 1.5rem;
	border-bottom: 1px solid var(--nf-surface); margin-bottom: 1.75rem;
}
/* the bypass: a strip over the whole window, above the menu; everything below moves down by its height */
body.nf-has-bypass { --nf-bypass-h: 44px; padding-top: var(--nf-bypass-h); }
.nf-bypass-bar {
	position: fixed; inset: 0 0 auto 0; z-index: 1045; height: var(--nf-bypass-h);
	display: flex; align-items: center; gap: .6rem; padding: 0 1.5rem;
	background: var(--nf-warning); color: #fff; font-size: .875rem; font-weight: 600; box-shadow: 0 1px 6px rgba(0, 0, 0, .15);
}
.nf-bypass-bar i { font-size: 1.25rem; flex: none; }
.nf-bypass-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-bypass-bar a { color: #fff; text-decoration: underline; margin-left: auto; flex: none; white-space: nowrap; }
.nf-page-header h1 { font-size: 1.875rem; margin: 0 0 .15rem; }
.nf-breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; font-size: .8125rem; color: var(--nf-muted); }
.nf-breadcrumb li + li::before { content: "/"; margin-right: .4rem; }
.nf-breadcrumb a { color: var(--nf-muted); }
.nf-breadcrumb a:hover { color: var(--nf-primary); }
.nf-page-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
/* tabs of a merged menu item (Události, Šablony, Odesílání, Překlady) on the line of the header */
.nf-page-header-tabbed { margin-bottom: 0; padding-bottom: .5rem; border-bottom: 0; }
.nf-subnav { display: flex; flex-wrap: wrap; gap: .25rem; padding: 0 2rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--nf-surface); }
.nf-subnav a {
	display: inline-flex; align-items: center; gap: .45rem; padding: .75rem 1rem; margin-bottom: -1px;
	border-bottom: 2px solid transparent; color: var(--nf-muted); font-weight: 500;
}
.nf-subnav a i { font-size: 1.15rem; }
.nf-subnav a:hover { color: var(--nf-text); }
.nf-subnav a.active { color: var(--nf-primary); border-bottom-color: var(--nf-primary); }
/* "Fluid" content: lists use the whole width of the page (forms keep a readable field width below) */
.nf-content { width: 100%; padding: 0 2rem 2rem; }
.nf-footer { margin-top: auto; padding: 1.25rem 2rem; text-align: center; font-size: .8125rem; color: var(--nf-muted); }
/* a full-bleed page (the e-mail editor): the content fills the rest of the window edge to edge, no footer */
.nf-shell-full .nf-main { height: max(calc(100vh - var(--nf-bypass-h, 0px)), 700px); }
.nf-shell-full .nf-page-header { margin-bottom: 0; }
.nf-shell-full .nf-content { flex: 1; min-height: 0; padding: 0; }
.nf-shell-full .nf-footer { display: none; }

/* ---------- surfaces ---------- */
.nf-card { background: var(--nf-surface); border-radius: var(--nf-radius-card); box-shadow: var(--nf-shadow); padding: 1.5rem 1.75rem; }
.nf-card + .nf-card { margin-top: 1.5rem; }
/* a card that warns: an orange edge */
.nf-card-warning { box-shadow: inset 4px 0 0 var(--nf-warning), var(--nf-shadow); }
.nf-card-warning .ph-warning { color: var(--nf-warning); }
.nf-card-title { font-family: var(--nf-font); font-size: 1.125rem; font-weight: 700; margin: 0 0 1rem; }
.nf-section-title { font-family: var(--nf-font); font-size: 1.125rem; font-weight: 700; margin: 0 0 .9rem; }
.nf-stat { display: flex; align-items: center; gap: 1rem; }
/* a card led by its icon (Přehled: workspace, role): a tall tile flush with the card's edge, as Gogo's quick actions */
.nf-card.nf-stat { padding: 6px 1.75rem 6px 6px; align-items: stretch; }
.nf-card.nf-stat > :not(.nf-stat-icon) { align-self: center; padding: .9rem 0; }
.nf-stat-icon { display: inline-grid; place-items: center; flex: none; width: 72px; min-height: 72px; border-radius: calc(var(--nf-radius-card) - 6px); background: var(--nf-primary-soft); color: var(--nf-primary); font-size: 1.75rem; transition: background .15s, color .15s; }
a.nf-stat:hover .nf-stat-icon { background: var(--nf-primary); color: #fff; }
.nf-stat-value { font-family: var(--nf-font-heading); font-size: 1.75rem; font-weight: 700; line-height: 1.1; }

/* stat tiles (Gogo "Stats" of the Visual dashboard): pastel block on the left, label + value on the right */
.nf-tile { position: relative; display: flex; align-items: stretch; gap: 1.1rem; min-height: 104px; padding: .5rem; background: var(--nf-surface); border-radius: var(--nf-radius-card); box-shadow: var(--nf-shadow); }
.nf-tile-block {
	flex: 0 0 76px; display: grid; place-items: center; border-radius: 22px;
	font-family: var(--nf-font-heading); font-size: 1.75rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.nf-tile-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: .35rem 0; }
.nf-tile-label { color: var(--nf-muted); font-size: .9375rem; }
.nf-tile-value { font-family: var(--nf-font-heading); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.nf-tile-value small { font-family: var(--nf-font); font-size: .875rem; font-weight: 400; color: var(--nf-muted); }
.nf-tile-delta { font-size: .8125rem; }
.nf-tile-actions { position: absolute; top: .5rem; right: .6rem; display: flex; gap: .1rem; }
.nf-tile-actions .btn { --bs-btn-padding-x: .55rem; min-height: 34px; }
.nf-tile-off .nf-tile-block { filter: grayscale(1); opacity: .55; }
/* tiles as rows (one item = one row), sortable by drag and drop */
.nf-rows { display: flex; flex-direction: column; gap: .6rem; }
.nf-tile-row { align-items: center; min-height: 88px; padding-right: 1.25rem; }
.nf-tile-row .nf-tile-block { align-self: stretch; flex-basis: 72px; font-size: 1.6rem; }
.nf-tile-grow { flex: 1 1 auto; }
.nf-tile-col { flex: 0 0 auto; min-width: 120px; display: flex; flex-direction: column; justify-content: center; }
.nf-tile-end { flex-direction: row; justify-content: flex-end; gap: .1rem; min-width: 96px; }
.nf-tile-row .form-switch { display: flex; align-items: center; gap: .5rem; padding-left: 0; }
.nf-tile-row .form-switch .form-check-input { float: none; margin: 0; }
.nf-drag { display: grid; place-items: center; align-self: stretch; width: 28px; margin-left: .1rem; color: #b3b3b3; font-size: 1.4rem; cursor: grab; }
.nf-drag:hover { color: var(--nf-primary); }
/* while dragging, the row's place is an empty dashed slot (the browser shows the row itself under the cursor) */
.nf-sortable-placeholder { background: var(--nf-primary-soft) !important; box-shadow: none !important; outline: 2px dashed var(--nf-primary); outline-offset: -2px; }
.nf-sortable-placeholder > * { visibility: hidden; }
.nf-rows.nf-sorting .nf-tile-row:not(.nf-sortable-placeholder) { transition: transform .15s ease; }
.nf-sortable-saved { animation: nf-saved 1.2s ease; }
@keyframes nf-saved { 0% { box-shadow: 0 0 0 3px var(--nf-primary-ring); } 100% { box-shadow: var(--nf-shadow); } }
@media (max-width: 767.98px) {
	.nf-tile-row { flex-wrap: wrap; }
	.nf-tile-col { min-width: 0; }
}

/* accent colors of the tiles (pastel 10 % background, saturated text) */
.nf-accent-0 { background: rgba(248, 163, 42, .12); color: #e08a12; }
.nf-accent-1 { background: rgba(239, 98, 72, .12); color: #e0533a; }
.nf-accent-2 { background: rgba(239, 26, 111, .1); color: #ef1a6f; }
.nf-accent-3 { background: rgba(184, 76, 173, .1); color: #b84cad; }
.nf-accent-4 { background: rgba(142, 89, 232, .1); color: #8e59e8; }
.nf-accent-5 { background: rgba(77, 135, 245, .1); color: #4d87f5; }
a.nf-tile-block:hover { filter: brightness(.97); }

/* ---------- buttons ---------- */
.btn {
	--bs-btn-padding-x: 1.35rem; --bs-btn-padding-y: .55rem; --bs-btn-font-size: 1rem; --bs-btn-font-weight: 500;
	--bs-btn-border-radius: var(--nf-radius-control); --bs-btn-focus-box-shadow: 0 0 0 .25rem var(--nf-primary-ring);
	display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px;
}
.btn-primary {
	--bs-btn-bg: var(--nf-primary); --bs-btn-border-color: var(--nf-primary); --bs-btn-color: #fff;
	--bs-btn-hover-bg: var(--nf-primary-strong); --bs-btn-hover-border-color: var(--nf-primary-strong); --bs-btn-hover-color: #fff;
	--bs-btn-active-bg: var(--nf-primary-strong); --bs-btn-active-border-color: var(--nf-primary-strong);
	--bs-btn-disabled-bg: var(--nf-primary); --bs-btn-disabled-border-color: var(--nf-primary);
}
.btn-outline-primary {
	--bs-btn-color: var(--nf-primary); --bs-btn-border-color: var(--nf-primary);
	--bs-btn-hover-bg: var(--nf-primary-soft); --bs-btn-hover-color: var(--nf-primary-strong); --bs-btn-hover-border-color: var(--nf-primary);
	--bs-btn-active-bg: var(--nf-primary-soft); --bs-btn-active-color: var(--nf-primary-strong); --bs-btn-active-border-color: var(--nf-primary);
}
.btn-pastel { --bs-btn-bg: var(--nf-primary-soft); --bs-btn-color: var(--nf-primary-strong); --bs-btn-border-color: transparent; --bs-btn-hover-bg: rgba(189, 50, 175, .18); --bs-btn-hover-color: var(--nf-primary-strong); --bs-btn-active-bg: rgba(189, 50, 175, .22); }
.btn-text { --bs-btn-color: var(--nf-primary); --bs-btn-border-color: transparent; --bs-btn-hover-bg: var(--nf-primary-soft); --bs-btn-hover-color: var(--nf-primary-strong); --bs-btn-padding-x: .75rem; }
.btn-text-danger { --bs-btn-color: var(--nf-danger); --bs-btn-border-color: transparent; --bs-btn-hover-bg: rgba(188, 41, 73, .1); --bs-btn-hover-color: var(--nf-danger); --bs-btn-padding-x: .75rem; }
.btn-sm { --bs-btn-padding-x: .9rem; --bs-btn-padding-y: .3rem; --bs-btn-font-size: .9375rem; min-height: 36px; }

/* ---------- forms ---------- */
.form-label { font-weight: 600; margin-bottom: .35rem; }
.form-control, .form-select {
	min-height: 44px; padding: .5rem 1rem; font-size: 1rem; color: var(--nf-text);
	background-color: var(--nf-fill); border: 1px solid var(--nf-input-line); border-radius: var(--nf-radius-control);
}
.form-select { padding-right: 2.5rem; }
.form-control:focus, .form-select:focus { background-color: var(--nf-surface); border-color: var(--nf-primary); box-shadow: 0 0 0 .25rem var(--nf-primary-ring); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--nf-danger); }
.form-control::placeholder { color: #b3b3b3; }
.form-text { color: var(--nf-muted); }
.nf-form-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .35rem; }
.nf-form-links a { text-decoration: none; white-space: nowrap; }
.nf-form-links a:hover { text-decoration: underline; }
.invalid-feedback { color: var(--nf-danger); }
.form-check-input { width: 1.15em; height: 1.15em; border-color: #cfcfcf; }
.form-check-input:checked { background-color: var(--nf-primary); border-color: var(--nf-primary); }
.form-check-input:focus { border-color: var(--nf-primary); box-shadow: 0 0 0 .25rem var(--nf-primary-ring); }
/* switch: Gogo "Medium Outlined" – off = transparent track with a grey outline and a grey knob,
   on = track in a lighter primary with a white knob (knob 64 % of the height) */
.form-switch .form-check-input {
	width: 2.4em; height: 1.3em; border-radius: 1em; cursor: pointer;
	background-color: transparent; border: 1px solid #bfbfbf;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2.55' fill='%23d6d6d6'/%3e%3c/svg%3e");
	background-position: left center; background-size: contain;
	transition: background-position .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}
.form-switch .form-check-input:checked {
	background-color: #ca5bbf; border-color: #ca5bbf; background-position: right center;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2.55' fill='%23fff'/%3e%3c/svg%3e");
}
.form-switch .form-check-input:focus { border-color: var(--nf-primary); box-shadow: 0 0 0 .2rem var(--nf-primary-ring); }
.form-switch .form-check-input:focus:not(:checked) {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2.55' fill='%23ca5bbf'/%3e%3c/svg%3e");
}
.form-switch .form-check-input:disabled { opacity: .55; cursor: not-allowed; }
/* the wider switch needs more room before its label (Bootstrap counts with 2em) */
.form-switch { padding-left: 3.1em; min-height: 1.6em; }
.form-switch .form-check-input { margin-left: -3.1em; margin-top: .1em; }
.form-switch .form-check-input:disabled ~ .form-check-label { opacity: .8; }
.nf-check-grid { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding: .35rem 0; }
.nf-form-errors { list-style: none; padding: .75rem 1rem; margin: 0 0 1rem; border-radius: var(--nf-radius-control); background: rgba(188, 41, 73, .1); color: var(--nf-danger); }
.nf-form-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
/* buttons sit in the middle everywhere: under a form's fields, and what ends a card or a modal – a form of buttons
   only (Ověřit, Odebrat, Nový token…), a row of them or a single button */
.nf-card > form:last-child:not(:has(input:not([type="hidden"]), select, textarea)),
.nf-modal .modal-body > form:last-child:not(:has(input:not([type="hidden"]), select, textarea)),
.nf-modal > form:last-child:not(:has(input:not([type="hidden"]), select, textarea)) { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.nf-modal .modal-body > div.d-flex:last-child:has(> form, > .btn):not(:has(> :not(form, .btn))),
.nf-modal > div.d-flex:last-child:has(> form, > .btn):not(:has(> :not(form, .btn))),
.nf-card > div.d-flex:last-child:has(> form, > .btn):not(:has(> :not(form, .btn))) { justify-content: center; }
.nf-modal .modal-body > .btn:last-child,
.nf-modal > .btn:last-child,
.nf-card > .btn:last-child { display: flex; width: fit-content; margin-inline: auto; }
/* settings layout: label column + field column */
@media (min-width: 992px) {
	.nf-form-horizontal .nf-field { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 1rem; align-items: start; }
	.nf-form-horizontal .nf-field > .form-label { padding-top: .55rem; }
	.nf-form-horizontal .nf-field:has(.nf-input-lg) > .form-label { padding-top: 1rem; }
}
.nf-field { margin-bottom: 1rem; }

/* ---------- tables: every row a white rounded card ---------- */
.nf-table { width: 100%; border-collapse: separate; border-spacing: 0 5px; margin: -5px 0; }
.nf-table th { padding: 0 1rem .5rem; font-size: .875rem; font-weight: 700; color: var(--nf-text); text-align: left; white-space: nowrap; }
.nf-table td { padding: 1.2rem 1.1rem; height: 84px; background: var(--nf-surface); vertical-align: middle; }
.nf-table td:first-child { border-radius: var(--nf-radius-row) 0 0 var(--nf-radius-row); padding-left: 1.5rem; }
.nf-table td:last-child { border-radius: 0 var(--nf-radius-row) var(--nf-radius-row) 0; padding-right: 1.5rem; }
.nf-table tbody tr { box-shadow: var(--nf-shadow); border-radius: var(--nf-radius-row); }
.nf-table tbody tr:hover td { background: #fdfbfd; }
.nf-table .nf-cell-title { font-weight: 600; color: var(--nf-text); }
/* a cell with a long line (template name, warning) wraps instead of pushing the table out of its card */
.nf-table .nf-cell-wrap { white-space: normal; overflow-wrap: anywhere; min-width: 14rem; }
/* the main name of a row (e.g. a workspace) */
.nf-cell-lg { font-family: var(--nf-font-heading); font-size: 1.25rem; font-weight: 700; color: var(--nf-text); }
a.nf-cell-lg:hover { color: var(--nf-primary); }
.nf-avatar-lg { width: 52px; height: 52px; font-size: 1.25rem; }
/* codes and badges inside lists are easier to read a little larger */
.nf-table code { font-size: .9375rem; padding: .25rem .6rem; border-radius: 10px; }
.nf-table .nf-badge { height: 32px; padding: 0 .9rem; border-radius: 16px; font-size: .9375rem; }
.nf-table .nf-badge .ph-light { font-size: 1.2em; }
.nf-table .nf-cell-title:hover { color: var(--nf-primary); }
/* a row's icon: a tall soft tile always at the start of the row, flush with its left edge, as Gogo's quick actions
   (it stays in the title's link, so hovering it marks the link; the row is its box) */
.nf-table tr:has(.nf-row-icon) { position: relative; }
.nf-table tr:has(.nf-row-icon) > td:first-child,
.nf-table:has(.nf-row-icon) > thead th:first-child { padding-left: calc(4px + 64px + 1.1rem); }
.nf-row-icon { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 64px; display: grid; place-items: center; border-radius: calc(var(--nf-radius-row) - 4px); background: var(--nf-primary-soft); color: var(--nf-primary); font-size: 1.6rem; transition: background .15s, color .15s; }
a.nf-cell-icon:hover .nf-row-icon { background: var(--nf-primary); color: #fff; }
/* a tile coloured by a state (Historie) */
.nf-row-icon-success { background: rgba(89, 177, 67, .12); color: var(--nf-success); }
.nf-row-icon-danger { background: rgba(188, 41, 73, .1); color: var(--nf-danger); }
.nf-row-icon-warning { background: rgba(232, 110, 23, .12); color: var(--nf-warning); }
.nf-row-icon-muted { background: var(--nf-fill); color: var(--nf-muted); }
a.nf-cell-icon:hover .nf-row-icon-success { background: var(--nf-success); }
a.nf-cell-icon:hover .nf-row-icon-danger { background: var(--nf-danger); }
a.nf-cell-icon:hover .nf-row-icon-warning { background: var(--nf-warning); }
a.nf-cell-icon:hover .nf-row-icon-muted { background: var(--nf-muted); }
/* a round icon button (a row's actions); its label is the title */
.nf-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--nf-primary); font-size: 1.2rem; text-decoration: none; transition: background .15s; }
.nf-icon-btn:hover, .nf-icon-btn:focus-visible { background: var(--nf-primary-soft); color: var(--nf-primary-strong); }
.nf-history td { vertical-align: middle; }
.nf-history td .nf-badge.nf-badge-event { height: 34px; padding: 0 1rem; font-size: 1rem; }
.nf-history td .nf-badge.nf-badge-event .ph-light { font-size: 1.2em; }
.nf-tester-json { max-height: 520px; overflow: auto; margin: 0; font-size: .8125rem; }
.nf-tester textarea { font-family: var(--bs-font-monospace); font-size: .8125rem; }
.nf-tester-off { opacity: .45; pointer-events: none; }
.nf-code-plain { background: none; padding: 0; color: var(--nf-muted); }
.nf-code-danger { background: rgba(188, 41, 73, .08); color: var(--nf-danger); }
.nf-history td .nf-badge { height: 26px; padding: 0 .7rem; font-size: .8125rem; }
/* plain key/value table inside a card */
.nf-kv { width: 100%; }
.nf-kv th { width: 7rem; padding: .5rem 0; font-weight: 600; vertical-align: top; }
.nf-kv td { padding: .5rem 0; word-break: break-all; }
.nf-kv-wide th { width: 15rem; padding-right: 1rem; }
.nf-kv-wide td { word-break: normal; }
.nf-kv-nowrap th { width: 1%; white-space: nowrap; padding-right: 1.25rem; }
.nf-kv code { display: inline-block; font-size: .9375rem; padding: .35rem .75rem; border-radius: 10px; }
/* a main name field (workspace name …): larger, in the heading font */
.form-control.nf-input-lg { min-height: 54px; padding: .6rem 1.1rem; font-family: var(--nf-font-heading); font-size: 1.3rem; font-weight: 600; }

/* ---------- badges (soft pills) ---------- */
.nf-badge { display: inline-flex; align-items: center; gap: .3rem; height: 28px; padding: 0 .75rem; border-radius: 14px; font-size: .8125rem; font-weight: 600; background: var(--nf-fill); color: var(--nf-text); white-space: nowrap; }
.nf-badge-success { background: rgba(89, 177, 67, .1); color: var(--nf-success); }
.nf-badge-warning { background: rgba(232, 110, 23, .1); color: var(--nf-warning); }
.nf-badge-danger { background: rgba(188, 41, 73, .1); color: var(--nf-danger); }
.nf-badge-info { background: rgba(34, 172, 211, .1); color: var(--nf-info); }
.nf-badge-primary { background: var(--nf-primary-soft); color: var(--nf-primary-strong); }
.nf-badge-key { background: var(--nf-surface); border: 1px solid var(--nf-line); color: var(--nf-text); font-weight: 500; }
/* badges in the page head: as tall as the action group next to them */
.nf-page-actions .nf-badge { height: 40px; padding: 0 1.1rem; border-radius: 20px; font-size: .9375rem; gap: .45rem; }
.nf-page-actions .nf-badge .ph-light { font-size: 1.3em; }
/* Verze | Překlady | Nastavení in a template's head: one soft pill, each item an icon in a ring */
.nf-toolbar { display: inline-flex; align-items: stretch; padding: 4px; gap: 2px; border-radius: 24px; background: var(--nf-primary-soft); }
.nf-toolbar-item { display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 1rem 0 5px; border: 0; border-radius: 20px; background: transparent; color: var(--nf-primary-strong); font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.nf-toolbar-item:hover, .nf-toolbar-item:focus-visible { background: var(--nf-surface); color: var(--nf-primary-strong); text-decoration: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.nf-toolbar-item + .nf-toolbar-item { position: relative; }
.nf-toolbar-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--nf-surface); color: var(--nf-primary); font-size: 1.15rem; box-shadow: inset 0 0 0 1px rgba(189, 50, 175, .25); }
.nf-toolbar-item:hover .nf-toolbar-icon { background: var(--nf-primary); color: #fff; box-shadow: none; }
.nf-toolbar-item.is-active { background: var(--nf-surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.nf-toolbar-item.is-active .nf-toolbar-icon { background: var(--nf-primary); color: #fff; box-shadow: none; }
.nf-toolbar-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 .35rem; border-radius: 10px; background: var(--nf-primary); color: #fff; font-size: .6875rem; font-weight: 700; }
@media (max-width: 575.98px) { .nf-toolbar-item { padding-right: 5px; font-size: 0; gap: 0; } .nf-toolbar-count { display: none; } }

/* ---------- alerts / flash messages ---------- */
.nf-alert { display: flex; align-items: flex-start; gap: .6rem; padding: .7rem 1rem; margin-bottom: 1rem; border-radius: var(--nf-radius-control); font-size: 1rem; }
.nf-alert i { font-size: 1.25rem; line-height: 1.1; }
.nf-alert-success { background: rgba(89, 177, 67, .1); color: var(--nf-success); }
.nf-alert-info { background: rgba(34, 172, 211, .1); color: #1a8fb0; }
.nf-alert-warning { background: rgba(232, 110, 23, .1); color: var(--nf-warning); }
.nf-alert-danger { background: rgba(188, 41, 73, .1); color: var(--nf-danger); }

/* ---------- dropdowns ---------- */
.dropdown-menu { --bs-dropdown-border-color: transparent; --bs-dropdown-border-radius: 20px; --bs-dropdown-link-active-bg: var(--nf-primary-soft); --bs-dropdown-link-active-color: var(--nf-primary-strong); padding: .5rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); font-size: 1rem; }
.dropdown-item { border-radius: 12px; padding: .5rem .85rem; }
.dropdown-item.active, .dropdown-item:active { background: var(--nf-primary-soft); color: var(--nf-primary-strong); font-weight: 600; }
.dropdown-menu form { margin: 0; }
.dropdown-menu button.dropdown-item { width: 100%; text-align: left; }
.nf-workspace-item { display: flex; align-items: center; gap: .25rem; }
.nf-workspace-item > form:first-child { flex: 1 1 auto; }
.nf-default-star {
	display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px;
	background: none; color: var(--nf-muted); font-size: 1.05rem;
}
.nf-default-star:hover { background: var(--nf-fill); color: var(--nf-primary); }
.nf-default-star.active { color: var(--nf-primary); background: var(--nf-primary-soft); }

/* ---------- confirmation modal ---------- */
.btn-danger {
	--bs-btn-bg: var(--nf-danger); --bs-btn-border-color: var(--nf-danger); --bs-btn-color: #fff;
	--bs-btn-hover-bg: #a3213d; --bs-btn-hover-border-color: #a3213d; --bs-btn-hover-color: #fff;
	--bs-btn-active-bg: #a3213d; --bs-btn-active-border-color: #a3213d;
	--bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(188, 41, 73, .25);
}
/* modals: white, over the page dimmed and softly blurred (the tint is in the colour, so the blur is not faded by opacity) */
.modal { --bs-modal-bg: var(--nf-surface); }
.modal-backdrop { --bs-backdrop-bg: rgba(43, 43, 43, .28); --bs-backdrop-opacity: 1; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nf-modal { border: 0; border-radius: var(--nf-radius-card); box-shadow: 0 20px 50px rgba(0, 0, 0, .12); padding: 2rem 2rem 1.75rem; text-align: center; }
.nf-modal .modal-body { padding: 0; }
.nf-modal-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem; border-radius: 22px; background: rgba(188, 41, 73, .1); color: var(--nf-danger); font-size: 2rem; }
.nf-modal-title { font-size: 1.375rem; margin: 0 0 .5rem; }
.nf-modal-text { color: var(--nf-text); margin: 0 0 1.5rem; }
.nf-modal-actions { display: flex; justify-content: center; gap: .6rem; }
.nf-modal-actions .btn { min-width: 120px; }
/* a form in a modal: left aligned, icon + title + close in the head */
.nf-modal-form { text-align: left; }
.nf-modal-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .75rem; }
.nf-modal-head .nf-modal-icon { width: 52px; height: 52px; margin: 0; border-radius: 18px; font-size: 1.6rem; }
.nf-modal-head .nf-modal-title { flex: 1; margin: 0; }
.nf-modal-icon-primary { background: var(--nf-primary-soft) !important; color: var(--nf-primary) !important; }
.nf-modal-close { border: 0; background: none; color: var(--nf-muted); font-size: 1.3rem; padding: .35rem; border-radius: 10px; line-height: 1; }
.nf-modal-close:hover { background: var(--nf-fill); color: var(--nf-text); }
.nf-modal-form .nf-form-actions { margin-top: 1.5rem; }
.nf-modal-form .nf-form-actions .btn { min-width: 120px; }
.nf-modal-form .nf-form-actions .btn-primary { order: 2; }

/* ---------- public pages (sign-in) ---------- */
.nf-public { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem;
	background: radial-gradient(1200px 600px at 85% -10%, rgba(189, 50, 175, .07), transparent 60%), var(--nf-bg); }
.nf-public-card { width: 100%; max-width: 440px; background: var(--nf-surface); border-radius: var(--nf-radius-card); box-shadow: var(--nf-shadow); padding: 2.5rem 2.5rem 2rem; }
.nf-public-card .nf-brand { justify-content: center; padding: 0 0 1.75rem; }
.nf-public-card h1 { font-size: 1.75rem; margin-bottom: .35rem; }
.nf-public-card .btn-primary { width: 100%; }
.nf-public-links { margin-top: 1.25rem; text-align: center; font-size: .9375rem; }
/* language switch under the sign-in card */
.nf-public-locales { display: flex; justify-content: center; gap: .25rem; margin-top: 1rem; }
.nf-public-locales form { margin: 0; }
.nf-public-locales .btn.active { color: var(--nf-primary); font-weight: 600; }

/* ---------- responsive: sidebar becomes an off-canvas menu ---------- */
.nf-menu-toggle { display: none; }
@media (max-width: 991.98px) {
	.nf-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
	.nf-shell.nf-menu-open .nf-sidebar { transform: none; }
	.nf-main { margin-left: 0; }
	.nf-menu-toggle { display: inline-flex; }
	.nf-topbar, .nf-page-header, .nf-subnav { padding-left: 1rem; padding-right: 1rem; }
	.nf-bypass-bar { padding: 0 1rem; }
	.nf-content { padding: 0 1rem 1.5rem; }
	.nf-table td:first-child { padding-left: 1rem; }
	.nf-table { display: block; overflow-x: auto; white-space: nowrap; }
	.nf-page-header { flex-wrap: wrap; }
}

/* Phosphor Light icons are thin: a little larger inside buttons and badges */
.btn .ph-light { font-size: 1.2em; }
.nf-badge .ph-light { font-size: 1.15em; }
.nf-brand-mark .ph-light { font-size: 1.35rem; }

/* ---------- code: JSON schema editor, example requests ---------- */
textarea.nf-code, .nf-pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875rem; line-height: 1.5; }
.nf-pre { margin: 0; padding: .9rem 1rem; border-radius: var(--nf-radius-control); background: #f7f7f7; white-space: pre-wrap; word-break: break-word; }
.nf-copyable-block { display: flex; align-items: flex-start; width: 100%; }
.nf-copyable-block .nf-pre { flex: 1 1 auto; }

/* ---------- copy to clipboard ---------- */
.nf-copyable { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; }
.nf-copyable code { word-break: break-all; }
.nf-copy {
	flex: 0 0 auto; display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0;
	border: 0; border-radius: 10px; background: transparent; color: var(--nf-muted); font-size: 1.15rem; cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.nf-copy:hover, .nf-copy:focus-visible { background: var(--nf-primary-soft); color: var(--nf-primary); outline: none; }
.nf-copy.nf-copied { background: rgba(89, 177, 67, .12); color: var(--nf-success); }

/* ---------- API key scopes: compact grouped list ---------- */
.nf-scopes { white-space: nowrap; }
.nf-scope { display: block; font-size: .9375rem; line-height: 1.6; }
.nf-scope strong { font-weight: 600; }

/* ---------- a secret shown once (new API key) ---------- */
.nf-issued-key { border: 2px solid var(--nf-warning); margin-bottom: 2rem; }
.nf-secret code { font-size: 1.125rem; padding: .6rem .9rem; border-radius: 12px; background: var(--nf-primary-soft); color: var(--nf-text); user-select: all; }

/* ---------- toasts: confirmations after a save (flash messages and admin.js nfToast) ---------- */
.nf-toasts { position: fixed; top: calc(76px + var(--nf-bypass-h, 0px)); right: 1.5rem; z-index: 1090; display: flex; flex-direction: column; width: min(380px, calc(100vw - 2rem)); pointer-events: none; }
.nf-toast {
	pointer-events: auto; display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 1rem;
	background: var(--nf-surface); border-radius: 20px; box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
	margin-bottom: .6rem; overflow: hidden; user-select: text;
	opacity: 0; transform: translateY(-8px);
	transition: opacity .25s ease, transform .25s ease, max-height .3s ease, margin .3s ease, padding .3s ease;
}
/* leaving: fade out and collapse, the toasts below slide up */
.nf-toast.nf-toast-leave { opacity: 0; transform: translateX(16px); max-height: 0 !important; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
.nf-toast.nf-toast-show { opacity: 1; transform: none; }
.nf-toast-icon { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; font-size: 1.25rem; }
.nf-toast-text { flex: 1; padding-top: .3rem; line-height: 1.35; }
.nf-toast-close { border: 0; background: none; color: var(--nf-muted); font-size: 1.1rem; line-height: 1; padding: .3rem; border-radius: 8px; }
.nf-toast-close:hover { background: var(--nf-fill); color: var(--nf-text); }
.nf-toast-success .nf-toast-icon { background: rgba(89, 177, 67, .12); color: var(--nf-success); }
.nf-toast-info .nf-toast-icon { background: rgba(34, 172, 211, .12); color: var(--nf-info); }
.nf-toast-warning .nf-toast-icon { background: rgba(232, 110, 23, .12); color: var(--nf-warning); }
.nf-toast-danger .nf-toast-icon { background: rgba(188, 41, 73, .12); color: var(--nf-danger); }
/* ---------- API request tester (event type detail) ---------- */
.nf-link-button { border: 0; background: none; padding: 0; color: var(--nf-primary); font-weight: 600; }
.nf-link-button:hover { text-decoration: underline; }
.nf-api-result { margin-top: 1.25rem; }
.nf-api-status { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.nf-api-result .nf-pre { max-height: 260px; overflow: auto; margin-bottom: .5rem; }

/* ---------- collapsible help (<details class="nf-help">) ---------- */
.nf-help { margin-top: 1.25rem; padding: .85rem 1rem; border-radius: var(--nf-radius-control); background: var(--nf-fill); font-size: .875rem; }
.nf-help summary { cursor: pointer; font-weight: 600; color: var(--nf-primary); list-style: none; display: flex; align-items: center; gap: .4rem; }
.nf-help summary::-webkit-details-marker { display: none; }
.nf-help[open] summary { margin-bottom: .75rem; }
.nf-help .nf-pre { background: var(--nf-surface); }
.nf-help .nf-copyable-block { margin-bottom: .75rem; }
.nf-help ul { padding-left: 1.2rem; margin-bottom: .75rem; }

/* ---------- rules ---------- */
.nf-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.nf-rule-condition code { white-space: normal; word-break: break-word; }

/* ---------- condition builder (rule detail) ---------- */
.nf-cb-group { padding: .9rem 1rem; border-radius: var(--nf-radius-control); background: var(--nf-fill); }
.nf-cb-subgroup { background: var(--nf-surface); border: 1px dashed rgba(0, 0, 0, .12); }
.nf-cb-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; font-weight: 600; }
.nf-cb-head .nf-cb-mode { width: auto; }
.nf-cb-head .btn { margin-left: auto; }
.nf-cb-items { display: flex; flex-direction: column; gap: .5rem; }
.nf-cb-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: .5rem; align-items: center; }
.nf-cb-row input[hidden] { display: block !important; visibility: hidden; }
.nf-cb-empty { color: var(--nf-muted); font-size: .875rem; }
.nf-cb-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.nf-cb-note { margin-top: .5rem; color: var(--nf-warning); font-size: .875rem; }
.nf-cb-toggle { display: inline-block; margin-top: .5rem; font-size: .875rem; }
.nf-cb > .form-text { margin-top: .5rem; }
@media (max-width: 767.98px) {
	.nf-cb-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
	.nf-cb-row > input:first-child { grid-column: 1 / -1; }
}

/* ---------- notifications ---------- */
.nf-queue-counts { display: flex; flex-wrap: wrap; gap: .75rem; }
.nf-queue-counts a.nf-badge:hover { text-decoration: none; filter: brightness(.95); }

/* ---------- history and trace (F7-01) ---------- */
.nf-filter .form-label { margin-bottom: .25rem; font-size: .8125rem; color: var(--nf-muted); }
.nf-timeline { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--nf-line-soft); }
.nf-timeline li { position: relative; padding: 0 0 1.1rem .75rem; }
.nf-timeline li::before {
	content: ""; position: absolute; left: calc(-1.25rem - 7px); top: .3rem; width: 12px; height: 12px; border-radius: 50%;
	background: var(--nf-surface); border: 2px solid var(--nf-muted);
}
.nf-timeline-time { display: block; font-size: .8125rem; color: var(--nf-muted); }
.nf-timeline-delivered::before, .nf-timeline-read::before { border-color: var(--nf-success) !important; background: var(--nf-success) !important; }
.nf-timeline-failed::before { border-color: var(--nf-danger) !important; background: var(--nf-danger) !important; }
.nf-timeline-attempt::before, .nf-timeline-report::before { border-color: var(--nf-primary) !important; }
.nf-timeline-waiting::before { border-style: dashed !important; }
/* dashboard */
.nf-dash-table td, .nf-dash-table th { text-align: right; white-space: nowrap; }
.nf-dash-table td:first-child, .nf-dash-table th:first-child { text-align: left; }
.nf-check { display: flex; align-items: flex-start; gap: .6rem; padding: .45rem 0; }
.nf-check i { font-size: 1.25rem; line-height: 1.2; }
.nf-check-ok i { color: var(--nf-success); }
.nf-check-todo i { color: var(--nf-muted); }

/* ---------- e-mail editor (F3-04d, ADR-042): dark panel | canvas, in the spirit of topol.io ---------- */
.nf-ed {
	--ed-bg: #1f2230;
	--ed-bg-2: #282c3d;
	--ed-bg-3: #333849;
	--ed-line: #3b4054;
	--ed-text: #e5e7eb;
	--ed-muted: #b4bac4;
	display: grid; grid-template-columns: 340px minmax(0, 1fr); height: 100%; overflow: hidden; background: var(--nf-surface);
}
.nf-ed-side { display: flex; flex-direction: column; min-height: 0; background: var(--ed-bg); color: var(--ed-text); }
.nf-ed-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ed-line); }
.nf-ed-tabs button { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .7rem .25rem .6rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ed-muted); font-size: .75rem; font-weight: 600; }
.nf-ed-tabs button i { font-size: 1.35rem; }
.nf-ed-tabs button:hover { color: var(--ed-text); }
.nf-ed-tabs button.active { color: #fff; border-bottom-color: var(--nf-primary); background: var(--ed-bg-2); }
.nf-ed-pane { flex: 1; overflow-y: auto; padding: .9rem 1rem 2rem; scrollbar-color: var(--ed-bg-3) transparent; }
.nf-ed-hint { font-size: .8125rem; color: var(--ed-muted); margin: 0 0 .75rem; line-height: 1.4; }
.nf-ed-section { border-top: 1px solid var(--ed-line); padding: .8rem 0 .2rem; }
.nf-ed-section:first-child { border-top: 0; padding-top: 0; }
.nf-ed-section-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ed-muted); margin: 0 0 .6rem; }
.nf-ed-collapsible > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.nf-ed-collapsible > summary::-webkit-details-marker { display: none; }
.nf-ed-collapsible > summary::after { content: '+'; font-size: 1rem; font-weight: 400; }
.nf-ed-collapsible[open] > summary::after { content: '−'; }
.nf-ed-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.nf-ed-tiles-wide { grid-template-columns: repeat(2, 1fr); }
.nf-ed-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 78px; padding: .55rem .3rem; border: 1px solid var(--ed-line); border-radius: 10px; background: var(--ed-bg-2); color: var(--ed-text); font-size: .75rem; line-height: 1.2; text-align: center; cursor: grab; }
.nf-ed-tile i { font-size: 1.5rem; color: #e9a8e1; }
.nf-ed-tile:hover:not(:disabled) { border-color: var(--nf-primary); background: var(--ed-bg-3); }
.nf-ed-tile:disabled { cursor: default; opacity: .6; }
.nf-ed-layout { display: flex; gap: 3px; width: 64px; height: 26px; }
.nf-ed-layout > span { border-radius: 3px; background: #6b7186; }
.nf-ed-tile-layout .nf-ed-layout { width: 92px; height: 34px; }
.nf-ed-rowlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.nf-ed-rowlist button, .nf-ed-child, .nf-ed-parent { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .45rem .55rem; border: 1px solid var(--ed-line); border-radius: 8px; background: var(--ed-bg-2); color: var(--ed-text); font-size: .8125rem; text-align: left; }
.nf-ed-rowlist button span:last-child, .nf-ed-child span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.nf-ed-rowlist .nf-ed-layout { width: 40px; height: 18px; flex: none; }
.nf-ed-rowlist button:hover, .nf-ed-child:hover, .nf-ed-parent:hover { border-color: var(--nf-primary); }
.nf-ed-tile, .nf-ed-rowlist button { touch-action: none; }
.nf-ed-rowlist button { cursor: grab; }
/* smart elements (F3-04f): ready-made looks, data pickers */
.nf-ed-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .35rem; }
.nf-ed-look { display: flex; align-items: center; gap: .45rem; padding: .4rem .5rem; border: 1px solid var(--ed-line); border-radius: 8px; background: var(--ed-bg-2); color: var(--ed-text); font-size: .75rem; text-align: left; }
.nf-ed-look:hover, .nf-ed-look.active { border-color: var(--nf-primary); }
.nf-ed-look.active { background: var(--ed-bg-3); }
.nf-ed-look-colors { display: inline-flex; flex: none; }
.nf-ed-look-colors span { width: 12px; height: 12px; margin-right: -3px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; }
.nf-ed-datapath { display: flex; flex-direction: column; gap: .3rem; }
.nf-ed-datapath [hidden] { display: none; }
/* drag and drop (F3-04f): the label following the pointer, the line in the Struktura list */
.nf-ed-ghost { position: fixed; z-index: 2000; padding: .35rem .7rem; border-radius: 8px; background: var(--nf-primary); color: #fff; font-size: .8125rem; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); pointer-events: none; transform: translate(12px, 10px); }
.nf-ed-list-drop { position: fixed; z-index: 2000; height: 4px; border-radius: 2px; background: var(--nf-primary); pointer-events: none; }
body.nf-ed-dragging, body.nf-ed-dragging * { cursor: grabbing !important; user-select: none; }
.nf-ed-child { margin-bottom: .35rem; }
.nf-ed-child i { color: #e9a8e1; }
.nf-ed-parent { margin-bottom: .6rem; }
.nf-ed-parent .nf-ed-layout { width: 36px; height: 16px; flex: none; }
.nf-ed-head { margin-bottom: .6rem; }
.nf-ed-back { border: 0; background: transparent; color: var(--ed-muted); font-size: .8125rem; padding: 0; margin-bottom: .5rem; }
.nf-ed-back:hover { color: #fff; }
.nf-ed-head-title { display: flex; align-items: center; gap: .45rem; font-family: var(--nf-font-heading); font-size: 1.2rem; font-weight: 700; color: #fff; }
.nf-ed-head-title i { color: #e9a8e1; }
.nf-ed-head .nf-ed-hint { margin: .25rem 0 .5rem; }
.nf-ed-head-actions { display: flex; gap: .25rem; }
.nf-ed-icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border: 1px solid var(--ed-line); border-radius: 8px; background: var(--ed-bg-2); color: var(--ed-text); font-family: ui-monospace, Consolas, monospace; font-size: .8125rem; }
.nf-ed-icon-btn:hover { border-color: var(--nf-primary); color: #fff; }
.nf-ed-icon-btn.danger:hover { border-color: var(--nf-danger); background: var(--nf-danger); }
.nf-ed-errors-list { margin: 0 0 .6rem; padding: .5rem .5rem .5rem 1.5rem; border-radius: 8px; background: rgba(188, 41, 73, .2); color: #fca5b5; font-size: .8125rem; }
.nf-ed-field { display: block; margin-bottom: .7rem; }
.nf-ed-label { display: block; margin-bottom: .25rem; font-size: .8125rem; color: var(--ed-text); }
.nf-ed-required { color: #f472b6; }
.nf-ed-field.is-missing .nf-ed-label { color: #fbbf24; }
.nf-ed-help { display: block; margin-top: .2rem; font-size: .75rem; color: var(--ed-muted); font-family: ui-monospace, Consolas, monospace; }
.nf-ed .form-control, .nf-ed .form-select { border-color: var(--ed-line); border-radius: 8px; background-color: var(--ed-bg-2); color: var(--ed-text); min-height: 32px; font-size: .8125rem; }
.nf-ed .form-control:focus, .nf-ed .form-select:focus { border-color: var(--nf-primary); box-shadow: 0 0 0 2px rgba(189, 50, 175, .35); background-color: var(--ed-bg-3); color: #fff; }
.nf-ed .form-control::placeholder { color: #6b7186; }
.nf-ed .form-control:disabled, .nf-ed .form-select:disabled { opacity: .7; background-color: var(--ed-bg-2); }
.nf-ed .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.nf-ed .form-select option { background: var(--ed-bg-2); }
.nf-ed .btn-outline-light { border-color: var(--ed-line); color: var(--ed-text); font-size: .8125rem; border-radius: 8px; }
.nf-ed .btn-outline-light:hover { background: var(--ed-bg-3); border-color: var(--nf-primary); color: #fff; }
.nf-ed-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .6rem; font-size: .8125rem; color: #e9a8e1; }
.nf-ed-link:hover { color: #fff; }
.nf-ed-tile-block { min-height: 64px; }
.nf-ed-mono { font-family: ui-monospace, Consolas, monospace; }
.nf-ed-input-vars { display: flex; gap: .3rem; align-items: center; }
.nf-ed-input-vars > input { flex: 1; min-width: 0; }
.nf-ed-var-list { max-height: 320px; overflow-y: auto; font-size: .8125rem; }
.nf-ed-var-list .dropdown-header { font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; }
.nf-ed-var-desc { display: block; max-width: 260px; overflow: hidden; color: var(--nf-muted); font-size: .75rem; white-space: nowrap; text-overflow: ellipsis; }
.nf-ed-segment { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 9px; background: var(--ed-bg-2); border: 1px solid var(--ed-line); }
.nf-ed-segment button { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 2rem; border: 0; border-radius: 7px; background: transparent; color: var(--ed-muted); padding: .3rem .5rem; font-size: .8125rem; line-height: 1.2; }
.nf-ed-segment button i { display: block; font-size: 1.35rem; line-height: 1; }
.nf-ed-segment button.active { background: var(--nf-primary); color: #fff; }
.nf-ed-layouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.nf-ed-layouts button { display: flex; justify-content: center; padding: .45rem; border: 1px solid var(--ed-line); border-radius: 8px; background: var(--ed-bg-2); }
.nf-ed-layouts button .nf-ed-layout { width: 100%; height: 20px; }
.nf-ed-layouts button.active { border-color: var(--nf-primary); background: var(--ed-bg-3); }
.nf-ed-layouts button.active .nf-ed-layout > span { background: #e9a8e1; }
.nf-ed-range { display: flex; align-items: center; gap: .5rem; }
.nf-ed-range .form-range { flex: 1; }
.nf-ed .form-range::-webkit-slider-runnable-track { background: var(--ed-bg-3); }
.nf-ed .form-range::-webkit-slider-thumb { background: var(--nf-primary); }
.nf-ed-number.form-control { width: 64px; flex: none; padding: .2rem .35rem; text-align: right; }
.nf-ed-switch { display: flex; align-items: center; gap: .55rem; margin: 0 0 .7rem; padding-left: 2.5em; font-size: .8125rem; }
.nf-ed .form-check-input { background-color: var(--ed-bg-3); border-color: var(--ed-line); }
.nf-ed .form-check-input:checked { background-color: var(--nf-primary); border-color: var(--nf-primary); }
.nf-ed-color-row { display: flex; align-items: center; gap: .4rem; position: relative; }
.nf-ed-hex.form-control { width: 96px; flex: none; }
.nf-ed-native-color { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nf-ed-swatch { width: 24px; height: 24px; flex: none; border-radius: 6px; border: 2px solid var(--ed-bg); box-shadow: 0 0 0 1px var(--ed-line); background: var(--swatch, transparent); padding: 0; }
.nf-ed-swatch.active { box-shadow: 0 0 0 2px #fff; }
.nf-ed-swatch-main { width: 32px; height: 32px; border-radius: 8px; }
.nf-ed-swatch.is-none { background: linear-gradient(135deg, transparent 45%, #f87171 45%, #f87171 55%, transparent 55%), var(--ed-bg-2); }
.nf-ed-color-pop { margin-top: .4rem; padding: .55rem; border: 1px solid var(--ed-line); border-radius: 10px; background: var(--ed-bg-2); }
.nf-ed-color-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin-top: .5rem; }
.nf-ed-palette { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.nf-ed-color-pop .nf-ed-palette { margin-bottom: 0; }
.nf-ed-palette-color { position: relative; }
.nf-ed-palette-remove { display: none; position: absolute; top: -7px; right: -7px; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; background: var(--nf-danger); color: #fff; font-size: .6rem; line-height: 16px; }
.nf-ed-palette-color:hover .nf-ed-palette-remove { display: block; }
.nf-ed-lines, .nf-ed-list { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.nf-ed-line { display: flex; align-items: center; gap: .3rem; width: 100%; }
.nf-ed-line > .nf-ed-input-vars { flex: 1; min-width: 0; }
.nf-ed-line-no { width: 1.4rem; color: var(--ed-muted); font-size: .75rem; }
.nf-ed-list-item { width: 100%; padding: .6rem; border: 1px solid var(--ed-line); border-radius: 10px; }
/* the panel's buttons sit in the middle, as everywhere in Notify: Uložit značku, Přidat, Odebrat */
.nf-ed-section > .btn, .nf-ed-list-item > .btn { display: flex; width: fit-content; margin-inline: auto; }
.nf-ed-lines > .btn, .nf-ed-list > .btn { align-self: center; }
.nf-ed-rte { border: 1px solid var(--ed-line); border-radius: 8px; overflow: hidden; }
.nf-ed-rte-toolbar { display: flex; flex-wrap: wrap; gap: .1rem; padding: .2rem; background: var(--ed-bg-3); align-items: center; }
.nf-ed-rte-toolbar > button { border: 0; background: transparent; border-radius: 6px; padding: .15rem .4rem; color: var(--ed-text); }
.nf-ed-rte-toolbar > button:hover { background: var(--ed-bg-2); color: #fff; }
.nf-ed-rte-link { display: flex; gap: .25rem; padding: .3rem; width: 100%; }
.nf-ed-rte-area.form-control { border: 0; border-radius: 0; min-height: 80px; max-height: 260px; overflow-y: auto; }
.nf-ed-rte-area p { margin: 0 0 .4rem; }
.nf-ed-rte-area a { color: #f0abfc; text-decoration: underline; }
.nf-ed-stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #e9ebf0; }
.nf-ed-top { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; background: var(--nf-surface); border-bottom: 1px solid var(--nf-line-soft); flex-wrap: wrap; }
/* segmented switches (undo / redo, Úpravy / Náhled, počítač / mobil): one pill, the chosen part raised */
.nf-ed-top .nf-segmented { gap: 2px; padding: 3px; border-radius: 999px; background: var(--nf-fill); flex: 0 0 auto; }
.nf-ed-top .nf-segmented > .btn { margin: 0 !important; border: 0 !important; border-radius: 999px !important; padding: .3rem .8rem; color: var(--nf-muted); background: transparent; box-shadow: none; }
.nf-ed-top .nf-segmented > .btn:hover:not(:disabled) { color: var(--nf-primary); }
.nf-ed-top .nf-segmented > .btn.active { color: var(--nf-primary); background: var(--nf-surface); box-shadow: 0 1px 3px rgba(43, 43, 43, .14); }
.nf-ed-top .nf-segmented > .btn:disabled { opacity: .45; }
.nf-ed-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex: 0 0 auto; }
.nf-ed-subject { flex: 1; min-width: 120px; font-size: .8125rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nf-ed-subject-label { color: var(--nf-muted); }
.nf-ed-status { text-align: right; font-size: .8125rem; color: var(--nf-muted); white-space: nowrap; }
.nf-ed-test { width: 18rem; }
.nf-ed-errors { margin: .5rem .75rem 0; padding: .6rem .8rem; border-radius: 12px; background: rgba(188, 41, 73, .08); color: var(--nf-danger); font-size: .8125rem; }
.nf-ed-errors ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.nf-ed-canvas { flex: 1; min-height: 0; overflow: hidden; display: flex; justify-content: center; padding: 12px 16px; }
.nf-ed-frame { flex: none; border: 0; border-radius: 6px; background: #fff; transform-origin: top center; box-shadow: 0 2px 12px rgba(17, 24, 39, .08); }
.nf-ed-frame.is-mobile { border-radius: 24px; box-shadow: 0 0 0 10px #1f2230, 0 10px 30px rgba(17, 24, 39, .25); }
@media (max-width: 991.98px) {
	.nf-shell-full .nf-main { height: auto; }
	.nf-ed { grid-template-columns: 1fr; height: auto; }
	.nf-ed-side { max-height: 55vh; }
	.nf-ed-stage { height: 80vh; }
}

/* versions of a template (F3-05): the list and the preview of the selected one */
.nf-versions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.25rem; align-items: start; }
.nf-versions tr.is-selected td { background: var(--nf-primary-soft); }
.nf-version-preview { padding: 0; overflow: hidden; }
.nf-version-preview-head { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--nf-line-soft); }
.nf-version-frame { display: block; width: 100%; height: 75vh; border: 0; background: #eef2f6; }
@media (max-width: 991.98px) { .nf-versions { grid-template-columns: 1fr; } }

/* ---------- WhatsApp template preview (F5-02) ---------- */
.nf-wa-phone { background: #efe7dd; border-radius: 18px; padding: 1rem; }
.nf-wa-bubble { background: #fff; border-radius: 0 12px 12px 12px; padding: .55rem .75rem .45rem; max-width: 340px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); color: #111b21; font-size: .92rem; line-height: 1.4; word-wrap: break-word; }
.nf-wa-header { font-weight: 700; margin-bottom: .25rem; }
.nf-wa-footer { color: #667781; font-size: .8rem; margin-top: .3rem; }
.nf-wa-button { background: #fff; color: #027eb5; text-align: center; max-width: 340px; margin-top: 2px; padding: .45rem .75rem; border-radius: 8px; font-size: .9rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.nf-wa-var { background: rgba(37, 211, 102, .15); border-radius: 4px; padding: 0 .15rem; }
.nf-wa-var-missing { background: rgba(232, 110, 23, .15); }
.nf-wa-button-slot { border-top: 1px solid var(--nf-border, rgba(0, 0, 0, .08)); padding-top: .75rem; margin-top: .75rem; }
.nf-wa-button-slot[data-type=""] .nf-wa-button-label,
.nf-wa-button-slot:not([data-type="url"]) .nf-wa-button-url,
.nf-wa-button-slot:not([data-type="phone"]) .nf-wa-button-phone { display: none; }

/* ---------- SMS template preview (F6-02) ---------- */
.nf-sms-bubble { background: var(--nf-fill, #f1f1f4); border-radius: 16px 16px 16px 4px; padding: .6rem .8rem; max-width: 360px; font-size: .92rem; line-height: 1.4; word-wrap: break-word; }
.nf-sms-counter { font-size: .8rem; color: var(--nf-muted); margin-top: .25rem; }

/* ---------- advanced settings, collapsed (<details class="nf-card nf-advanced">, F8) ---------- */
.nf-advanced > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .45rem; font-weight: 600; }
.nf-advanced > summary::-webkit-details-marker { display: none; }
.nf-advanced > summary::after { content: "+"; margin-left: auto; color: var(--nf-muted); font-weight: 400; font-size: 1.1rem; }
.nf-advanced[open] > summary::after { content: "−"; }
.nf-advanced-fields { margin: .25rem 0 1rem; padding: .75rem 1rem; border-radius: var(--nf-radius-control); background: var(--nf-fill); }
.nf-advanced-fields > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--nf-primary); }
.nf-advanced-fields > summary::-webkit-details-marker { display: none; }
.nf-advanced-fields[open] > summary { margin-bottom: 1rem; }
.nf-advanced-fields > summary .text-muted { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---------- setup guide on the dashboard (F8-05) ---------- */
.nf-guide-steps { list-style: none; margin: 0; padding: 0; }
.nf-guide-step { display: flex; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--nf-line-soft); }
.nf-guide-step:first-child { border-top: 0; }
.nf-guide-mark { flex: 0 0 1.75rem; height: 1.75rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8125rem; background: var(--nf-fill); color: var(--nf-muted); }
.nf-guide-step.is-done .nf-guide-mark { background: var(--nf-success); color: #fff; }
.nf-guide-step.is-done strong { font-weight: 400; color: var(--nf-muted); }
.nf-guide-step.is-current .nf-guide-mark { background: var(--nf-primary); color: #fff; }
.nf-guide-body { flex: 1; padding-top: .2rem; }
.nf-guide-body p { margin: .35rem 0 .6rem; font-size: .875rem; color: var(--nf-muted); }
.nf-guide-body .btn { margin: 0 .35rem .25rem 0; }
/* compact guide: only the current step; the toggle swaps its label */
.nf-guide.is-compact .nf-guide-step:not(.is-current) { display: none; }
.nf-guide.is-compact .nf-guide-step.is-current { border-top: 0; }
.nf-guide .nf-guide-less, .nf-guide.is-compact .nf-guide-more { display: inline; }
.nf-guide .nf-guide-more, .nf-guide.is-compact .nf-guide-less { display: none; }
.nf-guide-progress { width: 7rem; height: .4rem; border: 0; border-radius: 1rem; overflow: hidden; background: var(--nf-fill); appearance: none; }
.nf-guide-progress::-webkit-progress-bar { background: var(--nf-fill); }
.nf-guide-progress::-webkit-progress-value { background: var(--nf-success); border-radius: 1rem; }
.nf-guide-progress::-moz-progress-bar { background: var(--nf-success); border-radius: 1rem; }

/* ---------- sample rules (Rules › Ukázky) ---------- */
.nf-examples { text-align: left; min-height: 0; overflow-y: auto; margin-right: -.5rem; padding-right: .5rem; }
.nf-examples .nf-help { margin-top: .6rem; }
.nf-examples .nf-kv { width: auto; }
.nf-examples .nf-kv th, .nf-examples .nf-kv td { text-align: left; padding: .2rem 1rem .2rem 0; }
.nf-examples .nf-help summary .ph-light { font-size: 1.15rem; }
.nf-example-table { width: 100%; margin-bottom: .6rem; border-collapse: collapse; background: var(--nf-surface); border-radius: 12px; overflow: hidden; font-size: .8125rem; }
.nf-example-table th { padding: .45rem .7rem; font-weight: 700; text-align: left; border-bottom: 1px solid var(--nf-line); }
.nf-example-table td { padding: .45rem .7rem; border-top: 1px solid var(--nf-line-soft); }
.nf-check-table td { vertical-align: top; }
.nf-check-table td:first-child { width: 55%; }
.nf-check-group th { padding-top: .8rem; color: var(--nf-primary); background: var(--nf-fill); }
.nf-examples .nf-kv th { font-weight: 600; padding-right: 1rem; }

/* ---------- messages of each event side by side (Pravidla › Náhledy) ---------- */
.nf-preview-event { margin-bottom: 2rem; }
.nf-preview-card { height: 100%; }
.nf-preview-item + .nf-preview-item { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--nf-line-soft); }
.nf-preview-frame { display: block; width: 100%; height: 520px; border: 1px solid var(--nf-line); border-radius: 12px; background: #fff; }

/* ---------- the help (Nápověda, ADR-075): Markdown articles ---------- */
.nf-help-card { color: var(--nf-text); text-decoration: none; transition: box-shadow .15s; }
.nf-help-card:hover { box-shadow: 0 0 0 2px var(--nf-primary-ring); color: var(--nf-text); }
.nf-help-article { line-height: 1.6; overflow-wrap: anywhere; }
.nf-help-article > :first-child { margin-top: 0; }
.nf-help-article h2 { font-family: var(--nf-font-heading); font-size: 1.25rem; margin: 2rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--nf-line-soft); }
.nf-help-article h3 { font-family: var(--nf-font-heading); font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.nf-help-article hr { margin: 2rem 0; border-color: var(--nf-line); }
.nf-help-article pre { background: var(--nf-fill); border: 1px solid var(--nf-line); border-radius: 12px; padding: .85rem 1rem; overflow-x: auto; font-size: .8125rem; tab-size: 2; }
.nf-help-article pre code { white-space: pre; overflow-wrap: normal; }
.nf-help-article :not(pre) > code { background: var(--nf-fill); border-radius: 6px; padding: .1rem .35rem; color: var(--nf-primary-strong); }
.nf-help-article .nf-help-table { width: 100%; font-size: .875rem; }
@media (max-width: 767.98px) { .nf-help-article .nf-help-table { display: block; overflow-x: auto; } }
.nf-help-article .nf-help-table th { white-space: nowrap; }
.nf-help-article li + li { margin-top: .25rem; }

/* ---------- secrets (ADR-077): "••••1234", an eye, a copy button; the eye in a password field ---------- */
.nf-secret-value code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.nf-input-eye { position: relative; display: flex; align-items: center; }
.nf-input-eye .form-control { padding-right: 2.75rem; }
.nf-input-eye:has([data-nf-input-copy]:not([hidden])) .form-control { padding-right: 4.75rem; }
.nf-input-eye-button { position: absolute; top: 50%; right: .5rem; transform: translateY(-50%); border: 0; background: transparent; color: var(--nf-muted); padding: .25rem .4rem; line-height: 1; border-radius: 8px; }
.nf-input-eye-button[data-nf-input-copy] { right: 2.5rem; }
.nf-input-eye-button.nf-copied { color: var(--nf-success); }
/* the stored secret's mask (or the whole of it) as the placeholder: readable, monospace */
.nf-input-stored .form-control::placeholder { color: var(--nf-text); opacity: .75; font-family: var(--bs-font-monospace); letter-spacing: .02em; }
.nf-input-eye-button:hover, .nf-input-eye-button[aria-pressed="true"] { color: var(--nf-primary); }
.nf-input-eye-button:focus-visible { outline: 2px solid var(--nf-primary-ring); }
/* a text Meta would refuse: a warning under the field, the variable marked in the preview */
.nf-field-warning { color: var(--nf-warning); }
.nf-wa-var-forbidden { background: rgba(188, 41, 73, .15); color: var(--nf-danger); text-decoration: line-through; }

/* a count by a menu item: something there needs attention (MenuAlert) */
.nf-nav-count { margin-left: auto; min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 600; line-height: 1; color: #fff; }
.nf-nav-count-danger { background: var(--nf-danger); }
.nf-nav-count-warning { background: var(--nf-warning); }
.nf-subnav a .nf-nav-count { margin-left: .15rem; min-width: 1.25rem; height: 1.25rem; font-size: .7rem; }

/* tooltips of badges and counts (Bootstrap's, admin.js) */
.tooltip { --bs-tooltip-bg: var(--nf-sidebar-bg); --bs-tooltip-color: #fff; --bs-tooltip-opacity: 1; --bs-tooltip-padding-x: .75rem; --bs-tooltip-padding-y: .5rem;
	--bs-tooltip-font-size: .8125rem; --bs-tooltip-border-radius: .6rem; --bs-tooltip-max-width: 320px; }
.tooltip .tooltip-inner { text-align: left; line-height: 1.4; box-shadow: 0 6px 20px rgba(43, 43, 43, .22); }
.nf-badge[title], .nf-nav-count[title], code[title], [data-nf-tip] { cursor: help; }
a [data-nf-tip], a[data-nf-tip], .nf-nav a .nf-nav-count[title], .nf-subnav a .nf-nav-count[title], a.nf-badge[title] { cursor: pointer; }

/* number inputs without the spinner arrows (the value is typed, or set by the slider beside it) */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* a number with its unit (Zpoždění: 2 | dny) */
.nf-input-unit { flex-wrap: nowrap; max-width: 22rem; }
.nf-input-unit > .form-control { flex: 1 1 auto; }
.nf-input-unit > .form-select { flex: 0 0 9rem; }
