/* ==========================================================================
   The pages a user account sees - design A "Flight Strip", with the top menu
   of design B (chosen 2026-10-23).

   Colours, fonts and sizes are the Branding settings of the user pages
   (Settings > Branding > User pages; renderBrandingCssVariables('user')):
   every tone below is worked out from them, so a Branding change re-themes
   every page. --font-mono is the user design's "Numbers and codes" font.

   Every class is prefixed ua- : the pages also load Bootstrap, whose .btn,
   .card, .table, .row and .badge would otherwise take these styles.
   ========================================================================== */

body.ua {
    --navbar-height: 68px;
    /* the user pages' content width (2026-10-23: full width read too wide on large screens) */
    --ua-page-max: 1600px;
    --p-ink: color-mix(in oklab, var(--primary-color) 80%, #000);
    --p-soft: color-mix(in oklab, var(--primary-color) 9%, var(--card-bg-color, #fff));
    --p-mist: color-mix(in oklab, var(--primary-color) 5%, var(--card-bg-color, #fff));
    --p-line: color-mix(in oklab, var(--primary-color) 32%, var(--card-bg-color, #fff));
    --s-soft: color-mix(in oklab, var(--secondary-color) 7%, var(--card-bg-color, #fff));
    --s-line: color-mix(in oklab, var(--secondary-color) 22%, var(--card-bg-color, #fff));
    --ua-card: var(--card-bg-color, #fff);
    --ua-ground: var(--background-color, #F8FAFB);
    --muted: color-mix(in oklab, var(--text-secondary-color) 88%, #000);
    --line: var(--border-color, #E5E7EB);
    --field-line: color-mix(in oklab, var(--border-color) 70%, #000 6%);
    --ok-fg: color-mix(in oklab, var(--success-color) 60%, #000);
    --ok-bg: color-mix(in oklab, var(--success-color) 12%, #fff);
    --warn-fg: color-mix(in oklab, var(--warning-color) 42%, #000);
    --warn-bg: color-mix(in oklab, var(--warning-color) 17%, #fff);
    --bad-fg: color-mix(in oklab, var(--danger-color) 74%, #000);
    --bad-bg: color-mix(in oklab, var(--danger-color) 10%, #fff);
    --info-fg: color-mix(in oklab, var(--info-color) 44%, #000);
    --info-bg: color-mix(in oklab, var(--info-color) 13%, #fff);
    --c-ok: var(--primary-color);
    --c-pend: color-mix(in oklab, var(--warning-color) 82%, #fff);
    --c-rev: color-mix(in oklab, var(--info-color) 72%, #000 8%);
    --c-bad: var(--danger-color);
    --ua-font: var(--font-primary, 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif);
    --ua-font-ar: var(--font-arabic, var(--font-secondary, 'IBM Plex Sans Arabic', Tahoma, sans-serif));
    --ua-mono: var(--font-mono, 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace);
    --ua-heading: var(--heading-size, 26px);
    --ua-shadow-pop: 0 26px 70px rgba(8, 18, 36, .28);
    background: var(--ua-ground);
    color: var(--text-color);
    padding-top: var(--navbar-height);   /* the fixed top menu */
    font-family: var(--ua-font);
    font-size: var(--font-size-base, 15px);
    line-height: var(--line-height, 1.55);
    -webkit-font-smoothing: antialiased;
}
body.ua[dir="rtl"], html[dir="rtl"] body.ua { font-family: var(--ua-font-ar); }
body.ua :where(.ua-page) * { box-sizing: border-box; }

/* global-theme.css sizes every h1-h6 with !important: the design's headings say their own size. */
body.ua :is(h1, h2, h3, h4, h5, h6) { margin-top: 0; }

/* a plain link in the text of a page (buttons and tiles keep their own colours) */
body.ua :where(.ua-page) a:where(:not([class])) { color: var(--p-ink); font-weight: 600; text-decoration: none; }
body.ua :where(.ua-page) a:where(:not([class])):hover { text-decoration: underline; }

/* ---- small helpers ---- */
.ua-mono { font-family: var(--ua-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; direction: ltr; unicode-bidi: isolate; }
.ua-muted { color: var(--muted); }
.ua-small { font-size: 13px; }
.ua-caps { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .ua-caps { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.ua-hstack { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ua-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ua-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="rtl"] .ua-flip { transform: scaleX(-1); }

/* ==========================================================================
   Top menu (design B): logo and name | the pages | bell, language, account
   ========================================================================== */
.ua-topbar {
    position: fixed; top: 0; inset-inline: 0; z-index: 1030;
    display: flex; align-items: center; gap: 16px;
    height: var(--navbar-height); padding: 0 24px;
    background: var(--ua-card); border-bottom: 1px solid var(--line);
    font-family: inherit;
}
.ua-logo { display: flex; align-items: center; gap: 10px; flex: none; color: var(--text-color); text-decoration: none; min-width: 0; }
.ua-logo:hover { text-decoration: none; color: var(--text-color); }
.ua-logo img { height: 38px; width: auto; display: block; }
.ua-logo b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
[dir="rtl"] .ua-logo b { letter-spacing: 0; }

.ua-menu { display: flex; align-items: center; gap: 2px; margin-inline: auto; min-width: 0; }
.ua-menu > a, .ua-menu > .ua-menu-drop > button {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 13px;
    border: 0; border-radius: 999px; background: transparent;
    color: var(--text-color); font: inherit; font-size: 14.5px; font-weight: 600; white-space: nowrap;
    text-decoration: none; cursor: pointer;
}
.ua-menu > a:hover, .ua-menu > .ua-menu-drop > button:hover { background: var(--p-mist); color: var(--text-color); text-decoration: none; }
.ua-menu > a.on, .ua-menu > .ua-menu-drop > button.on { background: var(--p-soft); color: var(--p-ink); font-weight: 700; }
.ua-menu .bi-chevron-down { font-size: 11px; color: var(--muted); transition: transform .15s; }
.ua-menu .on .bi-chevron-down { color: var(--p-ink); }
.ua-menu-drop { position: relative; }
.ua-menu-drop.open > button .bi-chevron-down { transform: rotate(180deg); }
.ua-drop-list {
    position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 5;
    min-width: 240px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
    background: var(--ua-card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(8, 18, 36, .16);
}
.ua-drop-list[hidden], .ua-pop[hidden] { display: none; }
.ua-drop-list a {
    display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 8px;
    color: var(--text-color); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.ua-drop-list a i { width: 18px; text-align: center; color: var(--muted); }
.ua-drop-list a:hover { background: var(--p-mist); text-decoration: none; color: var(--text-color); }
.ua-drop-list a.on { background: var(--p-soft); color: var(--p-ink); font-weight: 600; }
.ua-drop-list a.on i { color: var(--p-ink); }
.ua-drop-sep { display: block; height: 1px; background: var(--line); margin: 4px 6px; }

.ua-tools { display: flex; align-items: center; gap: 8px; flex: none; margin-inline-start: auto; }
.ua-menu ~ .ua-tools { margin-inline-start: 0; }
.ua-round {
    position: relative; width: 40px; height: 40px; padding: 0; flex: none;
    display: grid; place-items: center; border-radius: 999px;
    border: 1px solid var(--line); background: var(--ua-card); color: var(--text-color); font: inherit; font-size: 17px; cursor: pointer;
}
.ua-round:hover { border-color: var(--p-line); }
.ua-round.on, .ua-round[aria-expanded="true"] { background: var(--p-soft); border-color: var(--p-line); color: var(--p-ink); }
.ua-acct[aria-expanded="true"] { border-color: var(--p-line); box-shadow: 0 0 0 3px var(--p-soft); }
.ua-round .notification-count, .ua-round .ua-badge {
    position: absolute; top: -5px; inset-inline-end: -5px; min-width: 20px; height: 20px; padding: 0 5px;
    display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--ua-card);
    background: var(--danger-color); color: #fff; font-family: var(--ua-mono); font-size: 11px; font-weight: 700; line-height: 1;
}
.ua-acct {
    display: flex; align-items: center; gap: 10px; min-height: 44px; padding-block: 3px; padding-inline: 3px 12px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--ua-card); color: var(--text-color);
    font: inherit; cursor: pointer; text-align: start;
}
.ua-acct:hover { border-color: var(--p-line); }
.ua-acct .ua-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ua-acct .ua-who b { font-size: 13.5px; font-weight: 700; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.ua-acct .ua-who small { font-size: 12px; color: var(--muted); }
.ua-acct > .bi { font-size: 12px; color: var(--muted); }
.ua-avatar {
    width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 999px;
    background: var(--secondary-color); color: #fff; font-size: 14.5px; font-weight: 700; line-height: 1; overflow: hidden;
}
.ua-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ua-burger { display: none; }

/* the language list and the account menu, under their buttons */
.ua-pop {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 1040;
    min-width: 220px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
    background: var(--ua-card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(8, 18, 36, .16);
}
.ua-tool { position: relative; }
.ua-pop a, .ua-pop .ua-pop-item {
    display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 8px;
    color: var(--text-color); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.ua-pop a:hover { background: var(--p-mist); text-decoration: none; color: var(--text-color); }
.ua-pop a.on { background: var(--p-soft); color: var(--p-ink); font-weight: 600; }
.ua-pop a i { width: 18px; text-align: center; color: var(--muted); font-size: 16px; }
.ua-pop .ua-pop-sep { height: 1px; margin: 4px 6px; background: var(--line); }
.ua-pop .logout-item, .ua-pop .logout-item i { color: var(--bad-fg); }
.ua-pop-head { display: flex; flex-direction: column; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ua-pop-head b { font-size: 14px; font-weight: 700; }
.ua-pop-head span { font-size: 12.5px; color: var(--muted); }
.ua-lang-code { font-family: var(--ua-mono); font-size: 12px; font-weight: 600; color: var(--muted); margin-inline-start: auto; }
.ua-pop a[lang] { justify-content: space-between; gap: 18px; }

/* signed out: plain links */
.ua-tools .ua-link { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text-color); text-decoration: none; }
.ua-tools .ua-link.ua-link-primary { background: var(--primary-color); color: #fff; }

/* phone and narrow screens: the pages move into the drawer */
@media (max-width: 1279.98px) {
    .ua-acct .ua-who { display: none; }
    .ua-acct { padding-inline: 3px 8px; }
    .ua-logo b { display: none; }
}
@media (max-width: 1099.98px) {
    .ua-menu { display: none; }
    .ua-burger { display: grid; }
    .ua-topbar { gap: 10px; padding: 0 14px; }
    .ua-logo b { display: inline; }
}
@media (max-width: 575.98px) {
    .ua-logo b { display: none; }
    .ua-tools { gap: 6px; }
}

/* A table's sort header is a button (My Requests, Wages & Fees - review 30 Oct, U79). */
.data-table th .ua-sort-btn { all: unset; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; border-radius: 4px; }
.data-table th .ua-sort-btn:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* the drawer (design A's side menu) */
.ua-drawer-veil { position: fixed; inset: 0; z-index: 1045; background: color-mix(in oklab, var(--secondary-color) 70%, #000); opacity: 0; visibility: hidden; transition: opacity .2s; }
.ua-drawer-veil.show { opacity: .55; visibility: visible; }
.ua-drawer {
    position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 1050; width: min(300px, 86vw);
    display: flex; flex-direction: column; gap: 14px; padding: 16px 14px;
    background: var(--secondary-color); color: #fff; overflow-y: auto;
    transform: translateX(-104%); transition: transform .22s ease;
}
[dir="rtl"] .ua-drawer { transform: translateX(104%); }
.ua-drawer.open { transform: none; }
/* Closed, it is inert as well (public/navbar.php, review 30 Oct, U67): out of the keyboard path. */
.ua-drawer-head { display: flex; align-items: center; gap: 12px; padding: 2px 4px 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ua-drawer-head .ua-plate { width: 58px; height: 38px; border-radius: 8px; background: #fff; display: grid; place-items: center; padding: 3px 6px; flex: none; }
.ua-drawer-head .ua-plate img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ua-drawer-head b { font-size: 15px; font-weight: 650; line-height: 1.25; }
.ua-drawer-head button { margin-inline-start: auto; width: 36px; height: 36px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.ua-drawer nav { display: flex; flex-direction: column; gap: 2px; }
.ua-drawer .ua-nav-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); padding: 12px 12px 6px; }
[dir="rtl"] .ua-drawer .ua-nav-label { letter-spacing: 0; text-transform: none; font-size: 12px; }
.ua-drawer nav a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border-radius: 8px; color: rgba(255, 255, 255, .86); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.ua-drawer nav a i { width: 18px; text-align: center; font-size: 16px; }
.ua-drawer nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.ua-drawer nav a.on { background: var(--primary-color); color: #fff; }
.ua-drawer-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ua-drawer-foot a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border-radius: 8px; color: rgba(255, 255, 255, .86); text-decoration: none; }
.ua-drawer-foot a:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ==========================================================================
   The notifications panel, under the bell (design A)
   ========================================================================== */
body.ua .sidebar-notifications.ngp-panel {
    position: fixed; top: calc(var(--navbar-height) + 8px); inset-inline-end: 16px; left: auto; right: auto;
    width: min(484px, calc(100vw - 24px)); height: auto; max-height: calc(100vh - var(--navbar-height) - 24px);
    display: none; flex-direction: column; z-index: 1060;
    background: var(--ua-card); border: 0; border-radius: 14px; box-shadow: var(--ua-shadow-pop);
    transform: none; opacity: 1; overflow: hidden; font-family: inherit;
}
html[dir="ltr"] body.ua .sidebar-notifications.ngp-panel, body.ua[dir="ltr"] .sidebar-notifications.ngp-panel { right: 16px; }
html[dir="rtl"] body.ua .sidebar-notifications.ngp-panel, body.ua[dir="rtl"] .sidebar-notifications.ngp-panel { left: 16px; }
body.ua .sidebar-notifications.ngp-panel { animation: none; transition: none; }
body.ua .sidebar-notifications.ngp-panel.active { display: flex; animation: ua-pop-in .16s ease-out; }
@keyframes ua-pop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.ua .sidebar-notifications.ngp-panel.active { animation: none; } }
body.ua .ngp-panel .np-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px 10px; background: none; border: 0; color: var(--text-color); }
body.ua .ngp-panel .np-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.ua .ngp-panel .np-title h4 { margin: 0; font-size: 17px !important; font-weight: 650; color: var(--text-color); }
body.ua .ngp-panel .np-chip { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--danger-color); color: #fff; font-family: var(--ua-mono); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
body.ua .ngp-panel .np-head-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
body.ua .ngp-panel .np-link { min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--p-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
body.ua .ngp-panel .np-link:hover { background: var(--p-mist); }
body.ua .ngp-panel .close-btn { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
body.ua .ngp-panel .close-btn:hover { background: var(--ua-ground); color: var(--text-color); }
body.ua .ngp-panel .ngp-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 18px 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; gap: 0; padding: 0; background: none; }
body.ua .ngp-panel .ngp-summary[hidden] { display: none; }
body.ua .ngp-panel .ngp-tile { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-inline-start: 1px solid var(--line); border-radius: 0; background: var(--ua-card); font: inherit; color: var(--text-color); text-align: start; cursor: pointer; box-shadow: none; }
body.ua .ngp-panel .ngp-tile:first-child { border-inline-start: 0; }
body.ua .ngp-panel .ngp-tile::before { content: ""; width: 4px; align-self: stretch; border-radius: 2px; background: var(--muted); }
body.ua .ngp-panel .ngp-tile.ngp-sev-crit::before { background: var(--danger-color); }
body.ua .ngp-panel .ngp-tile.ngp-sev-warn::before { background: var(--warning-color); }
body.ua .ngp-panel .ngp-tile.ngp-sev-ok::before { background: var(--primary-color); }
body.ua .ngp-panel .ngp-tile b { font-family: var(--ua-mono); font-size: 22px; font-weight: 600; line-height: 1; color: var(--text-color); }
body.ua .ngp-panel .ngp-tile span { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.25; }
body.ua .ngp-panel .ngp-tile:hover:not(:disabled) { background: var(--ua-ground); }
body.ua .ngp-panel .ngp-tile[aria-pressed="true"] { background: var(--s-soft); box-shadow: inset 0 -2px 0 var(--secondary-color); }
body.ua .ngp-panel .ngp-tile:disabled { opacity: .55; cursor: default; }
body.ua .ngp-panel .sidebar-content { flex: 1 1 auto; overflow-y: auto; padding: 0; border-top: 1px solid var(--line); background: var(--ua-card); }
body.ua .ngp-panel .ngp-list { display: flex; flex-direction: column; gap: 0; padding: 0; }
body.ua .ngp-panel .ngp-group { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; background: var(--ua-card); box-shadow: none; overflow: visible; }
body.ua .ngp-panel .ngp-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 18px; border: 0; background: var(--ua-ground); font: inherit; color: var(--text-color); text-align: start; cursor: pointer; }
body.ua .ngp-panel .ngp-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--info-bg); color: var(--info-fg); }
body.ua .ngp-panel .ngp-icon svg { width: 16px; height: 16px; }
body.ua .ngp-panel .ngp-sev-crit .ngp-icon { background: var(--bad-bg); color: var(--bad-fg); }
body.ua .ngp-panel .ngp-sev-act .ngp-icon { background: var(--info-bg); color: var(--info-fg); }
body.ua .ngp-panel .ngp-sev-warn .ngp-icon { background: var(--warn-bg); color: var(--warn-fg); }
body.ua .ngp-panel .ngp-sev-ok .ngp-icon { background: var(--ok-bg); color: var(--ok-fg); }
body.ua .ngp-panel .ngp-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; margin-inline-end: auto; }
body.ua .ngp-panel .ngp-name { font-size: 13.5px; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
body.ua .ngp-panel .ngp-code { font-family: var(--ua-mono); direction: ltr; unicode-bidi: isolate; }
body.ua .ngp-panel .ngp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-color); display: inline-block; }
body.ua .ngp-panel .ngp-sub { font-size: 12px; color: var(--muted); }
body.ua .ngp-panel .ngp-pill { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--s-soft); color: var(--text-color); }
body.ua .ngp-panel .ngp-sev-crit .ngp-pill { background: var(--bad-bg); color: var(--bad-fg); }
body.ua .ngp-panel .ngp-sev-warn .ngp-pill { background: var(--warn-bg); color: var(--warn-fg); }
body.ua .ngp-panel .ngp-sev-ok .ngp-pill { background: var(--ok-bg); color: var(--ok-fg); }
body.ua .ngp-panel .ngp-sev-act .ngp-pill { background: var(--info-bg); color: var(--info-fg); }
body.ua .ngp-panel .ngp-chev { width: 16px; height: 16px; color: var(--muted); flex: none; transition: transform .15s; }
body.ua .ngp-panel .ngp-head[aria-expanded="true"] .ngp-chev { transform: rotate(180deg); }
body.ua .ngp-panel .ngp-group[data-open="false"] .ngp-lines { display: none; }
body.ua .ngp-panel .ngp-lines { display: flex; flex-direction: column; padding: 0; border: 0; }
body.ua .ngp-panel .ngp-line-open { grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
body.ua .ngp-panel .ngp-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 18px 11px; border-top: 1px solid var(--line); background: var(--ua-card); cursor: pointer; border-radius: 0; margin: 0; }
body.ua .ngp-panel .ngp-line:hover { background: color-mix(in oklab, var(--primary-color) 4%, var(--ua-card)); }
body.ua .ngp-panel .ngp-mark { width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
body.ua .ngp-panel .ngp-mark svg { width: 16px; height: 16px; }
body.ua .ngp-panel .ngp-line.ngp-sev-crit .ngp-mark { color: var(--bad-fg); }
body.ua .ngp-panel .ngp-line.ngp-sev-warn .ngp-mark { color: var(--warn-fg); }
body.ua .ngp-panel .ngp-line.ngp-sev-ok .ngp-mark { color: var(--ok-fg); }
body.ua .ngp-panel .ngp-line.ngp-sev-act .ngp-mark { color: var(--info-fg); }
body.ua .ngp-panel .ngp-line-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
body.ua .ngp-panel .ngp-kind { font-size: 12px; font-weight: 650; color: var(--muted); }
body.ua .ngp-panel .ngp-text { font-size: 13.5px; line-height: 1.5; color: var(--text-color); overflow-wrap: anywhere; }
body.ua .ngp-panel .ngp-line:not(.is-unread) .ngp-text { color: var(--muted); }
body.ua .ngp-panel .ngp-line.is-unread .ngp-kind { color: var(--text-color); }
body.ua .ngp-panel .ngp-line-meta { display: flex; align-items: center; gap: 10px; }
body.ua .ngp-panel .ngp-time { font-size: 12px; color: var(--muted); }
body.ua .ngp-panel .ngp-action { font-size: 12.5px; font-weight: 600; color: var(--p-ink); }
body.ua .ngp-panel .ngp-read { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--ua-card); color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
body.ua .ngp-panel .ngp-read svg { width: 15px; height: 15px; }
body.ua .ngp-panel .ngp-read:hover { color: var(--p-ink); border-color: var(--p-line); }
body.ua .ngp-panel .np-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 18px; color: var(--muted); text-align: center; }
body.ua .ngp-panel .np-empty svg { width: 34px; height: 34px; }
body.ua .ngp-panel .np-empty strong { font-weight: 600; color: var(--text-color); }
body.ua .ngp-panel .ngp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 18px; background: var(--ua-ground); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
@media (max-width: 575.98px) {
    body.ua .sidebar-notifications.ngp-panel { inset-inline: 8px; width: auto; left: 8px; right: 8px; }
}

/* ==========================================================================
   The page: crumbs, heading, width
   ========================================================================== */
.ua-page { width: 100%; max-width: var(--ua-page-max, 1600px); margin: 0 auto; padding: 22px 28px 48px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 767.98px) { .ua-page { padding: 16px 14px 40px; gap: 16px; } }
.ua-crumbs { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.ua-crumbs a { color: var(--muted); text-decoration: none; }
.ua-crumbs a:hover { color: var(--p-ink); text-decoration: underline; }
.ua-crumbs .bi { font-size: 11px; opacity: .6; }
.ua-crumbs b, .ua-crumbs [aria-current] { color: var(--text-color); font-weight: 600; }
.ua-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ua-head > div:first-child { min-width: 0; }
.ua-eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--p-ink); margin-bottom: 6px; }
[dir="rtl"] .ua-eyebrow { letter-spacing: 0; text-transform: none; font-size: 13px; }
.ua-h1 { font-size: var(--ua-heading) !important; line-height: 1.2; font-weight: 650; margin: 0; letter-spacing: -.015em; text-wrap: balance; color: var(--text-color); }
[dir="rtl"] .ua-h1 { letter-spacing: 0; }
.ua-lede { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; max-width: 75ch; }
.ua-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ua-split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 991.98px) { .ua-grid-2, .ua-split { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Cards, buttons, fields
   ========================================================================== */
.ua-card { background: var(--ua-card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ua-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ua-card-t { font-size: 15px !important; font-weight: 650; margin: 0; display: flex; align-items: center; gap: 8px; color: var(--text-color); }
.ua-card-t > .bi { color: var(--p-ink); font-size: 16px; }
.ua-card-sub { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.ua-divider { height: 1px; background: var(--line); }

.ua-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
    border-radius: 9px; border: 1px solid var(--field-line); background: var(--ua-card); color: var(--text-color);
    font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.ua-btn:hover { border-color: var(--p-line); text-decoration: none; color: var(--text-color); }
.ua-btn-primary { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.ua-btn-primary:hover { background: var(--p-ink); border-color: var(--p-ink); color: #fff; }
.ua-btn-dark { background: var(--secondary-color); border-color: var(--secondary-color); color: #fff; }
.ua-btn-dark:hover { color: #fff; background: color-mix(in oklab, var(--secondary-color) 85%, #000); }
.ua-btn-danger { background: var(--bad-fg); border-color: var(--bad-fg); color: #fff; }
.ua-btn-danger:hover { color: #fff; background: color-mix(in oklab, var(--bad-fg) 85%, #000); }
.ua-btn-quiet { border-color: transparent; background: transparent; color: var(--p-ink); }
.ua-btn-quiet:hover { background: var(--p-mist); color: var(--p-ink); border-color: transparent; }
.ua-btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.ua-btn:disabled, .ua-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.ua-btn:focus-visible, .ua-menu a:focus-visible, .ua-menu button:focus-visible, .ua-round:focus-visible, .ua-acct:focus-visible,
.ua-tab:focus-visible, .ua-act:focus-visible, .ua-drop-list a:focus-visible, .ua-pop a:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

.ua-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ua-field > label, .ua-field .ua-lbl { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-color); margin: 0; }
.ua-field .ua-hint { font-size: 12.5px; color: var(--muted); }
.ua-field .ua-err { font-size: 12.5px; color: var(--bad-fg); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.ua-input, .ua-select, .ua-textarea {
    min-height: 42px; width: 100%; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 9px;
    background: var(--ua-card); font: inherit; font-size: 14px; color: var(--text-color);
}
.ua-input:focus, .ua-select:focus, .ua-textarea:focus { outline: 0; border-color: var(--primary-color); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary-color) 16%, transparent); }
.ua-input::placeholder, .ua-textarea::placeholder { color: color-mix(in oklab, var(--text-secondary-color) 80%, #fff); }
.ua-textarea { min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.ua-input.ua-bad { border-color: var(--danger-color); box-shadow: 0 0 0 3px color-mix(in oklab, var(--danger-color) 14%, transparent); }
.ua-req { color: var(--bad-fg); }
.ua-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
@media (max-width: 767.98px) { .ua-fields { grid-template-columns: minmax(0, 1fr); } }
.ua-check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ua-check input { width: 18px; height: 18px; accent-color: var(--primary-color); margin: 0; }

/* ---- status chips ---- */
.ua-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; background: var(--s-soft); color: var(--text-color); }
.ua-chip .bi { font-size: 13px; }
.ua-chip-sm { min-height: 20px; padding: 0 7px; font-size: 11.5px; border-radius: 5px; }
.ua-st-ok { background: var(--ok-bg); color: var(--ok-fg); }
.ua-st-warn { background: var(--warn-bg); color: var(--warn-fg); }
.ua-st-bad { background: var(--bad-bg); color: var(--bad-fg); }
.ua-st-info { background: var(--info-bg); color: var(--info-fg); }
.ua-st-hold { background: var(--secondary-color); color: #fff; }
.ua-st-muted { background: color-mix(in oklab, var(--text-secondary-color) 12%, #fff); color: var(--muted); }
.ua-dot-new { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-color); flex: none; display: inline-block; }

/* ==========================================================================
   Rows of a list: one box, a line between rows (as a table). The state of a row is its chip.
   ========================================================================== */
.ua-strips { display: flex; flex-direction: column; gap: 0; background: var(--ua-card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ua-strip { display: grid; grid-template-columns: var(--cols); background: var(--ua-card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; color: var(--text-color); }
.ua-strips > .ua-strip { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.ua-strips > .ua-strip:first-child, .ua-strips > .ua-strip-head + .ua-strip { border-top: 0; }
.ua-strips > .ua-strip:hover { background: color-mix(in oklab, var(--primary-color) 3%, var(--ua-card)); }
.ua-strip > div { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; min-height: 54px; padding: 8px 14px; min-width: 0; }
.ua-strip-head { display: grid; grid-template-columns: var(--cols); background: color-mix(in oklab, var(--ua-ground) 70%, var(--ua-card)); border-bottom: 1px solid var(--line); }
.ua-strip-head > span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; }
[dir="rtl"] .ua-strip-head > span { letter-spacing: 0; text-transform: none; font-size: 12px; }
.ua-strip .ua-id { font-family: var(--ua-mono); font-size: 13.5px; font-weight: 600; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.ua-strip .ua-sub { font-size: 12.5px; color: var(--muted); }
.ua-strip .ua-acts { flex-direction: row; align-items: center; justify-content: flex-end; gap: 4px; }
.ua-route { display: flex; align-items: center; gap: 8px; direction: ltr; width: 100%; }
.ua-route .ua-code { font-family: var(--ua-mono); font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.ua-route .bi { color: var(--primary-color); font-size: 16px; }
.ua-route .ua-dash { flex: 1; height: 0; border-top: 1.5px dashed var(--p-line); min-width: 12px; }
.ua-act { width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent; background: transparent; display: inline-grid; place-items: center; color: var(--muted); cursor: pointer; flex: none; padding: 0; font-size: 16px; text-decoration: none; }
.ua-act:hover { background: var(--p-soft); color: var(--p-ink); }
.ua-act.on { border-color: var(--line); background: var(--ua-card); color: var(--p-ink); }

/* ---- a table drawn as flight strips: <table class="ua-strip-table">, the row's tone (ua-s-ok, ...) on its <tr>.
   The ends are the row's first and last cells - or td.ua-first / td.ua-last where a page hides columns. ---- */
body.ua .ua-strip-table-wrap { overflow-x: auto; overflow-y: hidden; background: var(--ua-card); border: 1px solid var(--line); border-radius: 12px; }
body.ua table.ua-strip-table { width: 100%; border-collapse: collapse; border-spacing: 0; margin: 0; background: var(--ua-card); font-size: 14px; }
body.ua table.ua-strip-table thead th { background: color-mix(in oklab, var(--ua-ground) 70%, var(--ua-card)); border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; text-align: start; position: static; box-shadow: none; }
[dir="rtl"] body.ua table.ua-strip-table thead th, body.ua[dir="rtl"] table.ua-strip-table thead th { letter-spacing: 0; text-transform: none; font-size: 12px; }
body.ua table.ua-strip-table thead th:first-child { padding-inline-start: 18px; }
body.ua table.ua-strip-table tbody td:first-child { padding-inline-start: 18px; }
body.ua table.ua-strip-table thead th.sortable { cursor: pointer; }
body.ua table.ua-strip-table thead th .sort-icon { margin-inline-start: 4px; font-size: 11px; opacity: .55; }
body.ua table.ua-strip-table thead th.sorted-asc .sort-icon, body.ua table.ua-strip-table thead th.sorted-desc .sort-icon { opacity: 1; color: var(--p-ink); }
body.ua table.ua-strip-table thead th.ua-th-actions { text-align: end; }
body.ua table.ua-strip-table tbody tr { background: none; box-shadow: none; }
body.ua table.ua-strip-table tbody tr:hover { background: none; transform: none; }
body.ua table.ua-strip-table tbody td { height: 54px; padding: 8px 14px; vertical-align: middle; background: transparent; color: var(--text-color); border: 0; border-top: 1px solid var(--line); border-radius: 0; }
body.ua table.ua-strip-table tbody tr:first-child td { border-top: 0; }
body.ua table.ua-strip-table tbody tr:hover td { background: color-mix(in oklab, var(--primary-color) 3%, var(--ua-card)); }
body.ua table.ua-strip-table tbody tr.ua-row-plain td, body.ua table.ua-strip-table tbody tr:only-child td[colspan] { height: auto; }
/* ---- figures (a departure board) ---- */
.ua-board { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); background: var(--ua-card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ua-board > div, .ua-board > button, .ua-board > a { padding: 14px 18px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; border: 0; border-inline-start: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: start; min-width: 0; text-decoration: none; }
.ua-board > :first-child { border-inline-start: 0; }
.ua-board > button, .ua-board > a { cursor: pointer; }
.ua-board > button:hover, .ua-board > a:hover { background: var(--p-soft); text-decoration: none; color: inherit; }
.ua-board .ua-fig { font-family: var(--ua-mono); font-size: 34px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ua-board .ua-cap { font-size: 12.5px; color: var(--muted); }
.ua-board .ua-share { align-self: stretch; height: 4px; border-radius: 2px; background: var(--ua-ground); overflow: hidden; margin-top: 8px; }
.ua-board .ua-share b { display: block; height: 100%; background: var(--primary-color); }
@media (max-width: 991.98px) { .ua-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ua-board > * { border-top: 1px solid var(--line); } .ua-board > :nth-child(-n+2) { border-top: 0; } .ua-board > :nth-child(odd) { border-inline-start: 0; } }
/* The notifications panel takes focus when it opens (public/navbar.php); the panel itself shows no ring. */
#notificationsSidebar:focus { outline: none; }
/* Phones: the figures are one row that scrolls sideways, so the requests start on the first screen. */
@media (max-width: 767.98px) {
    .ua-board.ua-stats, .ua-board.stats-section { display: flex; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
    .ua-board.ua-stats > *, .ua-board.stats-section > * { flex: 0 0 auto; min-width: 128px; scroll-snap-align: start; padding: 10px 14px 12px; border-top: 0 !important; border-inline-start: 1px solid var(--line) !important; }
    .ua-board.ua-stats > :first-child, .ua-board.stats-section > :first-child { border-inline-start: 0 !important; }
    .ua-board.ua-stats .ua-fig, .ua-board.stats-section .ua-fig { font-size: 24px; }
}
.ua-seg { display: inline-flex; background: var(--ua-ground); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.ua-seg button, .ua-seg a { min-height: 34px; padding: 0 14px; border-radius: 7px; border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.ua-seg button.on, .ua-seg a.on, .ua-seg button[aria-pressed="true"] { background: var(--secondary-color); color: #fff; }

/* ---- tabs, tables, filters, paging ---- */
.ua-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ua-tab { min-height: 44px; padding: 0 14px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ua-tab:hover { color: var(--text-color); text-decoration: none; }
.ua-tab.on, .ua-tab[aria-selected="true"] { color: var(--text-color); border-bottom-color: var(--primary-color); }
.ua-tab .ua-count { font-family: var(--ua-mono); font-size: 12px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--ua-ground); color: var(--muted); display: inline-grid; place-items: center; }
.ua-tab.on .ua-count { background: var(--s-soft); color: var(--text-color); }
.ua-table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--ua-card); }
.ua-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ua-table th { text-align: start; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; background: var(--ua-ground); border-bottom: 1px solid var(--line); white-space: nowrap; }
[dir="rtl"] .ua-table th { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.ua-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ua-table tr:last-child td { border-bottom: 0; }
.ua-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ua-search { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 9px; background: var(--ua-card); color: var(--muted); min-width: min(300px, 100%); font-size: 13.5px; }
.ua-search input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--text-color); width: 100%; min-width: 0; padding: 0; }
.ua-search:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary-color) 16%, transparent); }
.ua-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.ua-pages { display: flex; gap: 4px; flex-wrap: wrap; }
.ua-pages button, .ua-pages a { min-width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--ua-card); font: inherit; font-family: var(--ua-mono) !important; font-size: 13px; cursor: pointer; display: grid; place-items: center; color: var(--text-color); text-decoration: none; padding: 0 8px; }
.ua-pages .on, .ua-pages button.active, .ua-pages a.active { background: var(--secondary-color); border-color: var(--secondary-color); color: #fff; }
.ua-pages button:disabled { opacity: .45; cursor: not-allowed; }

/* ---- documents, notices, upload ---- */
.ua-doc-ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--p-soft); color: var(--p-ink); flex: none; font-size: 19px; }
.ua-doc-ico.ua-pdf { background: var(--bad-bg); color: var(--bad-fg); }
.ua-doc-ico.ua-dg { background: var(--warn-bg); color: var(--warn-fg); }
.ua-doc-ico.ua-old { background: var(--ua-ground); color: var(--muted); }
.ua-notice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line); font-size: 13.5px; background: var(--ua-card); color: var(--text-color); }
.ua-notice > .bi { margin-top: 1px; flex: none; font-size: 16px; }
.ua-notice.ua-hold { background: var(--s-soft); border-color: var(--s-line); }
.ua-notice.ua-bad { background: var(--bad-bg); border-color: color-mix(in oklab, var(--danger-color) 30%, #fff); color: var(--bad-fg); }
.ua-notice.ua-ok { background: var(--ok-bg); border-color: color-mix(in oklab, var(--success-color) 30%, #fff); color: var(--ok-fg); }
.ua-notice.ua-warn { background: var(--warn-bg); border-color: color-mix(in oklab, var(--warning-color) 45%, #fff); color: var(--warn-fg); }
.ua-notice.ua-info { background: var(--info-bg); border-color: color-mix(in oklab, var(--info-color) 35%, #fff); color: var(--info-fg); }
.ua-drop { border: 1.5px dashed var(--p-line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: var(--p-soft); color: var(--text-color); font-size: 14px; }
.ua-drop > .bi { font-size: 26px; color: var(--p-ink); }
.ua-file-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px; background: var(--ua-card); }

/* ---- password rules (assets/js/password_policy_checklist.js) ---- */
.fp-pw-rules { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.fp-pw-rules li { display: inline-flex; align-items: center; gap: 5px; }
.fp-pw-rules li.is-ok { color: var(--ok-fg, #1f6b53); }
.fp-pw-rules li i { font-size: 12px; }
/* The sign-in page's small text buttons: Change details, Send the code again, Use another e-mail. */
.auth-link-btn { background: none; border: 0; padding: 4px 0; color: var(--p-ink, #2F826A); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.auth-link-btn:disabled { color: var(--muted); cursor: default; }
.auth-reset-again { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.form-control.is-locked { background-color: var(--chip, #f1f3f5); }

/* ---- empty state ---- */
.ua-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 18px; text-align: center; color: var(--muted); }
.ua-empty > .bi { font-size: 30px; color: var(--p-line); }
.ua-empty b { color: var(--text-color); font-size: 15px; }

/* ---- toast ---- */
.ua-toasts { position: fixed; top: calc(var(--navbar-height, 68px) + 12px); inset-inline-end: 16px; z-index: 1090; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.ua-toasts > * { pointer-events: auto; }
.ua-toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--secondary-color); color: #fff; box-shadow: 0 12px 30px rgba(10, 20, 40, .3); font-size: 14px; }
.ua-toast .bi { color: color-mix(in oklab, var(--tertiary-color) 70%, #fff); }
.ua-toast.ua-toast-bad { background: var(--bad-fg); }
.ua-toast.ua-toast-bad .bi { color: #fff; }
.ua-toast button { margin-inline-start: auto; border: 0; background: transparent; color: rgba(255, 255, 255, .8); font-size: 18px; line-height: 1; cursor: pointer; }

/* ==========================================================================
   Dialogs (SweetAlert2) in the user design
   ========================================================================== */
body.ua .swal2-container { font-family: inherit; }
body.ua .swal2-container.swal2-backdrop-show { background: color-mix(in oklab, var(--secondary-color) 62%, rgba(0, 0, 0, .4)); }
body.ua .swal2-popup { border-radius: 14px; padding: 22px 22px 18px; box-shadow: 0 24px 64px rgba(10, 20, 40, .35); font-family: inherit; background: var(--ua-card); color: var(--text-color); }
body.ua .swal2-title { font-size: 19px !important; font-weight: 650; color: var(--text-color); padding: 6px 4px 0; }
body.ua .swal2-html-container { font-size: 14.5px; color: var(--muted); margin: 10px 4px 0; }
body.ua .swal2-icon { transform: scale(.72); margin: 4px auto -6px; }
body.ua .swal2-actions { gap: 10px; margin-top: 18px; }
body.ua .swal2-styled { margin: 0; min-height: 40px; padding: 0 18px; border-radius: 9px; font-size: 14px; font-weight: 600; box-shadow: none !important; }
body.ua .swal2-styled.swal2-confirm { background: var(--primary-color); }
body.ua .swal2-styled.swal2-confirm:hover { background: var(--p-ink); }
body.ua .swal2-styled.swal2-cancel { background: var(--ua-card); color: var(--text-color); border: 1px solid var(--field-line); }
body.ua .swal2-styled.swal2-deny { background: var(--bad-fg); }
body.ua .swal2-input, body.ua .swal2-textarea, body.ua .swal2-select { border: 1px solid var(--field-line); border-radius: 9px; box-shadow: none; font: inherit; font-size: 14px; margin: 14px 4px 0; width: auto; }
body.ua .swal2-validation-message { background: var(--bad-bg); color: var(--bad-fg); font-size: 13px; border-radius: 8px; margin: 12px 4px 0; }

/* ==========================================================================
   Bootstrap modals (request windows) in the user design
   ========================================================================== */
body.ua .modal-backdrop.show { background: color-mix(in oklab, var(--secondary-color) 70%, #000); opacity: .62; }
body.ua .modal-content { border: 0; border-radius: 14px; box-shadow: 0 24px 64px rgba(10, 20, 40, .35); background: var(--ua-card); color: var(--text-color); overflow: hidden; }
body.ua .modal-header { padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--ua-card); color: var(--text-color); }
body.ua .modal-header .modal-title { font-size: 19px !important; font-weight: 650; line-height: 1.3; color: var(--text-color); }
body.ua .modal-body { padding: 20px 22px; }
body.ua .modal-footer { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--ua-ground); gap: 10px; }
body.ua .modal-footer > * { margin: 0; }

/* the dates window (assets/js/dates_calendar.js): A's calendar - numbers in the codes font */
body.ua .fp-dcal .fp-dcal-cell, body.ua .fp-dcal .fp-dcal-month-head span, body.ua .fp-dcal .fp-dcal-fact .v { font-family: var(--ua-mono) !important; font-variant-numeric: tabular-nums; }
body.ua .fp-dcal .fp-dcal-title { font-size: 17px !important; font-weight: 650; }
body.ua .fp-dcal .modal-content { border-radius: 14px; }

/* the account-document upload window (core/account_document_upload_ui.php) in the user design */
body.ua .docup-modal .modal-dialog { max-width: 560px; }
body.ua .docup-modal .modal-header { background: var(--ua-card); color: var(--text-color); border-bottom: 1px solid var(--line); padding: 16px 18px; }
body.ua .docup-modal .modal-title { font-size: 17px !important; font-weight: 650; color: var(--text-color); }
body.ua .docup-modal .btn-close { filter: none; opacity: .6; }
body.ua .docup-modal .btn-close:hover { opacity: 1; }
body.ua .docup-modal .modal-body { padding: 18px; }
body.ua .docup-modal .form-label { font-size: 13px; font-weight: 600; color: var(--text-color); margin-bottom: 6px; }
body.ua .docup-modal .form-control { min-height: 42px; border: 1px solid var(--field-line); border-radius: 9px; padding: 0 12px; font-size: 14px; box-shadow: none; }
body.ua .docup-modal #docUploadFrom, body.ua .docup-modal #docUploadTo { font-family: var(--ua-mono) !important; }
body.ua .docup-modal .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary-color) 16%, transparent); }
body.ua .docup-modal .docup-drop { background: var(--p-soft); border: 1.5px dashed var(--p-line); border-radius: 12px; padding: 18px 16px; color: var(--text-color); font-size: 13.5px; }
body.ua .docup-modal .docup-drop-icon { color: var(--p-ink); font-size: 24px; }
body.ua .docup-modal .docup-pick { color: var(--p-ink); }
body.ua .docup-modal .docup-file { border: 1px solid var(--line); border-radius: 9px; background: var(--ua-card); font-size: 13.5px; }
body.ua .docup-modal .docup-file .size { font-family: var(--ua-mono); }
body.ua .docup-modal #docUploadDates:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.ua .docup-modal .form-text, body.ua .docup-modal .docup-count { font-size: 12.5px; color: var(--muted); }
body.ua .docup-modal .btn-primary { min-height: 42px; background: var(--primary-color); border: 1px solid var(--primary-color); border-radius: 9px; font-weight: 600; font-size: 14px; box-shadow: none; }
body.ua .docup-modal .btn-primary:hover, body.ua .docup-modal .btn-primary:focus-visible { background: var(--p-ink); border-color: var(--p-ink); }
body.ua .docup-modal .alert-danger { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid color-mix(in oklab, var(--danger-color) 30%, #fff); background: var(--bad-bg); color: var(--bad-fg); font-size: 13.5px; box-shadow: none; }
@media (max-width: 575.98px) { body.ua .docup-modal #docUploadDates:not([hidden]) { grid-template-columns: minmax(0, 1fr); } }

/* print: the page alone */
@media print {
    .ua-topbar, .ua-drawer, .ua-drawer-veil, body.ua .sidebar-notifications { display: none !important; }
    body.ua { padding-top: 0 !important; background: #fff; }
}

/* The service notice under the top bar (review 30 Oct, U7). */
.ua-service-notice { display: flex; align-items: flex-start; gap: 12px; max-width: var(--ua-page-max); margin: 12px auto 0; padding: 10px 14px; border: 1px solid color-mix(in oklab, var(--warning-color) 45%, var(--card-bg-color, #fff)); border-radius: 12px; background: var(--warn-bg); color: var(--warn-fg); font-size: 14px; line-height: 1.55; }
.ua-service-notice[hidden] { display: none; }
.ua-service-notice > .bi { font-size: 18px; margin-top: 2px; }
.ua-service-notice p { flex: 1; margin: 0; overflow-wrap: anywhere; }
.ua-service-notice .ua-service-when { display: block; font-size: 13px; opacity: .9; }
.ua-service-notice .ua-act { flex: none; color: inherit; }
@media (max-width: 1640px) { .ua-service-notice { margin-inline: 24px; } }
@media (max-width: 575.98px) { .ua-service-notice { margin-inline: 16px; } }

/* WCAG 2.2 (review 30 Oct, U11): what moves into view with the keyboard stops below the fixed top
   bar (2.4.11 Focus not obscured), and every control is at least 24 by 24 (2.5.8 Target size). */
html { scroll-padding-top: calc(var(--navbar-height, 68px) + 16px); }
.ua-crumbs a, .ua-mail { display: inline-flex; align-items: center; min-height: 24px; }
.data-table th .ua-sort-btn { min-height: 24px; }
body.ua summary { min-height: 24px; display: list-item; }
.auth-page-support a, .auth-page-pagefoot a { display: inline-flex; align-items: center; min-height: 24px; }
