/* nuBuilder Next – small layer on top of Bootstrap 5.3 (works in light and dark mode) */

:root {
	--nu-accent: #2f6fd6;
	--nu-accent-2: #1fa39a;
	--nu-surface: var(--bs-body-bg);
	--nu-page: #f4f6f9;
	--nu-desk: #e6eaf0;        /* page around the content sheet on wide screens */
	--nu-sheet-line: #d5dbe3;
	--nu-datalist-arrow: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	--nu-sb-w: 260px;
	--nu-sb-rail: 64px;
	--nu-nav-h: 57px;
	--nu-sticky-top: var(--nu-nav-h);
	--nu-sticky-h: 0px;
	--nu-sb-fav: #c27803;
	--nu-sb-fav-text: #9a5b00;
	--nu-sb-active: color-mix(in srgb, var(--nu-accent) 10%, var(--nu-surface));
	--nu-sb-track: #f1f5f9;
	--nu-sb-thumb: #cbd5e1;
	--nu-sb-thumb-hover: #94a3b8;
	--nu-row-sel: color-mix(in srgb, var(--bs-primary) 12%, transparent);
}
[data-bs-theme="dark"] {
	--nu-page: #14171c;
	--nu-desk: #0b0d10;
	--nu-sheet-line: #2b313a;
	--nu-surface: #1c2027;
	--nu-datalist-arrow: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	--nu-sb-fav: #e3a33b;
	--nu-sb-fav-text: #e3a33b;
	--nu-sb-active: color-mix(in srgb, #5ea4e8 16%, var(--nu-surface));
	--nu-sb-track: #1e293b;
	--nu-sb-thumb: #475569;
	--nu-sb-thumb-hover: #64748b;
	--nu-row-sel: color-mix(in srgb, var(--bs-primary) 22%, transparent);
}

body.nu-app, body.nu-center { background: var(--nu-page); }
.card { --bs-card-bg: var(--nu-surface); }
.card-header { background: transparent; }

/* navbar */
.nu-navbar { background: var(--nu-surface); }
/* the navigation bar spans the window – the logo sits at the left with a small margin, the same on every page; the scrollbar's
   room is always kept, so nothing shifts between pages with and without a scrollbar */
.nu-navbar .nuNavInner { padding-inline: 1rem; }
/* page content: full width with the top bar's 1rem on both sides – the left edge lines up with the logo; centred only above 1920 px */
.nuContainer { width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: 1rem; }
@media (max-width: 575.98px) { .nuContainer { padding-inline: .75rem; } }   /* phones: Bootstrap's gutter as before – every pixel counts for button rows */
html { scrollbar-gutter: stable; scroll-padding-top: calc(var(--nu-sticky-top, 57px) + var(--nu-sticky-h, 0px) + .5rem); }
.nu-navbar .nav-link { border-radius: .5rem; padding-inline: .75rem !important; white-space: nowrap; }
.nu-navbar .nav-link.active { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.nu-user-name { max-width: 12rem; }

.nu-logo {
	display: inline-grid; place-items: center;
	width: 2rem; height: 2rem; border-radius: .6rem;
	background: linear-gradient(135deg, var(--nu-accent), var(--nu-accent-2));
	color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: -.02em;
}
.nu-logo-lg { width: 3.25rem; height: 3.25rem; border-radius: .9rem; font-size: 1.4rem; }
/* nuBuilder Next logo (nu_brand_logo): light / dark version follow the theme */
.nu-brand { display: inline-flex; align-items: center; line-height: 1; }
.nu-brand img { height: 2rem; width: auto; max-width: 100%; }
.nu-brand-lg img { height: 3.5rem; }
.nu-brand .nu-brand-dark, [data-bs-theme="dark"] .nu-brand .nu-brand-light { display: none; }
[data-bs-theme="dark"] .nu-brand .nu-brand-dark { display: inline; }
.navbar-brand .nu-brand img { height: 1.9rem; }
.nu-brand img { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }   /* the logo is never selected (double click, long press) */
@media (max-width: 380px) { .navbar-brand .nu-brand img { height: 1.6rem; } }
/* branding (Admin tools → Branding): own logo – any aspect ratio, at most 32 px high in the top bar, 72 px on sign-in pages;
   title next to it; environment label (colour from the generated ?p=brand&a=css) and a line of its colour at the top of the page */
.nu-brand-own img { height: auto; max-height: 2rem; max-width: 12rem; object-fit: contain; }
.navbar-brand .nu-brand-own img { height: auto; max-height: 2rem; }
.nu-brand-own.nu-brand-lg img { max-height: 4.5rem; max-width: 16rem; }
.nu-brand-title { font-weight: 600; font-size: 1.05rem; color: var(--bs-emphasis-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18rem; }
@media (max-width: 575.98px) { .nu-brand-title { max-width: 9rem; font-size: .95rem; } }
.nuEnvLabel { display: inline-block; padding: .2rem .55rem; border-radius: .375rem; font-size: .75rem; font-weight: 700; letter-spacing: .05em;
	text-transform: uppercase; line-height: 1.2; background: #dc3545; color: #fff; white-space: nowrap; }
html.nu-env .nu-navbar, html.nu-env body:not(.nu-app) { border-top: 4px solid var(--nu-env, #dc3545); }
.brandPreviewBox { border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: 1rem; background: var(--bs-body-bg); }
.brandLogoPrev { max-height: 4rem; max-width: 14rem; }
.brandLogoPrevDark { background: #1c2027; padding: .5rem; border-radius: .375rem; }

/* centered pages (login, errors) */
.nu-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; }
.nu-card-narrow { width: 100%; max-width: 26rem; }
.nu-card-narrow.ufCard { max-width: 39rem; }  /* custom user field edit form: 50 % wider */
.ufCard .ufEditBy { max-width: 360px; }   /* wider "Edited by" on desktop (Type gets col-lg-4), the long option fits */
.nu-login { background:
	radial-gradient(60rem 30rem at 10% -10%, rgba(47, 111, 214, .12), transparent 60%),
	radial-gradient(50rem 30rem at 110% 110%, rgba(31, 163, 154, .12), transparent 60%),
	var(--nu-page); }

/* login page from $nuWelcomeBodyInnerHTML (nuconfig.php); nuBuilder's class names nuLogin, nuLoginInput, nuButton look like nuBuilder Next */
.nu-login-custom { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 1rem 1.5rem; }
.nu-login-tools { position: absolute; top: 1rem; inset-inline-end: 1rem; display: flex; gap: .5rem; }
.nu-login-msg { width: 100%; max-width: 26rem; }
.nu-login-custom .nuLogin { width: fit-content; max-width: 100%; margin: 0 auto; padding: 2rem; border-radius: var(--bs-border-radius-lg);
	background: var(--bs-body-bg); box-shadow: var(--bs-box-shadow-sm); }
.nu-login-custom .nuLogin table { margin: 0 auto; }
.nu-login-custom .nuLogin img { max-width: 100%; height: auto; }
.nu-login-custom .nuLoginInput { display: block; width: 16rem; max-width: 100%; padding: .45rem .75rem; color: var(--bs-body-color);
	background: var(--bs-body-bg); border: var(--bs-border-width) solid var(--bs-border-color); border-radius: var(--bs-border-radius); }
.nu-login-custom .nuLoginInput:focus { outline: 0; border-color: #86b7fe; box-shadow: 0 0 0 .1rem rgb(140 180 239 / 8%); }
.nu-login-custom .nuButton { padding: .4rem 1rem; color: #fff; background: var(--bs-primary); border: 0; border-radius: var(--bs-border-radius); cursor: pointer; }
.nu-login-custom .nuButton:hover { filter: brightness(.92); }

/* inputs with a suggestion list (HTML5 datalist): always show an arrow like a select. Chrome draws its own arrow only on
   hover and Bootstrap hides it, so the arrow is a background image (same as .form-select) and a click on it opens the
   list (assets/js/nuapp.js, showPicker). Not with a validation icon (is-invalid / is-valid use the same place). */
input.form-control[list]:not(.is-invalid):not(.is-valid) {
	padding-inline-end: 2.25rem; background-image: var(--nu-datalist-arrow); background-repeat: no-repeat;
	background-position: right .75rem center; background-size: 16px 12px; }

/* lighter focus ring on inputs */
.form-control:focus { box-shadow: 0 0 0 .1rem rgb(140 180 239 / 8%); }

/* password field with eye button inside a floating label */
.nu-pw { position: relative; }
.nu-pw .form-control { padding-inline-end: 3rem; }
.nu-pw-toggle { position: absolute; inset-inline-end: .25rem; top: 50%; transform: translateY(-50%); color: var(--bs-secondary-color); z-index: 5; }

/* home tiles */
.nu-tile { transition: transform .12s ease, box-shadow .12s ease; border: 1px solid var(--bs-border-color-translucent); }
.nu-tile:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .08) !important; }
.nu-tile-icon {
	display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: .8rem;
	background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); font-size: 1.4rem;
}

/* tables */
.nu-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--bs-secondary-color); font-weight: 600; white-space: nowrap; }
.nu-sort { color: inherit; text-decoration: none; }
.nu-sort:hover { color: var(--bs-body-color); }
.card > .table-responsive:first-child .table { border-top-left-radius: var(--bs-card-inner-border-radius); }

/* rights grid */
.nu-rights-wrap { max-height: 65vh; overflow: auto; }
.nu-rights thead th { background: var(--nu-surface); font-weight: 600; z-index: 2; }
.nu-rights .form-check-input { cursor: pointer; }
.nu-rights-filter { max-width: 15rem; }
/* filter of the form rights grid: chips (one chosen = light blue, as a chosen outline button) + selects */
.accRightsFlt .accFltChip { --bs-btn-padding-x: .75rem; border: 1px solid var(--bs-border-color); border-radius: 999px; color: var(--bs-secondary-color); background: var(--bs-body-bg); }
.accRightsFlt .accFltChip:hover { background: var(--bs-tertiary-bg); }
.accRightsFlt .accFltChip.active { background: #e7f1ff; border-color: #9ec5fe; color: #0a58ca; font-weight: 600; }
[data-bs-theme="dark"] .accRightsFlt .accFltChip.active { background: #0b2a55; border-color: #3d6fb4; color: #9ec5fe; }
.accRightsFlt .accFltSep { width: 1px; align-self: stretch; background: var(--bs-border-color); margin: 0 .25rem; }
.accRightsFlt .accFltSel { width: auto; min-width: 7rem; max-width: 10rem; flex: 0 1 auto; }
@media (max-width: 575.98px) { .accRightsFlt .accFltSep { display: none; } }
/* breathing room at the card edges of tables */
.card .table > :not(caption) > * > *:first-child { padding-inline-start: 1rem; }
.card .table > :not(caption) > * > *:last-child { padding-inline-end: 1rem; }
.breadcrumb a { text-decoration: none; }
.nu-row-link { cursor: pointer; }
/* scroll box = containing block: absolutely positioned children (e.g. .visually-hidden headers) stay inside it and do not widen the page on phones */
.table-responsive { position: relative; }

/* access level: the blue Add button sits between grey ones – in an input group the next button covers its right border */
.input-group > .js-add-form-btn { position: relative; z-index: 4; }   /* Bootstrap gives every .btn of an input group z-index 2 – the later one wins; 5 = hover / focus */
.ts-dropdown.nuAddFormDd { z-index: 1050; }   /* above the sticky header and selects of the rights grid, below dialogs */
.nu-scroll { max-height: 18rem; overflow: auto; }

fieldset[disabled] .form-control, fieldset[disabled] .form-select { background-color: var(--bs-tertiary-bg); }

@media print {
	.nu-navbar, footer, .btn { display: none !important; }
	body.nu-app { background: #fff; }
}

/* 2FA */
.nuQr { width: 200px; height: 200px; background: #fff; padding: 6px; border-radius: .5rem; border: 1px solid var(--bs-border-color); }
.nuQr svg { width: 100%; height: 100%; display: block; }
.nuSecret { font-size: .95rem; letter-spacing: .05em; }
.nuOtp { font-size: 1.4rem; letter-spacing: .35em; text-align: center; }
.nu-logo-lg .bi { font-size: 1.5rem; }

/* Mobile: dropdowns of the collapsed navbar open to the right of their button (Bootstrap positions navbar menus statically,
   so right-aligned menus of buttons at the left edge would leave the screen) */
@media (max-width: 767.98px) {
	.nu-navbar .dropdown-menu-end[data-bs-popper] { inset-inline-end: auto; inset-inline-start: 0; max-width: calc(100vw - 2rem); }
}

/* ---------------------------------------------------------------- e-mail */
.nuMailBody { display: block; width: 100%; min-height: 480px; border: 0; border-radius: var(--bs-card-border-radius); background: #fff; }
.nuMailDebug { max-height: 460px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.nuPurgeDays { width: 5.5rem; }
.nuPreWrap { white-space: pre-wrap; }

/* ---------------------------------------------------------------- formats */
.nuNegative { color: var(--bs-danger) !important; }
.nuFmtType { font-weight: 600; }
.nuFmtType-D { background: var(--bs-info-bg-subtle); color: var(--bs-info-text-emphasis); }
.nuFmtType-N { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.nuFmtType-T { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); }
.nuFmtKey { font-size: .95em; white-space: pre; }
#fmtTable tbody tr[data-format-id], #fmtTable tbody tr[data-format-key] { cursor: pointer; }
.nuFmtBuiltin td { color: var(--bs-secondary-color); }
.nfdMono { font-family: var(--bs-font-monospace); }
.nfdResult { border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); padding: .75rem 1rem; background: var(--bs-tertiary-bg); }
.nfdResult code { white-space: pre; }
.nfdPreview { display: grid; gap: .25rem; margin-top: .25rem; }
.nfdPreviewRow { display: flex; align-items: center; flex-wrap: wrap; }
.nfdLegend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--bs-secondary-color); }

/* ---------------------------------------------------------------- e-mail templates */
.emtFields { max-height: 70vh; overflow: auto; }
.emtField { display: grid; grid-template-columns: 1fr auto; gap: 0 .5rem; padding: .35rem .75rem; }
.emtFieldLabel { font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emtFieldId { font-size: .8rem; }
.emtFieldMeta { grid-column: 1 / -1; font-size: .75rem; color: var(--bs-secondary-color); }
.emtActive { border-color: var(--bs-primary) !important; box-shadow: 0 0 0 .15rem rgba(var(--bs-primary-rgb), .15); }
.emtRecord { width: 9rem; }
/* e-mail template: code, description and recipients fold away */
.nuEmtHead > summary { display: flex; align-items: center; gap: .5rem; min-width: 0; cursor: pointer; list-style: none; padding: .15rem 0; border-radius: .375rem; position: relative; z-index: 1; }
.nuEmtHead > summary::-webkit-details-marker { display: none; }
.nuEmtHead > summary:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.nuEmtHead > .row { margin-top: 0; }
.nuEmtChev { transition: transform .15s; color: var(--bs-secondary-color); }
.nuEmtHead[open] .nuEmtChev { transform: rotate(90deg); }
.nuEmtHeadInfo { min-width: 0; flex: 1 1 auto; }
.nuEmtHead[open] .nuEmtHeadInfo { display: none; }
.emtTestTo { width: 16rem; max-width: 100%; }
.emtPreview { min-height: 260px; border-top: 1px solid var(--bs-border-color); border-radius: 0; }
@media (min-width: 1200px) { .emtFieldsCard { position: sticky; top: calc(var(--nu-sticky-top, 57px) + var(--nu-sticky-h, 0px) + 1rem); } }

/* ---------------------------------------------------------------- items */
.itemCard { max-width: 820px; }
.itemSort { max-width: 8rem; }
.itemIconPreview { min-width: 2.6rem; justify-content: center; }

/* ---------------------------------------------------------------- debug */
.debugMsg { font-size: .8rem; white-space: pre-wrap; word-break: break-word; background: var(--bs-tertiary-bg); border-radius: var(--bs-border-radius); padding: .5rem .75rem; }
.debugCollapsed { max-height: 8.5rem; overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.debugFirst { max-width: 60ch; }

/* ---------------------------------------------------------------- sessions */
.nuSessDot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-inline-end: .35rem; vertical-align: middle; }
.nuSessActive { background: var(--bs-success); }
.nuSessIdle { background: var(--bs-warning); }

/* Save / Clone / Delete of records: one quiet style as in nuBuilder – light background, thin border, dark text with a
   Bootstrap icon. Only Save changes, while there are unsaved changes: red text and icon on a slightly red background
   (.nuSaveEdited, set by assets/js/nuapp.js, the form runtime and the editors; the builder uses .nbDirty). */
/* every button of a record or list toolbar looks the same: the outline buttons there (New, View, Design, form info, ⋮,
   Export, the (i) of own record pages) take the look of Save / Clone / Delete. :where keeps the specificity low. */
.btn.nuBtnAct, :where(#nuActionHolder, .nuTitleBar, .nuListHead) .btn.btn-outline-secondary:not(.btn-sm, .dropdown-menu .btn, .modal .btn) {
	--bs-btn-color: var(--bs-body-color); --bs-btn-bg: var(--bs-tertiary-bg); --bs-btn-border-color: var(--bs-border-color);
	--bs-btn-hover-color: var(--bs-emphasis-color); --bs-btn-hover-bg: var(--bs-secondary-bg); --bs-btn-hover-border-color: var(--bs-secondary-border-subtle, var(--bs-border-color));
	--bs-btn-active-color: var(--bs-emphasis-color); --bs-btn-active-bg: var(--bs-secondary-bg); --bs-btn-active-border-color: var(--bs-border-color);
	--bs-btn-disabled-color: var(--bs-secondary-color); --bs-btn-disabled-bg: var(--bs-tertiary-bg); --bs-btn-disabled-border-color: var(--bs-border-color);
	--bs-btn-focus-shadow-rgb: var(--bs-secondary-rgb);
	border-radius: .5rem; font-weight: 400;
}
.btn.nuBtnAct > .bi { margin-inline-end: .45rem !important; }
.btn.nuBtnSave.nuSaveEdited {
	--bs-btn-color: var(--bs-danger); --bs-btn-bg: rgba(var(--bs-danger-rgb), .05); --bs-btn-border-color: rgba(var(--bs-danger-rgb), .25);
	--bs-btn-hover-color: var(--bs-danger); --bs-btn-hover-bg: rgba(var(--bs-danger-rgb), .1); --bs-btn-hover-border-color: rgba(var(--bs-danger-rgb), .4);
	--bs-btn-active-color: var(--bs-danger); --bs-btn-active-bg: rgba(var(--bs-danger-rgb), .14); --bs-btn-active-border-color: rgba(var(--bs-danger-rgb), .45);
	--bs-btn-disabled-color: var(--bs-danger); --bs-btn-disabled-bg: rgba(var(--bs-danger-rgb), .05); --bs-btn-disabled-border-color: rgba(var(--bs-danger-rgb), .25);
	--bs-btn-focus-shadow-rgb: var(--bs-danger-rgb);
}
[data-bs-theme="dark"] .btn.nuBtnSave.nuSaveEdited {
	--bs-btn-color: #ff8e98; --bs-btn-hover-color: #ffa8b0; --bs-btn-active-color: #ffa8b0; --bs-btn-disabled-color: #ff8e98;
	--bs-btn-bg: rgba(var(--bs-danger-rgb), .14); --bs-btn-border-color: rgba(var(--bs-danger-rgb), .45);
}

/* nuBuilder Forte's class nuActionButton for buttons that form code makes itself (e.g. $('<button class="nuActionButton">')):
   Forte's size and spacing, the colours of .nuBtnAct (light and dark mode). nuBuilder Next's own buttons carry .btn and are not
   affected. :where() keeps the specificity of one class, so a rule .nuActionButton { … } in Setup → Style or Global code wins. */
.nuActionButton:where(:not(.btn)) {
	display: inline-flex; align-items: center; gap: .25rem; height: 31px; padding: 0 6px; margin-left: 8px; vertical-align: top;
	font: inherit; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
	color: var(--bs-body-color); background-color: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .02); cursor: pointer; transition: background-color .2s, box-shadow .2s;
}
.nuActionButton:where(:not(.btn)):hover { color: var(--bs-emphasis-color); background-color: var(--bs-secondary-bg); box-shadow: 0 2px 4px rgba(0, 0, 0, .06); }
.nuActionButton:where(:not(.btn)):active:not([disabled]) { box-shadow: inset 0 0 1px rgba(0, 0, 0, .15); transform: translateY(1px) scale(.98); }
.nuActionButton:where(:not(.btn)):focus-visible { outline: 0; box-shadow: 0 0 0 .2rem rgba(var(--bs-secondary-rgb), .35); }
.nuActionButton:where(:not(.btn)):disabled { opacity: .55; cursor: default; }
.nuActionButton:where(:not(.btn)) > .bi, .nuActionButton:where(:not(.btn)) > .fa { line-height: 1; }
span.nuActionButton:where(:not(.btn)) { border-radius: 3px; margin: 5px 0 0; }
.nuActionButtonIcon { height: 28px; width: 28px; }

/* "#" menu of the code editors (assets/js/nu/nuhashvars.js) */
/* documentation (?p=help) */
.nuHelpSide { position: sticky; top: calc(var(--nu-sticky-top, 57px) + var(--nu-sticky-h, 0px) + 1rem); max-height: calc(100vh - var(--nu-sticky-top, 57px) - var(--nu-sticky-h, 0px) - 2rem); overflow-y: auto; }
.nuHelpToc a { display: block; padding: .15rem .5rem; border-radius: .375rem; text-decoration: none; color: var(--bs-body-color); }
.nuHelpToc a:hover, .nuHelpToc a.active { background: var(--bs-secondary-bg); }
.nuHelpToc .nuHelpToc2 { font-weight: 600; margin-top: .35rem; }
.nuHelpToc .nuHelpTocPage { font-size: .9rem; padding-inline-start: 1rem; }
.nuHelpToc .nuHelpToc3 { font-size: .8125rem; padding-inline-start: 2rem; color: var(--bs-secondary-color); }
.nuHelpToc .nuHelpTocSubs { display: none; }                                   /* h3 entries: only of the open page, or while searching */
.nuHelpToc li.nuOpen > .nuHelpTocSubs, .nuHelpToc.nuHelpTocSearching .nuHelpTocSubs { display: block; }
.nuHelpToc > ul > li > .nuHelpTocSubs .nuHelpToc3 { padding-inline-start: 1rem; }   /* a chapter's own h3 */
/* documentation pages (docs/pages/, see docs/toc.json) */
.nuHelpBody .doc-num { color: var(--bs-secondary-color); font-weight: 400; margin-inline-end: .35rem; }
.nuHelpToc .doc-num { color: var(--bs-secondary-color); font-weight: 400; margin-inline-end: .25rem; }
.nuHelpBody section[data-nu-level="1"] { border-inline-start: 4px solid var(--nu-accent); }
.nuHelpBody .doc-lead { font-size: 1.05rem; color: var(--bs-secondary-color); }
.nuHelpBody .doc-for { font-size: .8rem; color: var(--bs-secondary-color); margin-top: -.5rem; }
.nuHelpBody .doc-adv { background: var(--bs-info-bg-subtle); color: var(--bs-info-text-emphasis); font-weight: 600; vertical-align: .1em; }
.nuHelpBody .doc-see { font-size: .9rem; border-top: 1px solid var(--bs-border-color-translucent); padding-top: .5rem; margin-top: 1rem; }
.nuHelpBody details.doc-src { font-size: .85rem; color: var(--bs-secondary-color); }
.nuHelpBody details.doc-src ul { margin: .25rem 0 0; columns: 2; }
.nuHelpBody pre.doc-diagram { white-space: pre; overflow-x: auto; }
/* help diagrams as inline SVG (architecture request flow): colours by class, light and dark */
.nuHelpBody .doc-figure { margin: 1rem 0 1.25rem; overflow-x: auto; }
.nuHelpBody svg.doc-flow { display: block; width: 100%; max-width: 680px; min-width: 520px; height: auto; font-family: var(--bs-body-font-family); }
.nuHelpBody svg.doc-flow-wide { max-width: 760px; min-width: 580px; }
.doc-flow .dg-t { font-size: 14px; font-weight: 500; text-anchor: middle; }
.doc-flow .dg-s { font-size: 12px; text-anchor: middle; }
.doc-flow .dg-lbl { font-size: 11px; text-anchor: middle; fill: #6c6a64; }
.doc-flow .dg-start { text-anchor: start; }
.doc-flow .dg-end { text-anchor: end; }
.doc-flow .dg-box.dg-a { fill: #faeeda; stroke: #ba7517; }
.doc-flow .dg-t.dg-a { fill: #633806; } .doc-flow .dg-s.dg-a { fill: #854f0b; }
[data-bs-theme="dark"] .doc-flow .dg-box.dg-a { fill: #3b2a12; stroke: #d99a3e; }
[data-bs-theme="dark"] .doc-flow .dg-t.dg-a { fill: #fbe3bd; } [data-bs-theme="dark"] .doc-flow .dg-s.dg-a { fill: #efc27c; }
[data-bs-theme="dark"] .doc-flow .dg-lbl { fill: #a7adb4; }
.doc-flow .dg-box { stroke-width: .5px; }
.doc-flow .dg-line { fill: none; stroke: #898781; stroke-width: 1.5px; }
.doc-flow .dg-sep { fill: none; stroke: #898781; stroke-width: .5px; stroke-dasharray: 4 3; }
.doc-flow .dg-head { fill: none; stroke: #898781; stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; }
.doc-flow .dg-box.dg-n { fill: #fcfcfb; stroke: rgba(11, 11, 11, .2); }
.doc-flow .dg-box.dg-p { fill: #eeedfe; stroke: #534ab7; }
.doc-flow .dg-box.dg-g { fill: #e1f5ee; stroke: #0f6e56; }
.doc-flow .dg-t.dg-n { fill: #0b0b0b; } .doc-flow .dg-s.dg-n { fill: #52514e; }
.doc-flow .dg-t.dg-p { fill: #3c3489; } .doc-flow .dg-s.dg-p { fill: #534ab7; }
.doc-flow .dg-t.dg-g { fill: #085041; } .doc-flow .dg-s.dg-g { fill: #0f6e56; }
[data-bs-theme="dark"] .doc-flow .dg-box.dg-n { fill: #2b2f33; stroke: rgba(255, 255, 255, .25); }
[data-bs-theme="dark"] .doc-flow .dg-box.dg-p { fill: #2a2650; stroke: #8f86e8; }
[data-bs-theme="dark"] .doc-flow .dg-box.dg-g { fill: #133a30; stroke: #4cc39e; }
[data-bs-theme="dark"] .doc-flow .dg-t.dg-n { fill: #e9ecef; } [data-bs-theme="dark"] .doc-flow .dg-s.dg-n { fill: #adb5bd; }
[data-bs-theme="dark"] .doc-flow .dg-t.dg-p { fill: #d6d2ff; } [data-bs-theme="dark"] .doc-flow .dg-s.dg-p { fill: #b3acf5; }
[data-bs-theme="dark"] .doc-flow .dg-t.dg-g { fill: #bfeedd; } [data-bs-theme="dark"] .doc-flow .dg-s.dg-g { fill: #7fd8b8; }
[data-bs-theme="dark"] .doc-flow .dg-line, [data-bs-theme="dark"] .doc-flow .dg-sep, [data-bs-theme="dark"] .doc-flow .dg-head { stroke: #8d939a; }
.nuHelpBody dl.doc-glossary dt, .nuHelpBody dl.doc-faq dt { margin-top: .5rem; }
.nuHelpBody dl.doc-glossary dd, .nuHelpBody dl.doc-faq dd { margin-inline-start: 1rem; }
/* basic mode: "Show advanced topics" off (nuhelp.js) */
.nuHelpBasic .nuHelpBody [data-level="advanced"], .nuHelpBasic .nuHelpToc li.nuAdv { display: none !important; }
/* reading level Essentials: detail passages and source boxes hidden; a "…" button opens a group in place; a search shows them */
.nuHelpBody .nuDetailMore { display: none; }
.nuHelpLite .nuHelpBody [data-level="detail"]:not(.nuDetailOpen), .nuHelpLite .nuHelpBody details.doc-src:not(.doc-keep) { display: none !important; }
.nuHelpLite .nuHelpBody .nuDetailMore:not([hidden]) { display: block; margin: -.5rem 0 .75rem; line-height: 1; }
.nuHelpLite .nuHelpBody li.nuDetailMore:not([hidden]) { display: list-item; list-style: none; margin: 0; }
.nuHelpLite .nuHelpBody.nuHelpSearching [data-level="detail"] { display: revert !important; }
.nuHelpLite .nuHelpBody.nuHelpSearching details.doc-src { display: revert !important; }
.nuHelpBody.nuHelpSearching .nuDetailMore { display: none !important; }
.nuDetailBtn { text-decoration: none; font-weight: 600; letter-spacing: .1em; }
#helpLevel .btn { font-size: .8rem; padding-inline: .25rem; }
@media (max-width: 575.98px) { .nuHelpBody details.doc-src ul { columns: 1; } }
.nuHelpBody { max-width: 60rem; }
.nuHelpBody section { background: var(--nu-surface, var(--bs-body-bg)); border: 1px solid var(--bs-border-color-translucent); border-radius: .75rem; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.nuHelpBody h2 { font-size: 1.35rem; margin-bottom: .75rem; }
.nuHelpBody h3 { font-size: 1.05rem; margin-top: 1.25rem; margin-bottom: .5rem; }
.nuHelpBody h2, .nuHelpBody h3, .nuHelpBody section, .nuHelpBody .doc-sub { scroll-margin-top: calc(var(--nu-sticky-top, 57px) + var(--nu-sticky-h, 0px) + 1rem); }
.nuHelpBody table { font-size: .9rem; }
.nuHelpBody code { word-break: break-word; }
.nuHelpBody pre.doc-code { background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: .375rem; padding: .5rem .75rem; font-size: .8rem; white-space: pre-wrap; }
.nuHelpBody .doc-red { color: var(--bs-danger); font-weight: 600; }
.nuHelpBody .doc-badge { background: var(--bs-warning); color: #000; border-radius: .375rem; padding: 0 .4rem; font-size: .8rem; font-weight: 600; }
/* function reference (core/nufnref.php) */
/* function reference of the help (tabs and cards in the style of nuBuilder's wiki – core/nufnref.php) */
.nuFnTabs { margin: 1rem 0 .25rem; }
.nuFnTabCount { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); font-weight: 500; font-size: .75rem; margin-inline-start: .15rem; }
.nuFnPane:not(.active) { display: none; }
.nuHelpSearching .nuFnPane { display: block; }
.nuFnPaneTitle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nuHelpSearching .nuFnPaneTitle { position: static; width: auto; height: auto; overflow: visible; clip: auto; margin: 1.25rem 0 .5rem; font-size: 1.1rem; }
.nuFnTools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .75rem 0 .5rem; }
.nuFnTools .nuFnSearch { max-width: 350px; }
.nuFnGroupNav { display: flex; flex-wrap: wrap; gap: .35rem; margin: .25rem 0 .6rem; }
.nuFnGroupNav a { font-size: .8rem; text-decoration: none; padding: .2rem .55rem; border: 1px solid var(--bs-border-color); border-radius: 999px; color: var(--bs-body-color); background: var(--bs-body-bg); }
.nuFnGroupNav a:hover { border-color: var(--bs-primary); color: var(--bs-primary); }
.nuFnGroupNav a span { color: var(--bs-secondary-color); font-size: .75rem; }
.nuFnIndex { margin-bottom: .75rem; }
.nuFnIndex summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.nuFnAz { font-size: .8rem; margin-top: .5rem; line-height: 1.7; }
.nuFnLetter { margin-bottom: .25rem; }
.nuFnLetter b { display: inline-block; min-width: 1.25rem; }
.nuFnLetter a { margin-right: .5rem; white-space: nowrap; }
.nuFnGroup { margin-top: 1.25rem; }
.nuFnGroupTitle { font-size: 1.05rem; font-weight: 600; padding-bottom: .35rem; border-bottom: 2px solid var(--bs-border-color); margin-bottom: .75rem; scroll-margin-top: calc(var(--nu-sticky-top, 57px) + var(--nu-sticky-h, 0px) + 1rem); }
.nuFn { border: 1px solid var(--bs-border-color); border-radius: .5rem; background: var(--bs-body-bg); padding: .8rem 1rem .9rem; margin-bottom: .9rem; scroll-margin-top: calc(var(--nu-sticky-top, 57px) + var(--nu-sticky-h, 0px) + 1rem); }
.nuFn:target { box-shadow: 0 0 0 3px var(--bs-warning-border-subtle); }
.nuFnHead { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin-bottom: .5rem; }
.nuFnName { font-family: var(--bs-font-monospace); font-size: 1.05rem; font-weight: 600; margin: 0 .25rem 0 0; overflow-wrap: anywhere; }
.nuFnHead .badge { font-weight: 500; font-size: .75rem; }
.nuFnLink { margin-inline-start: auto; color: var(--bs-secondary-color); opacity: 0; transition: opacity .15s; }
.nuFn:hover .nuFnLink, .nuFnLink:focus { opacity: 1; }
.nuFnNb { background: var(--bs-secondary-bg); color: var(--bs-body-color); border: 1px solid var(--bs-border-color); }
.nuFnNext { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); border: 1px solid var(--bs-primary-border-subtle); }
.nuFnHook { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); border: 1px solid var(--bs-warning-border-subtle); }
.nuFnKind { background: transparent; color: var(--bs-secondary-color); border: 1px solid var(--bs-border-color); }
pre.nuFnSig { margin: 0 0 .65rem; padding: .45rem .7rem; background: var(--bs-tertiary-bg); border-inline-start: 3px solid var(--nu-accent, var(--bs-primary)); border-radius: .25rem;
	font-size: .85rem; white-space: pre-wrap; overflow-wrap: anywhere; }
pre.nuFnSig b { color: var(--bs-primary-text-emphasis); }
.nuFnSpec { display: grid; grid-template-columns: 7.5rem 1fr; gap: .35rem .75rem; margin: 0 0 .5rem; font-size: .9rem; }
.nuFnSpec dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); font-weight: 600; padding-top: .15rem; }
.nuFnSpec dd { margin: 0; }
.nuFnParams { list-style: none; margin: 0; padding: 0; }
.nuFnParams li { padding: .1rem 0; }
.nuFnPName { font-weight: 600; }
.nuFnPType { font-family: var(--bs-font-monospace); font-size: .78rem; color: var(--bs-secondary-color); }
.nuFnPOpt { font-size: .78rem; color: var(--bs-secondary-color); font-style: italic; }
.nuFnPDesc { display: block; color: var(--bs-body-color); font-size: .85rem; }
.nuFnPDesc::before { content: none; }
.nuFnBlock { margin-top: .5rem; border: 1px solid var(--bs-border-color-translucent); border-radius: .35rem; overflow: hidden; }
.nuFnBlockHead { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
	color: var(--bs-secondary-color); padding: .25rem .6rem; background: var(--bs-tertiary-bg); border-bottom: 1px solid var(--bs-border-color-translucent); }
.nuFnOut .nuFnBlockHead { text-transform: none; letter-spacing: 0; font-family: var(--bs-font-monospace); color: var(--bs-primary-text-emphasis); }
.nuFnCopy { border: 0; background: none; color: var(--bs-secondary-color); padding: 0 .15rem; line-height: 1; }
.nuFnCopy:hover { color: var(--bs-primary); }
pre.nuFnCode { margin: 0; padding: .55rem .7rem; font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bs-warning-bg-subtle); color: var(--bs-body-color); }
.nuFnOut pre.nuFnCode { background: var(--bs-body-bg); border-inline-start: 3px solid var(--bs-success-border-subtle); }
[data-bs-theme="dark"] pre.nuFnCode { background: #2b2a22; }
[data-bs-theme="dark"] .nuFnOut pre.nuFnCode { background: var(--bs-body-bg); }
.nuFnSee { margin: .55rem 0 0; font-size: .85rem; }
.nuFnSee span { font-weight: 600; }
@media (max-width: 575.98px) {
	.nuFnSpec { grid-template-columns: 1fr; gap: .1rem; }
	.nuFnSpec dd { margin-bottom: .35rem; }
}
.nuFn.nuFnOutL, .nuFn.nuFnOutG, .nuFnGroup.nuFnOutL, .nuFnGroup.nuFnGroupOut { display: none; }
mark.nuHelpHit { padding: 0; background: rgba(var(--bs-warning-rgb), .45); color: inherit; }
/* search words in browse lists and system lists (nuHighlightText in nuapp.js) – colour through --nu-highlight (form CSS may set it) */
:root, [data-bs-theme="light"] { --nu-highlight: rgba(var(--bs-warning-rgb), .45); --nu-th-bg: var(--bs-body-bg); --nu-th-color: #6b7785; --nu-th-line: #d7dde2; --nu-row-stripe: rgba(127, 140, 155, .09); --nu-row-hover: rgba(47, 111, 206, .08); --nu-row-line: #edf0f3; --nu-tab-line: #dee2e6; --nu-tab-border: #dee2e6; --nu-tab-color: #5c6670; --nu-tab-hover-bg: #f5f5f5; --nu-tab-hover-color: #212529; --nu-tab-active-color: #2d84d1; --nu-tab-active: #2d84d1; --nu-tab-hover-line: #ced4da; --nu-tab-active-bg: var(--nu-tab-surface); --nu-mark-required: #dc3545; --nu-mark-unique: var(--bs-secondary-color); --nu-cursor-grab: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMgMTlWMTBhMyAzIDAgMCAxIDYgMHY3VjdhMyAzIDAgMCAxIDYgMHYxMFYxMGEzIDMgMCAwIDEgNiAwdjEybDEtM2EzIDMgMCAwIDEgNiAxbC0yIDEwYy0xIDUtNSA4LTExIDhoLTVjLTQgMC03LTItOS01TDMgMjRhMyAzIDAgMCAxIDUtM2w1IDZ6IiBmaWxsPSIjMTExODI3IiBzdHJva2U9IiMxMTE4MjciIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=") 16 18, grab; --nu-cursor-grabbing: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNOSAxNmEzIDMgMCAwIDEgNiAwdjNhMyAzIDAgMCAxIDYtMWEzIDMgMCAwIDEgNiAwYTMgMyAwIDAgMSA2IDJsMiA2YzEgNy00IDEyLTExIDEyaC02Yy01IDAtOC0zLTEwLTdMNCAyM2EzIDMgMCAwIDEgNS0zbDMgNHoiIGZpbGw9IiMxMTE4MjciIHN0cm9rZT0iIzExMTgyNyIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==") 16 18, grabbing; }
[data-bs-theme="dark"] { --nu-highlight: rgba(var(--bs-warning-rgb), .28); }
mark.nuHighlight { padding: 0 .05em; margin: 0 -.05em; border-radius: .2em; background: var(--nu-highlight); color: inherit; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media (max-width: 991.98px) { .nuHelpSide { position: static; max-height: none; } .nuHelpToc { max-height: 40vh; overflow-y: auto; } }

.nuEngineList { max-height: 20rem; overflow-y: auto; }

/* files (zzzzsys_file) */
.nuFileCard { color: inherit; transition: box-shadow .15s; }
.nuFileCard:hover { box-shadow: 0 .25rem .75rem rgba(0,0,0,.12) !important; }
.nuFileThumbBox { height: 8rem; display: flex; align-items: center; justify-content: center; padding: .5rem; border-bottom: 1px solid var(--bs-border-color-translucent);
	background: repeating-conic-gradient(var(--bs-tertiary-bg) 0 25%, var(--bs-body-bg) 0 50%) 0 0 / 16px 16px; border-radius: var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0; }
.nuFileThumbBox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nuFilePreview { min-height: 8rem; display: flex; align-items: center; justify-content: center; border-radius: .5rem;
	background: repeating-conic-gradient(var(--bs-tertiary-bg) 0 25%, var(--bs-body-bg) 0 50%) 0 0 / 16px 16px; padding: .75rem; }
.nuFilePreview img { max-width: 100%; max-height: 20rem; object-fit: contain; }
.nuFileDrop { border: 2px dashed var(--bs-border-color); border-radius: .5rem; padding: .75rem; }
.nuFileDrop.nuFileDropOver { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .06); }
.nuFileDrop.is-invalid { border-color: var(--bs-danger); }

.nuUpdChanges { white-space: normal; max-height: 22rem; overflow-y: auto; }

/* installer (pages/nuinstall.php) */
.nu-install { width: 100%; max-width: 48rem; }
.nuInsSteps { display: flex; gap: .25rem; list-style: none; padding: 0; counter-reset: insstep; font-size: .8rem; }
.nuInsSteps li { flex: 1 1 0; counter-increment: insstep; text-align: center; padding-top: .5rem; border-top: .25rem solid var(--bs-border-color); color: var(--bs-secondary-color); min-width: 0; }
.nuInsSteps li::before { content: counter(insstep) ". "; }
.nuInsSteps li.done { border-top-color: var(--nu-accent-2); }
.nuInsSteps li.active { border-top-color: var(--nu-accent); color: var(--bs-body-color); font-weight: 600; }
.nuInsSteps a { color: inherit; text-decoration: none; }
.nuInsSteps a:hover { text-decoration: underline; }
@media (max-width: 575.98px) { .nuInsSteps li:not(.active) span, .nuInsSteps li:not(.active) a { display: none; } }
.insStrength { height: .3rem; }
.insStrength .progress-bar { transition: width .15s ease; }
.insNubPath { max-width: calc(100% - 1.5rem); }

/* # (hash variables) button: same box as the editor tool buttons (.nuCodeTools .btn: .15rem .45rem padding, .9rem icon, btn-sm line height) */
.nuHashVarsBtn { font-family: var(--bs-font-monospace); font-weight: 700; font-size: .9rem; line-height: 1; padding: 0;
	display: inline-flex; align-items: center; justify-content: center; width: 1.925rem; height: 1.9375rem; }
.nuHashVarsMenu { width: min(26rem, 90vw); }
/* procedure editor tools: one row height – the buttons keep their own size instead of stretching to the tallest one */
.procCodeTools { flex-wrap: wrap; align-items: center; flex-shrink: 0; }   /* next to the label – a whole line of its own when it does not fit */
.cfgCodeTools { flex-shrink: 0; }
.procCodeTools .nuCodeTools, .procCodeTools .dropdown { align-self: center; }
/* Insert menu of the code editors (nucodetools.js): functions of the help + snippets; same box as the tool buttons */
.nuCtInsert { display: inline-flex; align-items: center; height: 1.9375rem; padding: .15rem .45rem; font-size: .8125rem; line-height: 1; white-space: nowrap; }
.nuCtInsert .bi { font-size: .9rem; }
@media (max-width: 575.98px) {
	.nuCtInsert { width: 1.925rem; padding: 0; justify-content: center; }
	.nuCtInsertLabel { display: none; }
}
.nuInsMenu { position: fixed; z-index: 1090; width: min(36rem, calc(100vw - 8px)); margin: 0; max-height: calc(100vh - 8px); overflow-y: auto; }
.nuInsList { max-height: 26vh; overflow-y: auto; }
.nuInsList .list-group-item.active .nuInsSub { color: inherit; opacity: .85; }
.nuInsSub { color: var(--bs-secondary-color); }
.nuInsInfo { max-height: 42vh; overflow-y: auto; }
.nuInsInfo:empty { display: none; }
.nuInsSig { white-space: pre-wrap; word-break: break-word; }
.nuInsCode { font-size: .8rem; background: var(--bs-tertiary-bg); border-radius: var(--bs-border-radius-sm); padding: .35rem .5rem; white-space: pre-wrap; word-break: break-word; max-height: 12rem; overflow: auto; }
.nuInsParams { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; }
.nuInsParams dt { font-family: var(--bs-font-monospace); font-weight: 500; }
.nuInsParams dd { margin: 0; }
.nuInsTabs .nav-link { font-size: .85rem; }
/* wide screens: list on the left, detail with the example on the right – both scroll on their own, nothing below the fold */
@media (min-width: 900px) {
	.nuInsMenu { width: min(62rem, calc(100vw - 8px)); }
	.nuInsBody { display: grid; grid-template-columns: minmax(16rem, 22rem) 1fr; gap: .75rem; align-items: start; }
	.nuInsList, .nuInsInfo { max-height: min(60vh, 34rem); }
	.nuInsInfo { border-top: 0 !important; border-left: 1px solid var(--bs-border-color); margin-top: 0 !important; padding-top: 0 !important; padding-left: .75rem; }
	.nuInsInfo .nuInsCode { max-height: 16rem; }
}
/* suggestions while typing (CodeMirror show-hint) – above modals, in the theme's colours */
.CodeMirror-hints { z-index: 2000; background: var(--bs-body-bg); border-color: var(--bs-border-color); font-size: .85rem; max-width: 34rem; }
li.CodeMirror-hint { color: var(--bs-body-color); max-width: 34rem; overflow: hidden; text-overflow: ellipsis; }
li.CodeMirror-hint-active { background: var(--bs-primary); color: #fff; }
.nuHintSig { opacity: .65; }
.nuHintIcon { opacity: .6; font-size: .8em; }   /* tables / columns / # variables */
li.CodeMirror-hint-active .nuHintIcon { opacity: .9; }
.nuHintTip { position: fixed; z-index: 2001; max-width: 26rem; background: var(--bs-body-bg); color: var(--bs-body-color); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); padding: .4rem .55rem; font-size: .8rem; }
.nuHashVarsMenu .form-control { margin-bottom: .35rem; }
.nuHashVarsList { max-height: 50vh; overflow-y: auto; }
.nuHashVarsList .dropdown-header { position: sticky; top: 0; background: var(--bs-dropdown-bg); font-weight: 600; }
.nuHashVarsList .dropdown-item code { flex: none; }


/* procedures (pages/nuprocedures.php) */
.procCM { border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); height: auto; min-height: 22rem; font-size: .85rem; }
.procCM .CodeMirror-scroll { min-height: 22rem; max-height: 70vh; }
.procCM.is-invalid { border-color: var(--bs-danger); }
.cfgCM { height: auto; font-size: .85rem; border-bottom-left-radius: var(--bs-card-inner-border-radius); border-bottom-right-radius: var(--bs-card-inner-border-radius); }
.cfgCM .CodeMirror-scroll { min-height: 16rem; }   /* height set by assets/js/nuconfigfile.js: the window below it */
.cfgEditor.nuCodeFull .cfgToolbar { border: 0 !important; padding: 0 0 .5rem !important; }
[data-bs-theme="dark"] .cfgCM.CodeMirror { background: var(--bs-body-bg); color: var(--bs-body-color); }
#procTabJs .procCM, #procTabJs .procCM .CodeMirror-scroll { min-height: 16rem; }
.procCM.procCMFit, .procCM.procCMFit .CodeMirror-scroll { min-height: 0; max-height: none; }   /* height set by nuprocedures.js: the window below it */
.procResultPre { max-height: 14rem; overflow: auto; white-space: pre-wrap; margin: .25rem 0 0; font-size: .8rem; background: var(--bs-body-bg); padding: .4rem; border-radius: .3rem; }
.procHistCode { max-height: 18rem; overflow: auto; white-space: pre-wrap; font-size: .78rem; background: var(--bs-tertiary-bg); padding: .5rem; border-radius: .3rem; }
.procAccessList { max-height: 50vh; overflow-y: auto; }
[data-bs-theme="dark"] .procCM .CodeMirror { background: var(--bs-body-bg); color: var(--bs-body-color); }

/* printable lists (core/nulistexport.php) */
body.nu-print-list { background: var(--bs-body-bg); font-size: .85rem; }
.nu-print-table th { white-space: nowrap; background: var(--bs-tertiary-bg); }
.nu-print-table td { word-break: break-word; }
@media print { body.nu-print-list { font-size: 9pt; } .nu-print-table thead { display: table-header-group; } }

/* code editor toolbar (assets/js/nu/nucodetools.js) + CodeMirror search dialog */
.nuCodeTools { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; flex: 1 1 auto; min-width: 0; }
.nuCodeTools > .nuCtGrp:empty { display: none; }
.nuCodeTools > .nuCtWrite { display: inline-flex; align-items: center; gap: .25rem; }
.nuCodeTools > .nuCtView { margin-left: auto; }   /* the view tools (copy, invisibles, full screen) at the right end */
.nuCodeTools .nuCtRunBtn { --bs-btn-color: var(--bs-success-text-emphasis); --bs-btn-border-color: var(--bs-success-border-subtle); --bs-btn-hover-bg: var(--bs-success); --bs-btn-hover-border-color: var(--bs-success); --bs-btn-hover-color: #fff; width: auto; font-weight: 600; }
:is(.nuDsCodeTools, .nuBsqTools, .nuCodeToolsHost) { display: flex; flex: 1 1 auto; min-width: 0; }
@media (max-width: 575.98px) { .nuCodeTools { gap: .2rem; } .nuCodeTools > .nuCtWrite { gap: .15rem; } }
.nuCodeTools .btn { padding: .15rem .45rem; height: 1.9375rem; display: inline-flex; align-items: center; justify-content: center; }   /* = # and snippet buttons */
.nuCodeTools .btn .bi { font-size: .9rem; }
.CodeMirror-dialog { position: absolute; left: 0; right: 0; background: var(--bs-tertiary-bg); color: var(--bs-body-color); z-index: 15; padding: .25rem .8rem; overflow: hidden; font-size: .85rem; }
.CodeMirror-dialog-top { border-bottom: 1px solid var(--bs-border-color); top: 0; }
.CodeMirror-dialog-bottom { border-top: 1px solid var(--bs-border-color); bottom: 0; }
.CodeMirror-dialog input { border: 1px solid var(--bs-border-color); border-radius: .25rem; outline: none; background: var(--bs-body-bg); width: 20em; color: inherit; font-family: var(--bs-font-monospace); padding: 0 .3rem; }
.CodeMirror-dialog button { font-size: .8rem; margin-left: .25rem; }
.CodeMirror .cm-searching { background: rgba(255, 193, 7, .35); }
.nuShowInvisibles .cm-nu-space { background: radial-gradient(circle, rgba(128, 128, 128, .55) 1px, transparent 1.5px) center / 100% 100% no-repeat; }
.nuShowInvisibles .cm-nu-tab { background: linear-gradient(to right, transparent 15%, rgba(128, 128, 128, .45) 15%, rgba(128, 128, 128, .45) 85%, transparent 85%) center / 100% 1px no-repeat; }

/* show / hide and generate password, open-in-new-tab buttons inside an input group: same border as the input */
.input-group > .btn-outline-secondary[data-pw-toggle],
.input-group > .btn-outline-secondary.nuPwGenBtn,
.input-group > .btn-outline-secondary.nuOpenBtn {
	--bs-btn-border-color: var(--bs-border-color);
	--bs-btn-color: var(--bs-secondary-color);
	--bs-btn-bg: var(--bs-body-bg);
	--bs-btn-hover-bg: var(--bs-tertiary-bg);
	--bs-btn-hover-color: var(--bs-body-color);
	--bs-btn-hover-border-color: var(--bs-border-color);
	--bs-btn-active-bg: var(--bs-secondary-bg);
	--bs-btn-active-color: var(--bs-body-color);
	--bs-btn-active-border-color: var(--bs-border-color);
}

/* user form: permission items */
.userPermSearch { max-width: 260px; }
/* list cells: at most two lines, then … (full text in the title); the e-mail column keeps a readable width instead of
   breaking after every few characters when many columns are shown */
.nuClamp2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
td.nuColEmail { min-width: 12rem; max-width: 20rem; }
.permField { max-width: 350px; }   /* permission item: Ident and Group */
#userPerms .userPermItem, #userPerms .userPermItem label { cursor: pointer; }
#userPerms .userPermCheck { width: 2.5rem; }
#userPerms .userPermItem label { margin: 0; }
#userPerms .userPermTable .userPermDesc { white-space: normal; }   /* the description wraps (lists keep nowrap on phones) */
/* description: one line, as much as fits, then … (full text as tooltip); the column takes the rest of the row and its text is
   at most 750 px wide – max-width 0 lets the cell shrink instead of widening the table */
#userPerms .userPermTable td.userPermDescCell { width: 100%; max-width: 0; }
#userPerms .userPermTable .userPermDescLine { max-width: 750px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 575.98px) { #userPerms .userPermTable td.userPermIdent { width: 100%; max-width: 0; } }   /* phones: the line below the ident */
#userPerms.userPermNoDesc .userPermDesc { display: none !important; }   /* phones: switch "Descriptions" off – compact table */

/* hamburger: Bootstrap draws a 0.25rem ring on every :focus (also after a tap) – only for keyboard focus, and thinner */
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler:focus-visible { box-shadow: 0 0 0 2px var(--bs-focus-ring-color); outline: 0; }

/* top bar (and login page): theme, language and user menu buttons with a light border; dark mode keeps its own */
:root:not([data-bs-theme="dark"]) .nu-navbar .btn.btn-outline-secondary.dropdown-toggle,
:root:not([data-bs-theme="dark"]) .nu-login .btn.btn-outline-secondary.dropdown-toggle {
	--bs-btn-border-color: #e4e4e4; --bs-btn-hover-border-color: #e4e4e4; --bs-btn-active-border-color: #e4e4e4;
}

/* acting as another user (globeadmin): bar above the navigation */
.nuImpBar { flex: 0 0 100%; width: 100%; margin: calc(-1 * var(--bs-navbar-padding-y)) 0 var(--bs-navbar-padding-y); font-size: .875rem; color: #fff; }
.nuImpBar.nuImpView { background: #0a6f86; }
.nuImpBar.nuImpFull { background: #b02a37; }
.nuImpBar .badge { font-weight: 600; }

/* breadcrumbs: the current page is the heading right below – show only the way back */
main > nav > .breadcrumb .breadcrumb-item.active, .nuSetMain > nav > .breadcrumb .breadcrumb-item.active { display: none; }   /* also inside the settings centre */
main > nav:has(> .breadcrumb):not(:has(.breadcrumb-item:not(.active))) { display: none; }

/* list footer: total · pager · rows per page – always shown, sticky at the bottom of the window */
.nuListFooter {
	position: sticky; bottom: 0; z-index: 5;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem;
	padding: .5rem 1rem; font-size: .875rem; color: var(--bs-secondary-color);
	background: var(--bs-body-bg); border-top: 1px solid var(--bs-border-color-translucent);
	box-shadow: 0 -.25rem .75rem rgba(0, 0, 0, .04);
}
.card > .nuListFooter.card-footer { background: var(--bs-body-bg); }
.nuListFooter.card { flex-direction: row; border-radius: var(--bs-border-radius-lg); }
.nuListFooter .nuLfTotal { white-space: nowrap; }
.nuListFooter .nuLfTotal b { color: var(--bs-body-color); font-weight: 600; }
.nuListFooter .nuLfPer { justify-self: end; white-space: nowrap; }
.nuPager {
	display: inline-flex; align-items: center; gap: .25rem; padding: .25rem;
	border: 1px solid var(--bs-border-color); border-radius: 50rem; background: var(--bs-tertiary-bg);
}
.nuPagerBtn {
	display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: 50rem;
	color: var(--bs-body-color); text-decoration: none; white-space: nowrap;
}
.nuPagerBtn:hover { background: var(--bs-body-bg); color: var(--bs-primary); }
.nuPagerBtn:focus-visible { outline: 2px solid var(--bs-focus-ring-color); outline-offset: 1px; }
.nuPagerFirst, .nuPagerLast { padding-inline-start: .65rem; padding-inline-end: .65rem; }
.nuPagerBtn.disabled { color: var(--bs-secondary-color); opacity: .55; pointer-events: none; }
.nuPagerCur {
	padding: .3rem .9rem; border-radius: 50rem; background: var(--bs-body-bg); color: var(--bs-body-color);
	font-weight: 600; white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
button.nuPagerCur { border: 0; cursor: text; }
button.nuPagerCur:hover { color: var(--bs-primary); }
button.nuPagerCur:focus-visible { outline: 2px solid var(--bs-focus-ring-color); outline-offset: 1px; }
.nuPagerJumpBox { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .5rem; border-radius: 50rem; background: var(--bs-body-bg);
	font-weight: 600; white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.nuPagerJumpBox input { width: 4.5em; padding: .1rem .35rem; font-weight: 600; text-align: center; border-radius: 50rem; }
@media (max-width: 575.98px) {
	/* phones: no "xx per page" (it got cut off) – total left, pager right */
	.nuListFooter { padding: .5rem .5rem; gap: .5rem; grid-template-columns: auto 1fr; }
	.nuListFooter .nuLfPer { display: none; }
	.nuListFooter .nuPager { justify-self: end; }
	.nuPagerTxt, .nuLfUnit { display: none; }
	.nuPagerBtn { padding: .3rem .6rem; }
	.nuPagerFirst, .nuPagerLast { padding-inline-start: .5rem; padding-inline-end: .5rem; }
	.nuPagerCur { padding: .3rem .6rem; }
}
@media print { .nuListFooter { position: static; box-shadow: none; } .nuPager { display: none; } }

/* list tables (nuBuilder Next lists, form browse): flat body with zebra stripes, accent tint on clickable rows (Table Style Specification) */
[data-bs-theme="dark"] {
	--nu-th-bg: var(--bs-body-bg); --nu-th-color: #7f8c99; --nu-th-line: #2c3742;
	--nu-row-stripe: rgba(127, 140, 155, .09); --nu-row-hover: rgba(77, 159, 255, .12); --nu-row-line: #242d36;
}
.nu-table, .nuBrowseTable { --bs-table-hover-bg: transparent; --bs-table-hover-color: var(--bs-table-color); }
/* header: colours only */
.nu-table > thead > tr > th, .nuBrowseTable > thead > tr > th {
	--bs-table-bg: var(--nu-th-bg); color: var(--nu-th-color); border-bottom: 1px solid var(--nu-th-line);
	letter-spacing: .05em;
	border-top: 0;
	font-size: .75rem;
	font-weight: 500;
}
/* body: thin dividers between rows, roomy cells (no stripes) */
.nu-table > tbody > tr > *, .nuBrowseTable > tbody > tr > * { border-bottom: 1px solid var(--nu-row-line); }
.nu-table > tbody > tr:last-child > *, .nuBrowseTable > tbody > tr:last-child > * { border-bottom-width: 0; }
.nu-table:not(.table-sm) > :not(caption) > tr > * { padding: .3rem .75rem; }   /* compact rows (mockup preset Compact; was .5rem 1rem) */
.nu-table:not(.table-sm) { font-size: .875rem; line-height: 1.4; }
.nu-table:not(.table-sm) .badge { font-size: .75rem; }
/* header without grey band – same background as the card, lighter labels, only a line below */
.nu-table:not(.table-sm) > thead > tr > th { padding-top: .5rem; padding-bottom: .5rem; }
/* hover: rows that open something */
.nu-table > tbody > tr[data-href]:hover > *, .nuBrowseTable > tbody > tr.nuBrowseRow:hover > *,
.nu-table > tbody > tr.clickable-row:hover > * { --bs-table-bg-state: var(--nu-row-hover); }
.nu-table > tbody > tr[data-href] { cursor: pointer; }
.nu-table > tbody > tr[data-href]:focus-visible > * { --bs-table-bg-state: var(--nu-row-hover); }

/* toolbar buttons above lists (Print, CSV, links to related pages): softer border */
.btn.nuToolBtn { --bs-btn-border-color: #c9d1d8; --bs-btn-hover-border-color: #c9d1d8; --bs-btn-active-border-color: #c9d1d8; --bs-btn-disabled-border-color: #c9d1d8; }
[data-bs-theme="dark"] .btn.nuToolBtn { --bs-btn-border-color: #3a4652; --bs-btn-hover-border-color: #3a4652; --bs-btn-active-border-color: #3a4652; --bs-btn-disabled-border-color: #3a4652; }

/* code editor full screen (toolbar button / F11): toolbar + editor fill the window */
.nuCodeFull {
	position: fixed !important; inset: 0; z-index: 1045; margin: 0 !important; max-width: none !important; width: auto !important;
	padding: .75rem; overflow: auto; background: var(--bs-body-bg);
}
html.nuCodeFullOpen, html.nuCodeFullOpen body { overflow: hidden; }
.nuCodeFull .CodeMirror-scroll { max-height: none !important; min-height: 0 !important; }
/* descriptions and settings around an editor (.nuCodeFullHide) give their room to the code while it is full screen */
.nuCodeFull .nuCodeFullHide { display: none !important; }
.nu-tile-icon { flex-shrink: 0; }
button.nu-tile { font: inherit; color: inherit; background: var(--bs-card-bg); cursor: pointer; }

/* list page: one card – header (title + buttons), filters, table, footer */
.nuListCard { border-radius: .75rem; overflow: visible; }
.nuListCard > .nuListHead { background: var(--bs-body-bg); padding: .375rem .75rem; border-bottom: 1px solid var(--nu-th-line); border-radius: .75rem .75rem 0 0; }
.nuListCard > .nuListHead h1 { font-size: 1.15rem; }
/* title bars: <div class="nuTitleBar"> <h1> · optional <div class="nuTitleSub"> (subtitle / hint) · <div> buttons </div> </div>
   Title, then subtitle, then the buttons on a row of their own, left-aligned (short mouse way, same on desktop and phone). */
.nuTitleBar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.nuTitleBar > :first-child { margin-inline-end: 1rem; }
.nuTitleBar > .nuTitleSub { flex-basis: 100%; margin-top: -.25rem; }
/* the buttons always get their own row below title (and subtitle) – on every screen width, as on phones */
.nuTitleBar > div:last-child:not(:first-child):not(.nuTitleSub) { flex-basis: 100%; }
/* "+ Add" buttons: the same quiet style as the Print button next to them (btn-outline-secondary nuToolBtn) –
   grey text, transparent background, light border (light blue) */
.btn.nuAddBtn {
	--bs-btn-color: #6c757d; --bs-btn-bg: transparent; --bs-btn-border-color: #dee2e6; --bs-btn-font-weight: 400;
	--bs-btn-hover-color: #0c0b0b; --bs-btn-hover-bg: #e1e3e87d; --bs-btn-hover-border-color: #dee2e6;
	--bs-btn-active-color: #0c0b0b; --bs-btn-active-bg: #e1e3e8; --bs-btn-active-border-color: #dee2e6;
	--bs-btn-disabled-color: #6c757d; --bs-btn-disabled-bg: transparent; --bs-btn-disabled-border-color: #dee2e6;
	--bs-btn-focus-shadow-rgb: 108, 117, 125;
}
[data-bs-theme="dark"] .btn.nuAddBtn {
	--bs-btn-color: #adb5bd; --bs-btn-border-color: #3a4652; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #6c757d;
	--bs-btn-hover-border-color: #3a4652; --bs-btn-active-color: #fff; --bs-btn-active-bg: #6c757d; --bs-btn-active-border-color: #3a4652;
	--bs-btn-disabled-color: #adb5bd; --bs-btn-disabled-border-color: #3a4652;
}
/* in a toolbar "+ Add" looks like the buttons next to it (Back, Export, Save …: the look of .nuBtnAct) */
:is(#nuActionHolder, .nuTitleBar, .nuListHead) .btn.nuAddBtn {
	--bs-btn-color: var(--bs-body-color); --bs-btn-bg: var(--bs-tertiary-bg); --bs-btn-border-color: var(--bs-border-color);
	--bs-btn-hover-color: var(--bs-emphasis-color); --bs-btn-hover-bg: var(--bs-secondary-bg); --bs-btn-hover-border-color: var(--bs-border-color);
	--bs-btn-active-color: var(--bs-emphasis-color); --bs-btn-active-bg: var(--bs-secondary-bg); --bs-btn-active-border-color: var(--bs-border-color);
	--bs-btn-disabled-bg: var(--bs-tertiary-bg); --bs-btn-disabled-border-color: var(--bs-border-color); border-radius: .5rem;
}
.nuListCard .nuListFilter { padding: .625rem .75rem; }
.nuListFilter[hidden] { display: none !important; }
/* empty lists (review E3): what the list is for and its first action */
.nuLvEmptyText { max-width: 34rem; color: var(--bs-secondary-color); }
.nuLvEmptyRow:hover > td { --bs-table-bg-state: transparent; }
.nuListCard .nuListFilter .form-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--nu-th-color); }
.nuListCard .nuListBody > .card-header { border-top: 1px solid var(--nu-th-line); }
.nuListCard .table-responsive .table { border-radius: 0 !important; }
.nuListCard > .nuListFooter.card-footer { border-radius: 0 0 .75rem .75rem; }
/* search field with the search button on the right */
.nuSearchBtn { --bs-btn-border-color: var(--bs-border-color); --bs-btn-color: var(--bs-secondary-color); --bs-btn-hover-bg: var(--bs-tertiary-bg); --bs-btn-hover-color: var(--bs-primary); --bs-btn-hover-border-color: var(--bs-border-color); --bs-btn-active-bg: var(--bs-secondary-bg); --bs-btn-active-color: var(--bs-primary); --bs-btn-active-border-color: var(--bs-border-color); }
/* light theme: grey outline buttons (Back, Act as user, Clone, New, Refresh, Tools, ⋮ …) with the light border #dee2e6,
   like Print and the search button – also on hover. Pressed / selected (e.g. Absolute | Auto | Grid) keep the dark fill and border.
   The top bar buttons keep their own #e4e4e4 (more specific rule below). */
:root:not([data-bs-theme="dark"]) .btn.btn-outline-secondary:not(.nuSearchBtn),
:root:not([data-bs-theme="dark"]) .btn.btn-outline-secondary.nuRowBtn,
:root:not([data-bs-theme="dark"]) .btn.btn-outline-secondary.nuToolBtn { --bs-btn-border-color: #dee2e6; --bs-btn-hover-border-color: #dee2e6; --bs-btn-disabled-border-color: #dee2e6; --bs-btn-hover-bg: #e1e3e87d; --bs-btn-hover-color: #0c0b0b; }
/* rows marked for removal (access level form rights, form builder lists, attribute editor): crossed out and faded until
   the record is saved, then deleted; the ↺ button in the last cell brings the row back (that cell stays usable). nuApp.toggleRemoved() */
.nuRowRemoved > :not(:last-child) { opacity: .45; text-decoration: line-through; pointer-events: none; }
.nuRowRemoved :is(input, select, textarea) { text-decoration: line-through; }
/* users list: access level badge – light blue */
.nuAccessBadge.bg-secondary-subtle { background-color: #eaf4ff !important; border-color: #dcd7ff !important; }
/* row action buttons (users list) */
.nuRowBtn { width: 2rem; height: 2rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: .4rem; }
.nuRowBtn.btn-outline-secondary { --bs-btn-border-color: #d5dbe1; --bs-btn-color: var(--bs-secondary-color); --bs-btn-hover-bg: var(--bs-tertiary-bg); --bs-btn-hover-color: var(--bs-body-color); --bs-btn-hover-border-color: #c3cad1; }
.nuRowBtn.btn-outline-danger { --bs-btn-border-color: #f1c4c8; --bs-btn-hover-bg: #fdecee; --bs-btn-hover-color: var(--bs-danger); --bs-btn-hover-border-color: #e9a4ab; }
[data-bs-theme="dark"] .nuRowBtn.btn-outline-secondary { --bs-btn-border-color: #3a4652; }
[data-bs-theme="dark"] .nuRowBtn.btn-outline-danger { --bs-btn-border-color: #6b2c33; --bs-btn-hover-bg: rgba(248, 81, 73, .12); }
.nuRowActions { white-space: nowrap; } .nuRowActions > * + * { margin-inline-start: .35rem; }
@media (max-width: 767.98px) { .nu-table > tbody > tr > td { white-space: nowrap; } .nuListCard > .nuListHead, .nuListCard .nuListFilter { padding-inline-start: .75rem; padding-inline-end: .75rem; } }
/* filter button right of the search field (users list): blue while the filters are open or set */
.nuFilterToggle[aria-expanded="true"], .nuFilterToggle.active { color: var(--bs-primary); }
/* user form: password generator (no inline styles – CSP) */
.nuPwGenLen { width: 5rem; flex: none; }
.nuPwGenBar { height: .4rem; }
.nuPwGenOut { letter-spacing: .03em; }
/* buttons that read as links inside list cells (table name → database tool, number of access levels): the cell's text size and line,
   no border – a btn-sm's 23 px made the rows 34 px instead of 33 once a database tool is installed */
.nu-table > tbody > tr > td .btn.btn-link.p-0 { font-size: inherit; line-height: inherit; border-width: 0; vertical-align: baseline; }
/* forms list: one colour per form type (light and dark theme) */
.nuFormType { font-weight: 600; border: 1px solid transparent; }
.nuFormType-browseedit { background: #e8f1ff; color: #1f4fa3; border-color: #cfe0fb; }
.nuFormType-browse     { background: #e6f6fb; color: #0b6178; border-color: #c7e9f3; }
.nuFormType-edit       { background: #e8f6ee; color: #1d6b3f; border-color: #c9e8d5; }
.nuFormType-launch     { background: #fff4e0; color: #8a5300; border-color: #f6dfb3; }
.nuFormType-subform    { background: #f1ecfd; color: #5b3aa6; border-color: #e0d6f8; }
.nuFormType-page       { background: #fde8f0; color: #9b1d4f; border-color: #f6cadb; }
[data-bs-theme="dark"] .nuFormType-browseedit { background: #16263f; color: #9ec2ff; border-color: #24395c; }
[data-bs-theme="dark"] .nuFormType-browse     { background: #10303a; color: #8fd6e8; border-color: #1b4552; }
[data-bs-theme="dark"] .nuFormType-edit       { background: #12301f; color: #8fd8ab; border-color: #1d4630; }
[data-bs-theme="dark"] .nuFormType-launch     { background: #3a2a0d; color: #f3c46d; border-color: #54401a; }
[data-bs-theme="dark"] .nuFormType-subform    { background: #2a2142; color: #c3b0f5; border-color: #3c3060; }
[data-bs-theme="dark"] .nuFormType-page       { background: #3d1526; color: #f5a3c4; border-color: #5a2139; }
[data-bs-theme="dark"] .nuAccessBadge.bg-secondary-subtle { background-color: #1d2b3a !important; border-color: #33405a !important; }

/* every outline-secondary button: border #6c757d – also the row, tool and filter buttons, which had lighter borders of their
   own (dark mode). At the end of the file so it wins over those rules. Buttons attached to a field (input group:
   open access level, show / generate password, search) keep the field's border colour. */
.btn.btn-outline-secondary,
.btn.btn-outline-secondary.nuRowBtn,
.btn.btn-outline-secondary.nuToolBtn { --bs-btn-border-color: #6c757d; }
/* tabs: clean underline look – no boxes; grey text, the selected tab in the accent blue with a 2 px line on the base line,
   hover darkens the text and shows a light line. Icons and their colours stay. Dark mode: the same with dark colours. */
[data-bs-theme="dark"] {
	--nu-tab-line: #3a4552; --nu-tab-border: #3a4552; --nu-tab-color: #a7b0ba; --nu-tab-hover-bg: #27303a; --nu-tab-hover-color: #fff;
	--nu-tab-active-color: #5ea4e8; --nu-tab-active: #5ea4e8; --nu-tab-hover-line: #4f5c6a; --nu-tab-active-bg: var(--nu-tab-surface);
}
.nav-tabs { --nu-tab-surface: var(--nu-page); --bs-nav-tabs-border-width: 0; gap: .25rem; flex-wrap: wrap; border-bottom: 1px solid var(--nu-tab-line); padding-inline-start: 0; }
.card .nav-tabs { --nu-tab-surface: var(--bs-card-bg); }
.card-header .nav-tabs { --nu-tab-surface: var(--bs-card-bg); }
.nav-tabs .nav-item { margin-bottom: -1px; }
.nav-tabs .nav-link {
	display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; margin: 0;
	background: transparent; color: var(--nu-tab-color); font-size: .9rem; font-weight: 400; line-height: 1.4;
	border: 0; border-bottom: 2px solid transparent; border-radius: 0;
	cursor: pointer; transition: color .15s ease-in-out, border-color .15s ease-in-out;
}
.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus { background: transparent; color: var(--nu-tab-hover-color); isolation: isolate; border-bottom-color: var(--nu-tab-hover-line); }
.nav-tabs .nav-link:focus-visible { outline: 2px solid var(--bs-focus-ring-color); outline-offset: -2px; border-radius: .25rem .25rem 0 0; }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
	background: transparent; color: var(--nu-tab-active-color); font-weight: 500; cursor: default; border-bottom-color: var(--nu-tab-active);
}
.nav-tabs .nav-link.disabled { opacity: .55; }
.nav-tabs .nav-link .badge { margin-inline-start: .1rem; font-size: .75rem; line-height: 1.2; }
.nav-tabs .nav-link > .bi { font-size: .95em; }
/* tabs inside a card header: the header's bottom border is the base line */
.card-header-tabs { margin-bottom: calc(-1 * var(--bs-card-cap-padding-y)); border-bottom: 0; }

/* prompt generator */
.pgResult { min-height: 22rem; resize: vertical; white-space: pre-wrap; background: var(--bs-tertiary-bg); font-size: .78rem; line-height: 1.45; }
@media (min-width: 1200px) { .pgResultCard { position: sticky; top: calc(var(--nu-sticky-top, 57px) + var(--nu-sticky-h, 0px) + 1rem); } }
.min-w-0 { min-width: 0; }
.flex-none { flex: none; }

/* CSV import */
.impDrop { display: block; border: 2px dashed var(--bs-border-color); border-radius: .75rem; padding: 2rem 1rem; text-align: center; cursor: pointer; color: var(--bs-secondary-color); transition: border-color .15s, background .15s; position: relative; }
.impDrop:hover, .impDrop.dragover, .impDrop:focus-within { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); color: var(--bs-body-color); }
.impSteps li { display: flex; align-items: center; gap: .35rem; color: var(--bs-secondary-color); }
.impSteps li span { display: inline-flex; width: 1.5rem; height: 1.5rem; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid var(--bs-border-color); font-weight: 600; }
.impSteps li.active { color: var(--bs-primary); font-weight: 600; }
.impSteps li.active span { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.impSteps li.done span { background: var(--bs-success-bg-subtle); border-color: var(--bs-success-border-subtle); color: var(--bs-success-text-emphasis); }
.impPreview { max-height: 22rem; }
.impPreview td, .impPreview th { white-space: nowrap; max-width: 18rem; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
.impPreview thead th { position: sticky; top: 0; background: var(--bs-tertiary-bg); }
.impCustomDelim { max-width: 3.5rem; }
.impMap td { vertical-align: top; }
.impMap .impSrcCell { min-width: 12rem; }
.impMap .impPrev { min-width: 10rem; max-width: 18rem; }
.impPrevVal { max-width: 18rem; }
.impAutoMapped { background-color: var(--bs-success-bg-subtle); border-color: var(--bs-success-border-subtle); }
.impErrors { max-height: 24rem; }
.impBusy { cursor: progress; }

/* light theme: red outline buttons (Delete, Delete all, row delete buttons, Reset …) with the light red border #ebaab1;
   on hover Bootstrap's red fill (row buttons keep their soft hover). Dark mode unchanged. */
:root:not([data-bs-theme="dark"]) .btn.btn-outline-danger { --bs-btn-border-color: #ebaab1; --bs-btn-disabled-border-color: #ebaab1; }
.input-group > .btn.btn-outline-secondary { --bs-btn-border-color: var(--bs-border-color); }
/* filter button next to the search field: same border as the search button (also hover / open / focus) */
.btn.btn-outline-secondary.nuFilterToggle, .btn.btn-outline-secondary.nuListResetBtn { --bs-btn-border-color: var(--bs-border-color); --bs-btn-hover-border-color: var(--bs-border-color); --bs-btn-active-border-color: var(--bs-border-color); }
.btn.nuFilterToggle:focus-visible, .btn.nuListResetBtn:focus-visible { border-color: var(--bs-border-color); }
/* Print button of lists (#nuListPrint) and form browse lists (#nuPrintButton), row buttons in lists (Clone …): same border as the search button */
.nu-table .btn.btn-outline-secondary, .nu-table .btn.btn-outline-secondary.nuRowBtn,
.btn.btn-outline-secondary#nuListExportBtn, .btn.btn-outline-secondary#nuExportButton { --bs-btn-border-color: var(--bs-border-color); --bs-btn-hover-border-color: var(--bs-border-color); --bs-btn-active-border-color: var(--bs-border-color); }

/* inspect record (pages/nuinspect.php) */
.inspTable .inspValue { display: inline-block; max-width: min(55vw, 46rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; cursor: pointer; font-size: .85rem; }
.inspTable .inspValue.inspOpen { display: block; max-width: none; white-space: pre-wrap; overflow-wrap: anywhere; cursor: auto; }
.inspTable .inspValue.inspMasked { filter: blur(5px); user-select: none; cursor: default; }
.inspTable .inspType { font-size: .8rem; color: var(--bs-secondary-color); }
.inspSortBtn, .userPermSortBtn { font: inherit; color: inherit; text-decoration: none; text-transform: inherit; letter-spacing: inherit; }
.inspSortBtn:hover, .userPermSortBtn:hover { color: var(--bs-primary); }
th[aria-sort="ascending"] .inspSortBtn::after, th[aria-sort="ascending"] .userPermSortBtn::after { content: " \25B2"; font-size: .7em; }
th[aria-sort="descending"] .inspSortBtn::after, th[aria-sort="descending"] .userPermSortBtn::after { content: " \25BC"; font-size: .7em; }   /* user form permission items */
.permUsage > summary { cursor: pointer; color: var(--bs-secondary-color); width: fit-content; }
.permUsage > summary:hover, .permUsage[open] > summary { color: var(--bs-body-color); }   /* permission item: usage in code */
.userPermOpen { color: var(--bs-secondary-color); font-size: .85em; text-decoration: none; }
@media (min-width: 576px) { .userPermIdent { white-space: nowrap; } }   /* ident + link on one line; phones wrap */
.userPermOpen:hover, .userPermOpen:focus-visible { color: var(--bs-primary); }
.inspFacts dt { font-weight: 600; color: var(--bs-secondary-color); }
.inspFacts dd { margin-bottom: .25rem; }

/* access level: "Several…" dialog to add forms */
.nuAmList { max-height: 50vh; overflow-y: auto; }
.nuAmList .list-group-item { cursor: pointer; }

/* form cloner */
.nuClList { min-height: 6rem; max-height: 14rem; overflow-y: auto; }
.nuClSql { resize: vertical; }

/* app cloner */
.nuAcTables { max-height: 22rem; overflow-y: auto; }
.nuAcTable:last-child { border-bottom: 0 !important; }
.nuAcTable { cursor: pointer; }
.nuAcLog { max-height: 60vh; overflow-y: auto; }
.nuAcLine-step { font-weight: 600; margin-top: .35rem; }
.nuAcLine-error { color: var(--bs-danger-text-emphasis); font-weight: 600; }

/* list title with an (i) button: the hint opened below it wraps instead of pushing the buttons to a new line */
.nuInfoBtn { text-decoration: none; font-size: .85rem; }

/* grey outline buttons (Act as user, Clone, Back, Print, row and tool buttons …): hover light grey with dark text.
   The search / filter buttons keep their own hover; dark mode keeps Bootstrap's hover (dark text would not be readable there). */

/* REST API clients: curl example */
.nuApiExample { background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: .375rem; padding: .5rem .75rem; font-size: .78rem; white-space: pre-wrap; word-break: break-all; }

/* API playground (pages/nuapiplayground.php) */
.apgSide .apgList { max-height: calc(100vh - 14rem); overflow-y: auto; }
.apgSide .apgMeth, #apg .apgMeth { font-family: var(--bs-font-monospace); font-size: .75rem; min-width: 3.9rem; margin-inline-end: .35rem; }
.apgSide .apgPath { font-size: .76rem; word-break: break-all; }
.apgSide .apgFolderHead { font-size: .75rem; }
#apgMethod { min-width: 7rem; }
.apgCode { font-size: .8rem; tab-size: 2; min-height: 6rem; resize: vertical; }
.apgOut { background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: .375rem; padding: .5rem .75rem;
	font-size: .78rem; white-space: pre-wrap; word-break: break-word; max-height: 55vh; overflow: auto; }
@media (max-width: 991.98px) { .apgSide .apgList { max-height: 18rem; } }

/* validation markers (sob_all_validate): red * = no blanks, a neutral key = no duplicates (before a blue ◆; nu_unique_mark) */
[data-bs-theme="dark"] { --nu-mark-required: #ff6b6b; --nu-mark-unique: var(--bs-secondary-color); }
.nuRequired, .nuMarkRequired { color: var(--nu-mark-required); }
.nuMarkUnique { color: var(--nu-mark-unique); border-radius: .2rem; }
.nuMarks { display: inline-flex; align-items: baseline; gap: .2em; margin-inline-start: .25em; white-space: nowrap; font-weight: 600; }
.nuMark { cursor: help; line-height: 1; }
.nuMarkRequired { font-size: 1.05em; }
.nuMarkUnique { font-size: .95em; font-weight: 400; }
.nuMarkUnique:focus-visible { outline: 2px solid rgba(var(--bs-primary-rgb), .6); outline-offset: 1px; }
label > .nuMarkUnique, .form-label > .nuMarkUnique { margin-inline-start: .25em; }

/* phones: Save / Clone / Delete of edit pages and forms show only their icon (the text stays for screen readers and as tooltip) */
@media (max-width: 575.98px) {
	.nuTitleBar .btn:is([data-nu-save], :has(> .bi-copy), :has(> .bi-trash)),
	#nuSaveButton, #nuCloneButton, #nuDeleteButton { font-size: 0; padding-inline: .7rem; }
	.nuTitleBar .btn[data-nu-save] > .bi, .nuTitleBar .btn > .bi:is(.bi-copy, .bi-trash),
	#nuSaveButton > .bi, #nuCloneButton > .bi, #nuDeleteButton > .bi { font-size: 1.05rem; line-height: 1.45; margin: 0 !important; }
}

/* procedure edit form: labels above the fields */
/* procedure details (layout B): two rows, each field as wide as its content; full width on phones */
#procTabPhp .procFieldRow { display: flex; flex-wrap: wrap; gap: .625rem .875rem; align-items: flex-start; margin-bottom: .625rem; }
#procTabPhp .procFieldRow:last-child { margin-bottom: 0; }
#procTabPhp .procField { min-width: 0; flex: 0 0 auto; }
#procTabPhp .pf_code { width: 280px; }
#procTabPhp .pf_description { flex: 1 1 280px; max-width: 560px; }
#procTabPhp .pf_status { width: 140px; }
#procTabPhp .pf_group, #procTabPhp .pf_category { width: 200px; }
#procTabPhp .pf_zzzzsys_form_id { width: 320px; }
/* test run, set apart from the setting */
.procTestRun { margin-inline-start: .75rem; padding-inline-start: .75rem; border-inline-start: 1px solid var(--bs-border-color); }
@media (max-width: 575.98px) { .procTestRun { margin-inline-start: 0; padding-inline-start: 0; border: 0; width: 100%; } }
@media (max-width: 575.98px) { #procTabPhp .procField { width: 100%; max-width: none; flex: 1 1 100%; } }
.procLabel { font-weight: 600; color: var(--bs-secondary-color); margin-bottom: .35rem; }
#procTabPhp .procRunRow { margin-bottom: 1.25rem; }
.btn.btn-outline-secondary.procRunBtn { --bs-btn-color: var(--bs-body-color); --bs-btn-border-color: var(--bs-border-color); --bs-btn-hover-border-color: var(--bs-border-color); --bs-btn-active-border-color: var(--bs-border-color); }

/* nuBuilder settings (pages/nusettings.php) */
.setTable .setValueCol { min-width: 11rem; width: 14rem; }
.setTable .setDesc { max-width: 26rem; }
/* Settings: below 800 px the description column is hidden; an (i) next to the name shows it on tap / click */
.setTable .setDescTip { display: none; font-weight: 400; }
@media (max-width: 799.98px) {
	.setTable .setDescCol { display: none; }
	.setTable .setDescTip { display: inline-block; }
}
.setTable .setValue.setChanged { border-color: var(--bs-warning); box-shadow: 0 0 0 .15rem rgba(255, 193, 7, .25); }
/* settings: what a setting means for nuBuilder Next – used / not yet / not needed */
.setSt { cursor: help; font-size: .75rem; }
.setSt-next { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); border-color: var(--bs-success-border-subtle) !important; }
.setSt-open { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); border-color: var(--bs-warning-border-subtle) !important; }
.setSt-na { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); border-color: var(--bs-border-color) !important; }
.btn-group > .btn-check.btn-check:checked + .btn.setStBtn-next { color: var(--bs-success-text-emphasis); }   /* segmented control: only the colour of the status */
.btn-group > .btn-check.btn-check:checked + .btn.setStBtn-open { color: var(--bs-warning-text-emphasis); }   /* segmented control: only the colour of the status */

.setTable > thead th { position: sticky; top: 0; z-index: 1; }


/* globeadmin start page (pages/nuhome.php, assets/js/nuhome.js) */
.nuHomeGroupTitle { text-transform: uppercase; letter-spacing: .07em; font-size: .8rem; font-weight: 700; color: var(--bs-secondary-color); margin: 0 0 .65rem; }
.nuHomeIconSm { width: 2rem; height: 2rem; font-size: 1rem; }
.nuHomeList .list-group-item { padding-top: .6rem; padding-bottom: .6rem; }
.nuHomeList { max-width: 550px; }   /* list layout: a readable column instead of the full page width (phones: full width) */
.nuHomeList.nuHomeListWide { max-width: none; }   /* wide list: full page width */
/* list in 2 columns: full width, filled row by row (same order as the tiles); each row its own framed line; phones: one column */
@media (min-width: 768px) {
	.nuHomeList.nuHomeList2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; box-shadow: none !important; }
	.nuHomeList2 > .list-group-item, .nuHomeList2 > form > .list-group-item { border-width: var(--bs-list-group-border-width) !important;
		border-radius: var(--bs-list-group-border-radius) !important; box-shadow: var(--bs-box-shadow-sm); height: 100%; }
	.nuHomeList2 > form { margin: 0; }
	.nuHomeList2 > .nuHeEmpty { grid-column: 1 / -1; }
}
.nuHomeList .nu-tile-icon { width: 2.1rem; height: 2.1rem; font-size: 1.05rem; }
.nuHomeTabs { margin-bottom: 0; }
/* start page edit mode: the page itself is edited – tools on the tiles, drag with mouse or (hold, then drag) finger */
.nuHeBar { position: sticky; top: calc(var(--nu-nav-h, 0px) + .5rem); z-index: 1010;   /* below the top bar (1020) and its menus */
	 margin-bottom: 1rem; padding: .55rem .75rem; border: 1px solid var(--bs-primary-border-subtle);
	border-radius: .75rem; background: var(--bs-body-bg); box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .07); }
/* start page edit mode: Start from ▾ */
.nuHeStartMenu { width: 25rem; max-width: calc(100vw - 2rem); max-height: min(70vh, 38rem); overflow-y: auto; }
.nuHeStartMenu .dropdown-header { white-space: normal; }
.nuHeStartItem { display: flex; align-items: flex-start; gap: .65rem; padding-top: .45rem; padding-bottom: .45rem; white-space: normal; }
.nuHeStartIcon { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; margin-top: .1rem; border-radius: .55rem;
	background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.nuHeStartItem:hover .nuHeStartIcon, .nuHeStartItem:focus .nuHeStartIcon { background: var(--bs-primary); color: #fff; }
.nuHeNote { line-height: 1.4; }
/* Save as new layout → Based on */
.nuHlBaseBox { padding: .85rem 1rem 1rem; border-radius: .75rem; background: var(--nu-page); border: 1px solid var(--bs-border-color-translucent); }
.nuHeBarRow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.nuHomeEditing .nuHeItem { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.nuHomeEditing .nuHeItem > .nu-tile { position: relative; border: 1px dashed var(--bs-primary-border-subtle); }
.nuHomeEditing .nuHeItem > .nu-tile:hover { transform: none; box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .07) !important; border-color: var(--bs-primary); }
.nuHomeEditing .nuHeItem:focus-visible { outline: none; }
.nuHomeEditing .nuHeItem:focus-visible > .nu-tile, .nuHomeEditing .list-group-item.nuHeItem:focus-visible { box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .3) !important; }
.nuHeOwn { border-style: dashed; }
.nuHeTools { position: absolute; top: .4rem; inset-inline-end: .4rem; display: flex; gap: .2rem; opacity: 0; transition: opacity .12s; z-index: 2; }
.nuHeItem:hover .nuHeTools, .nuHeItem:focus-within .nuHeTools { opacity: 1; }
@media (hover: none) { .nuHeTools { opacity: 1; } }
.list-group-item.nuHeItem .nuHeTools { position: static; opacity: 1; flex: none; }
.nuHeToolBtn { width: 1.8rem; height: 1.8rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; line-height: 1;
	border: 1px solid var(--bs-border-color); border-radius: .4rem; background: var(--bs-body-bg); color: var(--bs-secondary-color); }
.nuHeToolBtn:hover, .nuHeToolBtn:focus-visible { color: var(--bs-primary); border-color: var(--bs-primary); background: var(--bs-body-bg); }
.nuHeToolBtn.nuHeToolDel:hover, .nuHeToolBtn.nuHeToolDel:focus-visible { color: var(--bs-danger); border-color: var(--bs-danger); }
.nuHeToolBtn.disabled { opacity: .35; }
.nuHeGroupHead { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: .65rem; }
.nuHeGroupTitle.form-control { flex: 0 1 22rem; min-width: 8rem; padding: .2rem .45rem; border-color: transparent; background: transparent; box-shadow: none;
	text-transform: uppercase; letter-spacing: .07em; font-size: .8rem; font-weight: 700; color: var(--bs-secondary-color); }
.nuHeGroupTitle.form-control:hover { border-color: var(--bs-border-color); }
.nuHeGroupTitle.form-control:focus { border-color: var(--bs-primary); background: var(--bs-body-bg); color: var(--bs-body-color); }
.nuHeGrip { padding: .1rem .2rem; border: 0; background: none; color: var(--bs-secondary-color); cursor: grab; touch-action: none; line-height: 1; }
.nuHeGrip:hover { color: var(--bs-primary); }
.nuHeDrop { min-height: 4.5rem; border-radius: .75rem; outline: 2px dashed transparent; outline-offset: .35rem; transition: outline-color .1s, background-color .1s; }
.nuHeDrop.list-group { min-height: 3rem; }
.nuHeDrop > .nuHeEmpty:is(.nuHeItem ~ *, :has(~ .nuHeItem)) { display: none; }   /* a tile in the group: no placeholder (asked from the placeholder itself) */
.nuHeEmpty { padding: 1rem; text-align: center; border: 1px dashed var(--bs-border-color); border-radius: .6rem; }
.row.nuHeDrop > .nuHeEmpty { margin-inline: calc(var(--bs-gutter-x) * .5); width: calc(100% - var(--bs-gutter-x)); }
.nuHeDragging .nuHeDrop { outline-color: var(--bs-border-color); }
.nuHeDragging .nuHeDrop.nuHeOver { outline-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); }
.nuHeDragging, .nuHeDragging * { cursor: grabbing !important; }
.nuHePlaceholder { opacity: .35; }
.nuHePlaceholder > .nu-tile, .list-group-item.nuHePlaceholder { border: 2px dashed var(--bs-primary) !important; }
.nuHeGroup.nuHePlaceholder { opacity: .45; outline: 2px dashed var(--bs-primary); outline-offset: .4rem; border-radius: .5rem; }
.nuHeGhost { position: fixed; z-index: 2000; pointer-events: none; margin: 0; padding: 0; opacity: .95; transform: rotate(1.5deg) scale(1.03);
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, .2); border-radius: .75rem; }
.nuHeGhost > .nu-tile { height: 100%; }
.nuHeGhost.list-group-item { border: 1px solid var(--bs-primary); background: var(--bs-body-bg); }
.nuHeGhostLabel { display: inline-flex; align-items: center; padding: .45rem .8rem; background: var(--bs-body-bg); border: 1px solid var(--bs-primary);
	font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--bs-body-color); }
.nuHeTabs .nav-link { cursor: pointer; user-select: none; height: auto; min-height: 28px; line-height: 1.5; padding-top: 2px; padding-bottom: 2px; }
.nuHeTabs .nuHeTab.active .nav-link { cursor: default; }
.nuHeTabInput { border: 0; padding: 0 .1rem; background: transparent; font: inherit; font-weight: 600; color: inherit; min-width: 3ch; }
.nuHeTabInput:focus { outline: 1px solid var(--bs-primary); border-radius: .2rem; }
.nuHeTabs .nuHeToolBtn { width: 1.5rem; height: 1.5rem; font-size: .75rem; }
.nuHeTabGrip { font-size: .85rem; }
.nuHeTab.nuHeOver .nav-link { background: var(--bs-primary-bg-subtle); border-color: var(--bs-primary); }
.nuHeTab.nuHePlaceholder { opacity: .4; }
.nuHeHidden { padding: .85rem 1rem 1rem; border: 1px dashed var(--bs-border-color); border-radius: .75rem; }
.nuHeHidden .nuHeItem:not(.nuHePlaceholder) > .nu-tile, .nuHeHidden .list-group-item.nuHeItem { opacity: .6; }
.nuHeHidden .nuHeItem:hover > .nu-tile, .nuHeHidden .list-group-item.nuHeItem:hover { opacity: 1; }

/* demo mode (core/nudemo.php): badge in the top bar, "Try the demo" on the login page */
.nuDemoBadge { background: #fff4e5; color: #8a4b00; border: 1px solid #f5c98b; font-weight: 600; padding: .45em .7em; white-space: nowrap; }
[data-bs-theme="dark"] .nuDemoBadge { background: rgba(245, 159, 0, .14); color: #ffc46b; border-color: rgba(245, 159, 0, .4); }
.nuLoginDemo { margin-top: 1.25rem; }
.nuLoginPasskey { margin-top: 1.25rem; }
.nuLoginPasskey .nuLoginOr { margin-bottom: .75rem; }
.nuLoginPasskeyCustom { max-width: 22rem; margin: 1rem auto 0; }
.nuPkBusy { cursor: progress; }
.nuLoginOr { display: flex; align-items: center; gap: .75rem; color: var(--bs-secondary-color); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.nuLoginOr::before, .nuLoginOr::after { content: ''; flex: 1; border-top: 1px solid var(--bs-border-color); }
.nuLoginSso { margin-bottom: 1.25rem; }
.nuLoginSso .nuLoginOr { margin-top: 1.25rem; }
.nuLoginPwFold > summary { cursor: pointer; color: var(--bs-link-color); list-style: none; }
.nuLoginPwFold > summary::-webkit-details-marker { display: none; }
.nuSsoRedirect { max-width: 640px; }
.nuSsoClaims { max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.nuLoginDemoCustom { max-width: 22rem; margin: 1rem auto 0; }


/* a button whose action is blocked (data-nu-info explains why on click) */
.btn.nuBtnBlocked { opacity: .5; }
.btn.nuBtnBlocked:hover { opacity: .8; }

/* right-to-left languages (Arabic: html dir="rtl" + bootstrap.rtl.min.css). Spacing above uses logical properties (inline-start / -end). */
[dir="rtl"] input.form-control[list]:not(.is-invalid):not(.is-valid) { background-position: left .75rem center; }
[dir="rtl"] .CodeMirror, [dir="rtl"] .CodeMirror-dialog, [dir="rtl"] .cfgCode, [dir="rtl"] .nuCodeTools { direction: ltr; text-align: left; }   /* code stays left to right */
[dir="rtl"] .bi-chevron-right::before, [dir="rtl"] .bi-chevron-left::before, [dir="rtl"] .bi-arrow-left::before, [dir="rtl"] .bi-arrow-right::before,
[dir="rtl"] .bi-chevron-double-left::before, [dir="rtl"] .bi-chevron-double-right::before, [dir="rtl"] .bi-box-arrow-up-right::before { transform: scaleX(-1); }   /* arrows point the reading way */
[dir="rtl"] code, [dir="rtl"] kbd, [dir="rtl"] .font-monospace { unicode-bidi: isolate; }

/* Admin tools → To do (pages/nutodo.php, developer mode): TODO.md as a page */
.nuTodo h2 { font-size: 1.35rem; margin: 0 0 1rem; }
.nuTodo h3 { font-size: 1.05rem; margin: 1.6rem 0 .6rem; padding-bottom: .3rem; border-bottom: 1px solid var(--bs-border-color); }
.nuTodo h4, .nuTodo h5 { font-size: .95rem; margin: 1rem 0 .4rem; }
/* folding sections */
.nuTodo .nuTodoSec > summary { display: flex; align-items: center; gap: .4rem; list-style: none; cursor: pointer; margin: 1.6rem 0 .6rem; padding-bottom: .3rem; border-bottom: 1px solid var(--bs-border-color); }
.nuTodo .nuTodoSec > summary::-webkit-details-marker { display: none; }
.nuTodo .nuTodoSec > summary h3 { margin: 0; padding: 0; border: 0; }
.nuTodo .nuTodoSec > summary:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; border-radius: .25rem; }
.nuTodo .nuTodoChev { font-size: .8rem; color: var(--bs-secondary-color); transition: transform .15s; }
.nuTodo .nuTodoSec:not([open]) > summary .nuTodoChev { transform: rotate(-90deg); }
.nuTodo .nuTodoSec:not([open]) > summary { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .nuTodo .nuTodoChev { transition: none; } }
.nuTodo .nuTodoList { list-style: none; padding-inline-start: 0; margin-bottom: .5rem; }
.nuTodo .nuTodoList .nuTodoList { padding-inline-start: 1.6rem; margin: .25rem 0; }
.nuTodo .nuTodoList > li { display: flex; align-items: flex-start; padding: .2rem 0; }
.nuTodo .nuTodoList > li:not(.nuTodoTask)::before { content: "•"; width: 1.5rem; flex: none; color: var(--bs-secondary-color); }
.nuTodo .nuTodoList > li > .form-check-input { flex: none; margin-top: .2rem; opacity: 1; }
.nuTodo .nuTodoDone > span { color: var(--bs-secondary-color); text-decoration: line-through; }
.nuTodo code { font-size: .85em; }
.cfgCM .cfgErrLine { background: rgba(var(--bs-danger-rgb), .18); }

/* nuHideHolders(1) / nuRemoveHolders(1): the top bar hidden on a form page */
html.nuNoNavbar { --nu-nav-h: 0px; }
html.nuNoNavbar .nu-navbar { display: none !important; }

/* own grab / grabbing hand for things that are dragged: black hand in light mode, white hand with dark outline in dark mode */
[data-bs-theme="dark"] {
	--nu-cursor-grab: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMgMTlWMTBhMyAzIDAgMCAxIDYgMHY3VjdhMyAzIDAgMCAxIDYgMHYxMFYxMGEzIDMgMCAwIDEgNiAwdjEybDEtM2EzIDMgMCAwIDEgNiAxbC0yIDEwYy0xIDUtNSA4LTExIDhoLTVjLTQgMC03LTItOS01TDMgMjRhMyAzIDAgMCAxIDUtM2w1IDZ6IiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiMyNjMyMzgiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+") 16 18, grab;
	--nu-cursor-grabbing: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNOSAxNmEzIDMgMCAwIDEgNiAwdjNhMyAzIDAgMCAxIDYtMWEzIDMgMCAwIDEgNiAwYTMgMyAwIDAgMSA2IDJsMiA2YzEgNy00IDEyLTExIDEyaC02Yy01IDAtOC0zLTEwLTdMNCAyM2EzIDMgMCAwIDEgNS0zbDMgNHoiIGZpbGw9IiNmZmZmZmYiIHN0cm9rZT0iIzI2MzIzOCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=") 16 18, grabbing;
}
.nuGrab { cursor: var(--nu-cursor-grab); }
.nuGrab:active { cursor: var(--nu-cursor-grabbing); }
.nuInfoTip { color: var(--bs-secondary-color); cursor: help; }
.nuInfoTip:hover, .nuInfoTip:focus { color: var(--bs-primary); outline: none; }
.nuInfoTip, [data-nu-doc] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* menus: a long press on a phone opens the entry, it never selects its text (fields inside a menu stay selectable) */
.dropdown-menu, .nuHomeCtx, .nuObjMenu { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.dropdown-menu.nuFormInfo, :is(.dropdown-menu, .nuHomeCtx, .nuObjMenu) :is(input, textarea, select, [contenteditable], pre, code, .CodeMirror, .cm-editor) { -webkit-user-select: text; user-select: text; }
.nuInfoTip.nuTipHeld { color: var(--bs-primary); transform: scale(1.35); transition: transform .12s; display: inline-block; }   /* long tap: lifting the finger opens the documentation */
.updHistoryItem > summary { cursor: pointer; list-style-position: outside; }
.updHistoryText { max-height: 28rem; overflow-y: auto; }
#updHistory { scroll-margin-top: calc(var(--nu-sticky-top, 57px) + var(--nu-sticky-h, 0px) + 1rem); }
.updBackupsNav .nuLfPer { display: none; } /* update page: backup list in a narrow card */
.nuOffscreen { position: fixed; left: -10000px; top: 0; opacity: 0; } /* copy fallback (assets/js/nuemail.js) */
.tooltip-inner { overflow-wrap: anywhere; } /* long paths in tooltips (e.g. PHPMailer folder) */
.nuTipWide .tooltip-inner { max-width: min(26rem, 90vw); text-align: start; }
.nuTipPre .tooltip-inner { white-space: pre-line; }   /* tooltip text with line breaks (update page: Folder writable) */
.updKeepNum { width: 5rem; }
/* user page (globeadmin): "Act as user" as the icon in front of the user name */
.nuImpIconBtn { padding: .1rem .35rem; font-size: inherit; line-height: 1; color: var(--bs-body-color); border: 1px solid transparent; border-radius: .5rem; }
.nuImpIconBtn:hover, .nuImpIconBtn:focus-visible, .nuImpIconBtn[aria-expanded="true"] { color: var(--bs-primary); background: var(--bs-tertiary-bg); border-color: var(--bs-border-color); }
.nuImpIcon .nuImpMenu { font-size: 1rem; font-weight: 400; line-height: 1.5; }


/* Admin tools → Security check: status also as a coloured left border (not only the icon) */
#secChecks .list-group-item { border-inline-start: 4px solid transparent; }
#secChecks .sec-bad { border-inline-start-color: var(--bs-danger); }
#secChecks .sec-warn { border-inline-start-color: var(--bs-warning); }
#secChecks .sec-ok { border-inline-start-color: var(--bs-success); }
#secChecks .sec-info { border-inline-start-color: var(--bs-info); }
#secProbe .list-group-item { border-inline-start: 4px solid transparent; }
#secProbe .list-group-item.sec-open { border-inline-start-color: var(--bs-danger); }
.nuAdminRight { cursor: help; }


/* Procedures: code, description, group, category, status, launch form in a collapsible block */
.procFields { border: 1px solid var(--bs-border-color); border-radius: .5rem; background: var(--bs-body-bg); }
.procFields > summary { cursor: pointer; padding: .55rem .9rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .25rem; list-style: none; }
.procFields > summary::-webkit-details-marker { display: none; }
.procFields > summary::before { content: "\F285"; font-family: bootstrap-icons; font-size: .8rem; margin-inline-end: .5rem; transition: transform .15s; display: inline-block; }
.procFields[open] > summary::before { transform: rotate(90deg); }
[dir="rtl"] .procFields:not([open]) > summary::before { transform: scaleX(-1); }
.procFields[open] > summary { border-bottom: 1px solid var(--bs-border-color); }
.procFieldsSumText { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.procFieldsBody { padding: .75rem; }

/* searchable lists opened in <body> (Tom Select dropdownParent 'body'): above the design panel (1014), flyouts / workspace
   (1016 / 1017), the side panes (1019), the top bar (1020) and modals (1055) – below tooltips (1080); before, z-index 1000 put the list
   of forms / procedures of the design panel behind the panel, so it looked empty */
body > .ts-dropdown { z-index: 1065; }

/* List search (nu_list_search): field + magnifier at most 350px wide; from md up its column only takes what it needs, so the
   filters (the next column) stand right next to it instead of after a half-width column. Phones: full width as before. */
@media (min-width: 768px) {
	.nuListSearch > .input-group { width: 350px; max-width: 100%; }
	.row > [class*="col-md-"]:has(> .nuListSearch) { flex: 0 0 auto; width: auto; max-width: 100%; }
}

/* lists: the first column (the record's name, usually a link) in body colour instead of blue – stays bold; underline on hover */
.table-responsive .table > tbody > tr > td:first-child a:not(.btn):not(.badge),
.table-responsive .table > tbody > tr > td:first-child > .text-primary,
.table-responsive .table > tbody > tr > td.nuMainCol a:not(.btn):not(.badge),
.table-responsive .table > tbody > tr > td.nuMainCol > .text-primary { color: var(--bs-body-color) !important; }
.table-responsive .table > tbody > tr > td:first-child a:not(.btn):not(.badge):hover,
.table-responsive .table > tbody > tr > td.nuMainCol a:not(.btn):not(.badge):hover { text-decoration: underline !important; }
/* the main column when the row buttons come first (forms list) */
.table > tbody > tr > td.nuRowActions { width: 1%; padding-inline-end: .25rem; }

/* single searchable selects keep one line: the search input no longer wraps below the chosen item (it has min-width 7rem) */
.ts-wrapper.single .ts-control { flex-wrap: nowrap; }
.ts-wrapper.single .ts-control > .item { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-wrapper.single .ts-control > input { min-width: 0 !important; flex: 1 1 0; }
/* a searchable select in an input group: its focus ring lies above the button next to it, as Bootstrap does for a focused
   .form-select (z-index 5) – without it the button covered the ring's right side */
.input-group > .ts-wrapper.focus { z-index: 5; }
.input-group > .ts-wrapper:not(:last-child) .ts-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* Update page → Libraries: group rows */
#updLibraries .nuLibGroup > td { background: var(--bs-tertiary-bg); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
#updLibraries > summary { cursor: pointer; list-style: none; }
#updLibraries > summary::-webkit-details-marker { display: none; }
#updLibraries:not([open]) > summary { border-bottom: 0; border-radius: inherit; }
#updLibraries .nuLibChevron { display: inline-block; transition: transform .15s; font-size: .8rem; }
#updLibraries[open] .nuLibChevron { transform: rotate(90deg); }
[dir="rtl"] #updLibraries:not([open]) .nuLibChevron { transform: scaleX(-1); }
#updLibraries .nuLibState { min-width: 9rem; }

/* backups: download · roll back · delete as one row of equal 2rem buttons; roll back neutral with an amber accent */
.updBkActions { display: inline-flex; align-items: center; gap: .35rem; }
.updBkActions form, .updBkActions .dropdown { display: inline-flex; margin: 0; }
.updBkActions .updBkDl { width: auto; padding-inline: .45rem; gap: .15rem; }
.updBkActions .updBkDl::after { margin-inline-start: .1rem; vertical-align: .15em; }
.btn.updRollback {
	--bs-btn-color: var(--bs-body-color); --bs-btn-bg: var(--bs-body-bg); --bs-btn-border-color: #d5dbe1;
	--bs-btn-hover-color: #7a4a00; --bs-btn-hover-bg: #fff6e0; --bs-btn-hover-border-color: #f0c36d;
	--bs-btn-active-color: #7a4a00; --bs-btn-active-bg: #ffecbf; --bs-btn-active-border-color: #e5ad3d;
	height: 2rem; display: inline-flex; align-items: center; padding: 0 .7rem; border-radius: .4rem; font-weight: 500;
}
.btn.updRollback .bi { color: #b26a00; }
[data-bs-theme="dark"] .btn.updRollback {
	--bs-btn-border-color: #3a4652; --bs-btn-hover-color: #ffd58a; --bs-btn-hover-bg: rgba(255, 193, 7, .12); --bs-btn-hover-border-color: #8a6a1f;
	--bs-btn-active-color: #ffd58a; --bs-btn-active-bg: rgba(255, 193, 7, .2); --bs-btn-active-border-color: #a8801f;
}
[data-bs-theme="dark"] .btn.updRollback .bi { color: #ffc54d; }
/* debug page: the auto refresh switch at the right end of the buttons, on phones in its own row */
.debugAutoWrap { margin-inline-start: auto; }
@media (max-width: 575.98px) { .debugAutoWrap { flex-basis: 100%; margin-inline-start: 0; order: 9; } }   /* the switch below the buttons and ⋮ */
@media (hover: none) { .nuHomeEditing .nuHeItem > .nu-tile > .card-body { padding-top: 2.75rem; } }   /* touch: the tools stay visible above the text */
@media (max-width: 575.98px) {
	.nuHeGroupHead { flex-wrap: nowrap; }
	.nuHeGroupTitle.form-control { flex: 1 1 auto; min-width: 0; }
	.nuHeGroupHead .nuHeGroupTab { max-width: 7rem; }
}
@media (max-width: 575.98px) { .nuHeBar .form-select { max-width: 9.5rem; } }

/* ▾ menu of the Database tile / card: star = make this tool the default */
.nuDbItem .dropdown-item { padding-right: .5rem; }
.nuDbStar { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin-right: .35rem; border: 0; border-radius: .375rem;
	background: transparent; color: var(--bs-secondary-color); }
button.nuDbStar:hover, button.nuDbStar:focus-visible { background: var(--bs-tertiary-bg); color: var(--bs-warning-text-emphasis); }
.nuDbStarOn { color: var(--bs-warning); }

/* dashboards (assets/js/nudashboard.js): start page and HTML objects of forms */
.nuDash { width: 100%; text-align: start; }
/* in an HTML object of a form (absolute layout: fixed size) – scroll when the dashboard is taller than the object */
.nuHtml:has([data-nu-dashboard]) { overflow: auto; }
.nuDashHead { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.nuDashTitle { font-size: 1.1rem; font-weight: 600; margin: 0; flex: 1 1 auto; }
.nuDashTools { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-inline-start: auto; }
.nuDashRange { width: auto; min-width: 10rem; }
.nuDashDate { width: 9.5rem; }
.nuDashCard { height: 100%; border-color: var(--bs-border-color-translucent); box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.nuDashCardHead { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem 0; }
.nuDashCardTitle { flex: 1 1 auto; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); }
.nuDashLink { color: var(--bs-secondary-color); }
.nuDashLink:hover { color: var(--bs-link-color); }
.nuDashBody { padding: .5rem 1rem 1rem; min-height: 5rem; transition: opacity .2s; }
.nuDashBusy { opacity: .55; }
.nuDashKpiValue { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); font-weight: 700; overflow-wrap: anywhere; line-height: 1.15; color: var(--bs-emphasis-color); font-variant-numeric: tabular-nums; }
.nuDashKpi-good { color: var(--bs-success-text-emphasis); }
.nuDashKpi-warn { color: var(--bs-warning-text-emphasis); }
.nuDashKpi-bad { color: var(--bs-danger-text-emphasis); }
.nuDashKpiDelta { margin-top: .3rem; font-size: .85rem; font-weight: 600; color: var(--bs-secondary-color); }
.nuDashUp { color: var(--bs-success-text-emphasis); }
.nuDashDown { color: var(--bs-danger-text-emphasis); }
.nuDashKpiPrev { margin-inline-start: .5rem; font-weight: 400; color: var(--bs-secondary-color); }
.nuDashKpiNote { margin-top: .25rem; font-size: .85rem; color: var(--bs-secondary-color); }
.nuDashMsg { padding: 1rem 0; text-align: center; color: var(--bs-secondary-color); font-size: .9rem; }
.nuDashErr { color: var(--bs-danger-text-emphasis); text-align: start; overflow-wrap: anywhere; }
.nuDashWait { font-style: italic; }
.nuDashTable { max-height: 22rem; overflow: auto; }
.nuDashRowLink { cursor: pointer; }
.nuDashRowLink:hover > td, .nuDashRowLink:focus-visible > td { background: var(--bs-tertiary-bg); }
.nuDashChart { min-height: 120px; }
.nuDashChart .apexcharts-tooltip { color: #212529; }
[data-bs-theme="dark"] .nuDashChart .apexcharts-tooltip { color: #f8f9fa; }
/* dashboard editor */
.dashSnippet { font-size: .85rem; user-select: all; }
.dashPreview { min-height: 6rem; }
.dashWidgetRow td { vertical-align: middle; }


/* update page: progress modal while installing */
.nuUpdSpinner { width: 3rem; height: 3rem; border-width: .3rem; }
/* update page, database steps: description and date wrap on narrow screens instead of widening the page */
.nuUpdStepDesc { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }


.nuHomeSearchBox { max-width: 26rem; }
.nuHomeSearchRow .nuHomeList { max-width: 550px; }
/* pin in a tile's ▾ menu */
.nuPinItem .dropdown-item { padding-inline-end: .5rem; }
.nuPinBtn { color: var(--bs-secondary-color); border: 0; padding: .15rem .5rem; margin-inline-end: .35rem; line-height: 1; }
.nuPinBtn:hover, .nuPinBtn:focus-visible { color: var(--bs-primary); background: var(--bs-tertiary-bg); }
.nuPinBtn.nuPinned { color: var(--bs-primary); }
/* Ctrl+K search box (assets/js/nupalette.js) */
.nuPaletteDialog { margin-top: 10vh; }
.nuPaletteDialog .modal-header kbd { font-size: .75rem; }
.nuPaletteList { max-height: 60vh; overflow-y: auto; }
.nuPaletteGroup { padding: .5rem 1rem .25rem; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--bs-secondary-color); }
.nuPaletteList .list-group-item { border: 0; padding: .45rem 1rem; }
.nuPaletteList .list-group-item.active { background: var(--bs-primary-bg-subtle); color: var(--bs-emphasis-color); }
.nuPaletteList .list-group-item.active .bi { color: var(--bs-primary) !important; }
.nuPaletteKw { max-width: 40%; }



/* Tom Select inside an input group (user form: access level + open button) */
.input-group > .ts-wrapper { flex: 1 1 auto; width: 1%; min-width: 0; }
/* Admin tools → Custom code: group labels in the tab row – Form pages | All pages */

/* Tutorial (pages/nututorial.php) */
.tutProgress .progress { height: .5rem; }
.tutIndex .list-group { max-height: calc(100vh - 14rem); overflow-y: auto; }
@media (max-width: 991.98px) { .tutIndex .list-group { max-height: none; } }
.tutIndex .tutPart { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); padding-top: .35rem; padding-bottom: .35rem; }
.tutIndex .tutChapter { font-weight: 600; font-size: .9rem; border-bottom: 0; padding-bottom: .15rem; }
.tutIndex .tutLessonLink { font-size: .875rem; padding-left: 1.5rem; border-top: 0; }
.tutIndex .tutLessonLink.active .bi { color: inherit !important; }
.tutBody { line-height: 1.6; }
.tutBody h4 { font-size: 1.05rem; margin-top: 1.25rem; }
.tutBody ul, .tutBody ol { padding-left: 1.4rem; }
.tutBody li { margin-bottom: .25rem; }
.tutBody code { font-size: .85em; }
.tutBody kbd { font-size: .8em; }
.tutBody .tut-task { border: 1px solid var(--bs-success-border-subtle); background: var(--bs-success-bg-subtle); border-radius: .5rem; padding: .75rem 1rem; margin: 1.25rem 0 .5rem; }
.tutBody .tut-task ol, .tutBody .tut-task ul { margin-bottom: 0; }
.tutBody .tutTaskHead { font-weight: 600; margin-bottom: .4rem; color: var(--bs-success-text-emphasis); }
.tutBody .tut-note { border-left: 3px solid var(--bs-warning); padding: .25rem .75rem; margin: .75rem 0; background: var(--bs-warning-bg-subtle); border-radius: 0 .375rem .375rem 0; }
.tutBody .tut-tip { border-left: 3px solid var(--bs-info); padding: .25rem .75rem; margin: .75rem 0; background: var(--bs-info-bg-subtle); border-radius: 0 .375rem .375rem 0; }
.tutBody a.tutOpen, .tutBody a.tutHelp { white-space: nowrap; }
.tutChapterCard a { text-decoration: none; }
/* two tracks: choice screen, "Advanced" badge */
.tutChoice { transition: border-color .15s, box-shadow .15s; }
.tutChoice:hover, .tutChoice:focus-within { border-color: var(--nu-accent); box-shadow: 0 4px 14px rgba(15, 23, 42, .1) !important; }
.tutChoiceIcon { color: var(--nu-accent); }
.tutAdvBadge { font-weight: 500; font-size: .75rem; vertical-align: .1em; color: var(--bs-primary-text-emphasis); background: var(--bs-primary-bg-subtle); border: 1px solid var(--bs-primary-border-subtle); }
.list-group-item.active .tutAdvBadge { color: inherit; background: transparent; border-color: currentColor; }

/* List views (core/nulistview.php): column widths, phone cards, editor */
.nuLv .nuLvNarrow { width: 1%; white-space: nowrap; }
.nuLv .nuLvWide { min-width: 18rem; }
.nuLvMenuBtn .nuLvMenuName { display: inline-block; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
.nuLvMenu { max-height: 70vh; overflow-y: auto; min-width: 16rem; }
.nuLvCards { padding: .5rem .75rem; }
/* phones: cards or table – the view's choice (.nuLvPhoneTable), overridden per device by <html data-lv-phone> (nutheme.js) */
.nuLv .nuLvCards, .nuLv .nuLvPhoneToTable, .nuLv .nuLvPhoneToCards { display: none; }
@media (max-width: 767.98px) {
	.nuLv .nuLvTableWrap { display: none; }
	.nuLv .nuLvCards { display: block; }
	.nuLv.nuLvPhoneTable .nuLvTableWrap, html[data-lv-phone="table"] .nuLv .nuLvTableWrap { display: block; }
	.nuLv.nuLvPhoneTable .nuLvCards, html[data-lv-phone="table"] .nuLv .nuLvCards { display: none; }
	html[data-lv-phone="cards"] .nuLv .nuLvTableWrap { display: none; }
	html[data-lv-phone="cards"] .nuLv .nuLvCards { display: block; }
	/* the button shows the layout it switches to */
	.nuLv .nuLvPhoneToTable { display: inline; }
	.nuLv.nuLvPhoneTable .nuLvPhoneToTable, html[data-lv-phone="table"] .nuLv .nuLvPhoneToTable { display: none; }
	.nuLv.nuLvPhoneTable .nuLvPhoneToCards, html[data-lv-phone="table"] .nuLv .nuLvPhoneToCards { display: inline; }
	html[data-lv-phone="cards"] .nuLv .nuLvPhoneToTable { display: inline; }
	html[data-lv-phone="cards"] .nuLv .nuLvPhoneToCards { display: none; }
	/* the table on a phone: tighter, first column stays while the rest scrolls sideways */
	.nuLv .nuLvTableWrap .nu-table { font-size: .875rem; }
	.nuLv .nuLvTableWrap .nu-table > :not(caption) > * > * { padding: .4rem .5rem; white-space: nowrap; }
	.nuLv .nuLvTableWrap .nu-table th:first-child, .nuLv .nuLvTableWrap .nu-table td:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--bs-body-bg); box-shadow: inset -1px 0 0 var(--bs-border-color); }
	/* floating titles (nuHeadFloat lifts every title to z-index 4): the title of the first column stays above the others while they scroll sideways */
	.nuLv .nuLvTableWrap .nu-table.nuHeadFloat > thead > tr > th:first-child { position: sticky; z-index: 5; }
}
.nuLvCard { display: block; padding: .6rem .75rem; margin-bottom: .5rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; background: var(--bs-body-bg); color: var(--bs-body-color); text-decoration: none; }
.nuLvCard:hover, .nuLvCard:focus { border-color: var(--bs-primary); color: var(--bs-body-color); }
.nuLvCardHead { display: flex; align-items: flex-start; gap: .5rem; }
.nuLvCardTitle { font-weight: 600; margin-right: auto; min-width: 0; overflow-wrap: anywhere; }
.nuLvCardBadge { flex-shrink: 0; }
.nuLvCardLine { display: flex; gap: .5rem; font-size: .875rem; margin-top: .15rem; min-width: 0; }
.nuLvCardLabel { color: var(--bs-secondary-color); flex: 0 0 auto; max-width: 45%; }
.nuLvCardLabel::after { content: ":"; }
.nuLvCardVal { min-width: 0; overflow-wrap: anywhere; }
.nuLvCardDemo { pointer-events: none; }
.nuLvEdTable td, .nuLvEdTable th { vertical-align: middle; }
.nuLvEdTable select { min-width: 7rem; }
.nuLvGrip { cursor: grab; color: var(--bs-secondary-color); width: 1.5rem; }
.nuLvDragging { opacity: .5; }
.nuLvLevels { max-height: 12rem; overflow-y: auto; }
.nuLv .nuLvThumbCell { width: 1%; }
.nuLv .nuLvThumb { width: 2.5rem; height: 2.5rem; object-fit: contain; border-radius: .25rem; background: var(--bs-tertiary-bg); }

/* audit trail: history of a record – the same column widths in every block */
.nuAudTable { table-layout: fixed; }
.nuAudTable th:first-child { width: 25%; }
.nuAudTable th:last-child { width: 3.5rem; }
.nuAudOld { color: var(--bs-secondary-color); }


/* start page favourites: "Favourites only" – assets/css/nuhome.css */
.nuHomeFavBtn.active, .nuHomeFavBtn.active:hover { color: #e0a800; background: var(--bs-body-bg); border-color: var(--bs-border-color); }
.nuHeToolFav, .nuHeToolFav:hover { color: #e0a800 !important; }

/* Customise: favourites keep a star in the corner (the tools with ★ take its place on hover); "Favourites" shows only them */
.nuHeFavMark { position: absolute; top: .5rem; inset-inline-end: .65rem; color: #e0a800; font-size: .95rem; line-height: 1; z-index: 1; pointer-events: none; transition: opacity .12s; }
.nuHeItem:hover .nuHeFavMark, .nuHeItem:focus-within .nuHeFavMark { opacity: 0; }
@media (hover: none) { .nuHeFavMark { display: none; } }
.nuHeFavInline { color: #e0a800; font-size: .85em; }
.nuHeFavOnly .nuHeItem:not([data-fav]) { display: none !important; }
.nuHeFavOnly .nuHeGroup:not(:has([data-fav])), .nuHeFavOnly .nuHeHidden { display: none !important; }

/* compact start page tiles: the description as tooltip – mouse over, or a long tap on phones (no copy / link menu then) */
[data-nu-hint] { -webkit-touch-callout: none; }

/* side bar (nu_sidebar() in core/nulayout.php, assets/js/nusidebar.js): favourites and recently used on the left – a drawer
   (body.nuSbOpen) on every screen width */
/* notification centre: the bell (red badge = unread), its panel, the level colours, toasts and the list page */
.nuBellBtn { position: relative; }
.nuBellBtn.nuBellHas { color: var(--bs-danger); border-color: var(--bs-danger); }
.nuBellBadge { position: absolute; top: -.45rem; inset-inline-end: -.45rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px;
	background: var(--bs-danger); color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.15rem; text-align: center; box-shadow: 0 0 0 2px var(--bs-body-bg); }
.nuBellRing > .bi { display: inline-block; animation: nuBellRing .9s ease-in-out 1; transform-origin: 50% 0; }
@keyframes nuBellRing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .nuBellRing > .bi { animation: none; } }
/* the debug icon (core/nudebugbell.php): only there while new Debug results exist – red, with the bell's badge and panel */
.nuDbgBtn { position: relative; }
.nuDbgPanel { width: min(26rem, calc(100vw - 1rem)); }
.nuDbgList { max-height: 22rem; overflow-y: auto; }
.nuDbgRead, #nuDbgOpen { white-space: nowrap; }
.nuDbgItem { display: flex; gap: .6rem; padding: .5rem 1rem; border-bottom: 1px solid var(--bs-border-color-translucent); color: var(--bs-body-color); text-decoration: none; }
.nuDbgItem:hover, .nuDbgItem:focus-visible { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.nuDbgItem.nuDbgNew { background: var(--bs-danger-bg-subtle); }
.nuDbgAt { flex: none; font-size: .8rem; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; padding-top: .1rem; }
.nuDbgMain { display: flex; flex-direction: column; min-width: 0; }
.nuDbgTitle { font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.nuDbgText { font-size: .78rem; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nuBellPanel { width: min(380px, calc(100vw - 1.5rem)); }
.nuBellList { max-height: min(60vh, 460px); overflow-y: auto; }
.nuBellItem { padding: .65rem .9rem; border-bottom: 1px solid var(--bs-border-color-translucent); }
.nuBellItem:last-child { border-bottom: 0; }
.nuBellUnread { background: var(--bs-primary-bg-subtle); }
.nuBellUnread .nuBellTitle { font-weight: 600; }
.nuBellBody { color: var(--bs-secondary-color); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nuBellTool { width: 1.7rem; height: 1.7rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--bs-secondary-color); border: 1px solid transparent; }
.nuBellTool:hover, .nuBellTool:focus-visible { color: var(--bs-primary); border-color: var(--bs-border-color); background: var(--bs-body-bg); }
.nuBellIcon { line-height: 1.3; }
.nuBellLv-info .nuBellIcon, .nuBellIcon.nuBellLv-info { color: var(--bs-info-text-emphasis); }
.nuBellLv-success .nuBellIcon, .nuBellIcon.nuBellLv-success { color: var(--bs-success); }
.nuBellLv-warning .nuBellIcon, .nuBellIcon.nuBellLv-warning { color: #d39e00; }
.nuBellLv-danger .nuBellIcon, .nuBellIcon.nuBellLv-danger { color: var(--bs-danger); }
.nuBellToasts { z-index: 1090; margin-top: 3.5rem; }
.nuWelcomeToasts { z-index: 1090; margin-top: 3.5rem; }   /* user form: which welcome e-mail is sent */
.nuBellToast { cursor: pointer; }
.nuNtfItem.nuBellUnread { border-color: var(--bs-primary-border-subtle) !important; }
.nuNtfItem.nuBellLv-danger { border-inline-start: 4px solid var(--bs-danger) !important; }
.nuNtfItem.nuBellLv-warning { border-inline-start: 4px solid #d39e00 !important; }

/* notification form: the level choice – a segmented control (block "segmented controls" at the end) */

/* --nu-sticky-top / --nu-sticky-h: where the sticky rows stop – nuapp.js sets them only when a page differs from these (a draft banner, a sticky title row) */
.nuShell { display: flex; align-items: flex-start; min-height: calc(100vh - var(--nu-nav-h)); }
.nuShellMain { flex: 1 1 auto; min-width: 0; }
.nuSidebar { flex: none; width: var(--nu-sb-w); position: sticky; top: var(--nu-nav-h); height: calc(100vh - var(--nu-nav-h)); overflow-y: auto; overflow-x: hidden;
	background: var(--nu-surface); border-right: 1px solid var(--bs-border-color); display: flex; flex-direction: column;
	top: 0;
	left: 0;
	bottom: 0;
	transform: translateX(-100%);
	visibility: hidden;
	transition: transform .2s ease, visibility .2s;
	box-shadow: none;
 }
.nuSbHead { display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem .85rem .75rem; border-bottom: 1px solid var(--bs-border-color-translucent); }
.nuSbTitle { flex: 1 1 auto; display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); min-width: 0; }
.nuSbTitle .bi { font-size: 1.05rem; }
.nuSbClose, .nuSbClear, .nuSbFav { border: 0; background: none; color: var(--bs-secondary-color); border-radius: .375rem; line-height: 1; padding: .35rem .4rem; }
.nuSbClose:hover, .nuSbClear:hover, .nuSbFav:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.nuSbBody { padding: .5rem .5rem 1rem; }
.nuSbSec { margin-top: .5rem; }
.nuSbSecTitle { display: flex; align-items: center; gap: .45rem; margin: 0; padding: .55rem .5rem .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); }
.nuSbSec-fav .nuSbSecTitle { color: var(--nu-sb-fav-text); }   /* text 4.5:1 (the star icons keep the brighter --nu-sb-fav) */
.nuSbSecTitle .nuSbText { flex: 1 1 auto; }
.nuSbCount { font-size: .75rem; font-weight: 600; min-width: 1.4rem; text-align: center; padding: .1rem .4rem; border-radius: 1rem; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); letter-spacing: 0; }
.nuSbSec-fav .nuSbCount { background: color-mix(in srgb, var(--nu-sb-fav) 16%, var(--nu-surface)); color: var(--nu-sb-fav-text); }
.nuSbClearForm { display: inline-flex; }
.nuSbClear { padding: .15rem .3rem; font-size: .85rem; }
.nuSbMenu { position: fixed; z-index: 1080; margin: 0; min-width: 12rem; }   /* right-click menu of "Recently used" */
.xaRow > :is(select, .ts-wrapper) { flex: 1 1 auto; min-width: 0; width: 1%; }   /* user form: additional access levels */
.xaRow > .xaUntil { flex: 0 0 auto; width: 9.25rem; }   /* just the date + picker icon */
@media (max-width: 575.98px) { .xaRow > .xaUntil { width: 7.75rem; padding-inline: .35rem; } .xaRow > .input-group-text { padding-inline: .35rem; } }
.nuFormStatus { cursor: context-menu; border-radius: var(--bs-border-radius-pill); }   /* forms list: status with right-click menu */
.nuFormStatus:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.nuFormStatusBusy { opacity: .5; }
.nuSbList { list-style: none; margin: 0; padding: 0; }
.nuSbItem { display: flex; align-items: center; border-radius: .5rem; border: 1px solid transparent; margin: 1px 0; }
.nuSbItem:hover { background: var(--bs-tertiary-bg); }
.nuSbItem.active { background: var(--nu-sb-active); border-color: color-mix(in srgb, var(--nu-accent) 25%, transparent); }
.nuSbSec-fav .nuSbItem.active { background: color-mix(in srgb, var(--nu-sb-fav) 9%, var(--nu-surface)); border-color: color-mix(in srgb, var(--nu-sb-fav) 30%, transparent); }
.nuSbGrow { flex: 1 1 auto; min-width: 0; }
.nuSbForm { margin: 0; }
.nuSbLink { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .4rem .5rem; color: var(--bs-body-color); text-decoration: none; border: 0; background: none; text-align: left; border-radius: .5rem; }
.nuSbLink:hover { color: var(--bs-body-color); }
.nuSbItem.active .nuSbLink { font-weight: 600; }
.nuSbIcon { --nu-ic: var(--nu-sb-c, var(--nu-accent)); flex: none; width: 2rem; height: 2rem; border-radius: .5rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
	background: color-mix(in srgb, var(--nu-ic) 13%, var(--nu-surface)); color: color-mix(in srgb, var(--nu-ic) 85%, var(--bs-body-color)); }
[data-bs-theme="dark"] .nuSbIcon { background: color-mix(in srgb, var(--nu-ic) 24%, var(--nu-surface)); color: color-mix(in srgb, var(--nu-ic) 60%, #fff); }
.nuSbLabel { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nuSbStar { flex: none; margin-right: .2rem; }
.nuSbFav { font-size: .9rem; }
.nuSbFav.on { color: var(--nu-sb-fav); }
span.nuSbFav { padding: .35rem .4rem; }
.nuSbItem:not(.fav) .nuSbFav { opacity: 0; }
.nuSbItem:not(.fav):hover .nuSbFav, .nuSbItem:not(.fav) .nuSbFav:focus-visible { opacity: 1; }
.nuSbEmpty { margin: 0; padding: .1rem .5rem .4rem; font-size: .8rem; color: var(--bs-secondary-color); }
/* a drawer on every screen width: opened by the button left of the logo – no column next to the page, no icon rail */
.nuShell { display: block; min-height: 0; }
.nuSidebar { position: fixed; height: 100vh; width: min(var(--nu-sb-w), 85vw); z-index: 1050; }
body.nuSbOpen .nuSidebar { transform: none; visibility: visible; box-shadow: 0 0 2rem rgba(0, 0, 0, .25); }
body.nuSbOpen { overflow: hidden; }
.nuSbClose { display: inline-block; }
.nuSbBackdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 1045; }
@media (hover: none) { .nuSbItem:not(.fav) .nuSbFav { opacity: 1; } }
/* pinned (.nuShell.nuSbPinned): from 992 px a column next to the page that stays on every page – sticky below the top bar,
   no backdrop; below 992 px the drawer as before. The pin button shows only where pinning works. */
.nuSbPin { display: none; border: 0; background: none; color: var(--bs-secondary-color); border-radius: .375rem; line-height: 1; padding: .35rem .4rem; }
.nuSbPin:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.nuSbPin[aria-pressed="true"] { color: var(--nu-accent); }
@media (min-width: 992px) {
	.nuSbPin { display: inline-block; }
	.nuShell.nuSbPinned { display: flex; align-items: flex-start; min-height: calc(100vh - var(--nu-nav-h)); }
	.nuShell.nuSbPinned .nuSidebar { position: sticky; top: var(--nu-nav-h); bottom: auto; height: calc(100vh - var(--nu-nav-h)); width: var(--nu-sb-w); z-index: 1;
		transform: none; visibility: visible; box-shadow: none; transition: none; }
	.nuShell.nuSbPinned .nuSbClose { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nuSidebar { transition: none; } }
@media print { .nuSidebar, .nuSbOpenBtn { display: none !important; } .nuShell { display: block; } }

/* scrollbars: thin, soft grey, rounded – light and dark (data-bs-theme). Chrome / Edge / Safari use the ::-webkit-scrollbar rules
   (rounded thumb); browsers without them (Firefox) the standard scrollbar-width / scrollbar-color – set only there, because Chromium
   ignores the ::-webkit-scrollbar rules as soon as scrollbar-color is set */
@supports not selector(::-webkit-scrollbar) {
	* { scrollbar-width: thin; scrollbar-color: var(--nu-sb-thumb) var(--nu-sb-track); }
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--nu-sb-track); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--nu-sb-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--nu-sb-thumb-hover); }
::-webkit-scrollbar-corner { background: var(--nu-sb-track); }

/* column widths by dragging a title (browse lists, system lists – window.nuColResize in nuapp.js): pan-y leaves the sideways
   move to the drag on touch screens; the right edge shows the resize cursor; after the first drag the widths are fixed (nuColFixed), titles
   and cells end with … when narrow */
table.nuColResize > thead > tr > th:is(.nuBrowseTitle, [data-nu-col]) { position: relative; touch-action: pan-y; }
table.nuColResize > thead > tr > th:is(.nuBrowseTitle, [data-nu-col])::after { content: ''; position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 8px; cursor: col-resize; }
table > thead > tr > th.nuColResizing { box-shadow: inset -2px 0 0 var(--bs-primary); }
[dir="rtl"] table > thead > tr > th.nuColResizing { box-shadow: inset 2px 0 0 var(--bs-primary); }
table.nuColFixed { table-layout: fixed; }
table.nuColFixed > thead > tr > th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.nuColFixed > tbody > tr > td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.nuColFixed > tbody > tr > td :is(div, p) { overflow: hidden; text-overflow: ellipsis; }
table.nuColFixed > tbody > tr > td[colspan] { white-space: normal; }   /* "No records" */
body.nuColResizingBody, body.nuColResizingBody * { cursor: col-resize !important; user-select: none; }

/* Custom code templates: dialogue with list + code preview */
.scodeTplMenu { max-height: 60vh; overflow-y: auto; }
.scodeTplBody { min-height: 50vh; }
.scodeTplList { max-height: 65vh; overflow-y: auto; }
.scodeTplCat { background: var(--bs-tertiary-bg); font-size: .75rem; letter-spacing: .05em; }
.scodeTplCode { max-height: 55vh; overflow: auto; padding: .75rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; background: var(--bs-tertiary-bg); font-size: .8rem; white-space: pre; }
.scodeHint { max-width: 60rem; }

/* password policy checklist (NuPwPolicy::rulesHtml) */
.nuPwRules li { line-height: 1.5; }
.nuPwRules li.nuPwOk { color: var(--bs-success-text-emphasis); }
.nuPwRules li.nuPwBad { color: var(--bs-danger-text-emphasis); }

/* Sample data page (pages/nusample.php): list of samples left, status dots, passwords masked until "Show passwords" */
.smpDot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; }
.smpDotOn { background: var(--bs-success); }
.smpDotOut { background: var(--bs-warning); }
.smpDotOff { border: 2px solid var(--bs-secondary-color); }
#smpList .list-group-item .smpListSub { color: var(--bs-secondary-color); }
#smpList .list-group-item.active .smpListSub { color: inherit; }
#smpList .list-group-item.active .smpDotOff { border-color: currentColor; }
.smpPwMasked .smpPwVal { display: none; }
.smpLogins:not(.smpPwMasked) .smpPwDots { display: none; }

/* accessibility (dev/tests/a11y.js – WCAG AA, text contrast at least 4.5:1): Bootstrap's grey #6c757d of outline buttons,
   its link blue and a few own colours are a little too light on the grey page (#f4f6f9) or too dark in dark mode. */
:root:not([data-bs-theme="dark"]) .btn-outline-secondary { --bs-btn-color: #5c636a; }
:root:not([data-bs-theme="dark"]) { --bs-link-color: #0a58ca; --bs-link-color-rgb: 10, 88, 202; --bs-link-hover-color: #084298; --bs-link-hover-color-rgb: 8, 66, 152; --nu-tab-active-color: #1f6fb8; }
:root:not([data-bs-theme="dark"]) .btn.nuBtnSave.nuSaveEdited { --bs-btn-color: #b02a37; --bs-btn-hover-color: #b02a37; --bs-btn-active-color: #b02a37; --bs-btn-disabled-color: #b02a37; }
[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-color: #adb5bd; }
[data-bs-theme="dark"] .btn-outline-primary { --bs-btn-color: #6ea8fe; }
[data-bs-theme="dark"] { --nu-th-color: #9aa5b1; }
[data-bs-theme="dark"] .nuHelpBody .doc-red { color: #ea868f; }
/* phones (a11y.js): wide help tables scroll inside their box, the update page's file field fits the screen */
@media (max-width: 575.98px) {
	.nuHelpBody table { display: block; max-width: 100%; overflow-x: auto; }
	#updPackage { max-width: 100%; }
}
/* more contrast: "+ Add" buttons, the import steps, red texts in dark mode, CodeMirror's line numbers */
:root:not([data-bs-theme="dark"]) .btn.nuAddBtn { --bs-btn-color: #5c636a; }
[data-bs-theme="dark"] .btn.nuAddBtn { --bs-btn-color: #adb5bd; }
.impSteps li.active { color: var(--bs-link-color); }
[data-bs-theme="dark"] .text-danger, [data-bs-theme="dark"] .nuNegative { color: #ea868f !important; }
.CodeMirror .CodeMirror-linenumber, .cm-s-default .CodeMirror-linenumber { color: #666; }
[data-bs-theme="dark"] .CodeMirror .CodeMirror-linenumber { color: #9aa5b1; }
[data-bs-theme="dark"] .btn-outline-danger { --bs-btn-color: #ea868f; }
[data-bs-theme="dark"] .btn-outline-success { --bs-btn-color: #75b798; }   /* usability review G10: #198754 on the dark page was 3.4:1 */
[data-bs-theme="dark"] .text-success { color: #75b798 !important; }
/* more contrast (a11y.js): outline buttons in primary / warning colour, green status lines */
:root:not([data-bs-theme="dark"]) .btn-outline-primary { --bs-btn-color: #0a58ca; }
:root:not([data-bs-theme="dark"]) .btn-outline-warning { --bs-btn-color: #8a6400; }
:root:not([data-bs-theme="dark"]) .text-success { color: #146c43 !important; }
/* CodeMirror in dark mode (before, every editor kept CodeMirror's light colours on the dark page): one palette for the
   form runtime, procedures, builder, nuconfig.php; colours with at least 4.5:1 on the editor background */
[data-bs-theme="dark"] .CodeMirror { background: #1c2027; color: #e9ecef; }
[data-bs-theme="dark"] .CodeMirror .CodeMirror-gutters { background: #1c2027; border-right-color: #343a40; }
[data-bs-theme="dark"] .CodeMirror .CodeMirror-cursor { border-left-color: #e9ecef; }
[data-bs-theme="dark"] .CodeMirror div.CodeMirror-selected, [data-bs-theme="dark"] .CodeMirror-focused div.CodeMirror-selected { background: #2f3b4a; }
[data-bs-theme="dark"] .CodeMirror .cm-keyword, [data-bs-theme="dark"] .CodeMirror .cm-attribute { color: #c792ea; }
[data-bs-theme="dark"] .CodeMirror .cm-atom, [data-bs-theme="dark"] .CodeMirror .cm-number { color: #f78c6c; }
[data-bs-theme="dark"] .CodeMirror .cm-def, [data-bs-theme="dark"] .CodeMirror .cm-variable-2, [data-bs-theme="dark"] .CodeMirror .cm-header, [data-bs-theme="dark"] .CodeMirror .cm-link { color: #82aaff; }
[data-bs-theme="dark"] .CodeMirror .cm-variable, [data-bs-theme="dark"] .CodeMirror .cm-punctuation { color: #e9ecef; }
[data-bs-theme="dark"] .CodeMirror .cm-variable-3, [data-bs-theme="dark"] .CodeMirror .cm-type, [data-bs-theme="dark"] .CodeMirror .cm-builtin { color: #ffcb6b; }
[data-bs-theme="dark"] .CodeMirror .cm-property { color: #9cdcfe; }
[data-bs-theme="dark"] .CodeMirror .cm-operator { color: #89ddff; }
[data-bs-theme="dark"] .CodeMirror .cm-comment { color: #9aa5b1; }
[data-bs-theme="dark"] .CodeMirror .cm-string, [data-bs-theme="dark"] .CodeMirror .cm-qualifier { color: #c3e88d; }
[data-bs-theme="dark"] .CodeMirror .cm-string-2, [data-bs-theme="dark"] .CodeMirror .cm-tag { color: #f07178; }
[data-bs-theme="dark"] .CodeMirror .cm-meta, [data-bs-theme="dark"] .CodeMirror .cm-bracket { color: #b0b8c0; }
[data-bs-theme="dark"] .CodeMirror .cm-error { color: #ff8e98; background: transparent; }
[data-bs-theme="dark"] .CodeMirror .CodeMirror-matchingbracket { color: #c3e88d !important; outline: 1px solid #4f5c6a; }

/* toggle with a chevron that turns when its collapse is open (update page → Other ways to update) */
.nuChevToggle .bi-chevron-right { display: inline-block; transition: transform .2s; }
.nuChevToggle:not(.collapsed) .bi-chevron-right { transform: rotate(90deg); }
[dir="rtl"] .nuChevToggle:not(.collapsed) .bi-chevron-right { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) { .nuChevToggle .bi-chevron-right { transition: none; } }

/* update page → packages in the folder _update: the list at most 450 px wide, Check package below it */
.nuUpdFolderList { max-width: 450px; }

/* flash messages as toasts (nu_flash(…, true)): top right, below the top bar */
.nuFlashToasts { top: 3.5rem; z-index: 1090; }

/* light mode: pressed / selected grey buttons (pin of the ☰ menu, Active · Archived · All, Basic · Advanced …) and grey badges
   in a lighter grey than Bootstrap's #6c757d;
   back to #6c757d – white text on #8a939b has only 3.1:1 (WCAG AA needs 4.5:1, dev/tests/a11y.js) */
/* pin of the ☰ menu when pinned: grey pin on a light background instead of the filled grey button */
.btn.btn-outline-secondary#nuNavPin.active { background-color: #e9ecef; border-color: #ced4da; color: #6c757d; }
[data-bs-theme="dark"] .btn.btn-outline-secondary#nuNavPin.active { background-color: #2b3138; border-color: #4a535c; color: #adb5bd; }

/* phones: only a small gap between the top bar and the page (py-4 = 24 px above) */
@media (max-width: 575.98px) {
	main#main.py-4 { padding-top: 4px !important; }
}
/* form drafts: preview banner under the top bar, badge in iframes */
.nuDraftBanner { position: sticky; top: var(--nu-nav-h, 0px); z-index: 1015; background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); }
.nuDraftBanner .btn-outline-dark { --bs-btn-color: var(--bs-warning-text-emphasis); --bs-btn-border-color: var(--bs-warning-border-subtle); }
.nuDraftBadge { position: fixed; top: .35rem; inset-inline-end: .35rem; z-index: 1080; padding: .1rem .45rem; border-radius: .35rem; font-size: .75rem; font-weight: 600;
	letter-spacing: .04em; background: var(--bs-warning); color: #000; pointer-events: none; }

/* ---------------------------------------------------------------- page forms (form type "page"): the iframe of the wrapper */
.nuPageWrap .nuPageFrame { display: block; width: 100%; border: 0; height: calc(100vh - 150px); min-height: 200px; background: var(--bs-body-bg); }
.nu-bare .nuPageWrap .nuPageFrame { height: 100vh; }
.nuPageWrap .nuPageCrumbs .breadcrumb { font-size: .875rem; }
.nuPageToasts { z-index: 1090; }

/* update page: "Update from GitHub" as label / value rows */
.nuGhInfo { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 2.5rem; margin-bottom: 1.25rem; }
.nuGhInfo dt { font-weight: 400; color: var(--bs-secondary-color); }
.nuGhInfo dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.nuGhInfo .badge { font-weight: 500; font-size: .85em; padding: .4em .8em; }
.nuGhBadgePre { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); }
.nuGhBadgeMuted { background: var(--bs-secondary-bg); color: var(--bs-body-color); }
@media (max-width: 575.98px) { .nuGhInfo { grid-template-columns: 1fr; gap: .1rem; } .nuGhInfo dd { margin-bottom: .5rem; } }
.nuGhAgain { font-size: .9em; text-decoration: none; vertical-align: baseline; }
.nuGhAgain:hover { text-decoration: underline; }

/* update page tabs: one line, scrolls sideways on phones; dot = something to look at in "System" */
.nuUpdTabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.nuUpdTabs .nav-link { white-space: nowrap; position: relative; }   /* keeps the visually-hidden dot text inside the scroll box */
.nuTabDot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; vertical-align: middle; }

/* print view of lists: × after each column title hides the column */
:is(.nu-print-table, .nuPrintCols) .nuColHidden { display: none !important; }
/* print views: the table shows once assets/js/nuprintlist.js has hidden / moved the remembered columns (no jump) – anyway after 2 s */
:is(.nu-print-table, body.nuPrintView #nuBrowseTable):not(.nuPrintCols) { visibility: hidden; animation: nuRvShow 0s 2s forwards; }
:is(.nu-print-table, .nuPrintCols) th .nuColHide { border: 0; background: none; padding: 0 .1rem; margin-left: .25rem; line-height: 1; color: var(--bs-secondary-color); vertical-align: middle; }
:is(.nu-print-table, .nuPrintCols) th .nuColHide:hover, :is(.nu-print-table, .nuPrintCols) th .nuColHide:focus-visible { color: var(--bs-danger); }
/* columns moved by dragging their title: grab cursor, the dragged title faded, a line where it lands */
@media screen { .nuPrintCols th.nuPrintDrag { cursor: grab; } }
.nuPrintCols th.nuPrintDragging { opacity: .45; }
.nuPrintCols th.nuPrintDropBefore { box-shadow: inset 3px 0 0 var(--bs-primary); }
.nuPrintCols th.nuPrintDropAfter { box-shadow: inset -3px 0 0 var(--bs-primary); }

/* page size menu in the list footer */
.nuLfPerBtn { color: var(--bs-secondary-color); font-size: inherit; padding: .15rem .5rem; border: 1px solid transparent; }
.nuLfPerBtn:hover, .nuLfPerBtn:focus-visible, .nuLfPerBtn.show { color: var(--bs-body-color); border-color: var(--bs-border-color); }
.nuLfPerMenu { min-width: 9rem; font-size: .875rem; }
.cfgInsLine { background: var(--bs-success-bg-subtle); }
.cfgInsList { max-height: 50vh; overflow: auto; }
.cfgInsItem code { color: var(--bs-body-color); }
/* API clients list: the scopes of a client in a small menu – never wider than the screen, long descriptions wrap */
.nuApiScopes .dropdown-menu { max-width: min(92vw, 480px); }
.nuApiScopes .dropdown-item-text { white-space: normal; }

/* notifications → Manage: the ⋯ column stays visible when the table scrolls sideways on phones */
.nuCopyBuffer { position: fixed; left: -10000px; top: 0; opacity: 0; }
/* tabs a script opens after loading – hidden until then (nutheme.js / nuapp.js) */
html.nuTabsPending [data-nu-tab-restore] { visibility: hidden; }
.CodeMirror.scodeCM { height: calc(100vh - 400px); min-height: 360px; }   /* without JS; nuglobalcode.js fits it to the window – .CodeMirror: codemirror.css loads later */
.scodeTools:empty { display: none; }
.updBkSelCol { width: 2.5rem; padding-inline-start: 1rem !important; }

/* access level: data mode / form type per form – the whole option text visible (the table scrolls on small screens) */
.nu-rights .nuAccMode-dm { min-width: 16.5rem; }
.nu-rights .nuAccMode-ft { min-width: 10rem; }

/* setup wizard: fields as wide as their content needs, not the whole column */
/* setup wizard: Back · Next · steps in one row that stays below the top bar; phones: a step menu instead of the tabs */
.nuWizBar { position: sticky; top: var(--nu-nav-h, 57px); z-index: 1010; display: flex; align-items: center; gap: .75rem; padding: .5rem 1rem;
	background: var(--nu-surface); border-top: 1px solid var(--bs-border-color); border-bottom: 1px solid var(--bs-border-color); box-shadow: 0 4px 10px rgba(16, 24, 40, .05); }
html.nuNoNavbar .nuWizBar { top: 0; }
.nuWizBar > .nuWizBack { flex: none; min-width: 2.5rem; }
.nuWizBar > .btn-primary { flex: none; }
.nuWizSteps { flex: 1; min-width: 0; flex-wrap: nowrap; border-bottom: 0; margin-inline-start: .5rem; }
.nuWizSteps .nav-link { white-space: nowrap; padding: .45rem .7rem; }
.nuWizSteps button.nav-link { background: none; border-color: transparent; }
.nuWizStepMenu { display: none; flex: 1; min-width: 0; }
.nuWizStepMenu .dropdown-toggle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 991.98px) {
	.nuWizSteps { display: none; }
	.nuWizStepMenu { display: block; }
}
@media (max-width: 575.98px) {
	.nuWizBar { gap: .5rem; padding: .5rem .75rem; }
	.nuWizBack .nuWizBtnTxt { display: none; }
}
#wizForm #lang { width: 260px; max-width: 100%; }
#wizForm #timezone + .ts-wrapper, #wizForm select#timezone { width: 320px; max-width: 100%; }
#wizForm #timeout, #wizForm #timeout_ga { width: 80px; }
#wizForm #base_url { max-width: 520px; }
#wizForm #nub_path { max-width: 640px; }
#wizForm #title { max-width: 400px; }
#wizForm #env_label { max-width: 200px; }
#wizForm #env_color { width: 80px; }
#wizForm #dbtool { max-width: 300px; }
#wizForm #pw1, #wizForm #pw2 { width: 320px; max-width: 100%; }   /* side by side (col-sm-auto) */
#wizForm #admin_email { max-width: 400px; }

/* jquery-confirm dialogs (Delete … – form runtime and nuBuilder form code) follow the theme: the library's box is always
   white while title and text took the light text colour of dark mode – unreadable */
.jconfirm .jconfirm-box { color: var(--bs-body-color); }
.jconfirm .jconfirm-box div.jconfirm-title-c, .jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content { color: var(--bs-emphasis-color); }
.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content { color: var(--bs-body-color); }
[data-bs-theme="dark"] .jconfirm .jconfirm-box { background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); }
[data-bs-theme="dark"] .jconfirm.jconfirm-light .jconfirm-box { box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .6); }
[data-bs-theme="dark"] .jconfirm.jconfirm-light .jconfirm-bg { background-color: #000; opacity: .55; }
[data-bs-theme="dark"] .jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default { background: var(--bs-secondary-bg); color: var(--bs-body-color); }
[data-bs-theme="dark"] .jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default:hover { background: var(--bs-border-color); }
[data-bs-theme="dark"] .jconfirm .jconfirm-box div.jconfirm-closeIcon { color: var(--bs-body-color); }

/* Code editors: the label opens Copy / Paste / Paste (replace existing) (nucodetools.js) */
.nuClipLabel { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.nuClipLabel:hover, .nuClipLabel:focus-visible { color: var(--bs-link-color); }
.nuClipMenu { min-width: 14rem; max-width: calc(100vw - 16px); }
.nuClipMenu.nuClipManual { padding: .5rem; width: 22rem; }
.nuClipFlash { margin-left: .5rem; vertical-align: middle; }

/* Data access of a form (pages/nudataaccess.php) */
.daField > summary { cursor: pointer; list-style-position: inside; }
.daRules select.daType { min-width: 11rem; }
.daRules .daSubject { min-width: 11rem; }
.daRules select.daMode { min-width: 10rem; }
.daRules td:nth-child(5) input { min-width: 14rem; }

/* form info / record info (i) panel (own record pages) – NuFormInfo::panel */
.nuFormInfo { width: 26rem; max-width: calc(100vw - 2rem); }
.nuFormInfoList { padding: 0; }
.nuFormInfoRow { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; align-items: center; gap: .5rem; min-height: 1.85rem; padding: .1rem .25rem .1rem .5rem; margin: 0 -.5rem; border-radius: .375rem; }
.nuFormInfoRow:hover { background: var(--bs-tertiary-bg); }
.nuFormInfoRow dt { font-weight: 400; color: var(--bs-secondary-color); margin: 0; }
.nuFormInfoRow dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.nuFormInfoRow code { color: var(--bs-body-color); }
.nuFormInfoCopy { padding: 0 .35rem; line-height: 1.6; color: var(--bs-secondary-color); }
.nuFormInfoCopy:hover, .nuFormInfoCopy:focus-visible { color: var(--bs-primary); }
.nuFormInfoSqlBig { white-space: pre-wrap; word-break: break-word; font-size: .875rem; background: var(--bs-tertiary-bg); padding: .75rem 1rem; border-radius: .375rem; min-height: 8rem; }
.nuFormInfoSql { max-height: 8rem; overflow: auto; white-space: pre-wrap; font-size: .8em; background: var(--bs-tertiary-bg); padding: .25rem .4rem; border-radius: .25rem; }

/* … and then the breadcrumb shows the record's name (the page's own breadcrumb leaves it out while a heading says it) */
body.nuRecPage:not(.nuRecKeep) main > nav > .breadcrumb .breadcrumb-item.active { display: revert; }   /* nuRecKeep: nu_layout_buffer() */

/* a form whose fields join the flex row around it (update page: options, then Install + Cancel on their own row) */
.nuContents { display: contents; }

/* update page: database choice of the backup before an update – on phones the select goes below its label and fits the screen */
.updBkDbRow { min-width: 0; max-width: 100%; }
.updBkDbSel { width: auto; min-width: 0; max-width: 100%; }   /* also Backups → Back up now */
@media (max-width: 575.98px) {
	.updBkDbRow { flex: 1 1 100%; }
	.updBkDbRow > label { flex: 0 0 calc(100% - 2rem); white-space: normal !important; }
	.updBkDbRow .updBkDbSel { flex: 1 1 0; }
}

/* Reset database (pages/nudbreset.php) */
.dbrTables { max-height: 16rem; }
.dbrNarrow { max-width: 24rem; }
.dbrWide { max-width: 32rem; }
.brandLogoShow { max-width: 24rem; }

/* Themes (pages/nuthemes.php) */
.thNarrow { max-width: 24rem; }
.thSwatch { display: inline-flex; flex-shrink: 0; border: 1px solid var(--bs-border-color); border-radius: .4rem; overflow: hidden; }
.thSw { display: block; width: .8rem; height: 2.2rem; }
.thCardDefault { border-color: var(--bs-primary); box-shadow: 0 0 0 1px var(--bs-primary); }
.thColor .thPick { flex: 0 0 2.4rem; max-width: 2.4rem; padding: .15rem; }
.thColor.thEmpty .thPick { opacity: .35; }
.thColor .thHex { font-family: var(--bs-font-monospace); font-size: .8rem; }
.thPreview { display: block; width: 100%; height: 640px; border: 1px solid var(--bs-border-color); border-radius: .5rem; background: var(--bs-body-bg); }
@media (min-width: 1200px) { .thPreviewWrap { position: sticky; top: calc(var(--nu-sticky-top, 57px) + var(--nu-sticky-h, 0px) + 1rem); } .thPreview { height: calc(100vh - 9rem); min-height: 520px; } }
.thPreviewBody { min-height: 100vh; }
.thLevels select { max-width: 20rem; }

/* sections of a tab (nuapp.js): long tap / right-click on a tab; the card jumped to lights up briefly */
.nuTabSections { min-width: 12rem; max-width: calc(100vw - 16px); }
.card.nuSectionFlash { box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .35) !important; transition: box-shadow .3s; }
.nav-tabs [data-bs-toggle="tab"] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.nuTabSecArrow { display: inline-flex; align-items: center; margin-inline-start: .3rem; padding: .1rem .2rem; border-radius: .3rem; font-size: .75rem; opacity: .7; cursor: pointer; }
.nuTabSecArrow:hover { opacity: 1; background: var(--bs-secondary-bg); }

/* a CHOSEN grey button (Active · Archived · All, toggles with .active)
   is light blue with blue text – the blue of the active tab; a pressed button or an open dropdown toggle stays light grey; grey badges
   (counts, Archived …) are a light grey with dark text (contrast 8:1 light / 9:1 dark) */
.btn.btn-outline-secondary:not(.nuSearchBtn), .btn.btn-outline-secondary.nuRowBtn, .btn.btn-outline-secondary.nuToolBtn {
	--bs-btn-active-bg: #e7f1ff; --bs-btn-active-border-color: #9ec5fe; --bs-btn-active-color: #0a58ca; }
.btn.btn-outline-secondary:is(.show, :active):not(.active, .btn-check:checked + *) { background-color: #e9ecef; border-color: #ced4da; color: var(--bs-body-color); }
[data-bs-theme="dark"] .btn.btn-outline-secondary:not(.nuSearchBtn), [data-bs-theme="dark"] .btn.btn-outline-secondary.nuRowBtn,
[data-bs-theme="dark"] .btn.btn-outline-secondary.nuToolBtn { --bs-btn-active-bg: rgba(13, 110, 253, .2); --bs-btn-active-border-color: #3d6fb5; --bs-btn-active-color: #9ec5fe; }
[data-bs-theme="dark"] .btn.btn-outline-secondary:is(.show, :active):not(.active, .btn-check:checked + *) { background-color: #2b3138; border-color: #4a535c; color: var(--bs-body-color); }
.btn-check:checked + .btn.btn-outline-secondary .badge.text-bg-light, .btn.btn-outline-secondary.active .badge.text-bg-light { background-color: #cfe2ff !important; color: #0a58ca !important; border-color: transparent !important; }
[data-bs-theme="dark"] .btn-check:checked + .btn.btn-outline-secondary .badge.text-bg-light, [data-bs-theme="dark"] .btn.btn-outline-secondary.active .badge.text-bg-light { background-color: rgba(13, 110, 253, .35) !important; color: #cfe2ff !important; }
.text-bg-secondary { background-color: #eceff2 !important; color: #495057 !important; }
[data-bs-theme="dark"] .text-bg-secondary { background-color: #343a40 !important; color: #dee2e6 !important; }
.badge.text-bg-secondary { font-weight: 600; }
/* ---------------------------------------------------------------- sticky button row: header row of form and record pages stays
   under the top bar; once stuck a box-shadow paints the page colour around it (no layout shift) plus a hairline below */
.nuStickyBar { position: sticky; top: calc(var(--nu-sticky-top, var(--nu-nav-h, 57px)) + .5rem); z-index: 1010; background: var(--nu-page); }
.nu-bare .nuStickyBar { top: .5rem; }
.nuStickyBar.nuStuck { box-shadow: 0 0 0 .5rem var(--nu-page), 0 1px 0 .5rem var(--bs-border-color); }
@media print { .nuStickyBar { position: static; box-shadow: none !important; } }
@media (max-width: 575.98px) { .nuStickyBar.nuStickyBackOnly { position: static; box-shadow: none; } }
/* anchors / scrollIntoView land below the sticky rows */

/* system list filters: per list (class nuLvFlt-<list key> on #nuLvFilters, core/nulistview.php) – permission items: the group filter */
.nuLvFlt-permissions #lvf_group, .nuLvFlt-permissions #lvf_group + .ts-wrapper { max-width: 450px; }
/* [hidden] wins over Bootstrap's display utilities (.d-flex / .d-inline-flex / .d-block are !important too – list rows hidden by a filter) */
.d-flex[hidden], .d-inline-flex[hidden], .d-block[hidden], .d-inline-block[hidden], .d-grid[hidden] { display: none !important; }

/* welcome e-mail preview of the user form (assets/js/nuuser.js) – the mail in an iframe of its own, editable */
.nuWpvFrame { display: block; width: 100%; height: min(60vh, 34rem); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); background: #f4f6f9; }
.nuWpvSource { height: min(60vh, 34rem); font-size: .8125rem; }

/* users: Position, Department, Team, Status at most 280 px; admin roles: Has users at most 200 px */
.nuLvFlt-users :is(#lvf_pos, #lvf_dept, #lvf_team, #lvf_state), .nuLvFlt-users :is(#lvf_pos, #lvf_dept, #lvf_team, #lvf_state) + .ts-wrapper { max-width: 280px; }
/* users on desktop: every filter 250 px wide, the same gap between all of them */
@media (min-width: 992px) {
	.nuLvFlt-users > .row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0; }
	.nuLvFlt-users > .row > [class*="col-"] { flex: 0 0 250px; width: 250px; max-width: 250px; padding: 0; margin: 0; }
	.nuLvFlt-users :is(#lvf_pos, #lvf_dept, #lvf_team, #lvf_state), .nuLvFlt-users :is(#lvf_pos, #lvf_dept, #lvf_team, #lvf_state) + .ts-wrapper { max-width: none; }
}
.nuLvFlt-adminroles #lvf_has_users, .nuLvFlt-adminroles #lvf_has_users + .ts-wrapper { max-width: 200px; }
#userPermGroup { max-width: 450px; }   /* user form permission items: group filter */
/* themes: "Per access level" folds */
.thLevelsToggle .thChevron { display: inline-block; transition: transform .15s; } .thLevelsToggle:not(.collapsed) .thChevron { transform: rotate(90deg); }
/* dashboard form, Access levels tab: group filter */
.dashAccGroup { width: auto; max-width: 280px; }
/* long list cells fold to three lines (.nuLvClamp – the log's details) */
.nuLvClamp.nuLvClamped { max-height: 4.6em; overflow: hidden; position: relative; }
.nuLvClamp.nuLvClamped::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.4em; background: linear-gradient(to bottom, transparent, var(--bs-body-bg)); pointer-events: none; }
.nuLvMore { font-size: inherit; text-decoration: none; }

/* Security check: the state badges filter the list */
.secFlt { cursor: pointer; } .secFlt:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.secFlt.secFltOn { box-shadow: 0 0 0 2px var(--bs-body-bg), 0 0 0 4px var(--bs-primary); } .secFlt.secFltOff { opacity: .55; }

/* integrity check: long lists wrap */
.nuIcRows code { white-space: normal; word-break: break-word; }
.nuIcItem > summary { cursor: pointer; }
/* laptops / tablets: less room above the breadcrumb (was py-4 = 24 px) */
@media (min-width: 576px) {
	main#main.py-4 { padding-top: .625rem !important; }
}

/* settings centre (core/nusettingshub.php): side bar of sections + search, the page to the right */
main.nuSetPage { max-width: 1500px; }
.nuSetFrame { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.nuSetNav { position: sticky; top: calc(var(--nu-sticky-top, 64px) + .5rem); z-index: 1012; padding-bottom: .5rem; }
.nuSetNav .nuSetSections { max-height: calc(100vh - var(--nu-sticky-top, 64px) - 5rem); overflow-y: auto; flex-wrap: nowrap; }
.nuSetNav .nav-link { color: var(--bs-body-color); border-radius: var(--bs-border-radius); padding: .4rem .65rem; font-size: .925rem; }
.nuSetNav .nav-link:hover { background: var(--bs-tertiary-bg); }
.nuSetNav .nav-link.active { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); font-weight: 600; }
.nuSetNav .nuSetSub { margin: .15rem 0 .35rem 1.65rem; border-left: 2px solid var(--bs-border-color); }
.nuSetNav .nuSetSub .nav-link { font-size: .85rem; padding: .25rem .6rem; border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0; }
.nuSetNav .nuSetSub .nav-link.active { background: transparent; color: var(--bs-primary-text-emphasis); }
.nuSetSearch { position: relative; margin-bottom: .75rem; }
.nuSetSearch > .bi-search { position: absolute; left: .6rem; top: .45rem; color: var(--bs-secondary-color); pointer-events: none; font-size: .85rem; }
.nuSetSearch input { padding-left: 1.9rem; }
.nuSetResults { position: absolute; z-index: 1030; left: 0; top: calc(100% + 4px); width: min(480px, calc(100vw - 2rem)); max-height: 60vh; overflow-y: auto; box-shadow: var(--bs-box-shadow); }
.nuSetResults .nuSetHitDesc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nuSetResults .list-group-item.active .text-body-secondary, .nuSetResults .list-group-item.active .nuSetHitVal { color: inherit !important; }
.nuSetHitVal { color: var(--bs-secondary-color); }
.nuSetHit { animation: nuSetHit 2.4s ease-out; border-radius: var(--bs-border-radius); }
@keyframes nuSetHit { 0%, 40% { box-shadow: 0 0 0 3px var(--bs-warning); background-color: var(--bs-warning-bg-subtle); } 100% { box-shadow: 0 0 0 0 transparent; } }
fieldset.contents { display: contents; }
.nuSetSecCard:hover { border-color: var(--bs-primary-border-subtle); }
.nuSetSecPages { color: var(--bs-secondary-color); }
.shBkNum { width: 6rem; }
@media (max-width: 991.98px) {
	.nuSetFrame { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
	.nuSetNav { position: static; }
	.nuSetNav .nuSetSections { max-height: none; flex-direction: row !important; flex-wrap: nowrap; overflow-x: auto; gap: .25rem; padding-bottom: .25rem; }
	
	.nuSetNav .nuSetSections > .nav-item > .nav-link { white-space: nowrap; }
	.nuSetNav .nuSetSub { display: none; }
}
.shBkKeepGrp { max-width: 14rem; }
/* compact top bar: no logo in the bar – phones keep the icons in the bar, the user menu's button is the ☰ */
@media (max-width: 767.98px) {
	.nuNavCompact .nuNavInner { flex-wrap: nowrap; }
	.nuNavCompact .navbar-brand { min-width: 0; overflow: hidden; }
	.nuNavCompact .nuUserBtn::after { display: none; }
	.nuNavCompact .nuUserBtn .nuUserHam { font-size: 1.15rem; line-height: 1; }
}

/* record pages: the breadcrumb names the record, so the title bar shows only the buttons, left as on every page.
   The heading stays for screen readers (visually hidden); it is shown – compact – only where it carries more than the name: a badge
   (expired, template, status …) or a control (the user form's "Act as user" icon). Pages mark the bar class nuRecHead. */
.nuTitleBar.nuRecHead > h1:not(:has(.badge, a, button)) { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
	margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.nuTitleBar.nuRecHead > h1 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; min-width: 0; }
.nuTitleBar.nuRecHead > h1 .bi { font-size: 1.1em; }
/* webhooks (pages/nuwebhooks.php): the body of a call */
.nuWhBody { max-height: 32rem; overflow: auto; white-space: pre-wrap; word-break: break-word; }

/* IP access (pages/nuipaccess.php) */
.nuIpaFilter { max-width: 260px; }
.nuIpaModeCol { width: 210px; }
.nuIpaTestIp { max-width: 320px; }
#ipaLevels textarea { min-width: 220px; }

/* no logo: the page's breadcrumb in the top bar next to the Home button, desktop only (assets/js/nuapp.js navCrumbs) */
.nuNavCrumbs { min-width: 0; flex: 0 1 auto; margin: 0 1rem 0 .35rem; display: flex; align-items: center; align-self: center; }   /* centred like the buttons */
.nuNavCrumbs[hidden] { display: none; }
/* no flash while a page loads: from 768 px the page's own breadcrumb is hidden by CSS at once – before nuapp.js moves it
   into the top bar (it stood below the bar for a moment on every load, e.g. when a browse list is sorted) */
@media (min-width: 768px) { body:is(.nuNavCrumbsOn, #nuNone) #main nav[aria-label="breadcrumb"] { display: none; } }   /* the class: the bar has the slot #nuNavCrumbs (core/nulayout.php; was body:has(#nuNavCrumbs) – see the row highlight; #nuNone = the weight of before) */
.nuNavCrumbs .breadcrumb { margin: 0 !important; font-size: .875rem; flex-wrap: nowrap; overflow: hidden; }   /* the page's mb-2 / mb-0 */
.nuNavCrumbs .breadcrumb-item { white-space: nowrap; }
.nuNavCrumbs .breadcrumb-item:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nuNavCrumbs .nuCrumbHome { display: none; }
.nuNavCrumbs .nuCrumbHome + .breadcrumb-item { padding-left: 0; }
.nuNavCrumbs .nuCrumbHome + .breadcrumb-item::before { display: none; }
.nuNavCompact .navbar-brand:not(:has(img, .nu-brand-title)) { display: none !important; }   /* nothing to show: the breadcrumb right after the Home button */

/* admin role form: links to the page of a right, flat (sorted) table without group rows */
.admRightLink { color: inherit; text-decoration: none; }
.admRightLink:hover { color: var(--bs-primary); text-decoration: underline; }
/* admin role form: the titles stay on screen below the top bar and the sticky button row; no overflow box around the
   table – overflow would make sticky work inside the box instead of the page; phones show the rows as cards without titles */
#admRights > thead > tr > th { position: sticky; top: calc(var(--nu-sticky-top, var(--nu-nav-h, 57px)) + var(--nu-sticky-h, 0px) + .5rem); z-index: 3;
	background: var(--bs-card-bg, var(--bs-body-bg)); box-shadow: inset 0 -1px 0 var(--bs-border-color); }

/* admin role rights (review F4): on phones every right is one row – its name, then None · View · Change as a segmented control */
.admLvl { display: inline-flex; align-items: center; gap: .35rem; margin: 0; cursor: pointer; }
.admLvlTxt { display: none; }

/* Data export editor */
.dxpCols td { vertical-align: middle; }
.dxpCols .form-select-sm, .dxpCols .form-control-sm { min-width: 110px; }
.dxpColsWrap { max-height: 420px; overflow: auto; }
.dxpCM { border: 1px solid var(--bs-border-color); border-radius: .375rem; height: auto; min-height: 160px; }
.dxpCM .CodeMirror-scroll { min-height: 160px; max-height: 420px; }
.dxpPreview th { white-space: nowrap; }
.dxpPreview td { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dxpDsTabs .nav-link { padding: .25rem .6rem; font-size: .9rem; }
.dxpParam { max-width: 420px; }
/* phones: dashboard tables as stacked rows (review F2): the first column as the title, the others as "Column: value" */
@media (max-width: 575.98px) {
	.nuDashTable { max-height: none; overflow: visible; }
	.nuDashTable > table > thead { display: none; }
	.nuDashTable > table > tbody > tr { display: flex; flex-wrap: wrap; column-gap: .75rem; padding: .5rem .25rem; border-bottom: 1px solid var(--bs-border-color); }
	.nuDashTable > table > tbody > tr > td { display: block; border: 0; padding: 0; text-align: start !important; font-size: .875rem; color: var(--bs-secondary-color); min-width: 0; overflow-wrap: anywhere; }
	.nuDashTable > table > tbody > tr > td:first-child { flex: 1 0 100%; font-size: 1rem; font-weight: 600; color: var(--bs-body-color); }
	.nuDashTable > table > tbody > tr > td:not(:first-child)::before { content: attr(data-nu-label) ": "; font-weight: 500; }
}
/* advanced search panel (form lists, also the system lists – assets/js/nu/nuadvsearch.js) */
.nuAdvMenu { width: min(600px, calc(100vw - 24px)); max-height: 75vh; overflow-y: auto; }
.nuAdvRow .nuAdvField { flex: 1 1 9rem; min-width: 8rem; max-width: 14rem; }
.nuAdvRow .nuAdvOp { flex: 0 1 10rem; min-width: 8rem; }
.nuAdvRow .nuAdvVals { flex: 1 1 8rem; min-width: 8rem; }
.nuAdvRow .nuAdvVals .nuAdvVal { min-width: 0; }
.nuAdvChip { font-size: .8rem; padding: .35em .7em; }
.nuAdvChip:hover { background: var(--bs-secondary-bg) !important; }
/* phone cards: a long badge in the card title wraps instead of widening the page (e.g. long log event names in German) */
.nuLvCard .nuLvCardTitle .badge, .nuLvCard .nuLvCardBadge .badge { white-space: normal; text-align: start; max-width: 100%; }

/* lists refreshed in place (assets/js/nulistsmooth.js): a slow answer dims the card a little */
.nuListCard[data-lv-smooth] { transition: opacity .15s ease; }
.nuListCard.nuLvLoading { opacity: .55; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .nuListCard[data-lv-smooth] { transition: none; } }

/* syntax check of the code editors (assets/js/nu/nucodetools.js): gutter marks, line background, ✓ button, result box */
.CodeMirror .nuChkGutter { width: 1.1rem; }
.nuChkMark { display: inline-block; width: 1rem; text-align: center; cursor: pointer; font-size: .8rem; line-height: inherit; }
.nuChkMark.nuChk-error, .nuChkItem.nuChk-error .bi { color: var(--bs-danger-text-emphasis); }
.nuChkMark.nuChk-warn, .nuChkItem.nuChk-warn .bi { color: var(--bs-warning-text-emphasis); }
.CodeMirror .nuChkLine { background: rgba(var(--bs-danger-rgb), .10); }
.nuCtCheck.nuChkBad { color: var(--bs-danger-text-emphasis); border-color: var(--bs-danger-border-subtle); background: var(--bs-danger-bg-subtle); }
.nuCtCheck.nuChkWarn { color: var(--bs-warning-text-emphasis); border-color: var(--bs-warning-border-subtle); }
.nuChkPop { position: absolute; z-index: 1090; max-width: min(34rem, calc(100vw - 16px)); max-height: 50vh; overflow: auto; padding: .4rem;
	background: var(--bs-body-bg); color: var(--bs-body-color); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); font-size: .875rem; }
.nuChkItem { display: block; width: 100%; text-align: start; border: 0; background: none; color: inherit; padding: .3rem .45rem; border-radius: var(--bs-border-radius-sm); }
.nuChkItem:hover, .nuChkItem:focus-visible { background: var(--bs-tertiary-bg); }
.nuChkOk { color: var(--bs-success-text-emphasis); padding: .25rem .45rem; }

/* Settings → General → Languages: variants next to English / German */
.setLangVars { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; margin-inline-start: .5rem; padding: .05rem .5rem;
	border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-pill); font-size: .875rem; }
.setLangVars .form-check-input { margin-top: .2rem; }
.setLangVarsOff { opacity: .55; }

/* segmented controls: a choice of one in a button group – radio buttons (.btn-check) or links / buttons with .active in a
   .nuSeg group (help view, form layout, theme preview, tutorial track). One frame with dividers, the chosen one on a light background
   with a thin accent line below – instead of Bootstrap's filled grey / blue button. Icons keep their own colours.
   "A group with radio buttons" is asked from the button itself: it is a .btn-check or has one as a sibling – the same
   buttons as .btn-group:has(> .btn-check) > .btn with the same weight, but :has() stands on the element the rule styles (see the
   row highlight below: :has() in front of it makes every change of the page restyle all of it). .btn-check.btn-check = that weight. */
.btn-group:has(> .btn-check), .btn-group.nuSeg { border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); background: var(--bs-body-bg); }
.btn-group > .btn:is(.btn-check, .btn-check ~ *, :has(~ .btn-check)), .btn-group.nuSeg > .btn {
	border: 0; border-radius: 0; margin: 0; background: transparent; color: var(--bs-secondary-color); box-shadow: none;
	--bs-btn-hover-bg: var(--bs-tertiary-bg); --bs-btn-hover-color: var(--bs-body-color); --bs-btn-hover-border-color: transparent;
	--bs-btn-active-bg: var(--bs-tertiary-bg); --bs-btn-active-color: var(--bs-emphasis-color); --bs-btn-active-border-color: transparent; }
.btn-group > .btn + .btn-check.btn-check + .btn, .btn-group.nuSeg > .btn + .btn, .btn-group.nuSeg > .btn + input + .btn { border-inline-start: 1px solid var(--bs-border-color); }
.btn-group > .btn:first-of-type:is(.btn-check, .btn-check ~ *, :has(~ .btn-check)), .btn-group.nuSeg > .btn:first-of-type { border-start-start-radius: calc(var(--bs-border-radius-lg) - 1px); border-end-start-radius: calc(var(--bs-border-radius-lg) - 1px); }
.btn-group > .btn:last-child:is(.btn-check, .btn-check ~ *, :has(~ .btn-check)), .btn-group.nuSeg > .btn:last-child { border-start-end-radius: calc(var(--bs-border-radius-lg) - 1px); border-end-end-radius: calc(var(--bs-border-radius-lg) - 1px); }
.btn-group > .btn:hover:is(.btn-check, .btn-check ~ *, :has(~ .btn-check)), .btn-group.nuSeg > .btn:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.btn-group > .btn-check.btn-check:checked + .btn, .btn-group.nuSeg > .btn.active {
	background: var(--bs-tertiary-bg); color: var(--bs-emphasis-color); box-shadow: inset 0 -2px 0 var(--bs-primary); }
.btn-group > .btn-check.btn-check:focus-visible + .btn, .btn-group.nuSeg > .btn:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; box-shadow: none; z-index: 2; }
.btn-group > .btn-check.btn-check:checked:focus-visible + .btn, .btn-group.nuSeg > .btn.active:focus-visible { box-shadow: inset 0 -2px 0 var(--bs-primary); }
.btn-group > .btn-check.btn-check:disabled + .btn { opacity: .55; }

/* screenshots in the help: scaled to the page, a frame like a window */
.nuHelpBody .doc-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--bs-border-color); border-radius: .375rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.nuHelpBody .doc-shot figcaption { margin-top: .4rem; font-size: .875rem; color: var(--bs-secondary-color); }

/* Access levels of one form: switch "Everyone" (assets/js/nu/nuformaccess.js) */
.nuFacEv { border: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); border-radius: var(--bs-border-radius-lg); padding: .75rem 1rem; }
.nuFacEv.nuFacEvOn { border-color: var(--bs-primary-border-subtle); background: var(--bs-primary-bg-subtle); }   /* blue only while on */
.nuFacEvOpts { margin-top: .6rem; padding-inline-start: 2.6rem; }
.nuFacEvCount { background: var(--bs-body-bg); color: var(--bs-primary-text-emphasis); border: 1px solid var(--bs-primary-border-subtle); font-weight: 600; }
.nuFacEvCount.nuFacEvGap { color: var(--bs-warning-text-emphasis); border-color: var(--bs-warning-border-subtle); }
.nuFacBar.nuFacFollow + .table-responsive .nuFacTable tbody { opacity: .75; }

/* maintenance of forms: dialog list, side bar badge */
.nuFmsList { max-height: 18rem; overflow: auto; padding: .35rem .6rem; }
.nuFmsRow { margin: .15rem 0; }
.nuSbBadge { margin-left: auto; font-size: .75rem; font-weight: 500; }

/* record pages compact: every own page of one record (.nuRecHead) –
   card padding, field spacing, labels and fields; field text stays 16 px below 576 px (iOS zooms into smaller fields).
   body.nuRecPage is set by the server with the title bar (nu_body_class('nuRecPage') before nu_layout_start, 0.8.1341) – it was
   body:has(.nuRecHead): 14 rules that made the browser look at every card, label and field again on each change of any page */
body.nuRecPage main .card > .card-header { padding: .5rem .75rem; }
body.nuRecPage main .card > .card-body { padding: .75rem; }
body.nuRecPage main .card-body .mb-3 { margin-bottom: .625rem !important; }
body.nuRecPage main .row.g-3 { --bs-gutter-x: .75rem; --bs-gutter-y: .625rem; }
body.nuRecPage main .gap-3 { gap: .75rem !important; }
body.nuRecPage main .form-label { font-size: .875rem; margin-bottom: .25rem; }
body.nuRecPage main .card-body .form-check-label { font-size: .875rem; }
body.nuRecPage main .nav-tabs.mb-3 { margin-bottom: .625rem !important; }
body.nuRecPage main .nuRecHead.mb-3 { margin-bottom: .625rem !important; }
@media (min-width: 576px) and (pointer: fine) {
	body.nuRecPage main .card-body .form-control:not(.form-control-sm):not(.form-control-lg),
	body.nuRecPage main .card-body .form-select:not(.form-select-sm):not(.form-select-lg),
	body.nuRecPage main .card-body .input-group:not(.input-group-sm) > .btn,
	body.nuRecPage main .card-body .input-group:not(.input-group-sm) > .input-group-text { padding-top: .25rem; padding-bottom: .25rem; font-size: .906rem; }
	body.nuRecPage main .card-body .ts-wrapper:not(.form-select-sm) .ts-control { padding-top: .25rem; padding-bottom: .25rem; font-size: .906rem; }
}

/* Form with AI wizard: numbered steps, done steps with a tick colour */
.nuFaSteps { gap: .25rem; flex-wrap: wrap; padding-left: 0; }
.nuFaSteps .nav-link { display: flex; align-items: center; color: var(--bs-secondary-color); border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); }
.nuFaSteps .nav-link .badge { background: var(--bs-secondary-bg); color: var(--bs-body-color); }
.nuFaSteps .nav-link.active { color: var(--bs-primary-text-emphasis); background: var(--bs-primary-bg-subtle); border-color: var(--bs-primary-border-subtle); }
.nuFaSteps .nav-link.active .badge { background: var(--bs-primary); color: #fff; }
.nuFaSteps .nav-link.nuFaDone .badge { background: var(--bs-success); color: #fff; }
#faStep1, #faStep2, #faStep3 { max-width: 900px; }
#faPickBox { max-width: 520px; }

/* New form – how to start */
.nuNfChoice { color: var(--bs-body-color); text-decoration: none; border-radius: .6rem; transition: border-color .15s, box-shadow .15s; }
.nuNfChoice:hover, .nuNfChoice:focus-visible { border-color: var(--bs-primary); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .15); color: var(--bs-body-color); }
.nuNfChoice.nuNfLast { border-color: var(--bs-primary-border-subtle); }
.nuNfIcon { width: 2.5rem; height: 2.5rem; border-radius: .55rem; background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.nuNfTitle { font-weight: 600; font-size: 1rem; }
.nuNfDesc { font-size: .875rem; color: var(--bs-secondary-color); }
.nuNfFoot { font-size: .78rem; color: var(--bs-secondary-color); flex-wrap: wrap; gap: .3rem; }
.nuNfPill { display: inline-block; padding: .05rem .5rem; border: 1px solid var(--bs-border-color); border-radius: 999px; }
.nuNfFoot { display: flex; }

/* long paths / code in notices wrap instead of widening the page on phones */
.alert code, .alert kbd, .alert .text-break { overflow-wrap: anywhere; word-break: break-word; }
.alert.d-flex > .flex-grow-1, .alert.d-flex > div:not(.btn-close) { min-width: 0; }

/* Global code: the warning can be hidden – smaller ×, the (i) next to the title is a button */
#scodeWarn.alert-dismissible { padding-right: 2.5rem; }
#scodeWarn .btn-close { padding: .55rem .75rem; }
.scodeWarnShow { color: var(--bs-secondary-color); cursor: pointer; line-height: 1; font-size: 1rem; vertical-align: middle; }

/* Global code: switch Form pages | All pages + short tabs; one line on wide screens, the switch full width on phones */
.scodeNav .scodeTabs { margin-bottom: 0; }
.scodeNav .scodeSeg .btn { white-space: nowrap; }
@media (max-width: 575.98px) {
  .scodeNav .scodeSeg { width: 100%; }
  .scodeNav .scodeSeg .btn { flex: 1 1 0; }
  .scodeNav .scodeTabs { flex-wrap: nowrap; overflow-x: auto; }
  .scodeNav .scodeTabs .nav-link { white-space: nowrap; }
}
.impTplList { width: min(380px, 90vw); }   /* Data import → Templates */

/* TinyMCE in dark mode: until the editor's dark styles are there, its box and frame are white for a moment – the colours of
   the oxide-dark skin from the start (form pages load nuapp.css too) */
[data-bs-theme="dark"] .tox.tox-tinymce, [data-bs-theme="dark"] .tox .tox-edit-area__iframe { background-color: #222f3e; }

/* leave dialog (the owner picked B of the canvas "Unsaved changes dialog"): Discard as a red text link in its own row
   above Keep editing / Save (left), a line between them; the same on every width */
#nuLeave .modal-footer.nuLeaveFoot { display: block; padding: .5rem .75rem .75rem; }
#nuLeave .nuLeaveDiscardRow { padding-bottom: .5rem; margin-bottom: .75rem; border-bottom: 1px solid var(--bs-border-color); }
#nuLeave .nuLeaveDiscard { color: var(--bs-danger); padding-left: 0; padding-right: 0; text-decoration: none; }
#nuLeave .nuLeaveDiscard:hover, #nuLeave .nuLeaveDiscard:focus-visible { text-decoration: underline; }
#nuLeave .nuLeaveActs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }

/* sticky list titles (nuapp.js): the moved title cells cover the rows below them */
table.nuHeadFloat > thead > tr > th, table.nuHeadFloat > thead > tr > td { position: relative; z-index: 4; background-color: var(--bs-body-bg); box-shadow: inset 0 -1px 0 var(--bs-border-color), 0 2px 4px -2px rgba(0, 0, 0, .18); }
.card table.nuHeadFloat > thead > tr > th, .card table.nuHeadFloat > thead > tr > td { background-color: var(--bs-card-bg, var(--bs-body-bg)); }

/* Edge's own password reveal button: hidden only on fields that have our eye button (data-pw-toggle) – other password fields keep it */
input.nuOwnPwToggle::-ms-reveal { display: none; }

/* Settings → Data & logs: audit trail Keep select */
#shAudKeep { max-width: 170px; }

/* compact top bar on phones: theme and language at the top of the user menu (nu_menu_prefs) instead of the bar */
.nuMenuPrefs { min-width: 15rem; }
.nuMenuPrefs .btn-group .btn { flex: 1 1 0; }
.nuMenuPrefs .form-select { min-width: 0; flex: 1 1 auto; }

/* M1: record pages on phones – the breadcrumb named the record; with "‹ parent" instead the heading names it again */
@media (max-width: 575.98px) {
	body.nuPhCrumbsOff .nuTitleBar.nuRecHead > h1:not(:has(.badge, a, button)) { position: static !important; width: auto !important; height: auto !important;
		margin: 0 0 .25rem !important; overflow: visible !important; clip: auto !important; white-space: normal !important; font-size: 1.15rem; }
}
/* phones: "+ Add" of lists shows only its icon – the text stays as tooltip / accessible name (nuapp.js nuAddBtnNames) */
@media (max-width: 575.98px) {
	.btn.nuAddBtn:not(.w-100), .btn.nuIconPhone { font-size: 0; min-width: 2.75rem; padding-left: .75rem; padding-right: .75rem; }
	.btn.nuAddBtn:not(.w-100) > .bi, .btn.nuIconPhone > .bi { font-size: 1.125rem; margin: 0 !important; }
	/* form pages (mockup C): Design, (i) and the layout switch live in the ⋮ menu's section "Design" (nuruntime.js phoneDesignItems) */
	#nuActionHolder > #nuDesignGroup, #nuActionHolder > #nuDesignButton, #nuActionHolder > .nuFormInfoWrap, #nuActionHolder > #nuLayoutSeg { display: none !important; }
}
/* dark mode (UI review): Bootstrap's contextual table rows keep their light colours in dark mode – a light row with light text */
[data-bs-theme="dark"] .table-warning { --bs-table-bg: rgba(var(--bs-warning-rgb), .16); --bs-table-color: var(--bs-body-color); --bs-table-border-color: rgba(var(--bs-warning-rgb), .3); --bs-table-striped-bg: rgba(var(--bs-warning-rgb), .2); --bs-table-hover-bg: rgba(var(--bs-warning-rgb), .24); --bs-table-hover-color: var(--bs-body-color); }
[data-bs-theme="dark"] .table-light { --bs-table-bg: var(--bs-tertiary-bg); --bs-table-color: var(--bs-body-color); --bs-table-border-color: var(--bs-border-color); }
/* Back button on phones (shared setting nuPhoneBackButton → html.nuBack-icon / html.nuBack-hidden, core/nulayout.php nu_head) */
@media (max-width: 575.98px) {
	html.nuBack-icon :is(.nuBackBtn, #nuBackButton, .btn.nuBtnAct:has(> .bi-arrow-left:first-child)) { font-size: 0; min-width: 2.75rem; padding-left: .75rem; padding-right: .75rem; }
	html.nuBack-icon :is(.nuBackBtn, #nuBackButton) > .bi, html.nuBack-icon .btn.nuBtnAct > .bi-arrow-left:first-child { font-size: 1.125rem; margin: 0 !important; }
	html.nuBack-hidden :is(.nuBackBtn, #nuBackButton, .btn.nuBtnAct:has(> .bi-arrow-left:first-child)) { display: none !important; }
}
.nuOptionsList .nuOptPhone { display: none; }
@media (max-width: 575.98px) { .nuOptionsList .nuOptPhone { display: list-item; } }
.nuOptLayout { display: flex; margin: .15rem 1rem .35rem; }
.nuOptLayout > .btn { flex: 1 1 0; }
.nuFormInfoPhone { overflow-x: hidden; width: 100%; max-width: none; }
.nuMessage:has(.nuFormInfoPhone) { width: calc(100vw - 1.5rem); max-width: 30rem; }
.nuMessage .nuMessageLine:has(.nuFormInfoPhone) { width: 100%; }
/* phones: label above the value, buttons right of the value – the box takes the message's width */
.nuFormInfoPhone .nuFormInfoRow { grid-template-columns: minmax(0, 1fr) auto; gap: 0 .25rem; padding: .35rem 0; }
.nuFormInfoPhone .nuFormInfoRow dt { grid-column: 1 / -1; padding-top: 0; font-size: .85rem; }
.nuFormInfoPhone .nuFormInfoRow dd { padding-top: 0; }
.nuFormInfoPhone .btn:not(.nuFormInfoCopy):not(.nuFormInfoView):not(.nuFormInfoEdit) { max-width: 100%; }
.nuFormInfoPhone .nuFormInfoList { margin: 0; }

/* Branding title: the phone title below 576 px, none when it is empty (NuBranding::titleHtml) */
.nu-brand-title.nuTitlePhone { display: none; }
@media (max-width: 575.98px) {
	.nu-brand-title.nuTitleDesk { display: none; }
	.nu-brand-title.nuTitlePhone { display: inline; }
}
@media (max-width: 575.98px) {
	.nuNavCompact .navbar-brand:not(:has(img, .nuTitlePhone)) { display: none !important; }   /* phone title empty: nothing in the brand slot */
}

/* long "used by" menus of the formats list (UI review): scroll inside the menu instead of running off the screen */
.nuFmtUsed .dropdown-menu { max-height: min(60vh, 26rem); overflow-y: auto; }

/* compact header of the system lists on phones (UI review S7, like the form pages' header): Back as a small link above, the title
   left, the buttons as plain icons right of it on the same line (no frames); texts stay as tooltip / accessible name */
@media (max-width: 575.98px) {
	.nuListCard > .nuListHead.nuTitleBar { display: flex; flex-wrap: wrap; align-items: center; column-gap: .125rem; row-gap: 0; padding-top: .25rem; padding-bottom: .25rem; }
	.nuListCard > .nuListHead.nuTitleBar > .d-flex { display: contents !important; }
	.nuListCard > .nuListHead > h1 { order: 0; flex: 1 1 0; min-width: 6.5rem; margin: 0; font-size: 1.2rem; font-weight: 650; display: block !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.nuListCard > .nuListHead > h1 > .btn { margin-left: .3rem; vertical-align: .05em; }
	.nuListCard > .nuListHead > :not(h1):not(.d-flex), .nuListCard > .nuListHead .nuTitleSub { order: 3; flex: 0 0 100%; }
	.nuListCard > .nuListHead > .d-flex .btn:not(.dropdown-item) { order: 1; --bs-btn-border-color: transparent; --bs-btn-bg: transparent; --bs-btn-hover-bg: var(--bs-tertiary-bg); --bs-btn-hover-border-color: transparent; --bs-btn-active-bg: var(--bs-secondary-bg); --bs-btn-active-border-color: transparent; border-color: transparent; background-color: transparent; box-shadow: none; }
	.nuListCard > .nuListHead > .d-flex > .dropdown, .nuListCard > .nuListHead > .d-flex > .btn-group { order: 1; }
	.nuListCard > .nuListHead > .d-flex .btn:not(.dropdown-item):has(> .bi) { min-width: 2.75rem; height: 2.75rem; padding: 0 .55rem; font-size: 0; display: inline-flex; align-items: center; justify-content: center; }
	.nuListCard > .nuListHead > .d-flex .btn:not(.dropdown-item) > .bi { font-size: 1.2rem; margin: 0 !important; }
	.nuListCard > .nuListHead > .d-flex .btn:not(.dropdown-item) > span:is(.bi ~ *, :has(~ .bi)) { display: none; }
	.nuListCard > .nuListHead > .d-flex .dropdown-toggle::after { display: none; }
	.nuListCard > .nuListHead > .d-flex .btn.nuAddBtn { color: var(--nu-accent, var(--bs-primary)); }
	.nuListCard > .nuListHead > .d-flex .btn.nuLvPhoneBtn[aria-pressed="true"] { background-color: var(--bs-secondary-bg); }
	.nuListCard > .nuListHead > .d-flex > .btn.nuBackBtn:not(.dropdown-item):has(> .bi) { order: -1; flex: 0 0 100%; justify-content: flex-start; height: 2rem; min-width: 0; padding: 0; margin-left: -.1rem; font-size: .9rem; color: var(--bs-link-color); }
	.nuListCard > .nuListHead > .d-flex > .btn.nuBackBtn:not(.dropdown-item) > .bi { font-size: 1rem; margin-right: .2rem !important; }
	html:not(.nuBack-hidden) body.nuListBack main nav[aria-label="breadcrumb"]:not(#nuNavCrumbs *) { display: none; }   /* nuListBack: nu_layout_buffer() */   /* Back leads to the same place */
	html.nuBack-icon .nuListCard > .nuListHead > .d-flex > .btn.nuBackBtn:not(.dropdown-item):has(> .bi) { flex-basis: auto; width: 2rem; font-size: 0; }
	html.nuBack-icon .nuListCard > .nuListHead > .d-flex > .btn.nuBackBtn:not(.dropdown-item) > .bi { font-size: 1.2rem; margin: 0 !important; }
}

/* keyboard navigation in lists (assets/js/nuapp.js): the row with the focus */
.nu-table > tbody > tr[data-href]:focus-visible, .nu-table > tbody > tr[data-nu-kb]:focus,
.nuBrowseTable > tbody > tr.nuBrowseRow[data-nu-kb]:focus { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
.nu-table > tbody > tr[data-nu-kb]:focus > *, .nuBrowseTable > tbody > tr.nuBrowseRow[data-nu-kb]:focus > * { --bs-table-bg-state: var(--nu-row-hover); }
.nu-table > tbody > tr[data-href]:focus:not(:focus-visible):not([data-nu-kb]) { outline: 0; }

/* content sheet on wide screens (the owner picked "1 Sheet, 1600, top bar full width"): from 1680 px the content of every page
   (own pages, form lists / records, narrow container pages) sits in one framed sheet of at most 1600 px on a slightly darker page –
   below that the window's edges frame it as before; tool pages with the full width (design mode, report designer, builder) stay as they are */
@media screen and (min-width: 1680px) {
	html:not(.nuEmbedded):not(.nuPwFull) body.nu-app:not(.nu-bare):not(.nuDesignMode):has(> main#main:is(.nuContainer, .nuFormContainer, .container, .container-xl), > .nuShell main#main:is(.nuContainer, .nuFormContainer, .container, .container-xl)) { background: var(--nu-desk); }
	html:not(.nuEmbedded):not(.nuPwFull) body.nu-app:not(.nu-bare):not(.nuDesignMode) main#main:is(.nuContainer, .nuFormContainer, .container, .container-xl) { background: var(--nu-page);
		border: 1px solid var(--nu-sheet-line); border-radius: 14px; margin-top: 1rem; margin-bottom: 1.5rem; padding: 1.25rem 1.5rem 1.5rem !important; }
	html:not(.nuEmbedded) body.nu-app:not(.nu-bare):not(.nuDesignMode) main#main:is(.nuContainer, .nuFormContainer) { max-width: 1600px; }
}

/* user form (the owner picked mockup A of the canvas "User form layouts"): summary card on the left, three sections on the
   right, each one even grid (3 columns, 1 below 768 px); the summary moves above the sections below 992 px */
.userLayout { display: grid; grid-template-columns: 300px minmax(0, 1100px); gap: 1rem; align-items: start; }
/* the sections stop at 1100 px – on wide windows (page width
   Wide / Full) the rest stays empty instead of stretching every field; short fields keep about their natural width */
.userGrid :is(#sus_code, #sus_expires_on, #sus_language) { max-width: 200px; }
#xaRows .xaRow { max-width: 520px; }
@media (max-width: 991.98px) { .userLayout { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 992px) { .userSummary { position: sticky; top: calc(var(--nu-sticky-top, 0px) + var(--nu-sticky-h, 0px) + .75rem); } }
.userSummary > .card-body { padding: 1.25rem; }
.userSumHead { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; min-width: 0; }
.userAvatar { flex: 0 0 1.9rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
	background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); font-weight: 700; font-size: .78rem; letter-spacing: .02em; user-select: none; }
.userAvatar .bi { font-size: 1rem; }
.userAvatar.userAvatarLg { width: 4.5rem; height: 4.5rem; flex: 0 0 auto; font-size: 1.55rem; margin-bottom: .25rem; }
.userAvatar.userAvatarLg .bi { font-size: 2rem; }
.userSumName { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.userSumSub { font-size: .85rem; color: var(--bs-secondary-color); overflow-wrap: anywhere; }
.userSumBadges { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; margin-top: .2rem; }
.userSumBadges:empty { display: none; }
.userSumActive { background: #e3f4e8; color: #146c2e; }
[data-bs-theme="dark"] .userSumActive { background: #173b24; color: #8fd6a5; }
.userSumLevel { background: var(--bs-tertiary-bg); color: var(--bs-body-color); font-weight: 500; }
.userSumMeta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem .75rem; font-size: .85rem; margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--bs-border-color-translucent); }
.userSumMeta dt { font-weight: 400; color: var(--bs-secondary-color); }
.userSumMeta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.userSumTools { display: flex; flex-direction: column; gap: .6rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--bs-border-color-translucent); }
.userSumTools:not(:has(> *)) { display: none; }
.userSumTools > *, .userSumTools .mb-3, .userSumTools .mt-2 { margin: 0 !important; }
@media (min-width: 992px) { .userSumTools #pwrOpen { width: 100%; } }
.userMain { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.userMain > .card > .card-body { padding: 1.1rem 1.25rem 1.25rem; }
.userSecTitle { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); font-weight: 600; margin: 0 0 .9rem; }
.userGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.25rem; align-items: start; }
.userGrid > div { min-width: 0; }
.userGrid .mb-3 { margin-bottom: 0 !important; }
.userSpan2 { grid-column: span 2; }
.userSpan3 { grid-column: 1 / -1; }
.userSwitches { display: flex; flex-direction: column; gap: .35rem; align-self: end; padding-bottom: .35rem; }
.userSwitches > .form-check { margin-bottom: 0; }
@media (max-width: 767.98px) { .userGrid { grid-template-columns: minmax(0, 1fr); } .userSpan2, .userSpan3 { grid-column: auto; } }

/* Logged-in users on phones (the owner's mockup A): one card per user – status, login, name and badges, then
   "Logged in" / "Last activity" as label + value and the log-out button; IP and browser only on the unfolded sessions of a user */
@media (max-width: 575.98px) {
	#sessTable, #sessTable tbody { display: block; }
	#sessTable thead { display: none; }
	#sessTable tbody { padding: .5rem; }
	#sessTable tr { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; align-items: baseline; background: var(--bs-body-bg);
		border: 1px solid var(--bs-border-color); border-radius: .75rem; padding: .6rem .75rem; margin-bottom: .5rem; }
	#sessTable td { display: block; border: 0; padding: 0; background: transparent; white-space: normal; text-align: start; }
	#sessTable td.sUser { grid-column: 1 / -1; padding-left: 0 !important; }
	#sessTable td.sIp, #sessTable td.sAgent, #sessTable .sAbs { display: none; }
	#sessTable td.sLogin, #sessTable td.sLast { display: contents; }
	#sessTable td.sLogin::before, #sessTable td.sLast::before { content: attr(data-label); color: var(--bs-secondary-color); font-size: .8125rem; }
	#sessTable td.sLast .sAgo { color: inherit !important; font-size: .8125rem; }
	#sessTable td.sLogin:empty { display: none; }
	#sessTable td.sActs { grid-column: 1 / -1; margin-top: .3rem; text-align: start !important; }
	#sessTable td.sActs:empty, #sessTable td.sActs > div:empty { display: none; }
	#sessTable td[colspan] { grid-column: 1 / -1; }
	/* the sessions of a user, unfolded: compact lines joined to the user's card – status, browser, IP, last activity, log out */
	#sessTable tr.nuSessGroup:has(.nuSessFold[aria-expanded="true"]) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
	#sessTable tr.nuSessChild { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; margin: 0 0 0; border-top: 1px dashed var(--bs-border-color);
		border-radius: 0; background: var(--bs-tertiary-bg); padding: .45rem .75rem; font-size: .8125rem; }
	#sessTable tr.nuSessChild[hidden] { display: none; }
	#sessTable tr.nuSessChild:not(:has(+ tr.nuSessChild:not([hidden]))) { border-bottom-left-radius: .75rem; border-bottom-right-radius: .75rem; margin-bottom: .5rem; }
	#sessTable tr.nuSessChild td.sUser { grid-column: auto; }
	#sessTable tr.nuSessChild td.sUser > a, #sessTable tr.nuSessChild td.sUser > span.fw-semibold, #sessTable tr.nuSessChild td.sUser > .text-body-secondary { display: none; }
	#sessTable tr.nuSessChild td.sAgent, #sessTable tr.nuSessChild td.sIp { display: block; }
	#sessTable tr.nuSessChild td.sIp::before { content: "· "; }
	#sessTable tr.nuSessChild td.sLogin { display: none; }
	#sessTable tr.nuSessChild td.sLast { display: block; }
	#sessTable tr.nuSessChild td.sLast::before { content: "· "; font-size: inherit; }
	#sessTable tr.nuSessChild td.sActs { margin: 0 0 0 auto; }
	#sessTable tr.nuSessChild td.sActs .btn { padding: .15rem .45rem; font-size: 0; line-height: 1; }   /* icon only – the text stays for screen readers */
	#sessTable tr.nuSessChild td.sActs .btn .bi { font-size: .9rem; margin: 0 !important; }
	#sessTable tr.nuSessChild td.sAgent { order: 1; } #sessTable tr.nuSessChild td.sIp { order: 2; }
	#sessTable tr.nuSessChild td.sLast { order: 3; } #sessTable tr.nuSessChild td.sActs { order: 4; }
	#sessTable tr.nuSessChild td.sLast .sAgo { display: inline; font-size: inherit; }
	#sessTable td.sActs > div { justify-content: flex-start !important; }
	#sessTable tr.nuSessChild td.sActs > div { justify-content: flex-end !important; }
	#sessTable { width: 100%; }
}

/* N2: tool tabs (Debug · Log · Audit trail · Logged-in users) on one line, scrolling sideways on phones */
.nav-tabs.nuTabsScroll { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.nav-tabs.nuTabsScroll::-webkit-scrollbar { display: none; }
.nav-tabs.nuTabsScroll > .nav-item { flex: 0 0 auto; }
.nav-tabs.nuTabsScroll .nav-link { white-space: nowrap; }
/* Admin role rights in own columns: Right · Area (grey) · Full access (red shield) · None · View · Change; a right
   without a View level shows a dash. Phones: name + shield + area in one line, None · View · Change as a segmented row below. */
#admRights .admArea { white-space: nowrap; }
#admRights .nuAdmFull { display: inline-flex; align-items: center; gap: .35rem; color: var(--bs-danger-text-emphasis); font-size: .875rem; white-space: nowrap; }
#admRights .nuAdmFull .bi { color: var(--bs-danger); }
/* admin roles list: column Access – a soft pill in every row, full access tinted red with a shield */
.nuAdmAccess { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 999px; font-size: .8125rem; font-weight: 500;
	white-space: nowrap; background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
.nuAdmAccess.nuAdmAccessFull { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); font-weight: 600; }
.nu-table td.nuNum { font-variant-numeric: tabular-nums; }
/* Phones (the owner picked mockup C): like the desktop – the titles None / View / Change once (sticky), each right one grid row:
   name with area + shield below, then three fixed radio columns; a right without View keeps its dash, so Change never moves */
@media (max-width: 575.98px) {
	#admRights, #admRights > tbody { display: block; width: 100%; min-width: 0 !important; }
	#admRights > thead { display: block; position: sticky; top: calc(var(--nu-sticky-top, var(--nu-nav-h, 57px)) + var(--nu-sticky-h, 0px)); z-index: 3;
		background: var(--bs-card-bg, var(--bs-body-bg)); box-shadow: inset 0 -1px 0 var(--bs-border-color); }
	#admRights > thead > tr, #admRights > tbody > tr.nuAdmRight { display: grid; grid-template-columns: auto minmax(0, 1fr) 3.6rem 3.6rem 3.6rem; align-items: center; }
	#admRights > thead > tr > th:first-child { grid-column: 1 / span 2; padding-left: .75rem; text-align: left; }
	#admRights > thead > tr > th { position: static; box-shadow: none; padding: .45rem 0; font-size: .75rem; letter-spacing: 0; border: 0; text-align: center; overflow-wrap: anywhere; }
	#admRights > thead > tr > th .btn { font-size: inherit; letter-spacing: 0; }
	
	#admRights > thead > tr > th.admAreaTh, #admRights > thead > tr > th.admFullTh { display: none; }
	#admRights > tbody > tr.nuAdmRight { padding: .5rem 0 .5rem .75rem; border-bottom: 1px solid var(--bs-border-color); row-gap: .1rem; }
	#admRights > tbody > tr.nuAdmRight > td { display: block; border: 0; padding: 0; }
	#admRights > tbody > tr.nuAdmRight > td.admName { grid-column: 1 / span 2; grid-row: 1; min-width: 0; white-space: normal; font-weight: 500; }
	#admRights > tbody > tr.nuAdmRight > td.admArea { grid-column: 1; grid-row: 2; font-size: .78rem; }
	#admRights > tbody > tr.nuAdmRight > td.admFull { grid-column: 2; grid-row: 2; justify-self: start; margin-left: .35rem; }
	#admRights > tbody > tr.nuAdmRight > td.admFull:has(.text-body-tertiary) { display: none; }
	#admRights .admFullTxt { display: none; }
	#admRights > tbody > tr.nuAdmRight > td.admLvlCell { grid-row: 1 / span 2; justify-self: center; }
	#admRights > tbody > tr.nuAdmRight > td.admLvlCell:nth-child(4) { grid-column: 3; }
	#admRights > tbody > tr.nuAdmRight > td.admLvlCell:nth-child(5) { grid-column: 4; }
	#admRights > tbody > tr.nuAdmRight > td.admLvlCell:nth-child(6) { grid-column: 5; }
	#admRights .admLvl { padding: .55rem; }                      /* 44 px touch target around the radio */
	#admRights .admLvl .form-check-input { width: 1.25rem; height: 1.25rem; margin: 0; }
	#admRights .admLvl:has(:disabled) { opacity: .55; cursor: not-allowed; }
}


/* User help pages (core/nuuserhelp.php): reader (?p=userhelp), article, marked parts for editors, side panel of the form pages */
.nuUhLayout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; }
.nuUhNav { position: sticky; top: calc(var(--nu-nav-h, 56px) + 1rem); max-height: calc(100vh - var(--nu-nav-h, 56px) - 2rem); overflow-y: auto; padding-right: .25rem; }
.nuUhNavFold > summary { list-style: none; cursor: pointer; }
.nuUhNavFold > summary::-webkit-details-marker { display: none; }
.nuUhNavList { list-style: none; padding: 0; margin: 0; }
.nuUhNavSub { padding-left: .85rem; border-left: 1px solid var(--bs-border-color); margin-left: .5rem; }
.nuUhNavLink { display: block; padding: .3rem .5rem; border-radius: .375rem; color: var(--bs-body-color); text-decoration: none; font-size: .925rem; }
.nuUhNavLink:hover { background: var(--bs-tertiary-bg); }
.nuUhNavLink.active { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); font-weight: 600; }
.nuUhNavLink.nuUhInactive { opacity: .6; font-style: italic; }
.nuUhEditorBox { border-top: 1px solid var(--bs-border-color); padding-top: 1rem; }
.nuUhMain { min-width: 0; max-width: 52rem; }
.nuUhArticle { line-height: 1.6; overflow-wrap: anywhere; }
.nuUhArticle h1, .nuUhArticle h2, .nuUhArticle h3, .nuUhArticle h4 { margin-top: 1.4em; margin-bottom: .5em; }
.nuUhArticle > :first-child, .nuUhArticle .nuUhCond > :first-child { margin-top: 0; }
.nuUhArticle img { max-width: 100%; height: auto; border-radius: .25rem; }
.nuUhArticle table { width: auto; max-width: 100%; border-collapse: collapse; margin-bottom: 1rem; display: block; overflow-x: auto; }
.nuUhArticle th, .nuUhArticle td { border: 1px solid var(--bs-border-color); padding: .35rem .6rem; vertical-align: top; }
.nuUhArticle th { background: var(--bs-tertiary-bg); }
.nuUhArticle blockquote { border-left: 3px solid var(--bs-border-color); padding: .25rem 0 .25rem 1rem; color: var(--bs-secondary-color); }
.nuUhArticle pre { background: var(--bs-tertiary-bg); padding: .75rem; border-radius: .375rem; overflow-x: auto; }
.nuUhArticle figure { margin: 0 0 1rem; } .nuUhArticle figcaption { font-size: .875rem; color: var(--bs-secondary-color); }
.nuUhAl-left { text-align: left; } .nuUhAl-center { text-align: center; } .nuUhAl-right { text-align: right; } .nuUhAl-justify { text-align: justify; }
img.nuUhAl-center { display: block; margin-left: auto; margin-right: auto; }
.nuUhFl-l { float: left; margin: 0 1rem .5rem 0; } .nuUhFl-r { float: right; margin: 0 0 .5rem 1rem; }
.nuUhArticle::after { content: ""; display: table; clear: both; }
.nuUhCond { position: relative; border: 1px dashed var(--bs-info-border-subtle); border-radius: .375rem; padding: 1.4rem .75rem .25rem; margin: .5rem 0 1rem; background: var(--bs-info-bg-subtle); }
.nuUhCond::before { content: attr(data-cond); position: absolute; top: .2rem; left: .6rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--bs-info-text-emphasis); }
.nuUhCond-not { border-color: var(--bs-warning-border-subtle); background: var(--bs-warning-bg-subtle); } .nuUhCond-not::before { color: var(--bs-warning-text-emphasis); }
.nuUhCond-else { border-color: var(--bs-border-color); background: var(--bs-tertiary-bg); } .nuUhCond-else::before { color: var(--bs-secondary-color); }
.nuUhChildren ul { padding-left: 1.2rem; }
@media (max-width: 767.98px) {
	.nuUhLayout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
	.nuUhNav { position: static; max-height: none; }
	.nuUhNavFold:not([open]) { margin-bottom: .5rem; }
}
@media print { .nuUhNav, nav[aria-label=breadcrumb], .navbar { display: none !important; } .nuUhLayout { display: block; } }
/* side panel + (?) of fields on form pages */
.nuUhPanel { position: fixed; top: 0; right: 0; bottom: 0; width: min(var(--nu-uh-w, 440px), 100vw); z-index: 1046; background: var(--bs-body-bg); border-left: 1px solid var(--bs-border-color);
	box-shadow: -.5rem 0 1.5rem rgba(0, 0, 0, .15); display: flex; flex-direction: column; }
.nuUhPanel[hidden] { display: none; }
.nuUhPanelHead { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; border-bottom: 1px solid var(--bs-border-color); }
.nuUhPanelTitle { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nuUhPanelBody { flex: 1 1 auto; overflow-y: auto; padding: 1rem; }
.nuUhTip { display: inline-flex; color: var(--bs-primary); cursor: pointer; margin-left: .2rem; font-size: .85em; vertical-align: baseline; }
.nuUhTip:hover, .nuUhTip:focus-visible { color: var(--bs-primary-text-emphasis); }
@media (max-width: 575.98px) { .nuHelpBtn .nuHelpBtnTxt { display: none; } }

/* textareas a WYSIWYG editor (TinyMCE) replaces: the HTML source is not shown while the editor loads – the box keeps its
   place and the editor's height, so nothing jumps; nuhelppages.js / nunotifications.js remove the class on init or when it cannot load */
textarea.nuTmceWait { color: transparent !important; caret-color: transparent; pointer-events: none; resize: none; overflow: hidden;
	background: var(--bs-tertiary-bg); }
textarea.nuTmceWait::placeholder { color: transparent; }
#uhBody.nuTmceWait { height: 520px; }
#ntf_body.nuTmceWait { height: 260px; }

/* help panel splitter: left edge, width in --nu-uh-w (assets/js/nuuserhelp.js) */
.nuUhSplit { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 2; touch-action: none; }
.nuUhSplit::after { content: ''; position: absolute; left: 3px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .15s; }
.nuUhSplit:hover::after, .nuUhSplit:focus-visible::after, html.nuUhResizing .nuUhSplit::after { background: var(--bs-primary); }
.nuUhSplit:focus-visible { outline: none; }
html.nuUhResizing, html.nuUhResizing * { cursor: col-resize !important; user-select: none !important; }
html.nuUhResizing iframe { pointer-events: none; }
@media (max-width: 575.98px) { .nuUhPanel { width: 100vw; } .nuUhSplit { display: none; } }
/* installer server checks: passed checks folded under one summary line, problems always shown */
#insReq .insReqFold > summary { cursor: pointer; list-style: none; }
#insReq .insReqFold > summary::-webkit-details-marker { display: none; }
#insReq .insReqFold:not([open]) .insReqLess, #insReq .insReqFold[open] .insReqMore { display: none; }
#insReq .insReqFold > summary:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
#insReq .insReqLong { flex: 1 1 60%; }
/* ---- UI review M1–M12 ---------------------------------------------------------------------------------------- */
/* M1: phones – one way back: "‹ parent" instead of breadcrumb + Back button (nuapp.js) */
a.nuPhBackOwn { display: none; }
@media (max-width: 575.98px) {
	a.nuPhBackOwn { display: inline-flex; align-items: center; gap: .15rem; max-width: 100%; min-height: 2rem; margin-bottom: .25rem; font-size: .9rem; text-decoration: none; }
	a.nuPhBackOwn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	nav.nuPhCrumbOff, a.nuPhBtnOff { display: none !important; }
	html.nuBack-icon a.nuPhBackOwn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* M4: phones – wide tables as cards (table[data-nu-phcards], labels from nuapp.js) */
@media (max-width: 575.98px) {
	table[data-nu-phcards] > thead { display: none; }
	table[data-nu-phcards], table[data-nu-phcards] > tbody, table[data-nu-phcards] > tbody > tr, table[data-nu-phcards] > tbody > tr > td { display: block; width: 100%; }
	table[data-nu-phcards] > tbody > tr { padding: .5rem .75rem; border-bottom: 1px solid var(--bs-border-color); }
	table[data-nu-phcards] > tbody > tr > td { border: 0; padding: .1rem 0 !important; text-align: start !important; white-space: normal !important; }
	table[data-nu-phcards] > tbody > tr > td:empty { display: none; }
	table[data-nu-phcards] > tbody > tr > td[data-label]:not([data-label=""])::before { content: attr(data-label); display: inline-block; min-width: 6.5rem; margin-right: .5rem;
		color: var(--bs-secondary-color); font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; }
	.table-responsive:has(> table[data-nu-phcards]) { overflow-x: visible; }
}
/* M5: tablets – system lists with more than five columns show cards up to 992 px */
@media (min-width: 768px) and (max-width: 991.98px) {
	.nuLv.nuLvWide:not(.nuLvPhoneTable) .nuLvTableWrap { display: none; }
	.nuLv.nuLvWide:not(.nuLvPhoneTable) .nuLvCards { display: block; }
	html[data-lv-phone="table"] .nuLv.nuLvWide .nuLvTableWrap { display: block; }
	html[data-lv-phone="table"] .nuLv.nuLvWide .nuLvCards { display: none; }
}
/* H3: list title bars on phones – extra actions live in ⋮ (nuapp.js) */
@media (max-width: 575.98px) {
	.nuListCard > .nuListHead .nuPhOverflow { display: none !important; }
	.nuListCard > .nuListHead .nuMoreMenu { order: 2; }
	/* the menu never wider than the screen; a long entry wraps instead of running out of it */
	.nuListCard > .nuListHead .nuMoreMenu > .dropdown-menu { max-width: calc(100vw - 1rem); }
	.nuListCard > .nuListHead .nuMoreMenu .dropdown-item { white-space: normal; }
}
/* H2: form lists – column filters folded on phones until the funnel is pressed */
@media (max-width: 575.98px) { #nuBrowseFilters.nuFltPhoneHide { display: none !important; } }
@media (max-width: 991.98px) { #nuBrowseFilters.nuFltTabHide { display: none !important; } }   /* more than three filters: folded on tablets too */
/* M3: long explanations folded */
details.nuMoreHint > summary { cursor: pointer; color: var(--bs-link-color); width: fit-content; }
@media (min-width: 576px) { details[data-nu-phone-fold] > summary { display: none; } }   /* folded on phones only: wider screens show the notices without the summary */
/* ---- UI review N1–N7 ---- */
/* N1: items whose value is an id */
.nuItemId { font-size: .75rem; }
/* N7: help index – finger-sized lines on touch screens */
@media (pointer: coarse) {
	.nuHelpToc a { display: block; padding-top: .35rem; padding-bottom: .35rem; }
}
/* G17 touch screens: TinyMCE's "Press ⌥0 for help" means nothing without a keyboard */
@media (pointer: coarse) { .tox .tox-statusbar__help-text { display: none !important; } }

/* ---- UI review H1–H6 ---- */
/* H1: start page notices compact */
details.nuNoticeFold > summary { cursor: pointer; list-style: none; }
details.nuNoticeFold > summary::-webkit-details-marker { display: none; }
@media (max-width: 575.98px) {
	.nuTutBanner { padding: .5rem .75rem; flex-wrap: nowrap !important; }
	.nuTutBanner > .bi { display: none; }
	.nuTutBanner .fw-semibold { font-size: .9rem; }
}

/* settings frame on phones (review H6) */
.nuSetPhSel { display: none; }
@media (max-width: 575.98px) {
	.nuSetFrame .nuSetSections { display: none; }
	.nuSetFrame .nuSetPhSel { display: block; margin-top: .5rem; }
	.nuSetFrame .nuTitleSub:not(.collapse) { display: none; }   /* a hint opened by (i) stays */
}

/* Compatibility check on phones (mockup C): title + counts on the first line, the four counts as a quiet dotted line below */
.compatDots { display: none; }
@media (max-width: 575.98px) {
	.card-header > .compatBdg { display: none; }
	.compatDots { display: flex; flex-wrap: wrap; gap: .25rem .9rem; flex-basis: 100%; }
	.compatDot { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
	.compatDot > i { width: .55rem; height: .55rem; border-radius: 50%; display: inline-block; }
	.compatDot > b { color: var(--bs-body-color); }
	.compatDotOn, .compatDotOn > b { font-weight: 700; color: inherit; }
}

/* list filters opened because one is set: folded on phones until nuapp.js has run */
@media (max-width: 767.98px) { .collapse.show.nuLvPhFold { display: none; } }

/* one row height in lists: a row with one line of text is 33 px whether it holds only text, a badge or row buttons – before:
   30 (text) / 32–33 (badge) / 42 (buttons). Cells with two lines stay taller; phone cards (cells as blocks) are left alone */
@media (min-width: 576px) {
	.nu-table:not(.table-sm) > tbody > tr > td { height: 2.0625rem; }
	.nu-table:not(.table-sm) > tbody > tr.nuDetRow > td, .nu-table:not(.table-sm) > tbody > tr.nuBsqMoreRow > td { height: auto; }
}
@media (min-width: 576px) and (pointer: fine) {
	.nu-table:not(.table-sm) > tbody > tr > td .btn.btn-sm:not(.btn-link):not(.dropdown-item) { --bs-btn-padding-y: .1rem; --bs-btn-padding-x: .45rem; --bs-btn-font-size: .8rem; line-height: 1.3; }
}

/* row button that runs the row (reports list): neutral frame like its neighbour, only the icon in the accent colour */
.nuRowRun > .bi { color: var(--bs-primary); }
.nuRowRun:hover > .bi, .nuRowRun:active > .bi { color: inherit; }

/* ---- "Ask AI" control of the AI dialogues (assets/js/nuaiask.js) */
.nuAiAskHost { margin-top: .5rem; padding: .5rem .625rem; border: 1px dashed var(--bs-border-color); border-radius: var(--bs-border-radius); }
.nuAiAskHost:empty { display: none; }
.nuAiAskSel { width: auto; max-width: 18rem; flex: 0 1 auto; }
.nuAiAskSel.nuAiAskOne { pointer-events: none; background-image: none; padding-right: .5rem; border-color: transparent; background-color: transparent; font-weight: 600; }
.nuAiAskPwBox { width: auto; flex: 0 1 17rem; }
.nuAiAskWait::before { content: ""; display: inline-block; width: .8em; height: .8em; margin-right: .4em; vertical-align: -.05em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: nuAiAskSpin .75s linear infinite; }
@keyframes nuAiAskSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nuAiAskWait::before { animation-duration: 3s; } }

/* warnings closed for good are not drawn at all (class set in <head> by nutheme.js) */
html.nuWarnOff-scode #scodeWarn, html.nuWarnOff-cfg #cfgWarn, html.nuWarnOff-insp #inspHint { display: none !important; }

/* a tab that holds code: a small dot after its name – list side pane PHP / JavaScript, procedure form JS; the same sign as design mode's Code list */
.nav-link.nuHasCode::after { content: ''; display: inline-block; width: .4rem; height: .4rem; margin-left: .4rem; border-radius: 50%; background: currentColor; opacity: .7; vertical-align: middle; }

.shCronMail { max-width: 480px; }

/* list cards: count after the title, lines joined in one row (admin roles) */
.nuLvCardCount { font-weight: 400; color: var(--bs-secondary-color); }
.nuLvCardJoin { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .4rem; }
.nuLvCardJoin .nuLvCardDot { color: var(--bs-secondary-color); }
#inspHintHide { font-size: .75rem; margin-top: .25rem; }
/* procedure form on phones: the code toolbar starts at the left edge and wraps instead of running past the right one */
@media (max-width: 575.98px) { .procCodeTools { margin-left: 0 !important; max-width: 100%; min-width: 0; gap: .25rem !important; } }

/* calendars (assets/js/nu/nucalendar.js – FullCalendar 6): list view dialogue, calendar objects, dashboard widgets
   (the --fc-* variables on the host: FullCalendar's own :root values come later in the page) */
.nuCalHost {
	--fc-border-color: var(--bs-border-color);
	--fc-page-bg-color: var(--bs-body-bg);
	--fc-neutral-bg-color: var(--bs-tertiary-bg);
	--fc-list-event-hover-bg-color: var(--bs-tertiary-bg);
	--fc-today-bg-color: rgba(var(--bs-primary-rgb), .07);
	--fc-now-indicator-color: var(--bs-danger);
	--fc-button-bg-color: var(--bs-body-bg);
	--fc-button-border-color: var(--bs-border-color);
	--fc-button-text-color: var(--bs-body-color);
	--fc-button-hover-bg-color: var(--bs-tertiary-bg);
	--fc-button-hover-border-color: var(--bs-border-color);
	--fc-button-active-bg-color: var(--bs-secondary-bg);
	--fc-button-active-border-color: var(--bs-secondary-border-subtle);
	--fc-event-bg-color: var(--bs-primary);
	--fc-event-border-color: var(--bs-primary);
	display: flex;
	flex-direction: column;
	gap: .5rem;
	min-height: 0;
}
.nuCalHost.nuCalFill { height: 100%; }
.nuCalHost .nuCalBox { flex: 1 1 auto; min-height: 0; }
.nuCalHost .fc { font-size: .875rem; }
.nuCalHost .fc .fc-toolbar { flex-wrap: wrap; gap: .5rem; }
.nuCalHost .fc .fc-toolbar-title { font-size: 1.15rem; font-weight: 600; }
.nuCalHost .fc .fc-button { font-size: .8125rem; padding: .3rem .6rem; box-shadow: none; }
.nuCalHost .fc .fc-button-primary:not(:disabled).fc-button-active { color: var(--bs-primary); box-shadow: inset 0 -2px 0 var(--bs-primary); color: var(--bs-primary-text-emphasis); }
.nuCalHost .fc .fc-button:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 1px; }
.nuCalHost .fc a { color: inherit; text-decoration: none; }
.nuCalHost .fc .fc-event { cursor: pointer; }
.nuCalHost .fc .fc-daygrid-event { white-space: nowrap; overflow: hidden; }
.nuCalGroups { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.nuCalChip { --bs-btn-padding-y: .1rem; --bs-btn-padding-x: .55rem; border: 1px solid var(--bs-border-color); border-radius: 999px; display: inline-flex; align-items: center; gap: .35rem; }
.nuCalChip[aria-pressed="false"] { opacity: .5; text-decoration: line-through; }
.nuCalChipAll[aria-pressed="false"] { opacity: .7; text-decoration: none; }
.nuCalChipAll[aria-pressed="true"] { border-color: var(--bs-primary); color: var(--bs-primary); }
.nuCalDot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--bs-primary); flex: 0 0 auto; }
.nuCalDlg .modal-dialog:not(.modal-fullscreen) { max-width: min(1400px, 96vw); }
.nuCalDlg .modal-body { height: min(80vh, 900px); }
@media (max-width: 991.98px) { .nuCalDlg .modal-body { height: auto; } }
.nuCalRecDlg { z-index: 1065; }
.nuCalRecFrame { display: block; width: 100%; height: min(78vh, 900px); border: 0; }
@media (max-width: 767.98px) { .nuCalRecFrame { height: calc(100vh - 4rem); } }
.nuCalToast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 1090; background: var(--bs-dark); color: #fff; padding: .5rem 1rem; border-radius: .5rem; font-size: .875rem; box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .2); }
.nuCalToastBad { background: var(--bs-danger); }
.nuCalObj { overflow: hidden; }
.nuCalObj .nuCalNone { padding: .5rem; border: 1px dashed var(--bs-border-color); height: 100%; }
@media (max-width: 575.98px) {
	.nuCalHost .fc .fc-toolbar { flex-direction: column; align-items: stretch; }
	.nuCalHost .fc .fc-toolbar-chunk { display: flex; justify-content: center; }
}

/* code search (pages/nucodesearch.php) */
.csForm .csQ { flex: 1 1 22rem; max-width: 46rem; }
.csWithout .form-control { width: 12rem; }
.csQuickSel { min-width: 13rem; flex: 0 1 15rem; }
.csSavedMenu { min-width: 16rem; max-height: 60vh; overflow-y: auto; }
.csSaveName { max-width: 22rem; }
.csGroup > summary { cursor: pointer; list-style: none; }
.csGroup > summary::-webkit-details-marker { display: none; }
.csGroup > summary::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .75rem; transition: transform .15s; color: var(--bs-secondary-color); }
.csGroup[open] > summary::before { transform: rotate(90deg); }
.csGroupSub { max-width: 40ch; }
.csPart + .csPart { border-top: 1px solid var(--bs-border-color-translucent); }
.csPartHead { background: var(--bs-tertiary-bg); font-size: .875rem; }
.csPartLabel { font-family: var(--bs-font-monospace); font-size: .82rem; overflow-wrap: anywhere; }
.csCode { font-family: var(--bs-font-monospace); font-size: .8125rem; line-height: 1.5; overflow-x: auto; padding: .25rem 0; }
.csLine { display: flex; min-width: max-content; }
.csLine.csHit { background: color-mix(in srgb, var(--bs-warning) 10%, transparent); }
.csNo { flex: 0 0 3.75rem; text-align: right; padding-right: .75rem; color: var(--bs-secondary-color); user-select: none; text-decoration: none; }
a.csNo { color: var(--bs-link-color); font-weight: 600; }
a.csNo:hover { text-decoration: underline; }
.csText { white-space: pre; color: var(--bs-body-color); padding-right: 1rem; font-size: inherit; }
.csText mark { padding: 0 1px; border-radius: 2px; background: #ffe066; color: #212529; }
[data-bs-theme="dark"] .csText mark { background: #b8860b; color: #fff; }
.csGap { padding-left: 3.75rem; color: var(--bs-secondary-color); line-height: 1.1; }
/* a code search link opened an editor at this line (assets/js/nu/nucodetools.js jumpTo) */
.nuCodeHitLine { background: color-mix(in srgb, var(--bs-warning) 30%, transparent) !important; }
@media (max-width: 575.98px) {
	.csQuickSel { flex: 1 1 100%; }
	.csWithout { flex: 1 1 100%; }
	.csWithout .form-control { flex: 1; width: auto; }
	.csNo { flex-basis: 2.75rem; padding-right: .5rem; }
}
.nuFnUsed { color: var(--bs-secondary-color); opacity: 0; transition: opacity .15s; margin-inline-start: .35rem; }
.nuFn:hover .nuFnUsed, .nuFnUsed:focus { opacity: 1; }
/* code search: search and replace */
.csRpInput { width: 20rem; max-width: 100%; }
.csRpTick { flex: 0 0 auto; margin: .2rem .5rem 0 0; }
.csRpTickGap { flex: 0 0 1.5rem; }
.csHit.csRpOff .csText mark { background: transparent; text-decoration: line-through; color: var(--bs-secondary-color); }
.csHit.csRpOff + .csNewLine { display: none; }
.csNewLine { background: color-mix(in srgb, var(--bs-success) 12%, transparent); }
.csNewLine .csNo { color: var(--bs-success-text-emphasis); }
.csRpNo { font-weight: 400; }

/* form info (i) panel: wider on wide screens, SQL boxes as tall as their text (no scroll bar of their own); the panel's
   height is set by nuapp.js to the room below its button – only a panel taller than that scrolls, as a whole */
.dropdown-menu.nuFormInfo { overflow-y: auto; overscroll-behavior: contain; }
/* four lines of a long value (browse SQL as run, hash variables) – no scroll bar; a click (or the ↗ button) shows all of it */
.nuFormInfo .nuFormInfoSql { line-height: 1.45; max-height: calc(4 * 1.45em + .5rem); overflow: hidden; cursor: zoom-in; position: relative; max-height: calc(4 * 1.45em + 1rem); border: 1px solid var(--bs-border-color-translucent); border-left: 3px solid var(--bs-primary); border-radius: .45rem; }
.nuFormInfo .nuFormInfoSql.nuFiCut {
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.2em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 1.2em), transparent); }
.nuFormInfo .nuFormInfoSql:hover, .nuFormInfo .nuFormInfoSql:focus-visible { outline: 1px solid var(--bs-border-color); }
@media (min-width: 768px) { .dropdown-menu.nuFormInfo { width: 38rem; } }
@media (min-width: 1200px) { .dropdown-menu.nuFormInfo { width: 48rem; } .nuFormInfo .nuFormInfoRow { grid-template-columns: 9rem minmax(0, 1fr) auto; } }

/* form info panel: section cards (layout 5 of the mockups) – head with icon, title and Copy all; one card per section
   (Form · Data · List · Record) with a tinted title bar; long values in a box with an accent stripe and Copy inside */
.nuFiHead { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; }
.nuFiTitle { display: flex; align-items: center; gap: .65rem; font-weight: 700; font-size: 1.05rem; }
.nuFiTitleIcon { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--bs-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; flex: none; }
.nuFiBody { display: flex; flex-direction: column; gap: .65rem; padding: 0 1rem 1rem; }
.nuFiSec { border: 1px solid color-mix(in srgb, var(--bs-primary) 14%, var(--bs-border-color)); border-radius: .6rem; overflow: hidden; }
.nuFiSecHead { display: flex; align-items: center; gap: .55rem; margin: 0; padding: .5rem .85rem; background: color-mix(in srgb, var(--bs-primary) 8%, var(--bs-body-bg)); color: var(--bs-emphasis-color);
	font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nuFiSecHead > .bi { color: var(--bs-primary); font-size: .95rem; }
.nuFiSec > .nuFormInfoList { padding: .4rem .85rem .55rem; }
.nuFormInfo code.nuFiChip { display: inline-block; padding: .1rem .45rem; border-radius: .35rem; background: var(--bs-tertiary-bg); font-size: .8125rem; }
.nuFormInfoRow:hover code.nuFiChip { background: var(--bs-secondary-bg); }
.nuFiType { display: inline-flex; align-items: center; padding: .1rem .5rem; border-radius: .35rem; background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); font-weight: 500; }
/* the (i) panel lies above the list's side pane (1019): its toolbar is a stacking context (sticky, 1010) – raised while the panel is open */
html.nuFiOpen .nuStickyBar, html.nuFiOpen #nuActionHolder { z-index: 1025 !important; }

/* selected (keyboard) and hovered rows of lists as a soft rounded fill (the owner picked mockup B of "Selected row
   styles"): no frame; the row's cells get the tint with 2 px bands of the table's background above / below, rounded ends, and the
   lines next to the row disappear. From 576 px (phones keep their cards) */
@media (min-width: 576px) {
	html:not(.nuPhoneCards) .nu-table > tbody > tr:is([data-href], .clickable-row):is(:hover, :focus-visible, [data-nu-kb]:focus) > *,
	html:not(.nuPhoneCards) .nuBrowseTable > tbody > tr.nuBrowseRow:is(:hover, [data-nu-kb]:focus) > * {
		border-bottom-color: transparent;
		box-shadow: inset 0 2px 0 var(--bs-table-bg), inset 0 -2px 0 var(--bs-table-bg), inset 0 0 0 9999px var(--bs-table-bg-state, transparent);
	}
	html:not(.nuPhoneCards) .nu-table > tbody > tr:is([data-href], .clickable-row):is(:hover, :focus-visible, [data-nu-kb]:focus) > :first-child,
	html:not(.nuPhoneCards) .nuBrowseTable > tbody > tr.nuBrowseRow:is(:hover, [data-nu-kb]:focus) > :first-child { border-radius: .65rem 0 0 .65rem; }
	html:not(.nuPhoneCards) .nu-table > tbody > tr:is([data-href], .clickable-row):is(:hover, :focus-visible, [data-nu-kb]:focus) > :last-child,
	html:not(.nuPhoneCards) .nuBrowseTable > tbody > tr.nuBrowseRow:is(:hover, [data-nu-kb]:focus) > :last-child { border-radius: 0 .65rem .65rem 0; }
	/* the line above the row (the bottom border of the row before): the row's own top border takes its place – same width, transparent,
	   in a style that wins where two collapsed borders of one width meet (double before solid). Not tr:has(+ tr:hover) > * as until
	   with :has() in front of the element a rule styles, the browser works out the styles of the whole page again on every
	   change of the page – 2 to 30 ms each time, on every page with this style sheet. The first row keeps the line of the titles. */
	html:not(.nuPhoneCards) .nu-table > tbody > tr:is([data-href], .clickable-row):is(:hover, :focus-visible, [data-nu-kb]:focus):not(:first-child) > *,
	html:not(.nuPhoneCards) .nuBrowseTable > tbody > tr.nuBrowseRow:is(:hover, [data-nu-kb]:focus):not(:first-child) > * { border-top: 1px double transparent; }
	html:not(.nuPhoneCards) .nu-table > tbody > tr[data-href]:is(:focus-visible, [data-nu-kb]:focus),
	html:not(.nuPhoneCards) .nuBrowseTable > tbody > tr.nuBrowseRow[data-nu-kb]:focus { outline: 0; }
	html:not(.nuPhoneCards) .nu-table > tbody > tr[data-href]:is(:focus-visible, [data-nu-kb]:focus) > *,
	html:not(.nuPhoneCards) .nuBrowseTable > tbody > tr.nuBrowseRow[data-nu-kb]:focus > * { --bs-table-bg-state: var(--nu-row-sel); }
}

/* long values: label, the box over the full width, Show all · Edit below */
.nuFormInfoRow.nuFiLong { grid-template-columns: minmax(0, 1fr); gap: .35rem; padding-top: .25rem; padding-bottom: .3rem; }
.nuFormInfoRow.nuFiLong:hover { background: transparent; }
.nuFiCode { position: relative; }
.nuFormInfo .nuFormInfoSql { font-size: .8125rem; padding: .5rem 6.75rem .5rem .75rem; }
.nuFormInfo .nuFiCodeCopy { position: absolute; top: .35rem; right: .4rem; padding: .15rem .5rem; line-height: 1.4; font-size: .8rem; color: var(--bs-body-color);
	background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: .4rem; }
.nuFormInfo .nuFiCodeCopy:hover, .nuFormInfo .nuFiCodeCopy:focus-visible { color: var(--bs-primary); border-color: var(--bs-primary); }
.nuFormInfoActs { display: flex; flex-wrap: wrap; gap: .4rem; }
.nuFormInfo .btn.nuFiSoft { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); border-color: transparent; font-weight: 500; }
.nuFormInfo .btn.nuFiSoft:hover, .nuFormInfo .btn.nuFiSoft:focus-visible { border-color: var(--bs-primary); }
@media (min-width: 1200px) { .nuFormInfo .nuFormInfoRow:not(.nuFiLong) { grid-template-columns: 9rem minmax(0, 1fr) auto; } }
/* phones: the cards inside the message box, Copy all in the head */
.nuFormInfoPhone .nuFiHead { justify-content: flex-end; padding: 0 0 .6rem; }
.nuFormInfoPhone .nuFiBody { padding: 0; }
.nuFormInfoPhone .nuFormInfoRow { margin: 0; }
.nuFormInfoPhone .nuFormInfoRow.nuFiLong dt { font-size: .85rem; }
.nuFormInfoPhone .nuFormInfoSql { padding-right: .75rem; }
.nuFormInfoPhone .nuFiCodeCopy { position: static; margin-top: .35rem; }
/* form info: description and code changed in the panel */
.nuFiBtns { display: inline-flex; align-items: center; }
.nuFiChange { padding: 0 .35rem; line-height: 1.6; color: var(--bs-secondary-color); }
.nuFiChange:hover, .nuFiChange:focus-visible { color: var(--bs-primary); }
.nuFiEditBox { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.nuFiEditBox .nuFiInput { flex: 1 1 12rem; min-width: 0; }
.nuFormInfoRow.nuFiEditing { background: transparent; }
.nuFormInfoRow.nuFiEditing .nuFiBtns { visibility: hidden; }
.nuFormInfoRow.nuFiSavedFlash { background: var(--bs-success-bg-subtle); transition: background .6s; }
/* G2 touch screens: 16 px inside fields (iPhones zoom the page into smaller ones); fields of fixed form layouts only when stacked */
@media (pointer: coarse) {
	:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="button"], [type="submit"], [type="reset"], [type="file"], [type="image"]), select, textarea, .ts-control, .ts-control input):not(.nuAbsoluteCanvas *) { font-size: 16px !important; }
	html.nuPhoneStack .nuAbsoluteCanvas :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="button"], [type="submit"], [type="reset"], [type="file"], [type="image"]), select, textarea, .ts-control, .ts-control input) { font-size: 16px !important; }
}
/* access level form, tab Start page: read-only preview of the level's tile page */
.accPv .accPvGroup + .accPvGroup { margin-top: 1rem; }
.accPv .accPvTitle { margin: 0 0 .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); }
.accPv .accPvTiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .5rem; }
.accPv .accPvTile { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .45rem .65rem; border: 1px solid var(--bs-border-color); border-radius: .55rem; background: var(--bs-tertiary-bg); font-size: .875rem; }
.accPv .accPvTile > .bi { flex: 0 0 auto; color: var(--bs-primary); }
.accPv .accPvTile > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accPv .accPvTile.accPvCond { border-style: dashed; }

/* page width (core/nupagewidth.php): this device's choice or the default of Settings → Look – set by nutheme.js before the first
   paint (html.nuPwSet + --nu-pw; html.nuPwFull = no limit and no sheet frame); tool pages with the full width are not touched */
html.nuPwSet body.nu-app:not(.nu-bare):not(.nuDesignMode) main#main:is(.nuContainer, .nuFormContainer, .container, .container-xl) { max-width: var(--nu-pw, none) !important; }
html.nuPwFull body.nu-app:not(.nu-bare):not(.nuDesignMode) main#main:is(.nuContainer, .nuFormContainer, .container, .container-xl) { max-width: none !important; }
@media (max-width: 991.98px) {   /* user form: the summary above the sections as one row */
	.userSumHead { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; text-align: start; justify-items: start; }
	.userSumHead > .userAvatarLg { grid-row: 1 / span 3; width: 3.5rem; height: 3.5rem; font-size: 1.2rem; margin: 0; }
	.userSumBadges { justify-content: flex-start; }
}
/* Security settings: the three numbers (log days, password again after …) only as wide as five digits */
.secNumField .secNum { width: 8rem; max-width: 100%; }
.secNumField { margin-right: 1.5rem; }
/* System info dialog (assets/js/nusysinfo.js) */
.nuSysInfoDialog .modal-body { display: flex; flex-direction: column; gap: 1rem; }
.nuSiHead { font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--bs-secondary-color); font-weight: 600; margin: 0 0 .4rem; }
.nuSiList { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .3rem 1rem; margin: 0; font-size: .875rem; }
.nuSiList dt { font-weight: 400; color: var(--bs-secondary-color); }
.nuSiList dd { margin: 0; font-family: var(--bs-font-monospace); font-size: .8rem; overflow-wrap: anywhere; }
.nuSiList dd.nuSi-ok { color: var(--bs-success-text-emphasis); }
.nuSiList dd.nuSi-warn { color: var(--bs-warning-text-emphasis); }
@media (max-width: 575.98px) { .nuSiList { grid-template-columns: minmax(0, 1fr); gap: 0; } .nuSiList dd { margin-bottom: .45rem; } }

/* user form summary: login, code, status and access level jump to their fields */
.userSumJump { cursor: pointer; font: inherit; }
.userSumSub .userSumJump { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.userSumSub .userSumJump:hover { color: var(--bs-link-hover-color); }
.badge.userSumJump { border: 0; }
.badge.userSumJump:hover { filter: brightness(.95); text-decoration: underline; }
.userSumJump:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.nuJumpFlash { animation: nuJumpFlash 1.6s ease-out; border-radius: .375rem; }
@keyframes nuJumpFlash { 0%, 40% { box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .45); } 100% { box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), 0); } }

/* settings centre "Compact": descriptions of the overview cards / section entries and the page subtitle hidden */
html.nuSetCompact .nuSetDesc, html.nuSetCompact .nuSetHead > .nuTitleSub { display: none; }
html.nuSetCompact .nuSetSecCard h2 { margin-bottom: .35rem !important; }
html.nuSetCompact .nuSetLink { padding-top: .55rem; padding-bottom: .55rem; align-items: center !important; }
.nuSetCompactSw { min-height: 38px; margin-inline-start: auto; }
.nuSetCompactSw .form-check-input { margin-inline-start: 0; float: none; }
@media (max-width: 575.98px) { .nuSetHead > div:last-child:has(> .nuSetCompactSw) { flex-basis: auto !important; margin-inline-start: auto; } }   /* phones: next to the title (Back is the link above) */

/* code search on phones (mockup A): one row field · Options · Filters, sheets from the bottom, chips of what is set */
.csPhCount { position: absolute; top: -.45rem; right: -.45rem; font-size: .75rem; }
.csChip { display: inline-flex; align-items: center; gap: .2rem; min-height: 32px; padding: 0 .4rem 0 .75rem; border-radius: 1rem; background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); font-size: .82rem; text-decoration: none; }
.csChip:hover { color: var(--bs-primary-text-emphasis); filter: brightness(.96); }
.csSheet.fade .modal-dialog, .csSheet .modal-dialog { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; max-width: none; transform: translateY(100%); transition: transform .2s ease-out; }
.csSheet.show .modal-dialog { transform: none; }
.csSheet .modal-content { border-radius: 1rem 1rem 0 0; border: 0; max-height: 85vh; }
.csSheet .modal-header { padding: .5rem 1rem .5rem 1rem; }
.csSheet .modal-header::before { content: ""; position: absolute; top: .35rem; left: calc(50% - 20px); width: 40px; height: 4px; border-radius: 2px; background: var(--bs-border-color); }
.csSheet .modal-body { overflow-y: auto; display: flex; flex-direction: column; gap: .75rem; padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
.csSheet .csSheetDone { font-weight: 600; text-decoration: none; min-height: 44px; margin-inline-start: auto; }
.csSheet [data-cs-opt="mode"] { display: flex; width: 100%; }
.csSheet [data-cs-opt="mode"] > .btn { flex: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.csSheet [data-cs-opt="modetip"] { display: none; }
.csSheet .form-check[data-cs-opt] { min-height: 40px; display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--bs-border-color-translucent); padding-bottom: .5rem; }
.csSheet .form-check[data-cs-opt] .form-check-label { font-size: 1rem !important; }
.csSheet .csWithout { flex-wrap: wrap; }
.csSheet .csWithout > input { flex: 1 1 100%; font-size: 16px; order: 3; }
.csSheet .csQuick { margin-top: 0 !important; flex-direction: column; align-items: stretch !important; }
.csSheet .csQuick .csQuickSel { width: 100%; }
.csSheet #csFilters .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
.csForm .csRpBtn { display: inline-flex; align-items: center; }
.csForm .csRpBtn[aria-expanded="true"] { background: var(--bs-primary-bg-subtle); border-color: var(--bs-primary); color: var(--bs-primary-text-emphasis); }
@media (max-width: 575.98px) {
	.csForm .card-body > .d-flex:first-child { flex-wrap: nowrap !important; }
	.csForm .csQ { flex: 1 1 auto; min-width: 0; width: auto; }
	.csForm #csQ { font-size: 16px; }
	.csForm #csGo { display: none; }
	.csPhBtn { width: 44px; height: 44px; flex: none; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
	.csForm .csFiltersBtn { display: none; }
}
/* procedure editor tools on phones: tools, {*} and # in one row – narrower buttons, smaller gaps */
@media (max-width: 575.98px) {
	
	/* all of them one size – the toolbar buttons, the Insert menu and # */
	.procCodeTools :is(.nuCodeTools .btn, .nuCtInsert, .nuHashVarsBtn) { width: 1.625rem; padding-left: 0; padding-right: 0; display: inline-flex; align-items: center; justify-content: center; }
}

/* user form summary on phones (the owner picked mockup A of the canvas "User summary on phones"): avatar 44 px beside the name,
   status and access level in ONE row (a long level cut with …, full text as title), smaller type and gaps, the tools side by side */
@media (max-width: 575.98px) {
	.userSummary > .card-body { padding: .85rem; }
	.userSumHead { column-gap: .75rem; row-gap: .2rem; }
	.userSumHead > .userAvatarLg { grid-row: 1 / span 3; width: 2.75rem; height: 2.75rem; font-size: 1rem; align-self: start; }
	.userSumHead > .userAvatarLg .bi { font-size: 1.35rem; }
	.userSumName { font-size: 1.05rem; line-height: 1.25; }
	.userSumSub { font-size: .8rem; }
	.userSumBadges { flex-wrap: nowrap; min-width: 0; max-width: 100%; margin-top: .15rem; }
	.userSumBadges > .badge { font-size: .75rem; font-weight: 500; padding: .3em .7em; flex: none; }
	.userSumBadges > .userSumLevel { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.userSumMeta { font-size: .8rem; gap: .2rem .75rem; margin-top: .7rem; padding-top: .6rem; }
	.userSumTools { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .6rem; padding-top: .6rem; }
	.userSumTools > #pwrBox:has(#pwrLinkUrl), .userSumTools > details[open] { flex-basis: 100%; }
}

/* procedures list: "Code" box inside the search field */
.nuListSearch .nuSearchExtra { cursor: pointer; user-select: none; background: var(--bs-body-bg); }
.nuListSearch .nuSearchExtra .form-check-input { cursor: pointer; }

/* Sample data: change history */
.smpChanges .smpChg { padding: .35rem 0; border-bottom: 1px solid var(--bs-border-color-translucent); }
.smpChanges .smpChg:last-child { border-bottom: 0; }
.smpChanges .smpChgV { font-weight: 600; white-space: nowrap; margin-right: .25rem; }
.smpWhatsNew .smpChg { border-color: rgba(0, 0, 0, .08); }

/* Home forms of the access levels (assets/js/nuhomeforms.js): ▾ next to Home, panel with one row per Home form */
.nuHfPanel { width: min(620px, calc(100vw - 24px)); padding: 0; max-height: min(70vh, 560px); overflow: hidden; }
.nuHfPanel.show { display: flex; flex-direction: column; }
.nuHfHead { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .65rem .85rem; border-bottom: 1px solid var(--bs-border-color); }
.nuHfTitle { font-weight: 600; }
.nuHfCount { font-size: .8rem; color: var(--bs-secondary-color); }
.nuHfSearch { margin-left: auto; width: 14rem; max-width: 100%; }
.nuHfList { overflow-y: auto; padding: .25rem 0; min-height: 0; }
.nuHfRow { display: flex; gap: .75rem; align-items: flex-start; padding: .55rem .85rem; }
.nuHfRow:hover, .nuHfRow:focus-within { background: var(--bs-tertiary-bg); }
.nuHfMain { flex: 1 1 auto; min-width: 0; }
.nuHfName { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.nuHfExp { border: 0; background: none; padding: .15rem 0; color: inherit; text-align: start; width: 100%; cursor: pointer; border-radius: .25rem; }
.nuHfExp:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.nuHfChev { font-size: .75rem; color: var(--bs-secondary-color); transition: transform .15s; }
.nuHfOpenRow .nuHfChev { transform: rotate(90deg); }
[dir=rtl] .nuHfChev { transform: scaleX(-1); }
[dir=rtl] .nuHfOpenRow .nuHfChev { transform: rotate(90deg); }
.nuHfLvCount { font-size: .75rem; min-width: 1.4rem; padding: 0 .4rem; border-radius: 1rem; text-align: center; background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
.nuHfDetail { padding-inline-start: 1.25rem; margin-top: .2rem; }
.nuHfRow { align-items: center; }
.nuHfOpenRow { align-items: flex-start; }
.nuHfFormTitle { font-weight: 600; overflow-wrap: anywhere; }
.nuHfCode { font-size: .78rem; color: var(--bs-secondary-color); }
.nuHfChips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.nuHfChip { font-size: .75rem; padding: .1rem .5rem; border-radius: 1rem; text-decoration: none; border: 1px solid transparent;
	background: color-mix(in srgb, var(--bs-primary) 14%, transparent); color: var(--bs-emphasis-color); }
.nuHfChip:hover { background: color-mix(in srgb, var(--bs-primary) 24%, transparent); color: var(--bs-emphasis-color); }
.nuHfChip.nuHfChipTiles { background: transparent; border: 1px dashed var(--bs-secondary-color); color: var(--bs-body-color); }
.nuHfActs { display: flex; gap: .35rem; flex: none; }
.nuHfEmpty { padding: .75rem .85rem; color: var(--bs-secondary-color); font-size: .875rem; }
.nuHfFoot { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; padding: .55rem .85rem; border-top: 1px solid var(--bs-border-color); font-size: .82rem; }
.nuHfKeys { margin-left: auto; color: var(--bs-secondary-color); }
@media (max-width: 575.98px) {
	.nuHfSearch { width: 100%; margin-left: 0; }
}

/* top bar lines up with the content (the owner picked B of the canvas "Top bar width"): the white bar stays full width, its
   contents (logo / Home, menus) keep to the width of the page's content – the 1600 px sheet from 1680 px on, or this device's page
   width (html.nuPwSet); "Full width" (html.nuPwFull), tool pages with the full width and design mode keep the bar as it was */
@media screen and (min-width: 1680px) {
	html:not(.nuEmbedded):not(.nuPwFull) body.nu-app.nuSheetMain:not(.nu-bare):not(.nuDesignMode) > .nu-navbar > .nuNavInner {   /* nuSheetMain: nu_layout_start */
		max-width: 1600px; margin-inline: auto; padding-inline: calc(1.5rem + 1px); }
}
html.nuPwSet:not(.nuEmbedded) body.nu-app.nuSheetMain:not(.nu-bare):not(.nuDesignMode) > .nu-navbar > .nuNavInner {
	max-width: var(--nu-pw, none); margin-inline: auto; }

/* notification editor (layout D of the canvas "Notification editor layouts"): one column of three numbered sections,
   recipient rule rows, level / option tiles, a sticky bar with the summary and Save / Publish */
.ntfEdit .ntfBody { background: var(--bs-tertiary-bg); }
.ntfCol { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.ntfSec { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-radius: .75rem; padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.ntfSec fieldset { margin: 0; }
.ntfSecHead { display: flex; align-items: center; gap: .6rem; font-size: 1rem; font-weight: 600; margin: 0; flex-wrap: wrap; }
.ntfNum { width: 1.6rem; height: 1.6rem; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.ntfLevels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.ntfLv { border: 1px solid var(--bs-border-color); border-radius: .6rem; padding: .55rem .75rem; display: flex; flex-direction: column; gap: .1rem; cursor: pointer; margin: 0; }
.ntfLv:hover { background: var(--bs-tertiary-bg); }
.ntfLvName { display: flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; }
.ntfLv small { color: var(--bs-secondary-color); font-size: .78rem; }
.btn-check:focus-visible + .ntfLv { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.btn-check:checked + .ntfLv { border-width: 2px; padding: calc(.55rem - 1px) calc(.75rem - 1px); }
.btn-check:checked + .ntfLv-info { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); }
.btn-check:checked + .ntfLv-success { border-color: var(--bs-success); background: var(--bs-success-bg-subtle); }
.btn-check:checked + .ntfLv-warning { border-color: #d98a00; background: var(--bs-warning-bg-subtle); }
.btn-check:checked + .ntfLv-danger { border-color: var(--bs-danger); background: var(--bs-danger-bg-subtle); }
.ntfRules { display: flex; flex-direction: column; gap: .5rem; }
.ntfRule { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--bs-border-color-translucent); background: var(--bs-tertiary-bg); border-radius: .6rem; padding: .4rem .5rem .4rem .75rem; }
.ntfRule[hidden] { display: none; }
.ntfRuleEx { background: transparent; border-style: dashed; }
.ntfRuleOff { opacity: .55; }
.ntfRuleLbl { flex: 0 0 9.5rem; font-weight: 600; font-size: .85rem; display: flex; align-items: center; gap: .15rem; }
.ntfRuleLbl label { margin: 0; }
.ntfRuleSel { flex: 1; min-width: 0; }
.ntfRuleX { flex: none; color: var(--bs-secondary-color); }
.ntfAdd { display: flex; flex-wrap: wrap; gap: .4rem; }
.ntfAddRule { border: 1px dashed var(--bs-secondary-color); border-radius: 999px; background: transparent; color: var(--bs-body-color); font-size: .85rem; padding: .25rem .75rem .25rem .5rem; display: inline-flex; align-items: center; gap: .2rem; }
.ntfAddRule:hover { border-style: solid; background: var(--bs-tertiary-bg); }
.ntfAddRule[hidden] { display: none; }
.ntfAddEx { color: var(--bs-secondary-color); }
.ntfMeter { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.ntfMeter #ntfCount { font-weight: 500; }
.ntfModes { display: flex; flex-wrap: wrap; column-gap: 1.5rem; }
.ntfWhen { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ntfOpts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.ntfOpt { border: 1px solid var(--bs-border-color); border-radius: .6rem; padding: .6rem .75rem; display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; margin: 0; }
.ntfOpt .form-check-input { margin-top: .2rem; flex: none; }
.ntfOpt b { display: block; font-size: .9rem; font-weight: 600; }
.ntfOpt small { display: block; color: var(--bs-secondary-color); font-size: .78rem; line-height: 1.35; }
.ntfOpt:has(.form-check-input:checked) { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); }
.ntfOpt:has(.form-check-input:disabled) { cursor: default; opacity: .7; }
.ntfBar { position: sticky; bottom: 0; z-index: 5; background: var(--bs-body-bg); border-top: 1px solid var(--bs-border-color-translucent); border-radius: 0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius); padding: .65rem 1.25rem; box-shadow: 0 -4px 12px rgba(20, 30, 50, .06); }
.ntfBarIn { max-width: 880px; margin: 0 auto; display: flex; align-items: center; gap: .5rem; }
.ntfSum { flex: 1; min-width: 0; font-size: .9rem; color: var(--bs-secondary-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767.98px) {
	.ntfLevels { grid-template-columns: 1fr 1fr; }
	.ntfOpts { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
	.ntfEdit .ntfBody { padding: .75rem; }
	.ntfSec { padding: .9rem; }
	.ntfWhen { grid-template-columns: 1fr; }
	.ntfRule { flex-wrap: wrap; }
	.ntfRuleLbl { flex: 1 1 auto; }
	.ntfRuleSel { order: 3; flex-basis: 100%; }
	.ntfBar { padding: .6rem .75rem; }
	.ntfBarIn { flex-wrap: wrap; }
	.ntfSum { flex-basis: 100%; white-space: normal; }
	.ntfBarIn .btn { flex: 1; justify-content: center; white-space: nowrap; padding-inline: .6rem; font-size: .9rem; }
}
@media (max-width: 575.98px) { }
/* Home forms panel: the row "Tile pages of users" */
.nuHfTilesIco { color: var(--bs-secondary-color); margin-right: .1rem; }

/* Home forms panel: tabs Home forms / Tile pages */
.nuHfTabs { display: flex; gap: .25rem; flex: 1 1 100%; border-bottom: 1px solid var(--bs-border-color); margin-bottom: -.1rem; }
.nuHfTab { border: 0; background: none; padding: .35rem .65rem; color: var(--bs-secondary-color); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: .4rem; align-items: center; font-size: .875rem; }
.nuHfTab:hover { color: var(--bs-body-color); }
.nuHfTab.active { color: var(--bs-primary-text-emphasis); border-bottom-color: var(--bs-primary); font-weight: 600; }
.nuHfTab:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
.nuHfTabCount { font-size: .75rem; min-width: 1.4rem; padding: 0 .4rem; border-radius: 1rem; background: var(--bs-secondary-bg); color: var(--bs-secondary-color); font-weight: 400; }
.nuHfTab.active .nuHfTabCount { background: var(--bs-primary); color: #fff; }
.nuHfList[hidden] { display: none; }
.nuHfNote { font-size: .78rem; color: var(--bs-secondary-color); }
.nuHfHead .nuHfSearch { flex: 1 1 100%; width: auto; margin-left: 0; }

/* Start pages panel: one line per row (the owner picked D of the canvas "Start pages menu") – title cut with …, count,
   Open (and Design) as square icon buttons at the right on every width; the folded-out chips go below the title */
.nuHfRow, .nuHfOpenRow { align-items: flex-start; gap: .5rem; padding: .3rem .5rem .3rem .85rem; }
.nuHfRow .nuHfName { flex-wrap: nowrap; min-height: 2rem; }
.nuHfRow .nuHfFormTitle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nuHfRow .nuHfExp { min-width: 0; }
.nuHfRow .nuHfLvCount, .nuHfRow .nuHfChev, .nuHfRow .nuHfTilesIco { flex: none; }
.nuHfActs { flex-wrap: nowrap; width: auto; }
.nuHfActs .btn.nuHfIcon { width: 2.25rem; height: 2rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }

/* Start pages panel: an own tile page without tiles */
.nuHfEmptyTag { flex: none; font-size: .75rem; padding: 0 .4rem; border-radius: 1rem; border: 1px dashed var(--bs-warning-border-subtle); color: var(--bs-warning-text-emphasis); }

/* Start pages panel: User Home in the head (the owner picked H) */
.nuHfHead .nuHfTitle { margin-right: auto; }
.nuHfHead .nuHfUh { border-radius: 2rem; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .7rem; }
.nuHfHead .nuHfUhDesign { border-radius: 2rem; width: 2rem; height: 2rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* access level form, Users card: search next to Active / Archived / All */
.accUserSearch { flex: 1 1 12rem; max-width: 18rem; min-width: 0; }
@media (max-width: 575.98px) { .accUserSearch { max-width: none; flex-basis: 100%; } }

/* notification editor on wide screens (option C of the canvas "Notification editor on wide screens"): from 1400 px the three
   sections take two columns (Message | Recipients + Delivery) and a side column shows a live preview, the summary and the buttons;
   the bottom bar is hidden there. Below 1400 px the side column is hidden and nothing changes. */
.ntfSide { display: none; }
@media (min-width: 1400px) {
	.ntfEdit .ntfCol { max-width: 1760px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 22rem;
		grid-template-areas: "msg aud side" "msg del side"; grid-template-rows: auto 1fr; align-items: start; }
	.ntfEdit .ntfCol > .ntfSec:nth-of-type(1) { grid-area: msg; }
	.ntfEdit .ntfCol > .ntfSec:nth-of-type(2) { grid-area: aud; }
	.ntfEdit .ntfCol > .ntfSec:nth-of-type(3) { grid-area: del; }
	.ntfEdit #ntf_body { min-height: 16rem; }
	.ntfEdit .ntfOpts { grid-template-columns: 1fr; }
	.ntfEdit .ntfWhen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ntfEdit .ntfWhen input { min-width: 0; }
	.ntfSide { grid-area: side; display: flex; flex-direction: column; gap: .75rem; position: sticky; top: calc(var(--nu-nav-h, 56px) + 1rem);
		background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-radius: .75rem; padding: 1.1rem 1.25rem; }
	.ntfEdit .ntfBar { display: none; }
}
.ntfSideHead { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); margin: 0; }
.ntfSideHead:not(:first-child) { border-top: 1px solid var(--bs-border-color-translucent); padding-top: .75rem; }
.ntfPv { display: flex; gap: .65rem; border: 1px solid var(--bs-border-color); border-radius: .6rem; padding: .7rem .85rem; background: var(--bs-primary-bg-subtle); }
.ntfPv-success { background: var(--bs-success-bg-subtle); border-color: var(--bs-success-border-subtle); }
.ntfPv-warning { background: var(--bs-warning-bg-subtle); border-color: var(--bs-warning-border-subtle); }
.ntfPv-danger { background: var(--bs-danger-bg-subtle); border-color: var(--bs-danger-border-subtle); }
.ntfPv-info { border-color: var(--bs-primary-border-subtle); }
.ntfPvIcon { font-size: 1.15rem; line-height: 1.3; color: var(--bs-primary-text-emphasis); }
.ntfPv-success .ntfPvIcon { color: var(--bs-success-text-emphasis); }
.ntfPv-warning .ntfPvIcon { color: var(--bs-warning-text-emphasis); }
.ntfPv-danger .ntfPvIcon { color: var(--bs-danger-text-emphasis); }
.ntfPvText { min-width: 0; display: flex; flex-direction: column; gap: .2rem; overflow-wrap: anywhere; }
.ntfPvText b.ntfPvNone { color: var(--bs-secondary-color); font-weight: 500; font-style: italic; }
#ntfPvBody { font-size: .875rem; color: var(--bs-body-color); }
#ntfPvBody:empty { display: none; }
#ntfPvMeta { color: var(--bs-secondary-color); font-size: .78rem; }
.ntfSs { margin: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; }
.ntfSs > div { display: flex; justify-content: space-between; gap: 1rem; }
.ntfSs dt { font-weight: 400; color: var(--bs-secondary-color); }
.ntfSs dd { margin: 0; font-weight: 600; text-align: end; }
.ntfSsNames { font-size: .82rem; color: var(--bs-secondary-color); }
.ntfSsNames:has(#ntfSsNames:empty) { display: none; }
.ntfSideBtns { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .25rem; }
.ntfSideBtns .btn { flex: 1 1 auto; justify-content: center; white-space: nowrap; }

/* lighter greys: keys (<kbd>) as light key caps, and the grey Close / Cancel buttons of dialogues (.btn-secondary) in a light
   grey instead of Bootstrap's dark #6c757d */
kbd { background: #f1f3f5; color: #212529; border: 1px solid #dee2e6; border-bottom-width: 2px; border-radius: .3rem; padding: .05rem .35rem; font-size: .8em; font-weight: 600; box-shadow: none; }
[data-bs-theme="dark"] kbd { background: #343a40; color: #e9ecef; border-color: #495057; }
.btn.btn-secondary { --bs-btn-bg: #e9ecef; --bs-btn-color: #212529; --bs-btn-border-color: #dee2e6; --bs-btn-hover-bg: #dee2e6; --bs-btn-hover-color: #212529;
	--bs-btn-hover-border-color: #ced4da; --bs-btn-active-bg: #ced4da; --bs-btn-active-color: #212529; --bs-btn-active-border-color: #ced4da; --bs-btn-disabled-bg: #e9ecef; --bs-btn-disabled-color: #6c757d; --bs-btn-disabled-border-color: #dee2e6; }
[data-bs-theme="dark"] .btn.btn-secondary { --bs-btn-bg: #343a40; --bs-btn-color: #e9ecef; --bs-btn-border-color: #495057; --bs-btn-hover-bg: #3d444b; --bs-btn-hover-color: #fff;
	--bs-btn-hover-border-color: #5c636a; --bs-btn-active-bg: #495057; --bs-btn-active-color: #fff; --bs-btn-active-border-color: #5c636a; --bs-btn-disabled-bg: #343a40; --bs-btn-disabled-color: #adb5bd; --bs-btn-disabled-border-color: #495057; }

/* Getting ready checklist (core/nuready.php): slim bar below the top bar, start page card, the page ?p=gettingready */
.nuGrBar { background: var(--bs-primary-bg-subtle); border-bottom: 1px solid var(--bs-primary-border-subtle); color: var(--bs-body-color); font-size: .875rem; }
.nuGrBarIn { display: flex; align-items: center; gap: .6rem; max-width: 1600px; margin: 0 auto; padding: .3rem 1rem; }
.nuGrBarIn > .bi { color: var(--bs-primary-text-emphasis); }
.nuGrBarText { color: inherit; text-decoration: none; min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nuGrBarText:hover { text-decoration: underline; }
.nuGrBarCount { color: var(--bs-secondary-color); }
.nuGrBarOpen { --bs-btn-padding-y: .1rem; --bs-btn-font-size: .8rem; flex: 0 0 auto; }
.nuGrHideBtn { --bs-btn-padding-y: .1rem; --bs-btn-padding-x: .4rem; color: var(--bs-secondary-color); }
.nuGrHideBtn:hover { color: var(--bs-body-color); }
@media (max-width: 575.98px) { .nuGrBarCount { display: none; } .nuGrBarIn { padding-inline: .6rem; } }
.nuGrRing .nuGrRingBg { stroke: var(--bs-secondary-bg); }
.nuGrRing .nuGrRingFg { stroke: var(--bs-success); }
.nuGrRing .nuGrRingTxt { font-size: 9px; font-weight: 600; fill: var(--bs-body-color); }
.nuGrCard { border-color: var(--bs-primary-border-subtle); }
.nuGrNextList { list-style: none; padding: 0; margin: .3rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .875rem; }
.nuGrNext { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.nuGrNext:hover { text-decoration: underline; }
.nuGrDot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--bs-secondary-color); flex: 0 0 auto; }
.nuGrDot.nuGrSt-bad { background: var(--bs-danger); }
.nuGrDot.nuGrSt-warn { background: var(--bs-warning); }
.nuGrProgress { width: 100%; max-width: 28rem; height: .5rem; accent-color: var(--bs-success); }
.nuGrWrap { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.nuGrSteps ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .15rem; }
.nuGrStep { display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; border-radius: .5rem; color: var(--bs-body-color); text-decoration: none; }
.nuGrStep:hover { background: var(--bs-tertiary-bg); }
.nuGrStep.active { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); font-weight: 600; }
.nuGrStep.nuGrStepDone > .bi { color: var(--bs-success); }
.nuGrStepName { flex: 1 1 auto; min-width: 0; }
.nuGrStepCount { font-size: .75rem; color: var(--bs-secondary-color); font-weight: 400; }
.nuGrStepCount.nuGrStepRed { color: var(--bs-danger-text-emphasis); font-weight: 600; }
.nuGrStepDot { width: .55rem; height: .55rem; flex: 0 0 auto; }   /* the dot of a step (red: to fix, amber: to look at); empty keeps the counts aligned */
.nuGrBadGo:hover, .nuGrBadGo:focus-visible { background: var(--bs-danger-text-emphasis) !important; }
.nuGrItem { scroll-margin-top: calc(var(--nu-nav-h, 56px) + 1rem); }
.nuGrItem:target { outline: 3px solid var(--bs-danger); outline-offset: 2px; animation: nuGrFlash 1.6s ease-out 1; }
@keyframes nuGrFlash { 0%, 40% { box-shadow: 0 0 0 .5rem rgba(220, 53, 69, .25); } 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); } }
.nuGrPane { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: .75rem; padding: 1rem 1.25rem; min-width: 0; }
.nuGrItems { display: flex; flex-direction: column; gap: .5rem; }
.nuGrItem { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: start; padding: .7rem .8rem; border: 1px solid var(--bs-border-color-translucent); border-radius: .6rem; }
.nuGrIcon { font-size: 1.15rem; line-height: 1.3; color: var(--bs-secondary-color); }
.nuGrSt-ok .nuGrIcon { color: var(--bs-success); }
.nuGrSt-warn .nuGrIcon { color: var(--bs-warning); }
.nuGrSt-bad .nuGrIcon { color: var(--bs-danger); }
.nuGrItem.nuGrSt-bad { border-color: var(--bs-danger-border-subtle); background: var(--bs-danger-bg-subtle); }
.nuGrItem.nuGrSt-ok, .nuGrItem.nuGrNa { opacity: .8; }
.nuGrDetail { margin-top: .2rem; color: var(--bs-body-color); overflow-wrap: anywhere; }
.nuGrActs { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: flex-end; align-items: center; }
.nuGrKind { font-weight: 500; font-size: .75rem; vertical-align: middle; }
.nuGrNav { border-top: 1px solid var(--bs-border-color-translucent); padding-top: .75rem; }
@media (max-width: 767.98px) {
	.nuGrWrap { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
	.nuGrSteps ol { flex-direction: row; overflow-x: auto; gap: .25rem; padding-bottom: .25rem; }
	.nuGrStep { white-space: nowrap; padding: .35rem .6rem; }
	.nuGrStep:not(.active) .nuGrStepName { display: none; }
	.nuGrPane { padding: .75rem; }
	.nuGrItem { grid-template-columns: auto minmax(0, 1fr); }
	.nuGrActs { grid-column: 2; justify-content: flex-start; }
}
/* hide menus of the bar / card above the start page's sticky search row (1005) and sticky title bars (1010), below the top bar (1020) */
.nuGrBar .dropdown-menu, .nuGrCard .dropdown-menu { z-index: 1015; }

/* notification editor colours (the owner picked 1 "Indigo & slate" of the canvas "Notification editor colours"): indigo accents,
   chosen level = its own soft tint + border (warning orange, not yellow), preview = neutral card with a tinted icon tile, reach = pill */
.ntfEdit { --ntf-ac: #4f46e5; --ntf-ac-text: #3730a3; --ntf-ac-soft: #eef2ff; --ntf-ac-line: #c7d2fe; --ntf-page: #f6f7fb;
	--ntf-info: #2563eb; --ntf-info-bg: #eff4ff; --ntf-success: #059669; --ntf-success-bg: #ecfdf5; --ntf-warning: #c2410c; --ntf-warning-bg: #fff4ec;
	--ntf-danger: #dc2626; --ntf-danger-bg: #fef2f2; }
[data-bs-theme="dark"] .ntfEdit { --ntf-ac: #818cf8; --ntf-ac-text: #c7d2fe; --ntf-ac-soft: rgba(129, 140, 248, .14); --ntf-ac-line: rgba(129, 140, 248, .4); --ntf-page: var(--bs-tertiary-bg);
	--ntf-info: #6ea8fe; --ntf-info-bg: rgba(110, 168, 254, .12); --ntf-success: #34d399; --ntf-success-bg: rgba(52, 211, 153, .12);
	--ntf-warning: #fb923c; --ntf-warning-bg: rgba(251, 146, 60, .13); --ntf-danger: #f87171; --ntf-danger-bg: rgba(248, 113, 113, .12); }
.ntfEdit .ntfBody { background: var(--ntf-page); }
.ntfEdit .ntfSec, .ntfEdit .ntfSide { border-color: var(--bs-border-color); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.ntfEdit .ntfNum { background: var(--ntf-ac-soft); color: var(--ntf-ac-text); font-weight: 700; }
.ntfEdit .ntfAddRule { border: 1px solid var(--ntf-ac-line); color: var(--ntf-ac-text); background: var(--bs-body-bg); }
.ntfEdit .ntfAddRule:hover { border-style: solid; background: var(--ntf-ac-soft); }
.ntfEdit .ntfAddRule.ntfAddEx { border-color: var(--bs-border-color); color: var(--bs-secondary-color); }
.ntfReach { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: .6rem; font-weight: 600; font-size: .9rem;
	background: var(--bs-tertiary-bg); color: var(--bs-body-color); border: 1px solid var(--bs-border-color-translucent); }
.ntfReach::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--bs-secondary-color); flex: none; }
.ntfEdit .ntfReachNone { background: var(--ntf-ac-soft); color: var(--ntf-ac-text); border-color: var(--ntf-ac-line); }
.ntfEdit .ntfReachNone::before { background: var(--ntf-ac); }
.ntfEdit .ntfReachSome { background: var(--ntf-success-bg); color: var(--bs-success-text-emphasis); border-color: color-mix(in srgb, var(--ntf-success) 30%, transparent); }
.ntfEdit .ntfReachSome::before { background: var(--ntf-success); }
.ntfEdit .ntfLv .nuBellIcon { width: 1.15rem; height: 1.15rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
.ntfEdit .ntfLv-info .nuBellIcon { color: var(--ntf-info); background: var(--ntf-info-bg); }
.ntfEdit .ntfLv-success .nuBellIcon { color: var(--ntf-success); background: var(--ntf-success-bg); }
.ntfEdit .ntfLv-warning .nuBellIcon { color: var(--ntf-warning); background: var(--ntf-warning-bg); }
.ntfEdit .ntfLv-danger .nuBellIcon { color: var(--ntf-danger); background: var(--ntf-danger-bg); }
.ntfEdit .btn-check:checked + .ntfLv { border-width: 1.5px; padding: calc(.55rem - .5px) calc(.75rem - .5px); }
.ntfEdit .btn-check:checked + .ntfLv-info { border-color: var(--ntf-info); background: var(--ntf-info-bg); }
.ntfEdit .btn-check:checked + .ntfLv-success { border-color: var(--ntf-success); background: var(--ntf-success-bg); }
.ntfEdit .btn-check:checked + .ntfLv-warning { border-color: var(--ntf-warning); background: var(--ntf-warning-bg); }
.ntfEdit .btn-check:checked + .ntfLv-danger { border-color: var(--ntf-danger); background: var(--ntf-danger-bg); }
.ntfEdit .btn-check:checked + .ntfLv .nuBellIcon { background: var(--bs-body-bg); }
.ntfEdit .btn-check:focus-visible + .ntfLv { outline-color: var(--ntf-ac); }
.ntfEdit .ntfOpt:has(.form-check-input:checked) { border-color: var(--ntf-ac-line); background: var(--ntf-ac-soft); }
.ntfEdit .form-check-input:checked { background-color: var(--ntf-ac); border-color: var(--ntf-ac); }
.ntfEdit .form-check-input:focus { border-color: var(--ntf-ac-line); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--ntf-ac) 22%, transparent); }
.ntfEdit .btn-primary { --bs-btn-bg: var(--ntf-ac); --bs-btn-border-color: var(--ntf-ac); --bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: #4338ca;
	--bs-btn-active-bg: #3730a3; --bs-btn-active-border-color: #3730a3; --bs-btn-disabled-bg: var(--ntf-ac); --bs-btn-disabled-border-color: var(--ntf-ac); }
[data-bs-theme="dark"] .ntfEdit .btn-primary { --bs-btn-color: #11122a; --bs-btn-hover-color: #11122a; --bs-btn-active-color: #11122a; --bs-btn-hover-bg: #a5b4fc; --bs-btn-hover-border-color: #a5b4fc; }
.ntfEdit .ntfPv, .ntfEdit .ntfPv-info, .ntfEdit .ntfPv-success, .ntfEdit .ntfPv-warning, .ntfEdit .ntfPv-danger { background: var(--bs-body-bg); border-color: var(--bs-border-color); border-radius: .75rem; }
.ntfEdit .ntfPvIcon { width: 1.9rem; height: 1.9rem; flex: none; border-radius: .5rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; line-height: 1;
	color: var(--ntf-info); background: var(--ntf-info-bg); }
.ntfEdit .ntfPv-success .ntfPvIcon { color: var(--ntf-success); background: var(--ntf-success-bg); }
.ntfEdit .ntfPv-warning .ntfPvIcon { color: var(--ntf-warning); background: var(--ntf-warning-bg); }
.ntfEdit .ntfPv-danger .ntfPvIcon { color: var(--ntf-danger); background: var(--ntf-danger-bg); }
.ntfEdit .form-control:focus, .ntfEdit .form-select:focus { border-color: var(--ntf-ac-line); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--ntf-ac) 18%, transparent); }

/* G11 phones: the Getting ready bar is left out – the start page shows its card */
@media (max-width: 575.98px) { #nuGrBar { display: none !important; } }
/* admin role form: changed rights until saved (assets/js/nuadminroles.js) */
#admRights tr.admChanged > td { background-color: var(--bs-warning-bg-subtle); }
#admRights tr.admChanged > td:first-child { box-shadow: inset 3px 0 0 var(--bs-warning); }
#admRights td.admLvlNew .admLvl { outline: 2px solid var(--bs-warning); outline-offset: 2px; border-radius: .4rem; }
#admRights td.admLvlOld .form-check-input { border-style: dashed; border-color: var(--bs-warning-text-emphasis); }
#admRights .admWas { display: block; font-size: .78rem; color: var(--bs-warning-text-emphasis); font-weight: 500; }
#admChanges .admChgCount { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); border: 1px solid var(--bs-warning-border-subtle); font-weight: 600; }

/* IP access, exceptions per access level on phones: the rule below the name, the ranges below it, no columns */
@media (max-width: 575.98px) {
	#ipaLevels > thead { display: none; }
	#ipaLevels, #ipaLevels > tbody { display: block; }
	#ipaLevels > tbody > tr { display: block; padding: .6rem .75rem; border-bottom: 1px solid var(--bs-border-color); }
	#ipaLevels > tbody > tr > td { display: block; border: 0; padding: .15rem 0; width: auto; }
	#ipaLevels .ipaMode { width: 100%; }
	#ipaLevels textarea { min-width: 0; width: 100%; }
}
/* date fields in the format of the language (nuapp.js nuDateLocal): text field + calendar button, the browser's date input
   hidden behind them (its picker opens from the button) */
.nuDateWrap { position: relative; display: flex; align-items: stretch; width: 100%; min-width: 0; }
.nuDateWrap > .nuDateText { flex: 1 1 auto; min-width: 0; padding-right: 2.25rem; }
.nuDateWrap > .nuDateBtn { position: absolute; top: 0; right: 0; bottom: 0; z-index: 3; width: 2.25rem; padding: 0; border: 0; color: var(--bs-secondary-color); background: transparent; }
.nuDateWrap > .nuDateBtn:hover:not(:disabled) { color: var(--bs-body-color); }
.nuDateWrap > .nuDateText.is-invalid ~ .nuDateBtn { right: 1.5rem; }
.nuDateWrap > .nuDateNative { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.input-group > .nuDateWrap { flex: 1 1 auto; width: 1%; }
.input-group > .nuDateWrap:not(:last-child) > .nuDateText { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .nuDateWrap:not(:first-child) > .nuDateText { margin-left: calc(var(--bs-border-width) * -1); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.xaRow > .nuDateWrap { flex: 0 0 auto; width: 9.25rem; }
@media (max-width: 575.98px) { .xaRow > .nuDateWrap { width: 7.75rem; } .xaRow > .nuDateWrap > .nuDateText { padding-left: .35rem; padding-right: 1.6rem; font-size: .8125rem; } .xaRow > .nuDateWrap > .nuDateBtn { width: 1.6rem; } }
.userGrid .nuDateWrap:has(#sus_expires_on) { max-width: 200px; }

/* ---- usability review G1–G18 ---------------------------------------------------------------------------------- */
/* G1 touch screens: everything one taps reacts on 24 px or more (WCAG 2.2 target size) – the look stays, the area grows */
@media (pointer: coarse) {
	.nuInfoTip, .nuMarkUnique { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; margin-block: -3px; vertical-align: middle; }
	.form-check-input:not([role="switch"]):not(.nuAbs .form-check-input) { width: 1.5rem; height: 1.5rem; }
	html.nuPhoneStack .nuAbs .form-check-input:not([role="switch"]) { width: 1.5rem; height: 1.5rem; }
	.form-switch .form-check-input:not(.nuAbs .form-check-input) { width: 2.75rem; height: 1.5rem; }
	.form-check:not(.form-switch):not(.form-check-reverse) { padding-left: 2.1rem; min-height: 1.75rem; }
	.form-check:not(.form-switch):not(.form-check-reverse) > .form-check-input { margin-left: -2.1rem; margin-top: 0; }
	.form-switch:not(.form-check-reverse) { padding-left: 3.4rem; min-height: 1.75rem; }
	.form-switch:not(.form-check-reverse) > .form-check-input { margin-left: -3.4rem; margin-top: 0; }
	.form-check-label { padding-top: .1rem; }
	.btn.btn-sm:not(.dropdown-item), .btn.btn-link { min-height: 24px; }
	a.badge, button.badge, .nuLvChip, .nuAdvChip { display: inline-flex; align-items: center; min-height: 24px; }
	details > summary { min-height: 24px; }
	.btn-close { min-width: 24px; min-height: 24px; }
}
/* G6 rows that scroll sideways (tabs, sections): the cut edge fades (nuapp.js sets nuHsL / nuHsR and scrolls the open entry into view) */
.nuHsL { -webkit-mask-image: linear-gradient(to right, transparent, #000 2rem); mask-image: linear-gradient(to right, transparent, #000 2rem); }
.nuHsR { -webkit-mask-image: linear-gradient(to left, transparent, #000 2rem); mask-image: linear-gradient(to left, transparent, #000 2rem); }
.nuHsL.nuHsR { -webkit-mask-image: linear-gradient(to right, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); mask-image: linear-gradient(to right, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); }
/* usability review, page list */
/* G8 the last item of a form page's breadcrumb is the page's heading (h1) – it looks as before */
.breadcrumb h1.nuCrumbH1 { display: inline; margin: 0; font-size: inherit; line-height: inherit; font-weight: 600; color: inherit; }
/* G10 contrast of 4.5:1 or more */
:is(.alert, .nuTitleSub, .sampleNote) code { color: inherit; background: rgba(var(--bs-emphasis-color-rgb), .07); padding: .05em .3em; border-radius: .25rem; }
:is(.form-text, .text-body-secondary, .text-secondary, .small) code { color: inherit; }
.btn.nuBtnBlocked, .btn.nuBtnBlocked:hover { opacity: 1; color: var(--bs-secondary-color); border-style: dashed; }
[data-bs-theme="dark"] .text-secondary { color: var(--bs-secondary-color) !important; }
.nuCalChipAll[aria-pressed="false"] { opacity: 1; color: var(--bs-secondary-color); }
.nuCalChipAll[aria-pressed="true"] { color: var(--bs-primary-text-emphasis); border-color: var(--bs-primary-text-emphasis); }
/* G9 badges never below 12 px */
.badge { font-size: max(.75em, .75rem); }
/* shared toasts of the page scripts (assets/js/nuutil.js NuUtil.toast) – bottom right, above dialogues */
.nuToastStack { z-index: 1090; max-width: 26rem; }
/* G12 start page: two or more notices in one strip that folds (nuhome.js; html.nuNoticesShut from nutheme.js) */
.nuHomeNotices { border: 1px solid var(--bs-border-color); border-radius: .75rem; background: var(--bs-body-bg); }
.nuHomeNoticesHead { display: flex; align-items: center; gap: .5rem; width: 100%; min-height: 2.75rem; padding: .5rem .9rem; border: 0; background: transparent; color: var(--bs-body-color); text-align: start; border-radius: .75rem; }
.nuHomeNoticesHead:hover { background: var(--bs-tertiary-bg); }
.nuHomeNoticesHead > .fw-semibold { white-space: nowrap; }
.nuHomeNoticesNames { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bs-secondary-color); font-size: .875rem; }
.nuHomeNoticesChev { transition: transform .15s; }
html.nuNoticesShut .nuHomeNoticesChev { transform: rotate(-90deg); }
html.nuNoticesShut .nuHomeNoticesBody { display: none; }
.nuHomeNoticesBody { padding: 0 .75rem .25rem; }
.nuHomeNoticesBody > :is(.alert, .card, div) { margin-bottom: .75rem !important; }
/* G16 date-time fields of own pages: room for the time */
.nuDateWrap > .nuDateText.nuDateTimeText { min-width: 11rem; }
/* documentation: the index folds behind "Contents" below 992 px (assets/js/nuhelp.js); from 992 px no summary */
.nuHelpTocSum { cursor: pointer; font-weight: 600; padding: .4rem .6rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); background: var(--bs-body-bg); list-style-position: inside; }
.nuHelpTocFold[open] > .nuHelpTocSum { margin-bottom: .5rem; }
@media (min-width: 992px) { .nuHelpTocSum { display: none; } }
@media (max-width: 991.98px) { .nuHelpTocFold .nuHelpToc { max-height: 60vh; } }
/* shared settings on phones: one card per setting – name, then setting and category, then the value */
@media (max-width: 575.98px) {
	#setTable > thead { display: none; }
	#setTable, #setTable > tbody { display: block; }
	#setTable > tbody > tr:not(.setNone) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "key cat" "val val"; gap: .2rem .5rem; padding: .6rem .75rem; border-bottom: 1px solid var(--bs-border-color); }
	#setTable > tbody > tr > td { display: block; border: 0; padding: 0; min-width: 0; width: auto; }
	#setTable .setNameCell { grid-area: name; }
	#setTable .setKeyCell { grid-area: key; }
	#setTable .setCatCell { grid-area: cat; text-align: end; }
	#setTable .setValueCol { grid-area: val; margin-top: .25rem; }
	#setTable .setDescCol { display: none; }
}
/* dashboards on phones: the stacked table rows no wider than the card (the table kept its own width – 4 px sideways scrolling) */
@media (max-width: 575.98px) {
	.nuDashTable > table, .nuDashTable > table > tbody { display: block; width: 100%; }
	
}
/* dashboard tools: period select, From / To (only for a custom period) and refresh in one row where they fit */
.nuDashTools > .nuDateWrap { flex: 0 1 10rem; width: 10rem; min-width: 0; }

/* view mode of a record (assets/js/nuview.js): a read-only data sheet over the page */
html.nuRvOpen { overflow: hidden; }
/* view mode about to open by itself (core/nurecordview.php pending()): nothing of the page shows until the sheet covers it */
body.nuRvPending { background: var(--nu-page, #eef1f5); }
body.nuRvPending > :not(#nuRecView) { visibility: hidden; animation: nuRvShow 0s 4s forwards; }   /* shown anyway when the script never runs */
@keyframes nuRvShow { to { visibility: visible; } }
.nuRv { position: fixed; inset: 0; z-index: 1045; display: flex; flex-direction: column; background: var(--nu-page, #eef1f5); outline: none; }
.nuRvBar { padding: .5rem max(1rem, env(safe-area-inset-right, 0px)) .5rem max(1rem, env(safe-area-inset-left, 0px));
	background: var(--bs-body-bg); border-bottom: 1px solid var(--bs-border-color); }
.nuRvBarIn { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; max-width: 60rem; margin: 0 auto; }
.nuRvBadge { display: inline-flex; align-items: center; gap: .375rem; padding: .25rem .625rem; border-radius: 1rem; background: rgba(var(--bs-primary-rgb), .1);
	color: var(--bs-primary-text-emphasis); font-size: .875rem; font-weight: 500; }
.nuRvNav { display: inline-flex; align-items: stretch; margin-left: auto; }
.nuRvNav .btn { width: 2.375rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; height: 2.375rem; }
.nuRvPos { font-size: .875rem; color: var(--bs-secondary-color); min-width: 4.5rem; text-align: center; display: inline-flex; align-items: center; justify-content: center;
	border-block: 1px solid var(--bs-border-color); padding: 0 .5rem; }
.nuRvEdit { display: inline-flex; align-items: center; gap: .375rem; height: 2.375rem; }
.nuRvFirst { display: inline-flex; align-items: center; gap: .5rem; padding-left: 2.5em; margin-left: .25rem; font-size: .875rem; color: var(--bs-secondary-color); cursor: pointer; }
.nuRvFirst .form-check-input { cursor: pointer; }
.nuRvFirstL { white-space: nowrap; }
.nuRvBarIn > :is(.nuRvBadge, .nuRvFirst) + .nuRvEdit { margin-left: auto; }
.nuRvScroll { flex: 1 1 auto; overflow: auto; scrollbar-gutter: stable both-edges; padding: 1.25rem max(1rem, env(safe-area-inset-right, 0px)) 2rem max(1rem, env(safe-area-inset-left, 0px)); }
.nuRvSheet { max-width: 60rem; margin: 0 auto; background: var(--bs-body-bg); border-radius: .5rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .06);
	padding: 1.75rem 2.5rem; display: flex; flex-direction: column; gap: 1.125rem; }
.nuRvKind { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); }
.nuRvTitle { font-size: 1.625rem; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.nuRvFacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); border: 1px solid var(--bs-border-color); border-radius: .5rem; overflow: hidden; }
.nuRvFact { padding: .625rem .875rem; box-shadow: -1px 0 0 var(--bs-border-color); min-width: 0; }
.nuRvFactL { font-size: .8125rem; color: var(--bs-secondary-color); }
.nuRvFactV { font-weight: 600; overflow-wrap: anywhere; }
.nuRvSec { display: flex; flex-direction: column; gap: .375rem; }
.nuRvSecHead { display: flex; align-items: center; gap: .625rem; font-size: .875rem; font-weight: 600; margin: 0; }
.nuRvSecHead::after { content: ""; flex: 1; height: 1px; background: var(--bs-border-color); }
.nuRvGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: .3125rem; margin: 0; }
.nuRvItem { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .875rem; font-size: .875rem; line-height: 1.4; }
.nuRvItem.nuRvWide { grid-column: 1 / -1; }
.nuRvItem dt { font-weight: 400; color: var(--bs-secondary-color); font-size: .8125rem; text-align: right; overflow-wrap: anywhere; }
.nuRvItem dd { margin: 0; overflow-wrap: anywhere; }
.nuRvLong { white-space: pre-line; }
.nuRvEmpty { color: var(--bs-secondary-color); }
.nuRvYes { color: var(--bs-success-text-emphasis); }
.nuRvSub { display: flex; flex-direction: column; gap: .25rem; }
.nuRvSubHead { display: flex; align-items: baseline; gap: .5rem; font-size: .8125rem; font-weight: 600; color: var(--bs-secondary-color); margin: .25rem 0 0; }
.nuRvCount { font-weight: 400; }
.nuRvTableWrap { overflow-x: auto; }
.nuRvTable { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.nuRvTable th { text-align: left; font-weight: 500; color: var(--bs-secondary-color); font-size: .75rem; padding: .25rem .5rem; border-bottom: 1px solid var(--bs-border-color); }
.nuRvTable td { padding: .3125rem .5rem; border-bottom: 1px solid var(--bs-border-color-translucent); overflow-wrap: anywhere; }
.nuRvNothing { color: var(--bs-secondary-color); margin: 0; }
.nuRvFoot { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; border-top: 1px solid var(--bs-border-color); padding-top: .5rem; font-size: .75rem; color: var(--bs-secondary-color); }
.nuRvFoot .btn-link { font-size: .75rem; }
.nuRvKeys { margin-left: auto; }
@media (max-width: 767.98px) {
	.nuRvSheet { padding: 1.25rem 1rem; }
	.nuRvGrid { grid-template-columns: minmax(0, 1fr); }
	.nuRvItem { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.nuRvItem dt { text-align: left; }
	.nuRvKeys { display: none; }
}
@media (max-width: 575.98px) {
	.nuRvTxt { display: none; }
	.nuRvBarIn { flex-wrap: nowrap; }
	.nuRvEdit { width: 2.75rem; height: 2.75rem; justify-content: center; padding: 0; }
	.nuRvBadge { padding: .375rem; }
}
@media (hover: none) and (pointer: coarse) { .nuRvKeys { display: none; } }
@media print {
	html.nuRvOpen body > *:not(#nuRecView) { display: none !important; }
	html.nuRvOpen, html.nuRvOpen body { overflow: visible; background: #fff; }
	.nuRv { position: static; background: #fff; }
	.nuRvBar, .nuRvFoot { display: none; }
	.nuRvScroll { overflow: visible; padding: 0; }
	.nuRvSheet { box-shadow: none; max-width: none; padding: 0; }
}
/* translations matrix of one form: a translation is a link to its record; the pencil shows on hover / focus */
#trlMatrix .trlCellEdit { color: inherit; text-decoration: none; }
#trlMatrix .trlCellEdit .bi { opacity: 0; color: var(--bs-link-color); transition: opacity .12s; }
#trlMatrix .trlCellEdit:hover .bi, #trlMatrix .trlCellEdit:focus-visible .bi { opacity: 1; }
#trlMatrix .trlCellEdit:hover { text-decoration: underline; }
@media (hover: none) { #trlMatrix .trlCellEdit .bi { opacity: .6; } }

/* translation record: the language code field stays short (labels on top) */
.nuTrlLang { max-width: 16rem; }

/* prompt generator: the AI answer, formatted, with a Copy button on each code block */
.pgAnswerView { max-height: 32rem; overflow: auto; padding: .75rem 1rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius);
	background: var(--bs-body-bg); font-size: .875rem; }
.pgAnswerView > :last-child { margin-bottom: 0; }
.pgAnswerView h1, .pgAnswerView h2, .pgAnswerView h3 { font-size: 1rem; font-weight: 600; margin: .75rem 0 .5rem; }
.pgAnswerView .pgCodeWrap { position: relative; margin-bottom: .75rem; }
.pgAnswerView pre { margin: 0; padding: .625rem .75rem; padding-right: 4.5rem; background: var(--bs-tertiary-bg); border-radius: var(--bs-border-radius);
	font-size: .8125rem; white-space: pre; overflow-x: auto; }
.pgAnswerView .pgCodeCopy { position: absolute; top: .375rem; right: .375rem; background: var(--bs-body-bg); }
.pgAnswerView table { border-collapse: collapse; margin-bottom: .75rem; }
.pgAnswerView th, .pgAnswerView td { border: 1px solid var(--bs-border-color); padding: .25rem .5rem; }

/* Debug results: copy and × next to the checkbox; on phones at the right end of the head line */
@media (max-width: 575.98px) { .debugRow .debugActs { order: 10; margin-left: auto; } }
