/* Вынесено из layouts/navbar.php (ревью 18.11, A1-21, волна 5): было встроено в каждую страницу админки, теперь файл кэшируется браузером. Правка — здесь. */
/* ==================================================================
   iOS-minimalistic navbar — scoped under .navbar-ios
   Mobile-first: styles below 768px are the baseline.
   All switchers (region / language / KSmagic) stay visible on mobile.
   Avatar menu is strictly user-related (account + log out).
   ================================================================== */

.main-header.navbar-ios {
    /* reset AdminLTE/navbar-light defaults that don't fit iOS look */
    border: 0 !important;
    border-bottom: 0 !important;
    padding: 6px 10px;
    min-height: 52px;
    height: auto;                 /* allow wrap on ultra-narrow screens */
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1030;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    transition: box-shadow 0.24s cubic-bezier(0.4, 0, 0.2, 1), background 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    flex-wrap: nowrap;            /* stay on one row; inner clusters handle shrink */
    row-gap: 4px;
    max-width: 100vw;
    min-width: 0;                 /* critical for flex-shrink to work */
    /* No overflow: hidden here — it would clip descendant dropdown
       menus. Horizontal clipping is handled by .wrapper in base.php. */
}
.main-header.navbar-ios.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Strip AdminLTE ul default borders / spacings; add tight spacing */
.main-header.navbar-ios .navbar-nav { margin: 0; padding: 0; gap: 4px; align-items: center; flex-wrap: nowrap; min-width: 0; }
.main-header.navbar-ios .navbar-nav > .nav-item { display: flex; align-items: center; min-width: 0; }
.main-header.navbar-ios .navbar-nav > .nav-item > .nav-link { color: inherit; }
/* Сохраняем адаптивные отступы переключателя языка: общий сброс nav-link их перекрывал. */
.main-header.navbar-ios .navbar-nav > .nav-item > .nav-link:not(.ios-lang-pill) { padding: 0; }

/* Right cluster stays on one row and shrinks to fit the viewport.
   We intentionally do NOT use overflow: hidden here — it would clip
   the bootstrap dropdown menus that anchor to these items. Instead
   we rely on flex-shrink + min-width:0 on every descendant, plus
   compact mobile styles below 480px that drop labels / chevrons so
   the natural intrinsic width fits the viewport. */
.navbar-ios .navbar-ios__right {
    flex-wrap: nowrap;
    justify-content: flex-end;
    row-gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}
.navbar-ios .navbar-ios__right > .nav-item { flex-shrink: 1; min-width: 0; }

/* ---------- Burger (mobile-first, 40x40 tap area) ---------- */
.navbar-ios .ios-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: #1d1d1f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    flex: none;
    transition: background 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Hover rules wrapped in (hover: hover) so iOS Safari does NOT apply them on the
   first tap (sticky-hover bug which forced two taps to activate menu items). */
