/* v857: phones and small tablets (SA, LIC and every company ERP page).
 * Only below 820px wide - the desktop layout (1920x980) is not touched. adess-mobile.js marks the page (html.adm-m) and fixes
 * what only the real layout can tell: tables wider than the screen get their own sideways scroll, grids and button rows that
 * overflow drop to one column / wrap, pop-ups wider or taller than the screen become full-width sheets.
 * Selectors start with html.adm-m so they win over the page styles that load later. */
@media (max-width: 820px) {
  html.adm-m, html.adm-m body { max-width: 100%; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  html.adm-m body { min-width: 0 !important; }
  html.adm-m img, html.adm-m video, html.adm-m canvas { max-width: 100%; height: auto; }

  /* typing: 16px stops the phone from zooming in on every field; fields never wider than the screen */
  html.adm-m input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),
  html.adm-m select, html.adm-m textarea { font-size: 16px !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box; }
  html.adm-m input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]), html.adm-m select { min-height: 40px; }

  /* fingers: buttons and links that act as buttons are at least 40px high */
  html.adm-m button:not(.adm-m-keep), html.adm-m input[type=submit], html.adm-m input[type=button],
  html.adm-m a.btn, html.adm-m .btn, html.adm-m [role=button] { min-height: 40px; touch-action: manipulation; }

  /* tables: a table wider than the screen scrolls inside its own box (the page itself never scrolls sideways) */
  html.adm-m .adm-tscroll { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) left/24px 100% no-repeat local, linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)) right/24px 100% no-repeat local,
                radial-gradient(farthest-side at 0 50%, rgba(15,39,74,.18), transparent) left/10px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(15,39,74,.18), transparent) right/10px 100% no-repeat scroll; }
  html.adm-m .adm-tscroll > table { margin: 0 !important; }
  html.adm-m td, html.adm-m th { word-break: normal; }

  /* layout fixes applied by the script where something does not fit */
  html.adm-m .adm-m-1col { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: none !important; }
  html.adm-m .adm-m-1col > * { grid-column: auto !important; grid-row: auto !important; min-width: 0 !important; }
  html.adm-m .adm-m-wrap { flex-wrap: wrap !important; min-width: 0 !important; }
  html.adm-m .adm-m-wrap > * { min-width: 0 !important; max-width: 100% !important; }
  html.adm-m .adm-m-fit { width: auto !important; min-width: 0 !important; max-width: 100% !important; }
  html.adm-m .adm-m-nowrap-off { white-space: normal !important; }

  /* pop-ups: native dialogs and any pop-up the script found too wide / tall become a sheet that fits the phone */
  html.adm-m dialog[open], html.adm-m .adm-m-sheet {
    width: 100vw !important; max-width: 100vw !important; min-width: 0 !important; max-height: 100dvh !important;
    left: 0 !important; right: 0 !important; margin: 0 !important; box-sizing: border-box !important;
    border-radius: 16px 16px 0 0 !important; overflow: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  html.adm-m dialog[open] { top: auto !important; bottom: 0 !important; position: fixed !important; transform: none !important; }
  html.adm-m .adm-m-sheet.adm-m-sheet-full { top: 0 !important; bottom: 0 !important; height: 100dvh !important; border-radius: 0 !important; transform: none !important; }
  html.adm-m dialog[open] :is(form, .modal-body, .dlg-body) { max-width: 100% !important; }

  /* CERP: the left menu slides in over the page (the menu button opens it, tapping outside closes it) */
  html.adm-m #adminShell .admin-sidebar { position: fixed !important; top: 0 !important; bottom: 0 !important; left: 0 !important; width: min(86vw, 330px) !important; max-width: 86vw !important;
    height: 100dvh !important; overflow-y: auto !important; z-index: 2147482500 !important; transform: translateX(-105%) !important; transition: transform .25s ease !important;
    display: block !important; visibility: visible !important; box-shadow: 0 0 40px rgba(9,22,45,.35) !important; }
  html.adm-m.adm-m-nav #adminShell .admin-sidebar { transform: translateX(0) !important; }
  html.adm-m #adminShell .admin-main, html.adm-m #adminShell.sidebar-collapsed .admin-main { margin-left: 0 !important; width: auto !important; max-width: 100% !important; padding: 10px 10px 16px !important; min-width: 0 !important; }
  html.adm-m .adm-m-backdrop { position: fixed; inset: 0; background: rgba(9,22,45,.45); z-index: 2147482400; opacity: 0; pointer-events: none; transition: opacity .2s; }
  html.adm-m.adm-m-nav .adm-m-backdrop { opacity: 1; pointer-events: auto; }
  html.adm-m #adminSidebarToggle { display: inline-flex !important; visibility: visible !important; opacity: 1 !important; align-items: center; justify-content: center;
    width: 42px !important; height: 42px !important; min-width: 42px !important; position: relative !important; z-index: 5 !important; }
  html.adm-m header.top .top-title p, html.adm-m header.top .top-title small { display: none !important; }

  /* long headings and codes wrap instead of pushing the page wide */
  html.adm-m h1, html.adm-m h2, html.adm-m h3 { overflow-wrap: anywhere; }
  html.adm-m code, html.adm-m .mono { overflow-wrap: anywhere; white-space: normal; }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  html.adm-m #adminShell .admin-sidebar { transition: none !important; }
}