@media (hover: hover) and (pointer: fine) {
    .navbar-ios .ios-btn:hover    { background: rgba(0, 0, 0, 0.045); color: #1d1d1f; text-decoration: none; }
}
.navbar-ios .ios-btn:focus-visible {
    outline: 2px solid #007aff;
    outline-offset: 2px;
}
.navbar-ios .ios-btn:active,
.navbar-ios .ios-btn.is-pressed {
    transform: scale(0.94);
    opacity: 0.65;
    background: rgba(0, 0, 0, 0.07);
}
.navbar-ios .ios-btn svg { display: block; }
.navbar-ios .ios-btn--burger svg { width: 20px; height: 20px; }

/* ---------- Brand ---------- */
.navbar-ios .navbar-ios__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.015em;
    text-decoration: none;
    min-width: 0;
}
@media (hover: hover) and (pointer: fine) {
    .navbar-ios .navbar-ios__brand:hover { color: #1d1d1f; text-decoration: none; }
}
.navbar-ios .navbar-ios__brand-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    flex: none;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.12);
}
.navbar-ios .navbar-ios__brand-text {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Show navbar brand ONLY when the sidebar's own "KSuse Services" logo
   is NOT visible on screen (avoids duplicate brand).
   ------------------------------------------------------------------
   Visibility is authoritatively controlled at runtime by the JS
   block at the bottom of this file (MutationObserver on <body> +
   AdminLTE pushmenu events). These CSS rules are a fallback so the
   brand starts in the correct state before JS runs on hydration.

   NB: `.main-header.navbar-ios .navbar-nav > .nav-item { display: flex }`
   above has higher specificity than a bare `.navbar-ios__brand-item`
   selector, which is why the previous fix did not take effect.
   We scope these to the same ancestor + use !important to guarantee
   the override regardless of cascade order. */
.main-header.navbar-ios .navbar-nav > .nav-item.navbar-ios__brand-item {
    display: none !important;
}
/* Default desktop: sidebar is visible (no `sidebar-collapse` on body) →
   keep navbar brand hidden. On small screens AdminLTE auto-adds
   `sidebar-collapse` on body (drawer off-canvas), so brand is shown.
   When mobile drawer is open, AdminLTE adds `sidebar-open` — hide
   navbar brand again (the sidebar itself now shows the logo). */
body.sidebar-collapse:not(.sidebar-open)
    .main-header.navbar-ios .navbar-nav > .nav-item.navbar-ios__brand-item {
    display: flex !important;
}

/* ---------- Desktop user name ---------- */
.navbar-ios .navbar-ios__user-name {
    font-size: 13px;
    font-weight: 500;
    color: #8e8e93;
    padding: 0 10px 0 6px;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.navbar-ios .navbar-ios__user-name strong {
    color: #1d1d1f;
    font-weight: 600;
}

/* ---------- Language pill (always-visible) ---------- */
/* Дополнительный класс даёт отступам приоритет над правилами nav-link из AdminLTE. */
.navbar-ios .ios-lang-pill.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    color: #1d1d1f;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
    .navbar-ios .ios-lang-pill:hover   { background: rgba(0, 0, 0, 0.07); color: #1d1d1f; text-decoration: none; }
}
.navbar-ios .ios-lang-pill:active  { transform: scale(0.96); }
.navbar-ios .ios-lang-pill .flag-icon { font-size: 14px; line-height: 1; }
.navbar-ios .ios-lang-pill__code { text-transform: uppercase; font-size: 11px; letter-spacing: 0.04em; }
.navbar-ios .ios-lang-pill__chev { width: 10px; height: 10px; color: #8e8e93; transition: transform 0.2s ease; }
.navbar-ios .nav-item.show .ios-lang-pill__chev { transform: rotate(180deg); color: #1d1d1f; }

/* Hide language-code text on the very narrowest screens — only flag remains. */
@media (max-width: 359px) {
    .navbar-ios .ios-lang-pill__code { display: none; }
    .navbar-ios .ios-lang-pill.nav-link { padding: 0 8px; }
}

/* ---------- Avatar button (user-actions only) ---------- */
.navbar-ios .ios-btn--avatar {
    width: 36px;
    height: 36px;
    margin: 0 2px 0 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 -1px 1px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) and (pointer: fine) {
    .navbar-ios .ios-btn--avatar:hover {
        background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
        box-shadow: 0 2px 6px rgba(0, 122, 255, 0.25), inset 0 -1px 1px rgba(0, 0, 0, 0.08);
    }
}
.navbar-ios .ios-btn--avatar:active,
.navbar-ios .ios-btn--avatar.is-pressed {
    transform: scale(0.92);
    opacity: 0.8;
}

/* ---------- Popovers (iOS sheet-like dropdowns) ---------- */
.navbar-ios .ios-popover {
    border: 0;
    border-radius: 14px;
    padding: 6px;
    margin-top: 8px;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.16),
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 0 0 0.5px rgba(0, 0, 0, 0.06);
    animation: iosPopoverIn 0.2s cubic-bezier(0.2, 0, 0.2, 1);
    transform-origin: top right;
    font-family: inherit;
    max-width: calc(100vw - 16px);
}
@keyframes iosPopoverIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.navbar-ios .ios-popover--user {
    min-width: 260px;
    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 8px;
}

/* Popover sections */
.navbar-ios .ios-popover__section    { padding: 4px; }
.navbar-ios .ios-popover__label {
    padding: 8px 10px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8e8e93;
}
.navbar-ios .ios-popover__divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 4px 10px;
    border: 0;
}

/* Popover items (rows) */
.navbar-ios .ios-popover__item,
.navbar-ios .ios-popover__action {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    color: #1d1d1f;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
}
/* :focus-visible kept unconditionally for keyboard users; :hover only on real
   hover-capable pointers so iOS Safari doesn't require a pre-tap on each row. */
.navbar-ios .ios-popover__item:focus-visible,
.navbar-ios .ios-popover__action:focus-visible {
    background: rgba(0, 122, 255, 0.08);
    color: #1d1d1f;
    outline: none;
    text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
    .navbar-ios .ios-popover__item:hover,
    .navbar-ios .ios-popover__action:hover {
        background: rgba(0, 122, 255, 0.08);
        color: #1d1d1f;
        outline: none;
        text-decoration: none;
    }
}
.navbar-ios .ios-popover__item:active,
.navbar-ios .ios-popover__action:active { transform: scale(0.98); background: rgba(0, 122, 255, 0.14); }
.navbar-ios .ios-popover__item.is-active { background: rgba(0, 122, 255, 0.08); }
.navbar-ios .ios-popover__item-flag,
.navbar-ios .ios-popover__item .flag-icon {
    font-size: 18px;
    line-height: 1;
    width: 24px;
    text-align: center;
    flex: none;
}
.navbar-ios .ios-popover__item-label {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
}
.navbar-ios .ios-popover__item-name { font-size: 14px; font-weight: 500; color: #1d1d1f; }
.navbar-ios .ios-popover__item-code { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: #8e8e93; }
.navbar-ios .ios-popover__item-check {
    width: 18px; height: 18px; color: #007aff;
    opacity: 0; transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.2s ease;
    flex: none;
}
.navbar-ios .ios-popover__item.is-active .ios-popover__item-check { opacity: 1; transform: scale(1); }

.navbar-ios .ios-popover__action--danger      { color: #ff3b30; }
@media (hover: hover) and (pointer: fine) {
    .navbar-ios .ios-popover__action--danger:hover { background: rgba(255, 59, 48, 0.09); color: #ff3b30; }
}

/* User block in popover */
.navbar-ios .ios-popover__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 12px;
}
.navbar-ios .ios-popover__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; letter-spacing: 0.01em;
    flex: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 -1px 1px rgba(0, 0, 0, 0.08);
}
.navbar-ios .ios-popover__user-info { min-width: 0; line-height: 1.2; }
.navbar-ios .ios-popover__name      { font-size: 15px; font-weight: 600; color: #1d1d1f; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navbar-ios .ios-popover__email     { font-size: 12px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Bootstrap dropdown positioning compat */
.navbar-ios .dropdown-menu.ios-popover.dropdown-menu-right { right: 0; left: auto; }

/* ---------- Region switcher visual overrides inside iOS navbar ---------- */
.main-header.navbar-ios .ks-region-switcher { line-height: 1; }
.main-header.navbar-ios .ks-region-switcher__trigger {
    height: 32px;
    padding: 0 10px 0 9px;
    border-radius: 999px;
    border: 0;
    background: rgba(0, 0, 0, 0.04);
    font-size: 12px;
    font-weight: 600;
    color: #1d1d1f;
    box-shadow: none;
    transition: background 0.18s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) and (pointer: fine) {
    .main-header.navbar-ios .ks-region-switcher__trigger:hover {
        background: rgba(0, 0, 0, 0.07);
        border-color: transparent;
        box-shadow: none;
    }
}
.main-header.navbar-ios .ks-region-switcher.is-open .ks-region-switcher__trigger {
    background: rgba(0, 122, 255, 0.12);
    border-color: transparent;
    color: #007aff;
}
.main-header.navbar-ios .ks-region-switcher__flag { font-size: 14px; }
.main-header.navbar-ios .ks-region-switcher__icon { width: 14px; height: 14px; color: #007aff; }
.main-header.navbar-ios .ks-region-switcher.is-open .ks-region-switcher__icon { color: #007aff; }
.main-header.navbar-ios .ks-region-switcher__code { font-size: 11px; letter-spacing: 0.04em; }
.main-header.navbar-ios .ks-region-switcher__menu { z-index: 10050; }

/* ---------- KSmagic pill (always visible, compact on mobile) ---------- */
.navbar-ios .ios-ksmagic {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #007aff;
    background: rgba(0, 122, 255, 0.1);
    text-decoration: none;
    transition: background 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
    .navbar-ios .ios-ksmagic:hover  { background: rgba(0, 122, 255, 0.16); color: #007aff; text-decoration: none; }
}
.navbar-ios .ios-ksmagic:active { transform: scale(0.96); }
.navbar-ios .ios-ksmagic svg    { width: 10px; height: 10px; opacity: 0.65; }
/* Corner help badge on the KSmagic pill (.help-anchor, see base.php).
   The default -4px/-4px offset is tuned for square-ish controls; on a
   999px pill that corner of the bounding box is empty, so the badge would
   float off the rounded edge. Pulled in to 0/-3 it keeps roughly half its
   area ON the cap — unmistakably attached — and 13px keeps it inside the
   navbar's 6px top padding instead of poking over the blur edge. */
.navbar-ios .nav-item > .help-anchor { flex-shrink: 0; }
.navbar-ios .nav-item > .help-anchor > .help-tip {
    top: -3px;
    right: 0;
    width: 13px;
    height: 13px;
    font-size: 8px;
}
/* The zeroing above is written as `.nav-item > .nav-link`, so wrapping a
   .nav-link in .help-anchor would hand it back to Bootstrap's
   `.navbar-expand .navbar-nav .nav-link { padding: 0 .5rem }` and squeeze the
   icon inside its fixed 40px box. Repeat the reset one level deeper. */
.main-header.navbar-ios .navbar-nav > .nav-item > .help-anchor > .nav-link { padding: 0; color: inherit; }
/* The avatar toggle is the one control here that cannot be wrapped: Bootstrap
   resolves a dropdown's menu through the toggle's parentNode, and the Escape
   handler at the bottom of this file matches
   `.nav-item.dropdown.show > [data-toggle="dropdown"]` — a wrapper would break
   both. Its badge therefore stays a plain flex sibling; it is the last item in
   the navbar, so there is no control to its right to be confused with. */
.navbar-ios .nav-item.dropdown > .help-tip {
    width: 13px;
    height: 13px;
    font-size: 8px;
    margin-left: 3px;
}

/* Short "KS" label below 480px, full "KSmagic" from 480px+. */
.navbar-ios .ios-ksmagic__short { display: inline; }
.navbar-ios .ios-ksmagic__full  { display: none; }
@media (min-width: 480px) {
    .navbar-ios .ios-ksmagic__short { display: none; }
    .navbar-ios .ios-ksmagic__full  { display: inline; }
}
@media (max-width: 359px) {
    /* Drop the arrow icon on very narrow screens, keep the label */
    .navbar-ios .ios-ksmagic svg { display: none; }
    .navbar-ios .ios-ksmagic { padding: 0 8px; }
}

/* ----------------------------------------------------------------
   Ultra-narrow mobile (<=480px): aggressive compaction so the
   navbar fits a 375px viewport with NO horizontal overflow.
   ----------------------------------------------------------------
   Target widths (375px iPhone SE / mini):
     burger  40
     region  ~56  (flag+code only, no chevron)
     lang    ~44  (flag only, no code, no chevron)
     ksmagic ~40  (KS label only, no arrow)
     avatar  36
     gaps    4*4 = 16
     padding 2*10 = 20
     ---- total ~= 252 px — comfortably within 375 ---- */
@media (max-width: 480px) {
    .main-header.navbar-ios { padding: 4px 8px; min-height: 48px; gap: 2px; }
    .main-header.navbar-ios .navbar-nav { gap: 3px; }
    .navbar-ios .navbar-ios__right { gap: 3px; }

    /* Language pill — only the flag; no code, no chevron */
    .navbar-ios .ios-lang-pill.nav-link { padding: 0 8px; gap: 0; height: 30px; }
    .navbar-ios .ios-lang-pill .ios-lang-pill__code,
    .navbar-ios .ios-lang-pill .ios-lang-pill__chev { display: none; }

    /* Region switcher — flag+code only, no chevron */
    .main-header.navbar-ios .ks-region-switcher__trigger {
        height: 30px;
        padding: 0 8px;
        gap: 4px;
        border-width: 0;
        background: rgba(0, 0, 0, 0.04);
    }
    .main-header.navbar-ios .ks-region-switcher__chev { display: none; }
    .main-header.navbar-ios .ks-region-switcher__name { display: none; }

    /* KSmagic pill — short label only, no arrow */
    .navbar-ios .ios-ksmagic { padding: 0 8px; gap: 0; height: 30px; }
    .navbar-ios .ios-ksmagic svg { display: none; }
    .navbar-ios .ios-ksmagic__full { display: none; }
    .navbar-ios .ios-ksmagic__short { display: inline; }

    /* Avatar — slightly smaller for breathing room */
    .navbar-ios .ios-btn--avatar { width: 32px; height: 32px; font-size: 12px; margin: 0 0 0 2px; }

    /* Burger — shrink the tap target a bit, still accessible */
    .navbar-ios .ios-btn--burger { width: 36px; height: 36px; border-radius: 10px; }

    /* Never let popover dropdowns exceed viewport on mobile */
    .navbar-ios .ios-popover,
    .navbar-ios .ios-popover--user,
    .main-header.navbar-ios .ks-region-switcher__menu {
        max-width: calc(100vw - 16px);
    }
}

/* Extra-narrow guard (<=359px) — keep the page navigable on tiny viewports */
@media (max-width: 359px) {
    .main-header.navbar-ios { padding: 4px 6px; }
    .navbar-ios .ios-ksmagic,
    .navbar-ios .ios-lang-pill.nav-link { padding: 0 6px; }
    .main-header.navbar-ios .ks-region-switcher__trigger { padding: 0 6px; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 768px) {
    .main-header.navbar-ios {
        min-height: 56px;
        padding: 6px 16px;
        flex-wrap: nowrap;
    }
    .main-header.navbar-ios .ks-region-switcher__trigger {
        height: 36px;
        padding: 0 12px 0 11px;
        font-size: 13px;
    }
    .navbar-ios .ios-lang-pill.nav-link { height: 34px; padding: 0 12px; font-size: 13px; }
    .navbar-ios .ios-ksmagic   { height: 30px; font-size: 12px; padding: 0 12px; gap: 6px; }
    .navbar-ios .ios-btn       { width: 44px; height: 44px; border-radius: 12px; }
    .navbar-ios .navbar-ios__right > .nav-item { margin: 0; }
}
@media (min-width: 992px) {
    .navbar-ios .navbar-ios__user-name { padding-right: 6px; }
}

/* ---------- Dark-mode friendliness (optional, if AdminLTE toggles) ---------- */
@media (prefers-color-scheme: dark) {
    body.ios-navbar-follow-system .main-header.navbar-ios {
        background: rgba(28, 28, 30, 0.82);
        color: #f5f5f7;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .navbar-ios *,
    .navbar-ios *::before,
    .navbar-ios *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0ms !important;
    }
}

/* ---------- Sidebar body compensation (AdminLTE's layout-fixed expects a main-header) ---------- */
body.layout-fixed .main-header.navbar-ios { /* keep AdminLTE fixed behavior */ }

/* Hide unused AdminLTE default ul separators */
.navbar-ios .nav-item > .dropdown-toggle::after { display: none; }