/* v872: compact headers on a phone - the top bar in ONE row (menu, logo, search, alerts, help, account), page banners left-aligned
 * with their buttons in one sideways-scrolling row, count tiles in one sideways strip, and narrow side margins. The selectors carry
 * :not(#id) so they outweigh the desktop rules of the ERP (which use the same trick); phones only. */
@media (max-width: 820px) {
  /* top bar */
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; gap: 6px !important;
    min-height: 54px !important; height: auto !important; padding: 6px 8px !important; min-width: 0 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-left { flex: 0 1 auto !important; min-width: 0 !important; display: flex !important; flex-wrap: nowrap !important; align-items: center !important; gap: 5px !important; padding: 0 !important; margin: 0 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-title { flex: 0 0 auto !important; min-width: 0 !important; display: flex !important; align-items: center; gap: 6px; margin: 0 !important; padding: 0 !important; }   /* the logo and its word always show */
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top :is(.top-title img, img.top-brand-mark, .top-brand-mark, .top-brand-mark img, .top-brand-mark svg):not(#c4) { max-height: 28px !important; height: 28px !important; width: auto !important; max-width: 40px !important; object-fit: contain; margin: 0 !important; flex: 0 0 auto !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-title :is(h1, h2, strong, b, .brand-name) { font-size: 16px !important; letter-spacing: .04em !important; line-height: 1.1 !important; margin: 0 !important; white-space: nowrap; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-user { flex: 0 0 auto !important; display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: 4px !important; margin: 0 !important; padding: 0 !important; width: auto !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-tools { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; position: static !important; transform: none !important; width: auto !important; height: auto !important; align-items: center !important; gap: 2px !important; margin: 0 !important; padding: 0 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-tools > * { width: 34px !important; min-width: 34px !important; height: 34px !important; padding: 0 !important; margin: 0 !important;
    position: relative !important; top: auto !important; bottom: auto !important; left: auto !important; right: auto !important; transform: none !important; align-self: center !important;
    display: inline-flex !important; align-items: center; justify-content: center; border-radius: 11px !important; overflow: visible !important; flex: 0 0 auto !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-tools { flex: 0 0 auto !important; gap: 6px !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-tools > button > span,html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-tools :is(.top-search-ico,.top-notify-ico) { font-size: 17px !important; line-height: 1 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-tools kbd { display: none !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-tools .top-notify-launch em { top: -5px !important; right: -5px !important; transform: scale(.85) !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-user { margin-left: auto !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top :is(.top-left, .top-user, .top-identity, .user-menu-wrap) { position: relative !important; top: auto !important; transform: none !important; align-self: center !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-search-text { display: none !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-identity { display: flex !important; align-items: center; gap: 4px; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-entity-btn { max-width: 120px !important; min-height: 36px !important; height: 36px !important; padding: 2px 8px !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px !important; }   /* company / branch: kept (branch switch), compact
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip { padding: 3px 6px 3px 3px !important; min-height: 40px !important; height: 40px !important; gap: 4px !important; border-radius: 12px !important; }
  /* v876: who is signed in, the session timer and the time - tiny but readable, two lines beside the account picture */
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; column-gap: 6px; row-gap: 1px; align-items: baseline; justify-content: flex-start;
    min-width: 0 !important; width: max-content !important; max-width: 34vw !important; margin: 0 !important; padding: 0 !important; text-align: left !important; line-height: 1.15 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > strong { flex: 0 0 100% !important; order: 1 !important; font-size: 9.5px !important; font-weight: 800 !important; line-height: 1.15 !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; margin: 0 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .user-chip-session:not(:empty) { display: inline-block !important; order: 3 !important; flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; font-size: 8.5px !important; font-weight: 800 !important; line-height: 1.15 !important; padding: 0 3px !important; border-radius: 6px !important; margin: 0 !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .ucx-sub { order: 2 !important; flex: 0 0 auto !important; width: auto !important; max-width: none !important; display: block !important; font-size: 8.5px !important; line-height: 1.15 !important; margin: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; opacity: .85; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .ucx-sub > span,html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .ucx-sub > i { display: none !important; }   /* company code only, no e-mail */
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .user-chip-time { order: 4 !important; flex: 0 0 auto !important; width: auto !important; max-width: none !important; display: block !important; font-size: 8.5px !important; line-height: 1.15 !important; margin: 0 !important; white-space: nowrap; opacity: .9; font-variant-numeric: tabular-nums; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .user-chip-time > span:first-child { display: none !important; }   /* the date: in the account menu */
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .user-chip-time > span { display: inline !important; margin: 0 !important; padding: 0 !important; font-size: 0 !important; }   /* no clock picture */
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .user-chip-time > span > b { font-size: 8.5px !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .user-chip-time b { font-weight: 700 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip .user-caret { display: none !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main .ucx-code { font-size: 8.5px !important; font-weight: 800 !important; letter-spacing: .02em; }
  /* very narrow phones: smaller tool buttons so the logo and the account lines both fit */
  @media (max-width: 400px) {
    html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-tools { gap: 2px !important; }
    html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-tools > * { width: 28px !important; min-width: 28px !important; height: 30px !important; }
    html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main { max-width: 27vw !important; column-gap: 3px !important; }
    html.adm-m body:not(#c1):not(#c2):not(#c3) #adminSidebarToggle { width: 32px !important; min-width: 32px !important; }
    html.adm-m body:not(#c1):not(#c2):not(#c3) header.top { gap: 4px !important; padding: 6px 6px !important; }
    html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-title :is(h1, h2, strong, b, .brand-name) { font-size: 14px !important; letter-spacing: .02em !important; }
    html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .user-chip-session:not(:empty) { padding: 0 2px !important; }
  }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip img { width: 34px !important; height: 34px !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminSidebarToggle { width: 38px !important; height: 38px !important; min-width: 38px !important; }

  /* side margins */
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-main { padding: 8px 8px 16px !important; }

  /* page banners: title left, buttons in one row that scrolls sideways */
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) :is(.hub-banner,.ak-head,.sreg-head,.custreg-page-head,.idp2-head,.apk-head,.apk-hero,.ak-hero,.wfh-head,.adess-wa-hero,.adess-wf-top,.auth-head,.adess-hrm-hero,.adess-page-hero,.adess-cost-hero,.cerp-policy-hero,.cerp-file-head,.cerp-hero,.acx-hero,.apk-header,.lr-hero,.cf-top,.pcr-intro,.qerp-head,.erpreg-toolbar,.rcv-head,.rst-head,.skpi-hero,.ppp-top,.spl-head,.adess-product-hero,.ips-top,.adess-pp-head,.nro-head,.rp-head,.hrm-hc-top,.re-head,.mt-head,.crm-head,.pe-head,.audit-head,.policy-hero,.prov-hero,.sbp-hero,.regui-titlebar,.adess-wa-topbar,.aah-flat-hero,.psr-topline):not(:is(dialog,.amk-modal,[role=dialog]) *) {
    display: flex !important; flex-direction: column !important; align-items: stretch !important; text-align: left !important; gap: 8px !important;
    min-height: 0 !important; padding: 12px 12px !important; margin: 0 0 8px !important; border-radius: 16px !important; }
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) :is(.sreg-head,.acx-hero,.ak-head,.ak-hero,.hub-banner,.qerp-head,.erpreg-toolbar,.adess-page-hero,.cerp-hero,.crm-head) :is(h1,h2) {
    font-size: 20px !important; line-height: 1.2 !important; margin: 0 !important; text-align: left !important; }
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) :is(.sreg-head,.acx-hero,.ak-head,.ak-hero,.hub-banner,.adess-page-hero,.cerp-hero) p { font-size: 12.5px !important; margin: 2px 0 0 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) :is(.sreg-home-actions,.acx-hero-actions,.ak-head-actions,.hub-actions,.qerp-actions,.page-actions) {
    display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 6px !important; overflow-x: auto !important; margin: 0 !important; padding: 0 0 2px !important;
    width: 100% !important; max-width: 100% !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) :is(.sreg-home-actions,.acx-hero-actions,.ak-head-actions,.hub-actions,.qerp-actions,.page-actions)::-webkit-scrollbar { display: none; }
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) :is(.sreg-home-actions,.acx-hero-actions,.ak-head-actions,.hub-actions,.qerp-actions,.page-actions) > :is(a,button,.btn,.sreg-home-btn,.acx-btn,form) {
    flex: 0 0 auto !important; width: auto !important; max-width: none !important; min-width: 0 !important; height: 36px !important; min-height: 36px !important; padding: 0 12px !important;
    font-size: 13px !important; border-radius: 11px !important; white-space: nowrap !important; margin: 0 !important; display: inline-flex !important; align-items: center !important; gap: 6px !important; }
  /* v873: register banner buttons are icons on a phone (their name is the tooltip / screen-reader label); the main one (+INV ...) keeps its label */
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) .sreg-home-actions > .sreg-home-btn:not(.primary):not(.adm-ib-open):has(.sreg-ico, .areg-ico, svg) { width: 38px !important; min-width: 38px !important; max-width: 38px !important; height: 38px !important; padding: 0 !important; justify-content: center !important; gap: 0 !important; }
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) .sreg-home-actions > .sreg-home-btn:not(.primary):not(.adm-ib-open):has(.sreg-ico, .areg-ico, svg) > span:not(.sreg-ico):not(.areg-ico) { display: none !important; }
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) .sreg-home-actions > .sreg-home-btn.adm-ib-open { width: auto !important; max-width: none !important; padding: 0 14px 0 10px !important; gap: 8px !important; }   /* v880: tapped - its name shows */
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) .sreg-home-actions > .sreg-home-btn:not(.primary) .sreg-ico svg { width: 19px !important; height: 19px !important; }
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) .sreg-home-actions > .sreg-home-btn.primary:has(.ak-plus-code) > span:not(.sreg-ico):not(.areg-ico) { display: none !important; }   /* +INV is its own label */

  /* count tiles: one strip that scrolls sideways */
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) :is(.pm-tiles,.ak-tiles,.idp2-kpis,.ibr-stats,.sreg-kpis,.qerp-kpis,.cerp-kpi-grid,.acx-kpis,.cerp-register-kpis-compact) {
    display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; overflow-x: auto !important; grid-template-columns: none !important; margin: 0 0 8px !important; padding: 0 0 4px !important;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) :is(.pm-tiles,.ak-tiles,.idp2-kpis,.ibr-stats,.sreg-kpis,.qerp-kpis,.cerp-kpi-grid,.acx-kpis,.cerp-register-kpis-compact)::-webkit-scrollbar { display: none; }
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) :is(.pm-tiles,.ak-tiles,.idp2-kpis,.ibr-stats,.sreg-kpis,.qerp-kpis,.cerp-kpi-grid,.acx-kpis,.cerp-register-kpis-compact) > * {
    flex: 0 0 auto !important; width: auto !important; min-width: 138px !important; max-width: 70vw !important; min-height: 0 !important; padding: 8px 10px !important; gap: 8px !important; margin: 0 !important; scroll-snap-align: start; }
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) :is(.pm-tile-ico,.cerp-kpi-icon,.cerp-kpi-clean-icon) { width: 30px !important; height: 30px !important; min-width: 30px !important; }
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) .pm-tile-body :is(b,strong) { font-size: 15px !important; white-space: nowrap; }
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) .pm-tile-body :is(em,small,span) { font-size: 11px !important; white-space: nowrap; }

  /* register title bars and cards: less padding */
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) :is(.sreg-card,.erpreg-card,.qerp-card,.card,.crm-card,.ak-card) { padding: 10px !important; border-radius: 14px !important; margin-bottom: 8px !important; }
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) .sreg-register-head { padding: 0 0 8px !important; gap: 6px !important; }
  html.adm-m #adminShell .admin-main:not(#c1):not(#c2):not(#c3) .sreg-register-head h3 { font-size: 15px !important; margin: 0 !important; }
}

/* v878: phone chrome, round 2 (owner, 21 Nov - Oppo Reno 15):
 *  - top bar: the menu button, logo and "Trak" never shrink, so search / alerts can no longer cover the word; the account block takes
 *    what is left and shortens the name instead. Help moves into the account menu. Fixed pixel sizes (text never grows or shrinks).
 *  - account menu: a sheet from the foot of the screen with a card (picture letter, name, e-mail, company, session, date and time).
 *  - left menu: dark drawer with the logo, a close button, the menu search, roomy rows with icon tiles, a drawn arrow, and the person
 *    with Log out at the foot. Always the full menu (the desktop "narrow menu" choice does not apply on a phone).
 *  - pop-ups (standard modal kit, form pop-ups, action pop-ups, native dialogs): sheets from the foot with a grab bar, a sticky title
 *    and sticky full-width buttons. */
.adm-side-close, .adm-side-foot, .adm-ud-head, .adm-ud-help { display: none; }
.adm-side-top { display: contents; }
@media (max-width: 820px) {
  html.adm-m { -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important; }

  /* ---- top bar */
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top { gap: 6px !important; padding: 5px 8px !important; min-height: 50px !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-left { flex: 0 0 auto !important; gap: 5px !important; overflow: visible !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminSidebarToggle { width: 34px !important; min-width: 34px !important; height: 34px !important; padding: 0 !important; border-radius: 10px !important; font-size: 18px !important; line-height: 1 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top :is(.top-title img, img.top-brand-mark, .top-brand-mark, .top-brand-mark img, .top-brand-mark svg):not(#c4) { height: 24px !important; max-height: 24px !important; max-width: 32px !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-title :is(h1, h2, strong, b, .brand-name) { font-size: 15px !important; letter-spacing: .02em !important; overflow: visible !important; text-overflow: clip !important; max-width: none !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-user { flex: 1 1 auto !important; min-width: 0 !important; justify-content: flex-end !important; margin-left: 0 !important; gap: 6px !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-tools { gap: 4px !important; flex: 0 0 auto !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-tools > * { width: 30px !important; min-width: 30px !important; height: 30px !important; min-height: 30px !important; border-radius: 9px !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-tools > button > span, html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-tools :is(.top-search-ico, .top-notify-ico) { font-size: 15px !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-tools .top-help-launch { display: none !important; }   /* in the account menu */
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-identity { flex: 0 1 auto !important; min-width: 0 !important; gap: 5px !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-entity-btn { width: 30px !important; min-width: 30px !important; max-width: 30px !important; height: 30px !important; min-height: 30px !important; padding: 0 !important; justify-content: center !important; border-radius: 9px !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-entity-btn > :is(b, em) { display: none !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-entity-logo { width: 24px !important; height: 24px !important; margin: 0 !important; font-size: 10px !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-menu-wrap { flex: 0 1 auto !important; min-width: 0 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip { min-width: 0 !important; max-width: 100% !important; width: auto !important; height: auto !important; min-height: 0 !important; padding: 2px 2px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; display: flex !important; grid-template-columns: none !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main { max-width: min(31vw, 124px) !important; width: auto !important; row-gap: 0 !important; column-gap: 4px !important; line-height: 1.12 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > strong { font-size: 9px !important; line-height: 1.12 !important; letter-spacing: 0 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > :is(.ucx-sub, .user-chip-time),
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .user-chip-time > span > b,
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main .ucx-code { font-size: 8px !important; line-height: 1.12 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .user-chip-session,
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .user-chip-session b { font-size: 8px !important; line-height: 1.12 !important; height: auto !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; letter-spacing: 0 !important; font-weight: 800 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .user-chip-session { display: inline-flex !important; align-items: baseline; gap: 2px; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .user-chip-session:not(:empty)::before { content: "\00B7"; font-weight: 800; opacity: .7; margin-right: 2px; }
  /* v881: line 2 = company code . session timer, line 3 = date and time in one row without the day name (.adm-when, adess-mobile.js) */
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main:has(> .adm-when) > .user-chip-time { display: none !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .user-chip-session:is(:empty, :not(:empty)) { order: 3 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main > .adm-when { order: 5; flex: 0 0 100%; font-size: 8px !important; line-height: 1.12; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; opacity: .92; }
  @media (max-width: 380px) {
    html.adm-m body:not(#c1):not(#c2):not(#c3) header.top { gap: 4px !important; padding: 5px 6px !important; }
    html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-tools > * { width: 28px !important; min-width: 28px !important; height: 28px !important; min-height: 28px !important; }
    html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-chip-main { max-width: 27vw !important; }
    html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .top-title :is(h1, h2, strong, b, .brand-name) { font-size: 14px !important; }
  }

  /* ---- account menu: a sheet from the foot of the screen */
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-menu-wrap.open .user-dropdown {
    display: flex !important; flex-direction: column !important; gap: 2px !important; position: fixed !important; left: 8px !important; right: 8px !important; top: auto !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important; width: auto !important; max-width: none !important; max-height: 82dvh !important; overflow-y: auto !important;
    padding: 18px 8px 8px !important; border: 0 !important; border-radius: 22px !important; background: #fff !important; color: #071d3d !important; z-index: 2147483200 !important;
    box-shadow: 0 0 0 100vmax rgba(7, 20, 42, .5), 0 24px 60px rgba(0, 0, 0, .35) !important; animation: admSheetUp .2s ease-out; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-menu-wrap.open .user-dropdown::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #d3dceb; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-dropdown :is(a, button.adm-ud-help) {
    display: flex !important; align-items: center !important; gap: 12px !important; min-height: 48px !important; padding: 0 12px !important; border: 0 !important; border-radius: 14px !important;
    background: transparent !important; color: #071d3d !important; font: 700 15px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; text-align: left !important; text-decoration: none !important; width: 100% !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-dropdown :is(a, button.adm-ud-help):active { background: #eef4fd !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-dropdown :is(a, button.adm-ud-help)::before {
    content: "\2022"; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; background: #eef3fa; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-dropdown a[href*="change_password"]::before { content: "\1F511"; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-dropdown a[href*="add_passkey"]::before { content: "\1F4F1"; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-dropdown a#adminUserCalendarLink::before { content: "\1F4C5"; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-dropdown a[href*="my_timezone"]::before { content: "\1F310"; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-dropdown button.adm-ud-help::before { content: "?"; font-weight: 900; color: #0b2a5b; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-dropdown a[href*="switch"]::before { content: "\21C4"; font-weight: 900; color: #0b2a5b; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-dropdown a.danger { color: #a51f1f !important; margin-top: 4px !important; border-top: 1px solid #edf2f8 !important; border-radius: 0 0 14px 14px !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-dropdown a.danger::before { content: "\23FB"; background: #fdecec; color: #a51f1f; font-weight: 900; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-dropdown .adm-ud-help { display: flex !important; cursor: pointer; justify-content: flex-start !important; margin: 0 !important; box-shadow: none !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top .user-dropdown .adm-ud-head { display: grid !important; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 6px 10px 12px; margin: 0 0 4px; border-bottom: 1px solid #edf2f8; }
  .adm-ud-head > i { grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #0b2a5b, #1b4f9c); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 18px/1 system-ui, sans-serif; font-style: normal; }
  .adm-ud-head > b { font: 800 16px/1.2 system-ui, sans-serif; color: #071d3d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .adm-ud-head > small { font: 500 12.5px/1.25 system-ui, sans-serif; color: #5f7196; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .adm-ud-head > span { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .adm-ud-head > span em { font: 700 12px/1 system-ui, sans-serif; font-style: normal; padding: 6px 9px; border-radius: 999px; background: #eef3fa; color: #1d3a66; font-variant-numeric: tabular-nums; }
  .adm-ud-head > span em.is-gold { background: #071d3d; color: #f2b705; }
  @keyframes admSheetUp { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }

  /* ---- left menu (drawer) */
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar { background: linear-gradient(180deg, #061a3a 0%, #0a2a5a 100%) !important; color: #e8eef8 !important; padding: 0 !important; border: 0 !important; overscroll-behavior: contain; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .adm-side-top { display: block !important; position: sticky; top: 0; z-index: 4; background: #061a3a; padding: 0 0 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-brand { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; padding: 14px 58px 10px 16px !important; margin: 0 !important; background: none !important; border: 0 !important; text-align: left !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-brand .adm-side-logo { grid-row: 1 / span 2; height: 34px; width: auto; max-width: 44px; object-fit: contain; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-brand b { display: block !important; font: 800 19px/1.1 system-ui, sans-serif !important; color: #fff !important; letter-spacing: .02em; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-brand small { display: block !important; font: 500 11.5px/1.3 system-ui, sans-serif !important; color: #9fb3d1 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .adm-side-close { display: inline-flex !important; position: absolute; right: 12px; top: 13px; width: 38px; height: 38px; min-height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px; line-height: 1; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-search { display: block !important; padding: 2px 12px 0 !important; margin: 0 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-search input { height: 42px !important; min-height: 42px !important; width: 100% !important; border-radius: 12px !important; border: 1px solid rgba(255, 255, 255, .16) !important; background: rgba(255, 255, 255, .08) !important; color: #fff !important; padding: 0 12px !important; font-weight: 600 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-search input::placeholder { color: #8fa6c8 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-nav { padding: 8px 10px 16px !important; margin: 0 !important; display: block !important; min-height: calc(100dvh - 186px); }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar :is(.side-group > summary, .side-single) {
    display: flex !important; align-items: center !important; gap: 10px !important; width: auto !important; height: auto !important; min-height: 48px !important; padding: 6px 10px !important; margin: 0 0 2px !important;
    border-radius: 14px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #e8eef8 !important; font: 700 14.5px/1.2 system-ui, sans-serif !important; text-decoration: none !important; justify-content: flex-start !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-group > summary .side-title { display: flex !important; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar :is(.side-group > summary, .side-single) .side-ico { flex: 0 0 34px !important; width: 34px !important; height: 34px !important; border-radius: 11px !important; background: rgba(255, 255, 255, .08) !important; display: inline-flex !important; align-items: center; justify-content: center; font-size: 16px !important; margin: 0 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar :is(.side-label, .side-link-copy) { display: block !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-count { display: inline-flex !important; align-items: center; justify-content: center; min-width: 24px; height: 20px; padding: 0 7px !important; border-radius: 999px !important; background: rgba(255, 255, 255, .12) !important; color: #cfe0f5 !important; font: 700 11px/1 system-ui, sans-serif !important; margin-left: auto; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-group > summary::after { content: "" !important; display: block !important; flex: 0 0 8px; width: 8px; height: 8px; margin: 0 4px 3px 6px; border: solid #8fa6c8; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; font-size: 0 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-group[open] > summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-group[open] > summary { background: rgba(255, 255, 255, .07) !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-group.is-active > summary { box-shadow: inset 3px 0 0 #f2b705 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-submenu { display: block !important; position: static !important; margin: 2px 0 8px 26px !important; padding: 0 0 0 12px !important; border-left: 1px solid rgba(255, 255, 255, .14) !important; background: none !important; box-shadow: none !important; width: auto !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-group:not([open]) > .side-submenu { display: none !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-link { display: flex !important; align-items: center; gap: 8px; min-height: 42px !important; height: auto !important; width: auto !important; padding: 6px 10px !important; margin: 0 0 1px !important; border-radius: 10px !important; border: 0 !important; background: transparent !important; color: #c9d7ea !important; font: 600 14px/1.25 system-ui, sans-serif !important; text-decoration: none !important; box-shadow: none !important; justify-content: flex-start !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-link .side-ico { display: none !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-link small { display: none !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-link.active, html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .side-single.active { background: #f2b705 !important; color: #071d3d !important; font-weight: 800 !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) #adminShell .admin-sidebar .adm-side-foot { display: grid !important; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; position: sticky; bottom: 0; z-index: 4; background: #061a3a; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, .1); }
  .adm-side-foot > i { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 50%; background: #f2b705; color: #071d3d; display: flex; align-items: center; justify-content: center; font: 800 15px/1 system-ui, sans-serif; font-style: normal; }
  .adm-side-foot > b { font: 700 13.5px/1.2 system-ui, sans-serif; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .adm-side-foot > small { font: 500 11.5px/1.2 system-ui, sans-serif; color: #9fb3d1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .adm-side-foot > a { grid-row: 1 / span 2; grid-column: 3; display: inline-flex; align-items: center; height: 34px; min-height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #ffd6d6; font: 700 12.5px/1 system-ui, sans-serif; text-decoration: none; }

  /* ---- pop-ups: sheets from the foot of the screen */
  html.adm-m body .amk-modal:not(#c1) { align-items: flex-end !important; justify-content: center !important; padding: 0 !important; }
  html.adm-m body .amk-modal:not(#c1) > .amk-dialog { width: 100% !important; max-width: 100% !important; height: auto !important; max-height: 94dvh !important; border-radius: 22px 22px 0 0 !important; overflow: hidden !important; animation: admSheetUp .22s ease-out; box-shadow: 0 -10px 40px rgba(7, 20, 42, .3) !important; }
  html.adm-m body .amk-modal:not(#c1) > .amk-dialog::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #d3dceb; z-index: 3; }
  html.adm-m body .amk-modal:not(#c1) .amk-head { padding: 18px 14px 10px !important; gap: 10px !important; flex: 0 0 auto; background: #fff; }
  html.adm-m body .amk-modal:not(#c1) .amk-head h3 { font-size: 17px !important; line-height: 1.25 !important; }
  html.adm-m body .amk-modal:not(#c1) .amk-sub { font-size: 12.5px !important; }
  html.adm-m body .amk-modal:not(#c1) .amk-code { width: 34px !important; height: 34px !important; font-size: 12px !important; border-radius: 10px !important; }
  html.adm-m body .amk-modal:not(#c1) .amk-x { width: 36px !important; height: 36px !important; min-height: 36px !important; border-radius: 50% !important; border: 0 !important; background: #f1f5fb !important; color: #071d3d !important; font-size: 20px !important; }
  html.adm-m body .amk-modal:not(#c1) :is(.amk-body, .amk-view) { padding: 12px 14px !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 0; }
  html.adm-m body .amk-modal:not(#c1) .amk-dialog > form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; overflow: hidden; }
  html.adm-m body .amk-modal:not(#c1) :is(.amk-grid, .amk-view) { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  html.adm-m body .amk-modal:not(#c1) .amk-grid > * { grid-column: auto !important; }
  html.adm-m body .amk-modal:not(#c1) .amk-group { padding: 10px 12px !important; border-radius: 14px !important; margin: 0 0 10px !important; }
  html.adm-m body .amk-modal:not(#c1) .amk-foot { position: sticky; bottom: 0; flex: 0 0 auto; display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important; background: #fff !important; box-shadow: 0 -6px 18px rgba(9, 22, 41, .08) !important; border-radius: 0 !important; }
  html.adm-m body .amk-modal:not(#c1) .amk-foot :is(.amk-btn, button, a.btn) { flex: 1 1 0 !important; min-height: 46px !important; border-radius: 14px !important; font-size: 15px !important; justify-content: center !important; }
  html.adm-m body dialog[open]:not(.adm-m-keep) { border: 0 !important; padding: 20px 14px calc(14px + env(safe-area-inset-bottom, 0px)) !important; border-radius: 22px 22px 0 0 !important; box-shadow: 0 -10px 40px rgba(7, 20, 42, .3) !important; animation: admSheetUp .22s ease-out; }
  html.adm-m body dialog[open]:not(.adm-m-keep)::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #d3dceb; }
  html.adm-m body dialog[open]::backdrop { background: rgba(7, 20, 42, .5); }
  html.adm-m body dialog[open]:not(.adm-m-keep) :is(menu, footer, .am-actions, .dlg-actions) { display: flex !important; gap: 8px !important; flex-wrap: nowrap !important; }
  html.adm-m body dialog[open]:not(.adm-m-keep) :is(menu, footer, .am-actions, .dlg-actions) > :is(button, a) { flex: 1 1 0; min-height: 46px; border-radius: 14px !important; }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  html.adm-m body .amk-modal > .amk-dialog, html.adm-m body dialog[open], html.adm-m header.top .user-menu-wrap.open .user-dropdown { animation: none !important; }
}

/* v880: icon buttons on a phone - only the icon; the first tap opens that button with its name (gold ring), the second tap acts */
.adm-ib-added { display: none; }
@media (max-width: 820px) {
  html.adm-m [data-adm-ib="1"]:not(.adm-ib-open) .adm-ib-txt { display: none !important; }
  html.adm-m [data-adm-ib="1"]:not(.adm-ib-open) { min-width: 42px !important; width: auto !important; padding-left: 0 !important; padding-right: 0 !important; justify-content: center !important; gap: 0 !important; }
  html.adm-m [data-adm-ib="1"] { display: inline-flex !important; align-items: center !important; transition: padding .15s ease, box-shadow .15s ease; white-space: nowrap; }
  html.adm-m [data-adm-ib="1"] :is(svg, img) { flex: 0 0 auto; }
  html.adm-m [data-adm-ib="1"] .adm-ib-ico { font-size: 18px; line-height: 1; }
  html.adm-m [data-adm-ib="1"].adm-ib-open { padding-left: 12px !important; padding-right: 14px !important; gap: 8px !important; box-shadow: 0 0 0 3px rgba(242, 183, 5, .55) !important; }
  html.adm-m [data-adm-ib="1"].adm-ib-open .adm-ib-txt { display: inline !important; animation: admIbIn .15s ease-out; }
  @keyframes admIbIn { from { opacity: 0; } to { opacity: 1; } }
}

/* v883: the top bar stays at the top while scrolling. The desktop CSS gives html and body overflow-x:hidden below 900px, which
   makes body its own scroll box, so the sticky bar scrolled away with the page. "clip" cuts sideways overflow the same way but
   is not a scroll box, so sticky works again. */
@media (max-width: 820px) {
  html.adm-m, html.adm-m body:not(#c1):not(#c2):not(#c3) { overflow-x: clip !important; overflow-y: visible !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) :is(#adminShell, .admin-shell) { overflow: visible !important; overflow-x: clip !important; }
  html.adm-m body:not(#c1):not(#c2):not(#c3) header.top { position: sticky !important; top: 0 !important; z-index: 900 !important; }
}
