/* Мобильная версия Nova Remote (nova-mobile.js). Включается классом body.nm-on */
body.nm-on .sidebar,
body.nm-on .main,
body.nm-on #sidebarBackdrop,
body.nm-on .sidebar-overlay { display: none !important; }
body.nm-on { overflow: hidden; }

#nmApp {
  --nm-bg: #0b0d14; --nm-card: #151926; --nm-card2: #1b2030; --nm-line: rgba(var(--nm-fg),.09);
  --nm-text: #eef1f7; --nm-mut: rgba(var(--nm-fg),.55); --nm-acc: #7c5cff; --nm-acc2: #38bdf8;
  --nm-good: #22c55e; --nm-bad: #ef4444; --nm-warn: #f59e0b;
  --nm-fg: 238,241,247; --nm-acc-rgb: 124,92,255; --nm-on-acc: #fff;
  --nm-neg: #fca5a5; --nm-pos: #86efac; --nm-amber: #fcd34d;
  display: none; position: fixed; inset: 0; z-index: 9000;
  flex-direction: column; background: var(--nm-bg); color: var(--nm-text);
  font-family: -apple-system, "Segoe UI", Roboto, system-ui, sans-serif; font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}
body.nm-on.app-ready #nmApp { display: flex; }
#nmApp *, #nmApp *::before, #nmApp *::after { box-sizing: border-box; }
#nmApp button { font: inherit; color: inherit; cursor: pointer; }

/* сброс общих стилей кнопок и полей менеджера внутри мобильной версии */
#nmApp button { height: auto; min-height: 0; margin: 0; padding: 0; line-height: 1.2; text-transform: none; letter-spacing: normal;
  box-shadow: none; background-image: none; width: auto; max-width: none; appearance: none; -webkit-appearance: none; }
#nmApp input, #nmApp textarea { height: auto; margin: 0; box-shadow: none; -webkit-appearance: none; appearance: none; }
#nmApp { top: 0; left: 0; right: 0; bottom: auto; height: 100vh; height: 100dvh; -webkit-text-size-adjust: 100%; }
/* верх */
#nmApp .nm-top { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: var(--nm-card); border-bottom: 1px solid var(--nm-line); }
#nmApp .nm-club { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 62%;
  background: transparent; border: 0; padding: 6px 4px; font-weight: 700; font-size: 16px; }
#nmApp .nm-club span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nmApp .nm-club small { opacity: .5; }
#nmApp .nm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nm-good); box-shadow: 0 0 8px rgba(34,197,94,.6); flex: none; }
#nmApp .nm-top-r { display: flex; align-items: center; gap: 8px; }
#nmApp .nm-ico { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--nm-line); background: var(--nm-card2); font-size: 18px; line-height: 1; }
#nmApp .nm-ico:disabled { opacity: .35; }
#nmApp .nm-pcbtn { height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(var(--nm-acc-rgb),.5);
  background: rgba(var(--nm-acc-rgb),.18); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* тело */
#nmApp .nm-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 12px 18px; }
#nmApp .nm-foot { margin: 18px 4px 4px; text-align: center; color: var(--nm-mut); font-size: 12.5px; }
#nmApp .nm-foot a { color: var(--nm-acc2); }
#nmApp .nm-muted { color: var(--nm-mut); padding: 10px 2px; font-size: 14px; }
#nmApp .nm-hint { color: var(--nm-mut); font-size: 13px; margin: 2px 2px 12px; }

/* нижняя навигация: плавающая капсула в стиле iPhone (без анимаций и теней — на iOS они давали «блики» на соседних вкладках) */
#nmApp .nm-nav { display: flex; gap: 2px; margin: 4px 10px max(6px, calc(env(safe-area-inset-bottom) - 14px)); padding: 4px;
  border-radius: 26px; border: 1px solid var(--nm-line); background: var(--nm-card); box-shadow: none; }
#nmApp .nm-nav button { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: transparent; border: 0; padding: 6px 2px 5px; border-radius: 20px; font-size: 10.5px; font-weight: 500; letter-spacing: .01em; color: var(--nm-mut);
  transition: none; animation: none; box-shadow: none; filter: none; }
#nmApp .nm-nav button:active { transform: none; }
#nmApp .nm-nav button.on { color: var(--nm-acc); background: rgba(var(--nm-fg), .11); font-weight: 600; }#nmApp .nm-nav-ic { display: block; width: 24px; height: 24px; line-height: 0; }
#nmApp .nm-nav-ic svg { width: 24px; height: 24px; display: block; }
#nmApp .nm-nav button.on .nm-nav-ic svg { stroke-width: 2; }
#nmApp .nm-nav-l { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nmApp .nm-badge { position: absolute; top: 2px; left: 54%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--nm-bad); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; box-shadow: 0 0 0 2px var(--nm-bg); }
/* карточки и плитки */
#nmApp .nm-hero { background: linear-gradient(135deg, rgba(var(--nm-acc-rgb),.35), rgba(56,189,248,.22)); border: 1px solid var(--nm-line);
  border-radius: 20px; padding: 16px 18px; margin-bottom: 12px; }
#nmApp .nm-hero-l { color: var(--nm-mut); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
#nmApp .nm-hero-v { font-size: 34px; font-weight: 800; margin: 4px 0 2px; letter-spacing: -.5px; }
#nmApp .nm-hero-s { color: var(--nm-mut); font-size: 13px; }
#nmApp .nm-hero-s.up { color: var(--nm-pos); } .nm-hero-s.down { color: var(--nm-neg); }
#nmApp .nm-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
#nmApp .nm-tile { background: var(--nm-card); border: 1px solid var(--nm-line); border-radius: 16px; padding: 12px 14px; }
#nmApp .nm-tile b { display: block; font-size: 24px; font-weight: 800; }
#nmApp .nm-tile b small { font-size: 14px; font-weight: 600; color: var(--nm-mut); }
#nmApp .nm-tile span { color: var(--nm-mut); font-size: 12.5px; }
#nmApp .nm-tile.warn b { color: var(--nm-warn); }
#nmApp .nm-card { background: var(--nm-card); border: 1px solid var(--nm-line); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
#nmApp .nm-card.flat { background: transparent; border: 0; padding: 6px 0; margin: 8px 0; }
#nmApp .nm-card-t { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--nm-mut); margin-bottom: 10px; }
#nmApp .nm-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--nm-line); }
#nmApp .nm-row:first-of-type { border-top: 0; }
#nmApp .nm-row b.neg { color: var(--nm-neg); }
#nmApp .nm-row.total { font-size: 17px; }
#nmApp .nm-row.total b { color: var(--nm-acc2); }
#nmApp .nm-bar { margin-bottom: 12px; }
#nmApp .nm-bar-h { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
#nmApp .nm-bar-t { height: 8px; border-radius: 4px; background: rgba(var(--nm-fg),.08); overflow: hidden; }
#nmApp .nm-bar-t i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--nm-acc), var(--nm-acc2)); }
#nmApp .nm-chart { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
#nmApp .nm-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
#nmApp .nm-col i { width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--nm-acc2), var(--nm-acc)); }
#nmApp .nm-col span { font-size: 9.5px; color: var(--nm-mut); margin-top: 4px; }
/* выручка по дням: подпись суммы над столбиком, столбик в своём контейнере, сегодняшний подсвечен */
#nmApp .nm-card-th { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#nmApp .nm-chart-days { height: 170px; gap: 4px; }
#nmApp .nm-chart-days .nm-col em { font-style: normal; font-size: 9px; color: var(--nm-mut); margin-bottom: 2px; white-space: nowrap; min-height: 11px; }
#nmApp .nm-chart-days .nm-col .bw { flex: 1; width: 100%; display: flex; align-items: flex-end; }
#nmApp .nm-chart-days .nm-col.today i { background: linear-gradient(180deg, #7dd3fc, #38bdf8); }
#nmApp .nm-chart-days .nm-col span { min-height: 12px; white-space: nowrap; }
#nmApp .nm-chart-sum { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--nm-mut); flex-wrap: wrap; }
#nmApp .nm-chart-sum b { color: var(--nm-fg, inherit); }
#nmApp .nm-line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--nm-line); }
#nmApp .nm-line-n { overflow-wrap: anywhere; }
#nmApp .nm-line-q { color: var(--nm-mut); font-size: 13px; min-width: 32px; text-align: right; }

/* кнопки и поля */
#nmApp .nm-btn { min-height: 44px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--nm-line); background: var(--nm-card2); font-weight: 700; }
#nmApp .nm-btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
#nmApp .nm-btn.primary { background: var(--nm-acc); border-color: transparent; color: var(--nm-on-acc); }
#nmApp .nm-btn.danger { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.4); color: var(--nm-neg); }
#nmApp .nm-btn.wide { width: 100%; }
#nmApp .nm-btn:disabled { opacity: .5; }
#nmApp .nm-input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--nm-line);
  background: var(--nm-card2); color: var(--nm-text); font: inherit; }
#nmApp textarea.nm-input { resize: vertical; }
#nmApp .nm-datebar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
#nmApp .nm-datebar .nm-input { flex: 1; min-width: 0; text-align: center; }
#nmApp .nm-seg { display: flex; gap: 6px; background: var(--nm-card2); padding: 4px; border-radius: 14px; margin-bottom: 12px; }
#nmApp .nm-seg button { flex: 1; min-height: 38px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 13.5px; color: var(--nm-mut); }
#nmApp .nm-seg button.on { background: var(--nm-acc); color: var(--nm-on-acc); }
#nmApp .nm-seg small { opacity: .8; }
#nmApp .nm-seg.sm { margin: 0; width: 190px; }
#nmApp .nm-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
#nmApp .nm-chips button { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--nm-line); background: var(--nm-card2); font-size: 13px; }
#nmApp .nm-chips button.on { background: var(--nm-acc); border-color: transparent; }

/* вход */
#nmApp .nm-login { max-width: 380px; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 12px; }
#nmApp .nm-login-t { font-size: 20px; font-weight: 800; }
#nmApp .nm-login-s { color: var(--nm-mut); font-size: 13.5px; }
#nmApp .nm-login-e { color: var(--nm-neg); font-size: 13.5px; min-height: 18px; }

/* заглушки */
#nmApp .nm-empty { text-align: center; padding: 50px 20px; color: var(--nm-mut); display: flex; flex-direction: column; gap: 12px; align-items: center; }
#nmApp .nm-empty-ic { font-size: 40px; }
#nmApp .nm-skel { height: 96px; border-radius: 18px; margin-bottom: 12px; background: linear-gradient(90deg, var(--nm-card) 25%, var(--nm-card2) 50%, var(--nm-card) 75%); background-size: 200% 100%; animation: nm-sh 1.2s infinite; }
#nmApp .nm-skel.s { height: 64px; }
#nmApp .nm-skel.big { height: 132px; }
#nmApp .nm-skel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
#nmApp .nm-skel-grid .nm-skel { height: 78px; margin: 0; }
#nmApp .nm-skel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
#nmApp .nm-skel-row i { display: block; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; border-radius: 50%; }
#nmApp .nm-skel-row span { flex: 1; display: flex; flex-direction: column; gap: 8px; }
#nmApp .nm-skel-row b { display: block; height: 12px; margin: 0; border-radius: 6px; }
#nmApp .nm-skel-row b.w60 { width: 60%; height: 10px; }
@media (prefers-reduced-motion: reduce) { #nmApp .nm-skel { animation: none; } }
@keyframes nm-sh { to { background-position: -200% 0; } }

/* макет */
#nmApp .nm-maphead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
#nmApp .nm-stats { display: flex; align-items: center; gap: 12px; }
#nmApp .nm-stat { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; color: var(--c); }
#nmApp .nm-stat b { font-weight: 700; color: var(--nm-txt, #e8eefc); }
#nmApp .nm-stat-ic { display: inline-flex; width: 18px; height: 18px; }
#nmApp .nm-stat-ic svg { width: 100%; height: 100%; fill: currentColor; }
#nmApp .nm-stat.busy { --c: var(--nm-bad); } #nmApp .nm-stat.res { --c: var(--nm-warn); } #nmApp .nm-stat.blocked { --c: #ec4899; } #nmApp .nm-stat.maint { --c: #a855f7; }
#nmApp .nm-legend { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--nm-mut); }
#nmApp .nm-legend i { width: 9px; height: 9px; border-radius: 50%; margin-left: 8px; }
#nmApp .nm-legend i:first-child { margin-left: 0; }
#nmApp .nm-legend .free, #nmApp .nm-pill.free { background: var(--nm-good); }
#nmApp .nm-legend .busy, #nmApp .nm-pill.busy { background: var(--nm-bad); }
#nmApp .nm-legend .res, #nmApp .nm-pill.res { background: var(--nm-warn); }
#nmApp .nm-legend .blocked, #nmApp .nm-pill.blocked { background: #ec4899; }
#nmApp .nm-pill.maint { background: #a855f7; }
#nmApp .nm-mapvp { position: relative; height: calc(100vh - 250px); height: calc(100dvh - 250px); min-height: 300px; border-radius: 18px; overflow: hidden;
  background: var(--nm-card); border: 1px solid var(--nm-line); touch-action: none; user-select: none; -webkit-user-select: none; }
#nmApp .nm-mapcv { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
#nmApp .nm-mapctl { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
#nmApp .nm-mapctl button { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--nm-line); background: var(--nm-card); font-size: 20px; font-weight: 700; }
/* ПК на макете: компактный «ноутбук» с номером, цветная полоска снизу и значок статуса (как в схеме клуба у Senet/Gizmo) */
#nmApp .nm-tile-pc { position: absolute; --c: var(--nm-good); --cb: rgba(34,197,94,.10); }
#nmApp .nm-tile-pc.busy { --c: #ef4444; --cb: rgba(239,68,68,.12); }
#nmApp .nm-tile-pc.res { --c: #f59e0b; --cb: rgba(245,158,11,.14); }
#nmApp .nm-tile-pc.blocked { --c: #ec4899; --cb: rgba(236,72,153,.14); }
#nmApp .nm-tile-pc.maint { --c: #a855f7; --cb: rgba(168,85,247,.14); }
#nmApp .nm-tile-pc.off { --c: #94a3b8; --cb: transparent; opacity: .55; }
#nmApp .nm-pc-box { position: absolute; left: 8%; right: 8%; top: 4%; bottom: 24%; display: flex; align-items: center; justify-content: center;
  border: .09em solid var(--c); border-radius: .2em; background: var(--cb); }
#nmApp .nm-pc-n { font-weight: 800; font-size: 1em; line-height: 1; color: var(--nm-text); white-space: nowrap; }
#nmApp .nm-pc-bar { position: absolute; left: 2%; right: 2%; bottom: 4%; height: .15em; border-radius: .1em; background: var(--c); }
#nmApp .nm-pc-bd { position: absolute; right: -9%; top: -16%; width: 1.05em; height: 1.05em; border-radius: 50%; background: var(--c);
  display: flex; align-items: center; justify-content: center; border: .06em solid var(--nm-bg, #0f1218); box-sizing: border-box; }
#nmApp .nm-pc-bd svg { width: 62%; height: 62%; fill: #fff; }
/* ПК в Admin mode «горит» синим: рамка и мягко пульсирующее свечение поверх цвета статуса */
#nmApp .nm-tile-pc.adm .nm-pc-box { border-color: #38bdf8; background: rgba(56,189,248,.30); box-shadow: 0 0 0 .06em rgba(56,189,248,.95), 0 0 .5em .12em rgba(56,189,248,.55); animation: nm-adm 1.8s ease-in-out infinite; }
#nmApp .nm-tile-pc.adm .nm-pc-bar { background: #38bdf8; }
@keyframes nm-adm { 50% { box-shadow: 0 0 0 .06em #7dd3fc, 0 0 .8em .25em rgba(56,189,248,.8); } }
@media (prefers-reduced-motion: reduce) { #nmApp .nm-tile-pc.adm .nm-pc-box { animation: none; } }
/* сетка на фоне схемы, зум справа сверху, легенда-панель снизу */
#nmApp .nm-mapvp { background-color: var(--nm-card); background-image: linear-gradient(var(--nm-line) 1px, transparent 1px), linear-gradient(90deg, var(--nm-line) 1px, transparent 1px); background-size: 14px 14px; }
#nmApp .nm-mapctl { top: 6px; right: 6px; bottom: auto; flex-direction: row; gap: 4px; opacity: .85; }
#nmApp .nm-mapctl button { width: 30px; height: 30px; border-radius: 9px; font-size: 17px; }
#nmApp .nm-mapleg { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); max-width: calc(100% - 20px); background: var(--nm-card); border: 1px solid var(--nm-line);
  border-radius: 16px; box-shadow: 0 6px 22px rgba(0,0,0,.28); padding: 8px 10px; touch-action: manipulation; }
#nmApp .nm-mapleg-g { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 14px; justify-content: center; }
#nmApp .nm-mapleg.min .nm-mapleg-g { display: none; }
#nmApp .nm-mapleg-i { display: flex; align-items: center; gap: 6px; }
#nmApp .nm-mapleg-i .nm-pc-ic { width: 26px; height: 22px; position: relative; font-size: 22px; }
#nmApp .nm-mapleg-i b { min-width: 34px; text-align: center; font-size: 14px; padding: 2px 8px; border-radius: 10px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
#nmApp .nm-mapleg-i.busy { --c: #ef4444; } #nmApp .nm-mapleg-i.res { --c: #f59e0b; } #nmApp .nm-mapleg-i.blocked { --c: #ec4899; }
#nmApp .nm-mapleg-i.maint { --c: #a855f7; } #nmApp .nm-mapleg-i.off { --c: #94a3b8; } #nmApp .nm-mapleg-i.free { --c: var(--nm-good); }
#nmApp .nm-mapleg-i .nm-pc-ic .nm-pc-box { left: 0; right: 0; top: 0; bottom: 5px; border-width: 1.5px; background: transparent; }
#nmApp .nm-mapleg-i .nm-pc-ic .nm-pc-bar { bottom: 0; height: 2.5px; }
#nmApp .nm-mapleg-i .nm-pc-ic .nm-pc-bd { width: 12px; height: 12px; right: -5px; top: -5px; border-width: 1px; }
#nmApp .nm-mapleg-t { display: flex; justify-content: center; width: 100%; background: none; border: 0; padding: 0; color: var(--nm-mut); line-height: 1; }
#nmApp .nm-mapleg.min .nm-mapleg-t { transform: rotate(180deg); }
#nmApp .nm-hostlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
#nmApp .nm-host { text-align: left; background: var(--nm-card); border: 1px solid var(--nm-line); border-left: 4px solid var(--nm-good); border-radius: 14px; padding: 10px 12px; }
#nmApp .nm-host.busy { border-left-color: var(--nm-bad); } .nm-host.res { border-left-color: var(--nm-warn); }
#nmApp .nm-host.blocked { border-left-color: #ec4899; background: rgba(236,72,153,.12); } .nm-host.maint { border-left-color: #a855f7; }
#nmApp .nm-host-n { font-weight: 800; } .nm-host-n em { font-style: normal; font-size: 10px; color: #e0f2fe; background: rgba(56,189,248,.35); border: 1px solid #38bdf8; border-radius: 6px; padding: 0 4px; margin-left: 4px; }
#nmApp .nm-host-s { color: var(--nm-mut); font-size: 12.5px; margin-top: 2px; }
#nmApp .nm-host-p { font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }

/* нижняя шторка */
#nmApp .nm-sheet-bd { position: fixed; inset: 0; z-index: 9500; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
#nmApp .nm-sheet { width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto; background: var(--nm-card, #151926); color: var(--nm-text);
  border-radius: 22px 22px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); animation: nm-up .18s ease-out; }
@keyframes nm-up { from { transform: translateY(40px); opacity: 0; } }
#nmApp .nm-sheet-grip { width: 42px; height: 4px; border-radius: 2px; background: rgba(var(--nm-fg),.25); margin: 0 auto 12px; }
#nmApp .nm-sh-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
#nmApp .nm-sh-title { font-size: 19px; font-weight: 800; }
#nmApp .nm-sh-text { color: rgba(var(--nm-fg),.7); margin: 8px 0 14px; }
#nmApp .nm-sh-actions { display: flex; gap: 10px; margin-top: 16px; }
#nmApp .nm-sh-actions .nm-btn { flex: 1; }
#nmApp .nm-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #fff; }
#nmApp .nm-kv > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(var(--nm-fg),.09); }
#nmApp .nm-kv > div > span { color: rgba(var(--nm-fg),.55); font-size: 13.5px; }
#nmApp .nm-kv .amber { color: var(--nm-amber); }
#nmApp .nm-kv small { color: rgba(var(--nm-fg),.6); }

/* заявки */
#nmApp .nm-req { background: var(--nm-card); border: 1px solid var(--nm-line); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
#nmApp .nm-req-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
#nmApp .nm-req-h span { color: var(--nm-mut); font-size: 12.5px; white-space: nowrap; }
#nmApp .nm-req-t { margin-top: 6px; font-size: 15.5px; }
#nmApp .nm-req-r { margin-top: 6px; color: rgba(var(--nm-fg),.78); font-size: 14px; overflow-wrap: anywhere; }
#nmApp .nm-req-m { margin-top: 6px; color: var(--nm-mut); font-size: 12.5px; }
#nmApp .nm-req-a { display: flex; gap: 10px; margin-top: 12px; }
#nmApp .nm-req-a .nm-btn { flex: 1; }

/* Admin mode */
#nmApp .nm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#nmApp .nm-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px;
  background: var(--nm-card); border: 1px solid var(--nm-line); border-radius: 14px; padding: 8px 4px; }
#nmApp .nm-chip b { font-size: 15px; }
#nmApp .nm-chip small { color: var(--nm-acc2); font-size: 11px; }
#nmApp .nm-chip.on { border-color: var(--nm-acc2); background: rgba(56,189,248,.14); }

/* прочее */
#nmApp .nm-toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9700;
  background: #22c55e; color: #04210f; padding: 11px 18px; border-radius: 14px; font-weight: 700; max-width: 90vw; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
#nmApp .nm-toast.bad { background: #ef4444; color: #fff; }
.nm-tomobile { position: fixed; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 9100;
  height: 42px; padding: 0 16px; border-radius: 21px; border: 1px solid rgba(var(--nm-acc-rgb),.6);
  background: rgba(var(--nm-acc-rgb),.92); color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
body.nm-on .nm-tomobile { display: none; }

/* кнопки управления макетом и нижняя навигация: ровно по центру, без обрезки подписей */
#nmApp .nm-mapctl button { display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; font-size: 22px; }
#nmApp .nm-nav button { overflow: visible; }
#nmApp .nm-nav button span:last-of-type { font-size: 11px; line-height: 1.2; white-space: nowrap; }
#nmApp .nm-ico { display: flex; align-items: center; justify-content: center; padding: 0; }
#nmApp .nm-club, #nmApp .nm-pcbtn { display: flex; align-items: center; }
#nmApp .nm-host { display: block; width: 100%; }
#nmApp .nm-host-s, #nmApp .nm-host-p { display: block; }
#nmApp .nm-chips button { white-space: nowrap; }
#nmApp .nm-seg button { padding: 0 8px; }
#nmApp .nm-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; }
#nmApp .nm-chip { display: flex; }
.nm-tomobile { height: 42px !important; line-height: 1 !important; padding: 0 16px !important; width: auto !important; }

/* Питание ПК и диспетчер задач в карточке ПК */
#nmApp .nm-pw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
#nmApp .nm-pw-grid .wide { grid-column: 1 / -1; }
#nmApp .nm-tm-body { margin-top: 12px; }
#nmApp .nm-tm-list { max-height: 46vh; overflow-y: auto; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
#nmApp .nm-tm-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--nm-card2); border: 1px solid var(--nm-line); }
#nmApp .nm-tm-i { min-width: 0; }
#nmApp .nm-tm-i b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nmApp .nm-tm-i b i { font-style: normal; opacity: .6; font-weight: 600; }
#nmApp .nm-tm-i small { display: block; color: rgba(var(--nm-fg),.55); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nmApp .nm-tm-m { font-size: 12.5px; color: rgba(var(--nm-fg),.7); white-space: nowrap; }
#nmApp .nm-tm-row .nm-btn { min-height: 36px; padding: 0 12px; }

/* Режим «приложение» (добавлено на главный экран): без рамок браузера, на весь экран */
@media (display-mode: standalone) {
  html, body { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
  body { -webkit-user-select: none; user-select: none; }
  input, textarea { -webkit-user-select: text; user-select: text; }
  /* отступ от полосы жестов задаёт сама панель (margin), внутрь капсулы лишнего не добавляем */
}

/* Клиенты (мобильная версия) */
#nmApp .nm-usr-bar { position: sticky; top: 0; z-index: 3; padding: 4px 0 10px; background: var(--nm-bg, transparent); }
#nmApp .nm-usr { display: block; width: 100%; text-align: left; margin-bottom: 8px; padding: 12px 14px; border-radius: 14px; background: var(--nm-card); border: 1px solid var(--nm-line); color: inherit; }
#nmApp .nm-usr-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; }
#nmApp .nm-usr-s { margin-top: 2px; font-size: 13px; color: rgba(var(--nm-fg),.6); }
#nmApp .nm-usr-m { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#nmApp .nm-usr-m span { padding: 3px 9px; border-radius: 999px; font-size: 12px; background: rgba(var(--nm-fg),.07); border: 1px solid var(--nm-line); }
#nmApp .nm-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px 16px; font-size: 13px; color: rgba(var(--nm-fg),.7); }
#nmApp .nm-pager .nm-btn { min-width: 52px; }
#nmApp .nm-usr-kv > div { grid-template-columns: 96px 1fr; }
#nmApp .nm-form { display: grid; gap: 10px; margin-top: 12px; max-height: 58vh; overflow-y: auto; }
#nmApp .nm-form label { display: grid; gap: 4px; font-size: 12.5px; color: rgba(var(--nm-fg),.65); }

/* Подсказка про уведомления и стрелка «Нажмите Разрешить» */
#nmApp .nm-push-hint { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 12px 0; padding: 10px 12px; border-radius: 14px;
  background: rgba(var(--nm-acc-rgb),.16); border: 1px solid rgba(var(--nm-acc-rgb),.45); font-size: 13.5px; line-height: 1.3; }
#nmApp .nm-push-hint.warn { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.4); }
#nmApp .nm-push-hint.info { background: rgba(var(--nm-fg),.07); border-color: var(--nm-line); }
#nmApp .nm-push-hint .nm-btn { flex: none; }
#nmApp .nm-push-hint .nm-ph-x { flex: none; background: none; border: 0; color: inherit; font-size: 18px; padding: 0 4px; }
.nm-push-arrow { position: fixed; left: 0; right: 0; z-index: 99990; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; }
.nm-push-arrow.bottom { bottom: 120px; }
.nm-push-arrow.center { top: 58%; }
.nm-push-arrow.top { top: 90px; align-items: flex-start; padding-left: 24px; flex-direction: column-reverse; }
.nm-push-arrow .nm-pa-card { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: 14px; background: #7c3aed; box-shadow: 0 10px 30px rgba(0,0,0,.5); text-align: center; }
.nm-push-arrow .nm-pa-card span { font-size: 12px; opacity: .85; }
.nm-push-arrow i { font-style: normal; font-size: 40px; line-height: 1; text-shadow: 0 4px 14px rgba(0,0,0,.6); animation: nmPaBounce .9s ease-in-out infinite; }
@keyframes nmPaBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
#nmApp .nm-rc { padding: 10px 0; border-top: 1px solid var(--nm-line); cursor: pointer; }
#nmApp .nm-rc:first-child { border-top: 0; }
#nmApp .nm-rc-top { display: flex; gap: 10px; align-items: baseline; }
#nmApp .nm-rc-t { color: var(--nm-mut); font-size: 13px; min-width: 44px; }
#nmApp .nm-rc-c { flex: 1; font-weight: 600; overflow-wrap: anywhere; }
#nmApp .nm-rc-a.pos { color: var(--nm-pos); }
#nmApp .nm-rc-s { margin-top: 3px; font-size: 13px; color: var(--nm-mut); overflow-wrap: anywhere; }
#nmApp .nm-rc-seat { margin-top: 3px; font-size: 13px; color: var(--nm-mut); }
#nmApp .nm-rc-seat b { color: var(--nm-text, inherit); font-weight: 600; }
#nmApp .nm-rc-seat.none { opacity: .7; }
#nmApp .nm-rc-d { margin-top: 6px; font-size: 12.5px; color: var(--nm-mut); display: grid; gap: 2px; }
#nmApp .nm-rc.void .nm-rc-a { text-decoration: line-through; opacity: .5; }
#nmApp .nm-rc-methods { flex-wrap: wrap; }
#nmApp .nm-rc-methods button { flex: 0 1 auto; padding: 0 12px; }

/* ── Темы мобильной версии: #nmApp[data-theme="…"]. По умолчанию — тёмная фиолетовая (как раньше) ─────────── */
#nmApp[data-theme="ocean"] {
  --nm-bg:#070d16; --nm-card:#0f1a29; --nm-card2:#152338; --nm-text:#eaf2fb; --nm-fg:234,242,251; --nm-mut:rgba(234,242,251,.55);
  --nm-acc:#3b82f6; --nm-acc-rgb:59,130,246; --nm-acc2:#22d3ee; --nm-on-acc:#fff;
}
#nmApp[data-theme="lime"] {
  --nm-bg:#090d07; --nm-card:#121a0f; --nm-card2:#192413; --nm-text:#eef7e8; --nm-fg:238,247,232; --nm-mut:rgba(238,247,232,.55);
  --nm-acc:#84cc16; --nm-acc-rgb:132,204,22; --nm-acc2:#22d3ee; --nm-on-acc:#0b1a04;
}
#nmApp[data-theme="red"] {
  --nm-bg:#0d0808; --nm-card:#1a1010; --nm-card2:#251717; --nm-text:#f8eeee; --nm-fg:248,238,238; --nm-mut:rgba(248,238,238,.55);
  --nm-acc:#ef4444; --nm-acc-rgb:239,68,68; --nm-acc2:#fb923c; --nm-on-acc:#fff;
}
#nmApp[data-theme="light-purple"] {
  --nm-bg:#f1ecff; --nm-card:#ffffff; --nm-card2:#f3edff; --nm-text:#1f0b3d; --nm-fg:31,11,61; --nm-mut:rgba(31,11,61,.6);
  --nm-line:rgba(76,29,149,.14); --nm-acc:#7c3aed; --nm-acc-rgb:124,58,237; --nm-acc2:#2563eb; --nm-on-acc:#fff;
  --nm-good:#16a34a; --nm-bad:#dc2626; --nm-warn:#d97706; --nm-neg:#b91c1c; --nm-pos:#15803d; --nm-amber:#a16207;
}
#nmApp[data-theme="silver"] {
  --nm-bg:#eceff3; --nm-card:#ffffff; --nm-card2:#eef1f5; --nm-text:#18232d; --nm-fg:24,35,45; --nm-mut:rgba(24,35,45,.6);
  --nm-line:rgba(40,60,80,.14); --nm-acc:#475569; --nm-acc-rgb:71,85,105; --nm-acc2:#0ea5e9; --nm-on-acc:#fff;
  --nm-good:#16a34a; --nm-bad:#dc2626; --nm-warn:#d97706; --nm-neg:#b91c1c; --nm-pos:#15803d; --nm-amber:#a16207;
}
/* светлые темы: тени мягче, плитки ПК и карточки читаются на светлом */
#nmApp[data-theme="light-purple"] .nm-card, #nmApp[data-theme="silver"] .nm-card { box-shadow: 0 1px 6px rgba(30,20,60,.08); }
#nmApp[data-theme="light-purple"] .nm-tile-pc .nm-pc-n, #nmApp[data-theme="silver"] .nm-tile-pc .nm-pc-n { color: var(--nm-text); }
#nmApp .nm-theme-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin-bottom: 8px; border-radius: 14px;
  border: 1px solid var(--nm-line); background: var(--nm-card2); text-align: left; font-weight: 600; }
#nmApp .nm-theme-opt.on { border-color: var(--nm-acc); box-shadow: 0 0 0 1px var(--nm-acc) inset; }
#nmApp .nm-theme-dots { display: flex; gap: 4px; flex: none; }
#nmApp .nm-theme-dots i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(128,128,128,.4); }
#nmApp .nm-theme-opt small { margin-left: auto; color: var(--nm-mut); font-weight: 500; }

/* фото накладных и чеков расходов */
#nmApp .nm-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
#nmApp .nm-photo-th { width: 84px; height: 84px; border-radius: 12px; border: 1px solid var(--nm-line); background: var(--nm-card2); overflow: hidden; padding: 0; display: grid; place-items: center; color: var(--nm-mut); }
#nmApp .nm-photo-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nm-photo-view { position: fixed; inset: 0; z-index: 9800; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 12px; }
.nm-photo-view img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.nm-photo-view .nm-photo-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 18px; }

/* ── Касса (мини-POS) ─────────────────────────────────────────────────────── */
#nmApp .nm-posnote { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.4); color: var(--nm-amber); }
#nmApp .nm-posnote.bad { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.4); color: var(--nm-neg); margin: 10px 0; }
#nmApp .nm-posclient { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; margin-bottom: 12px;
  padding: 12px 14px; border-radius: 16px; border: 1px solid var(--nm-line); background: var(--nm-card); }
#nmApp .nm-posclient span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#nmApp .nm-posclient b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nmApp .nm-posclient small { color: var(--nm-mut); font-size: 12.5px; }
#nmApp .nm-posclient i { font-style: normal; color: var(--nm-acc2); font-size: 13px; font-weight: 700; flex: none; }
#nmApp .nm-posit { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; margin-bottom: 8px;
  min-height: 58px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--nm-line); background: var(--nm-card); }
#nmApp .nm-posit:active { background: var(--nm-card2); }
#nmApp .nm-posit span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#nmApp .nm-posit b { font-weight: 700; overflow-wrap: anywhere; }
#nmApp .nm-posit small { color: var(--nm-mut); font-size: 12.5px; }
#nmApp .nm-posit em { font-style: normal; font-weight: 800; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
#nmApp .nm-posit u { text-decoration: none; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--nm-acc); color: var(--nm-on-acc); }
#nmApp .nm-posbar { position: sticky; bottom: -6px; z-index: 5; display: flex; gap: 10px; margin: 12px -4px -6px; padding: 10px 4px 6px; background: linear-gradient(180deg, transparent, var(--nm-bg) 28%); }
#nmApp .nm-posbar .nm-btn { min-height: 52px; font-size: 16px; }
#nmApp .nm-posbar .nm-btn.primary { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#nmApp .nm-pcl { margin: 10px 0; max-height: 46vh; overflow-y: auto; }
#nmApp .nm-cart { margin: 10px 0; }
#nmApp .nm-cartrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--nm-line); }
#nmApp .nm-cartrow > span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#nmApp .nm-cartrow small { color: var(--nm-mut); font-size: 12.5px; }
#nmApp .nm-qty { display: flex; align-items: center; gap: 4px; }
#nmApp .nm-qty button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--nm-line); background: var(--nm-card2); font-size: 20px; font-weight: 700; }
#nmApp .nm-qty b { min-width: 24px; text-align: center; }
#nmApp .nm-x { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--nm-mut); font-size: 16px; }
#nmApp .nm-paytotal { font-size: 38px; font-weight: 800; letter-spacing: -.5px; text-align: center; margin: 8px 0 10px; }
#nmApp .nm-meth { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; margin-bottom: 8px;
  min-height: 60px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--nm-line); background: var(--nm-card2); }
#nmApp .nm-meth.term { border-color: rgba(var(--nm-acc-rgb),.5); background: rgba(var(--nm-acc-rgb),.14); }
#nmApp .nm-meth span { display: flex; flex-direction: column; gap: 2px; }
#nmApp .nm-meth small { color: var(--nm-mut); font-size: 12.5px; }
#nmApp .nm-meth i { font-style: normal; font-size: 22px; opacity: .6; }
#nmApp .nm-meth:disabled { opacity: .45; }
#nmApp .nm-change { margin: 10px 0 2px; font-size: 15px; text-align: center; min-height: 22px; }
#nmApp .nm-neg { color: var(--nm-neg); }
#nmApp .nm-tp-hint { text-align: center; color: var(--nm-mut); font-size: 14.5px; line-height: 1.5; min-height: 44px; margin: 4px 0 6px; }
#nmApp .nm-ok-ic { width: 64px; height: 64px; margin: 6px auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 800; background: rgba(34,197,94,.18); color: var(--nm-pos); }

/* ── Касса: режимы, зависшие, возвраты; «Система» на дашборде ── */
#nmApp .nm-posmode small { display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 4px; border-radius: 9px; background: var(--nm-bad); color: #fff; font-weight: 800; opacity: 1; }
#nmApp .nm-posmode button.on small { background: rgba(255,255,255,.28); }
#nmApp .nm-wrapbtns { display: flex; flex-wrap: wrap; gap: 8px; }
#nmApp .nm-wrapbtns .nm-btn { flex: 1 1 140px; min-height: 40px; font-size: 13.5px; }
#nmApp .hdot { display: inline-block; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #7b8494; flex: none; }
#nmApp .hdot.ok { background: #3ddc84; box-shadow: 0 0 8px rgba(61,220,132,.55); }
#nmApp .hdot.warn { background: #f5b301; box-shadow: 0 0 8px rgba(245,179,1,.5); }
#nmApp .hdot.bad { background: #ff5252; box-shadow: 0 0 10px rgba(255,82,82,.6); }
#nmApp .nm-health { padding: 12px 14px; }
#nmApp .nm-health.bad { border-color: rgba(255,82,82,.55); background: rgba(255,82,82,.08); }
#nmApp .nm-health.warn { border-color: rgba(245,179,1,.45); }
#nmApp .nm-hrow { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; }
#nmApp .nm-hrow small { display: block; color: var(--nm-mut); font-size: 12.5px; margin-top: 2px; }
/* подвкладки (Касса | Чеки, Макет | Клиенты) */
#nmApp .nm-sub { display: none; padding: 8px 12px 0; }
#nmApp .nm-sub.on { display: block; }
#nmApp .nm-sub .nm-seg { margin-bottom: 0; }
#nmApp .nm-ico.on { background: var(--nm-acc); border-color: transparent; }
#nmApp .nm-top { gap: 6px; }
#nmApp .nm-club { min-width: 0; flex: 1 1 auto; }
#nmApp .nm-club span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#nmApp .nm-top-r { flex: none; gap: 6px; }
#nmApp .nm-ico { width: 36px; height: 36px; }

/* выключенный ПК на макете не светится */
#nmApp .nm-host.off { border-left-color: rgba(148,163,184,.4); opacity: .6; }

#nmApp .nm-posmode button { font-size: 12.5px; padding: 0 4px; }

/* Дашборд → «План» */
#nmApp .nm-plan-pct { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--nm-card2); border: 1px solid var(--nm-line); }
#nmApp .nm-plan-pct.ok { background: var(--nm-acc); color: #fff; border-color: transparent; }
#nmApp .nm-plan-sum { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
#nmApp .nm-plan-sum b { font-size: 24px; font-weight: 800; }
#nmApp .nm-plan-sum span { opacity: .6; font-size: 13px; }
#nmApp .nm-plan-bar { position: relative; height: 10px; overflow: visible; }
#nmApp .nm-plan-bar u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #f5a524; border-radius: 2px; text-decoration: none; }
#nmApp .nm-plan-note { margin: 8px 0 2px; font-size: 12px; font-weight: 600; }
#nmApp .nm-plan-note.up { color: #34c759; }
#nmApp .nm-plan-note.down { color: #ff9f0a; }
#nmApp .nm-plan-tiles { margin-top: 10px; }
#nmApp .nm-plan-tiles .nm-tile b { font-size: 16px; }
#nmApp .nm-plan-year { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--nm-line); font-size: 12px; }
#nmApp .nm-plan-year span { opacity: .65; }
/* нижняя панель: никаких реакций на касание/наведение — общие button:hover/:active из nova-ui.css на iOS «залипают» и играют анимацию */
#nmApp .nm-nav button, #nmApp .nm-nav button:hover, #nmApp .nm-nav button:active, #nmApp .nm-nav button:focus, #nmApp .nm-nav button:focus-visible {
  transform: none !important; transition: none !important; animation: none !important; box-shadow: none !important; filter: none !important;
  border: 0 !important; outline: none !important; -webkit-tap-highlight-color: transparent; background-image: none !important; }
#nmApp .nm-nav button, #nmApp .nm-nav button:hover, #nmApp .nm-nav button:active, #nmApp .nm-nav button:focus { background-color: transparent !important; color: var(--nm-mut) !important; }
#nmApp .nm-nav button.on, #nmApp .nm-nav button.on:hover, #nmApp .nm-nav button.on:active, #nmApp .nm-nav button.on:focus { background-color: rgba(var(--nm-fg), .11) !important; color: var(--nm-acc) !important; }
#nmApp .nm-nav button *, #nmApp .nm-nav button::before, #nmApp .nm-nav button::after { transition: none !important; animation: none !important; }
#nmApp .nm-nav button::before, #nmApp .nm-nav button::after { content: none !important; display: none !important; }
/* появление вкладки: блоки плавно «въезжают» снизу по очереди (запускает nova-mobile.js после загрузки экрана) */
@keyframes nm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
#nmApp .nm-body > .nm-in { animation: nm-rise .42s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--nm-d, 0ms); }
@media (prefers-reduced-motion: reduce) { #nmApp .nm-body > .nm-in { animation: none; } }
/* нижняя панель: зажатие и скольжение пальцем — стеклянная «линза» под пальцем */
#nmApp .nm-nav { position: relative; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#nmApp .nm-nav-glass { position: absolute; left: 0; top: 3px; bottom: 3px; width: 0; border-radius: 24px; pointer-events: none; opacity: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.34);
  -webkit-backdrop-filter: blur(12px) saturate(1.9) brightness(1.12); backdrop-filter: blur(12px) saturate(1.9) brightness(1.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(255,255,255,.12), 0 8px 22px rgba(0,0,0,.32);
  transition: opacity .12s ease; will-change: transform; }
#nmApp .nm-nav-glass.on { opacity: 1; }
#nmApp .nm-nav button { z-index: 1; }
/* пока держим палец: прежняя «таблетка» активной вкладки прячется, подсвечивается вкладка под линзой */
#nmApp .nm-nav.hold button.on:not(.pv), #nmApp .nm-nav.hold button.on:not(.pv):hover { background-color: transparent !important; color: var(--nm-mut) !important; }
#nmApp .nm-nav.hold button.pv, #nmApp .nm-nav.hold button.pv:hover, #nmApp .nm-nav.hold button.pv:active { color: var(--nm-acc) !important; background-color: transparent !important; }
#nmApp .nm-nav.hold button.pv .nm-nav-ic svg { stroke-width: 2; }
/* Заявки: строка с кнопкой «История» / «К заявкам» у каждого раздела */
#nmApp .nm-qhbar { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
#nmApp .nm-qhbar span { font-size: 12.5px; color: var(--nm-mut); }
/* Заявки → Отзывы клиентов */
.nm-fb-new{box-shadow:inset 3px 0 0 #4299ff}
#nmApp .nm-fb-reply { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.06); border-left: 3px solid #4299ff; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
#nmApp .nm-fb-reply small { display: block; opacity: .6; font-size: 12px; margin-bottom: 3px; }
#nmApp .nm-fb-form { margin-top: 10px; display: grid; gap: 8px; }
#nmApp .nm-fb-form[hidden] { display: none; }
#nmApp .nm-fb-form textarea { width: 100%; resize: vertical; }
.nm-fb-stars{color:#ffc83d;letter-spacing:1px}
.nm-fb-stars i{font-style:normal;opacity:.25}
/* Диапазон дат на дашборде */
#nmApp .nm-range-seg { margin-bottom: 8px; padding: 3px; gap: 3px; }
#nmApp .nm-range-seg button { min-height: 34px; font-size: 12.5px; padding: 0 2px; }
#nmApp .nm-range-in { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
#nmApp .nm-range-in input { flex: 1; min-width: 0; height: 40px; border-radius: 10px; border: 1px solid var(--nm-line, rgba(255,255,255,.12)); background: var(--nm-card2); color: inherit; padding: 0 8px; font: inherit; font-size: 14px; }
#nmApp .nm-range-in span { color: var(--nm-mut); }
#nmApp .nm-range-in .nm-btn { height: 40px; padding: 0 14px; }
#nmApp .nm-range-v { font-size: 26px; margin: 4px 0 2px; }
#nmApp .nm-range-chart { height: 130px; gap: 1px; margin: 10px 0 6px; }
#nmApp .nm-range-chart .nm-col span { font-size: 9px; overflow: visible; }

/* барабан даты и времени (как на iPhone) */
.nm-wov { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; }
.nm-wsheet { width: 100%; background: var(--nm-card, #151926); color: var(--nm-text, #eef1f7); border-radius: 18px 18px 0 0; padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); }
.nm-wbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 10px; font-size: 14px; }
.nm-wbar button { background: none; border: 0; color: var(--nm-acc, #84cc16); font-size: 16px; font-weight: 600; padding: 6px 8px; }
.nm-wbar b { font-weight: 600; opacity: .7; font-size: 13px; }
.nm-wcols { position: relative; display: flex; gap: 4px; height: 200px; }
.nm-wband { position: absolute; left: 0; right: 0; top: 80px; height: 40px; border-radius: 10px; background: var(--nm-card2, #1b2030); pointer-events: none; }
.nm-wcol { flex: 1; overflow-y: scroll; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); }
.nm-wcol::-webkit-scrollbar { display: none; }
.nm-wcol[data-w="d"] { flex: 2.4; }
.nm-wpad { height: 80px; }
.nm-wit { height: 40px; line-height: 40px; text-align: center; scroll-snap-align: center; font-size: 19px; }
.nm-wsep { align-self: center; font-size: 20px; opacity: .6; }
/* детали чека (раскрывается по тапу) */
.nm-rc-d { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(128,128,128,.3); font-size: 13px; }
.nm-rcd-r, .nm-rcd-l { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.nm-rcd-r span, .nm-rcd-l span { opacity: .75; min-width: 0; }
.nm-rcd-h { margin: 8px 0 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; opacity: .5; }
.nm-rcd-t { padding: 0 0 4px; font-size: 12px; opacity: .85; word-break: break-all; }
.nm-rcd-n { padding-top: 3px; font-size: 12px; opacity: .55; }
/* Дашборд сети: цвета из темы мобильной версии */
.nd-m .nd{--nd-fg:var(--nm-text,#eef1f7);color:var(--nm-text,#eef1f7)}
.nd-m .nd-card{background:var(--nm-card,#151926)}
.nd-m .nd-row2{grid-template-columns:1fr}
.nd-m .nd-big{font-size:26px}
.nd-m .nd-table{font-size:12px}
.nd-m .nd-table th,.nd-m .nd-table td{padding:6px 4px}


/* окно чека (тап по чеку в «Чеки») */
.nm-rcm-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 4px 0 10px; }
.nm-rcm-top b { font-size: 22px; }
.nm-rcm { font-size: 14px; max-height: 52vh; overflow: auto; }
.nm-rcm-seat { margin-top: 10px; }
/* профиль клиента: вкладки и строки истории */
#nmApp .nm-usr-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
#nmApp .nm-usr-tabs::-webkit-scrollbar { display: none; }
#nmApp .nm-usr-tabs button { flex: 0 0 auto; min-height: 34px; padding: 0 12px; font-size: 12.5px; }
#nmApp .nm-ur { padding: 10px 0; border-top: 1px solid var(--nm-line); }
#nmApp .nm-ur:first-child { border-top: 0; }
#nmApp .nm-ur-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
#nmApp .nm-ur-top b:first-child { overflow-wrap: anywhere; }
#nmApp .nm-ur-s { margin-top: 3px; font-size: 12.5px; color: var(--nm-mut); overflow-wrap: anywhere; }
#nmApp .nm-ur .nm-btn.sm { margin-top: 8px; }
#nmApp .nm-ur.void .nm-ur-a { text-decoration: line-through; opacity: .6; }
#nmApp .nm-ur-sum { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 4px 0 8px; font-size: 13px; color: var(--nm-mut); }
#nmApp .nm-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
#nmApp .nm-chips::-webkit-scrollbar { display: none; }
#nmApp .nm-chips button { flex: 0 0 auto; border: 1px solid var(--nm-line); background: transparent; color: var(--nm-mut); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; }
#nmApp .nm-chips button.on { background: var(--nm-acc); color: var(--nm-on-acc); border-color: transparent; }/* «Вся сеть»: ничего не вылезает за экран, чипы периода крупнее, таблица сравнения листается внутри карточки */
.nd-m{max-width:100%;overflow-x:hidden}
.nd-m .nd,.nd-m .nd-card{min-width:0;max-width:100%}
.nd-m .nd-chips{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.nd-m .nd-chip{height:36px;padding:0 4px;font-size:13px;border-radius:12px}
.nd-m .nd-card{padding:14px}
.nd-m .nd-scroll{margin:0 -14px;padding:0 14px}
.nd-m .nd-table{min-width:100%;width:max-content}
.nd-m .nd-table th{font-weight:600;white-space:nowrap}
.nd-m .nd-table td:first-child,.nd-m .nd-table th:first-child{position:sticky;left:0;background:var(--nm-card,#151926);white-space:nowrap;padding-right:10px}
.nd-m .nd-table td{white-space:nowrap}

/* Товары за период на дашборде */
#nmApp .nm-prow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--nm-line); }
#nmApp .nm-prow:first-of-type { border-top: 0; }
#nmApp .nm-pn { min-width: 0; }
#nmApp .nm-pn b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nmApp .nm-pn small, #nmApp .nm-ps small { display: block; font-size: 12px; color: var(--nm-mut); margin-top: 2px; }
#nmApp .nm-ps { text-align: right; flex: none; }
#nmApp .nm-ps b { font-size: 16px; font-variant-numeric: tabular-nums; }
#nmApp .nm-prow.low .nm-ps b { color: var(--nm-bad); }
#nmApp .nm-prow.low .nm-ps small { color: var(--nm-warn); }
.nm-rcd-link { color: var(--nm-accent, #7c5cff); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ═══ Стиль Beta (светлая/тёмная «угольная» палитра с ember-акцентом). Включается классом #nmApp.nm-beta, переключатель — пилюля «Beta» в шапке ═══ */
#nmApp.nm-beta {
  --nm-bg: #26282c; --nm-card: #2f3135; --nm-card2: #36383d; --nm-card3: #3f4147;
  --nm-text: #f3f1ed; --nm-mut: #a4a4a9; --nm-fg: 243,241,237; --nm-line: rgba(255,255,255,.07);
  --nm-acc: #f0552f; --nm-acc2: #ff8c62; --nm-acc-rgb: 240,85,47; --nm-on-acc: #1f0a04;
  --nm-good: #74d6a0; --nm-bad: #ff8a92; --nm-warn: #f4c46e; --nm-neg: #ff8a92; --nm-pos: #74d6a0; --nm-amber: #f4c46e;
  --nm-grad: linear-gradient(140deg, #ff7c3c, #f0552f 50%, #e2372a); --nm-glow: rgba(240,70,40,.42);
  --nm-thumb: #f3f1ed; --nm-on-thumb: #26282c; --nm-top-light: rgba(255,255,255,.05);
  --nm-shadow: 0 1px 1px rgba(0,0,0,.25), 0 18px 34px -22px rgba(0,0,0,.75);
  font-family: Urbanist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14.5px; font-weight: 500;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
#nmApp.nm-beta[data-bt="light"] {
  --nm-bg: #e7e6e4; --nm-card: #f7f6f4; --nm-card2: #efeeeb; --nm-card3: #e3e1de;
  --nm-text: #1d1e21; --nm-mut: #65666c; --nm-fg: 29,30,33; --nm-line: rgba(20,20,24,.09);
  --nm-acc: #ee5230; --nm-acc2: #b5361b; --nm-acc-rgb: 238,82,48;
  --nm-good: #1d7446; --nm-bad: #b3222f; --nm-warn: #8a5807; --nm-neg: #b3222f; --nm-pos: #1d7446; --nm-amber: #8a5807;
  --nm-glow: rgba(228,60,36,.35); --nm-thumb: #1d1e21; --nm-on-thumb: #f7f6f4; --nm-top-light: rgba(255,255,255,.7);
  --nm-shadow: 0 1px 2px rgba(30,24,20,.06), 0 16px 30px -22px rgba(30,24,20,.35);
}
#nmApp.nm-beta input, #nmApp.nm-beta textarea, #nmApp.nm-beta select, #nmApp.nm-beta button { font-family: inherit; }
/* шапка */
#nmApp.nm-beta .nm-top { background: transparent; border-bottom: 0; padding: calc(10px + env(safe-area-inset-top)) 16px 6px; }
#nmApp.nm-beta .nm-club { font-size: 21px; font-weight: 800; letter-spacing: -.01em; padding: 4px 2px; }
#nmApp.nm-beta .nm-club small { display: none; }
#nmApp.nm-beta .nm-ico { width: 42px; height: 42px; border-radius: 13px; border: 0; background: var(--nm-card); box-shadow: inset 0 1px 0 var(--nm-top-light), inset 0 0 0 1px var(--nm-line); font-size: 17px; }
#nmApp.nm-beta .nm-pcbtn { height: 42px; border-radius: 13px; border: 0; background: var(--nm-card); box-shadow: inset 0 1px 0 var(--nm-top-light), inset 0 0 0 1px var(--nm-line); color: var(--nm-text); font-weight: 700; padding: 0 12px; }
/* пилюля Beta — как в заголовке Manager */
#nmApp .nm-beta-pill { height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(var(--nm-fg), .22); background: rgba(var(--nm-fg), .08);
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; color: var(--nm-text); }
#nmApp .nm-beta-pill.on { border-color: rgba(255,107,107,.6); background: rgba(255,107,107,.2); color: #ff6b6b; }
/* тело и карточки */
#nmApp.nm-beta .nm-body { padding: 6px 16px 24px; }
#nmApp.nm-beta .nm-card, #nmApp.nm-beta .nm-tile { background: var(--nm-card); border: 0; border-radius: 20px;
  box-shadow: inset 0 1px 0 var(--nm-top-light), inset 0 0 0 1px var(--nm-line), var(--nm-shadow); }
#nmApp.nm-beta .nm-card { padding: 16px 18px 18px; }
#nmApp.nm-beta .nm-card.flat { background: transparent; box-shadow: none; border-radius: 0; }
#nmApp.nm-beta .nm-tile { padding: 14px 16px; }
#nmApp.nm-beta .nm-tile b { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
#nmApp.nm-beta .nm-card-t { font-size: 15.5px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--nm-text); margin-bottom: 12px; }
#nmApp.nm-beta .nm-hero { background: var(--nm-grad); border: 0; border-radius: 22px; color: #fff; padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 18px 34px -18px var(--nm-glow); }
#nmApp.nm-beta .nm-hero-l { color: rgba(255,255,255,.88); text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 700; }
#nmApp.nm-beta .nm-hero-v { color: #fff; font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
#nmApp.nm-beta .nm-hero-s, #nmApp.nm-beta .nm-hero-s.up, #nmApp.nm-beta .nm-hero-s.down { color: rgba(255,255,255,.92); }
#nmApp.nm-beta .nm-row { border-top-color: var(--nm-line); }
#nmApp.nm-beta .nm-row.total b { color: var(--nm-acc2); }
/* полосы и столбики */
#nmApp.nm-beta .nm-bar-t { height: 9px; border-radius: 6px; background: rgba(var(--nm-fg), .09); }
#nmApp.nm-beta .nm-bar-t i { border-radius: 6px; background: var(--nm-grad); }
#nmApp.nm-beta .nm-col i { border-radius: 6px 6px 3px 3px; background: rgba(var(--nm-fg), .18); }
#nmApp.nm-beta .nm-chart-days .nm-col.today i { background: var(--nm-grad); }
/* кнопки, поля, переключатели */
#nmApp.nm-beta .nm-btn { border: 0; border-radius: 14px; background: var(--nm-card2); box-shadow: inset 0 1px 0 var(--nm-top-light), inset 0 0 0 1px var(--nm-line); font-weight: 700; }
#nmApp.nm-beta .nm-btn.primary { background: var(--nm-grad); color: var(--nm-on-acc); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 24px -12px var(--nm-glow); }
#nmApp.nm-beta .nm-btn.danger { background: rgba(255,138,146,.16); color: var(--nm-neg); box-shadow: inset 0 0 0 1px rgba(255,138,146,.35); }
#nmApp.nm-beta .nm-input { border: 0; border-radius: 13px; background: var(--nm-card2); box-shadow: inset 0 0 0 1px var(--nm-line); }
#nmApp.nm-beta .nm-input:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--nm-acc); }
#nmApp.nm-beta .nm-seg { background: var(--nm-card2); border-radius: 14px; padding: 4px; box-shadow: inset 0 0 0 1px var(--nm-line); }
#nmApp.nm-beta .nm-seg button { border-radius: 11px; font-weight: 700; }
#nmApp.nm-beta .nm-seg button.on { background: var(--nm-thumb); color: var(--nm-on-thumb); }
/* нижняя панель: плавающая капсула, активная вкладка — ember-«таблетка» */
#nmApp.nm-beta .nm-nav { margin: 4px 12px max(8px, calc(env(safe-area-inset-bottom) - 10px)); padding: 6px; border: 0; border-radius: 28px;
  background: var(--nm-card); box-shadow: inset 0 1px 0 var(--nm-top-light), inset 0 0 0 1px var(--nm-line), 0 22px 40px -18px rgba(0,0,0,.6); }
#nmApp.nm-beta .nm-nav button { border-radius: 22px; padding: 7px 2px 6px; font-weight: 600; color: var(--nm-mut); }
#nmApp.nm-beta .nm-nav button.on { background: var(--nm-grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 20px -10px var(--nm-glow); }
#nmApp.nm-beta .nm-nav-glass { display: none; }
#nmApp.nm-beta .nm-badge { box-shadow: 0 0 0 2px var(--nm-card); }
/* окна снизу */
#nmApp.nm-beta .nm-sheet { background: var(--nm-card); border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px -20px rgba(0,0,0,.6); }
#nmApp.nm-beta .nm-sh-title { font-weight: 800; letter-spacing: -.01em; }
#nmApp.nm-beta .nm-theme-opt.on { border-color: var(--nm-acc); }
#nmApp.nm-beta .nm-sub .nm-seg { margin-bottom: 8px; }
/* Beta: активная вкладка нижней панели — ember-градиент (перебивает !important выше) */
#nmApp.nm-beta .nm-nav button.on, #nmApp.nm-beta .nm-nav button.on:hover, #nmApp.nm-beta .nm-nav button.on:active, #nmApp.nm-beta .nm-nav button.on:focus {
  background-color: #f0552f !important; background-image: var(--nm-grad) !important; color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 20px -10px var(--nm-glow) !important; }
#nmApp.nm-beta .nm-top { gap: 6px; padding-left: 14px; padding-right: 14px; }
#nmApp.nm-beta .nm-top-r { gap: 6px; }
#nmApp.nm-beta .nm-club { font-size: 19px; max-width: none; min-width: 0; flex: 1; }
#nmApp.nm-beta .nm-ico { width: 38px; height: 38px; }
#nmApp.nm-beta .nm-pcbtn { height: 38px; padding: 0 10px; }
/* ── Beta: аватар, заголовок экрана, плитки-показатели, «Ещё», меню профиля ── */
#nmApp.nm-beta .nb-av { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: linear-gradient(140deg, #f6b49a, #f19f86); color: #3a1a0e; font-weight: 800; font-size: 13.5px; letter-spacing: .02em; }
#nmApp.nm-beta .nb-av i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--nm-good); box-shadow: 0 0 0 2px var(--nm-bg); }
#nmApp.nm-beta .nb-av.lg { width: 54px; height: 54px; font-size: 18px; }
#nmApp.nm-beta .nb-head { padding: 4px 2px 16px; }
#nmApp.nm-beta .nb-eye { color: var(--nm-mut); font-size: 14.5px; }
#nmApp.nm-beta .nb-h1 { margin: 2px 0 4px; font-size: 36px; line-height: 1.06; font-weight: 800; letter-spacing: -.025em; }
#nmApp.nm-beta .nb-sub { color: var(--nm-mut); font-size: 14px; }
#nmApp.nm-beta .nb-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
#nmApp.nm-beta .nb-kpi { display: flex; flex-direction: column; gap: 8px; min-height: 104px; padding: 14px 16px; border-radius: 20px; background: var(--nm-card);
  box-shadow: inset 0 1px 0 var(--nm-top-light), inset 0 0 0 1px var(--nm-line), var(--nm-shadow); }
#nmApp.nm-beta .nb-kpi.wide { grid-column: 1 / -1; min-height: 132px; }
#nmApp.nm-beta .nb-kpi-l { display: flex; align-items: center; gap: 8px; color: var(--nm-mut); font-weight: 600; font-size: 13.5px; }
#nmApp.nm-beta .nb-kpi-l svg { color: var(--nm-acc2); flex: none; }
#nmApp.nm-beta .nb-kpi-v { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
#nmApp.nm-beta .nb-kpi.wide .nb-kpi-v { font-size: 38px; }
#nmApp.nm-beta .nb-kpi-v small { font-size: 15px; font-weight: 700; color: var(--nm-mut); }
#nmApp.nm-beta .nb-kpi-f { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--nm-mut); flex-wrap: wrap; }
#nmApp.nm-beta .nb-delta { padding: 2px 8px; border-radius: 99px; font-weight: 700; font-size: 11.5px; white-space: nowrap; }
#nmApp.nm-beta .nb-delta.up { background: rgba(116,214,160,.15); color: var(--nm-good); }
#nmApp.nm-beta .nb-delta.down { background: rgba(255,138,146,.15); color: var(--nm-bad); }
#nmApp.nm-beta .nb-kpi-bar { height: 7px; border-radius: 5px; background: rgba(var(--nm-fg), .1); overflow: hidden; margin-top: auto; }
#nmApp.nm-beta .nb-kpi-bar i { display: block; height: 100%; border-radius: 5px; background: var(--nm-grad); }
#nmApp.nm-beta .nb-kpi.ember { background: var(--nm-grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 18px 34px -18px var(--nm-glow); }
#nmApp.nm-beta .nb-kpi.ember .nb-kpi-l, #nmApp.nm-beta .nb-kpi.ember .nb-kpi-f { color: rgba(255,255,255,.92); }
#nmApp.nm-beta .nb-kpi.ember .nb-kpi-l svg { color: #fff; }
#nmApp.nm-beta .nb-kpi.ember .nb-kpi-bar { background: rgba(0,0,0,.22); }
#nmApp.nm-beta .nb-kpi.ember .nb-kpi-bar i { background: #fff; }
#nmApp.nm-beta .nb-kpi.ember .nb-delta { background: rgba(0,0,0,.22); color: #fff; }
#nmApp.nm-beta .nb-kpi.warn .nb-kpi-v { color: var(--nm-warn); }
#nmApp.nm-beta .nb-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 6px; }
#nmApp.nm-beta .nb-more-i { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 14px; border: 0; border-radius: 18px; background: var(--nm-card2);
  box-shadow: inset 0 1px 0 var(--nm-top-light), inset 0 0 0 1px var(--nm-line); color: var(--nm-text); }
#nmApp.nm-beta .nb-more-i b { font-size: 13px; font-weight: 700; }
#nmApp.nm-beta .nb-more-i span svg { width: 26px; height: 26px; }
#nmApp.nm-beta .nb-more-i.on { background: var(--nm-grad); color: #fff; }
#nmApp.nm-beta .nb-me { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
#nmApp.nm-beta .nb-me-s { color: var(--nm-mut); font-size: 13.5px; margin-top: 2px; }
#nmApp.nm-beta .nb-menu { display: flex; flex-direction: column; gap: 8px; }
#nmApp.nm-beta .nb-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 0; border-radius: 16px; background: var(--nm-card2);
  box-shadow: inset 0 1px 0 var(--nm-top-light), inset 0 0 0 1px var(--nm-line); color: var(--nm-text); text-align: left; }
#nmApp.nm-beta .nb-menu button b { flex: 1; font-weight: 700; }
#nmApp.nm-beta .nb-menu button > span, #nmApp.nm-beta .nb-menu button > svg:last-child { color: var(--nm-mut); display: grid; }

/* ── Beta: «Выручка за период» (бусины), загрузка зон (pipe), чипы — как в Ignara ── */
#nmApp.nm-beta .nb-tk-sum { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin: 6px 0 16px; }
#nmApp.nm-beta .nb-tk-fig small { display: block; color: var(--nm-mut); font-size: 12px; font-weight: 600; }
#nmApp.nm-beta .nb-tk-fig b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
#nmApp.nm-beta .nb-tk-fig b.big { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
#nmApp.nm-beta .nb-tk-fig em { font-style: normal; font-size: 12.5px; color: var(--nm-mut); font-weight: 500; }
#nmApp.nm-beta .nb-beads { position: relative; height: 190px; padding: 6px 0 30px 40px; margin-bottom: 4px; }
#nmApp.nm-beta .nb-bg { position: absolute; inset: 6px 0 30px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
#nmApp.nm-beta .nb-bg div { position: relative; height: 0; border-top: 1px dashed var(--nm-line); }
#nmApp.nm-beta .nb-bg div:last-child { border-top: 1px solid rgba(var(--nm-fg), .16); }
#nmApp.nm-beta .nb-bg span { position: absolute; top: -8px; left: 0; font-size: 10.5px; font-weight: 600; color: var(--nm-mut); background: var(--nm-card); padding-right: 4px; }
#nmApp.nm-beta .nb-bp { position: relative; display: flex; gap: 2px; height: 100%; }
#nmApp.nm-beta .nb-bt { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--nm-acc); opacity: .85; pointer-events: none; z-index: 1; }
#nmApp.nm-beta .nb-bc { position: relative; flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; }
#nmApp.nm-beta .nb-btr { position: relative; flex: 1; width: 100%; }
#nmApp.nm-beta .nb-bs { position: absolute; bottom: 0; left: 50%; width: 5px; margin-left: -2.5px; border-radius: 6px; background: linear-gradient(to top, transparent, rgba(var(--nm-fg), .42) 40%); }
#nmApp.nm-beta .nb-bb { position: absolute; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--nm-card3); box-shadow: inset 0 0 0 3px rgba(var(--nm-fg), .5); }
#nmApp.nm-beta .nb-beads.dense .nb-bs { width: 3px; margin-left: -1.5px; }
#nmApp.nm-beta .nb-beads.dense .nb-bb { width: 9px; height: 9px; margin-left: -4.5px; box-shadow: inset 0 0 0 2.5px rgba(var(--nm-fg), .5); }
#nmApp.nm-beta .nb-bc.over .nb-bs { background: linear-gradient(to top, transparent, #ff8c62 35%, #f0552f); }
#nmApp.nm-beta .nb-bc.over .nb-bb { background: #f0552f; box-shadow: 0 0 0 4px rgba(240,85,47,.22), 0 0 14px var(--nm-glow); }
#nmApp.nm-beta .nb-bc.today .nb-bb { background: var(--nm-text); box-shadow: 0 0 0 4px rgba(var(--nm-fg), .18); }
#nmApp.nm-beta .nb-bl { position: absolute; bottom: -24px; left: -50%; right: -50%; text-align: center; font-size: 10.5px; font-weight: 600; color: var(--nm-mut); white-space: nowrap; }
#nmApp.nm-beta .nb-bc.today .nb-bl { color: var(--nm-acc2); font-weight: 700; }
#nmApp.nm-beta .nb-chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 10px -18px 0; padding: 2px 18px; scrollbar-width: none; }
#nmApp.nm-beta .nb-chips::-webkit-scrollbar { display: none; }
#nmApp.nm-beta .nb-chip { flex: 0 0 auto; padding: 7px 12px; border-radius: 99px; background: var(--nm-card2); box-shadow: inset 0 0 0 1px var(--nm-line); font-size: 12.5px; font-weight: 600; color: var(--nm-text); white-space: nowrap; }
#nmApp.nm-beta .nb-pr { display: grid; grid-template-columns: 84px minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 9px 0; }
#nmApp.nm-beta .nb-pn { font-size: 14px; font-weight: 600; color: var(--nm-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nmApp.nm-beta .nb-pt { position: relative; height: 12px; border-radius: 12px; background: var(--nm-card2); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.18); }
#nmApp.nm-beta .nb-pt i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: rgba(var(--nm-fg), .4); }
#nmApp.nm-beta .nb-pr.c0 .nb-pt i { background: var(--nm-grad); box-shadow: 0 0 12px var(--nm-glow); }
#nmApp.nm-beta .nb-pr.c1 .nb-pt i { background: #6f9bff; }
#nmApp.nm-beta .nb-pr.c2 .nb-pt i { background: #74d6a0; }
#nmApp.nm-beta .nb-pr.c3 .nb-pt i { background: #f4c46e; }
#nmApp.nm-beta .nb-pr b { text-align: right; font-size: 15px; font-weight: 700; }
#nmApp.nm-beta .nb-pr b small { font-size: 11px; color: var(--nm-mut); font-weight: 600; }
#nmApp.nm-beta .nb-pf { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--nm-line); font-size: 13px; color: var(--nm-mut); }
#nmApp.nm-beta .nb-pf b { color: var(--nm-text); }
/* ── Beta: колокольчик, топ товаров (sellers), склад ── */
#nmApp.nm-beta .nb-bell { position: relative; }
#nmApp.nm-beta .nb-bell .nm-badge { position: absolute; top: -4px; right: -4px; }
#nmApp.nm-beta .nm-card-th small { color: var(--nm-mut); font-weight: 600; font-size: 12px; }
#nmApp.nm-beta .nb-sell .nm-card-t { display: flex; justify-content: space-between; align-items: baseline; }
#nmApp.nm-beta .nb-sl { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--nm-line); }
#nmApp.nm-beta .nb-sl:last-of-type { border-bottom: 0; }
#nmApp.nm-beta .nb-sn { width: 22px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--nm-mut); }
#nmApp.nm-beta .nb-sx { flex: 1; min-width: 0; }
#nmApp.nm-beta .nb-sx b { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nmApp.nm-beta .nb-sx small { display: flex; align-items: center; gap: 8px; color: var(--nm-mut); font-size: 12px; margin-top: 3px; }
#nmApp.nm-beta .nb-sb { position: relative; width: 56px; height: 4px; border-radius: 4px; background: var(--nm-card3); overflow: hidden; display: inline-block; }
#nmApp.nm-beta .nb-sb u { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--nm-acc); }
#nmApp.nm-beta .nb-sa { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
#nmApp.nm-beta .nb-sa.bad { color: var(--nm-bad); }
#nmApp.nm-beta .nb-link { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin-top: 8px; padding: 12px 0 2px; border: 0; border-top: 1px solid var(--nm-line); background: transparent; color: var(--nm-text); font-weight: 700; font-size: 13.5px; }#nmApp.nm-beta .nb-slb { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; }

/* ── Beta: пилюля нижней панели, поповер профиля, раскрытие заголовка по буквам ── */
#nmApp.nm-beta .nm-nav { position: relative; }
#nmApp.nm-beta .nb-pill { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; opacity: 0; border-radius: 22px; background: var(--nm-grad); pointer-events: none; z-index: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 20px -10px var(--nm-glow); will-change: transform, width; }
#nmApp.nm-beta .nm-nav button.on, #nmApp.nm-beta .nm-nav button.on:hover, #nmApp.nm-beta .nm-nav button.on:active, #nmApp.nm-beta .nm-nav button.on:focus {
  background: transparent !important; background-image: none !important; box-shadow: none !important; color: #fff !important; }
#nmApp.nm-beta .nm-nav button { z-index: 1; transition: color .25s; }
#nmApp.nm-beta .nb-h1 .nb-w { display: inline-block; white-space: nowrap; }
#nmApp.nm-beta .nb-h1 .nb-ch { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
#nmApp.nm-beta .nb-h1 .nb-ch i { display: inline-block; font-style: normal; will-change: transform; }
#nmApp.nm-beta .nb-bs { transform-origin: 50% 100%; }
#nmApp.nm-beta .nb-pt i, #nmApp.nm-beta .nb-kpi-bar i, #nmApp.nm-beta .nb-sb u { transform-origin: 0 50%; }
#nmApp.nm-beta .nb-pop-bg { position: fixed; inset: 0; z-index: 59; background: transparent; }
#nmApp.nm-beta .nb-pop { position: fixed; z-index: 60; top: calc(62px + env(safe-area-inset-top)); right: 12px; width: min(268px, calc(100vw - 24px)); padding: 8px; border-radius: 20px; transform-origin: 100% 0;
  background: var(--nm-card); box-shadow: inset 0 1px 0 var(--nm-top-light), inset 0 0 0 1px var(--nm-line), 0 28px 60px -16px rgba(0,0,0,.65); }
#nmApp.nm-beta .nb-pop-h { padding: 10px 12px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nm-mut); }
#nmApp.nm-beta .nb-pop button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 13px; background: transparent; color: var(--nm-text); text-align: left; font-size: 15px; }
#nmApp.nm-beta .nb-pop button b { flex: 1; font-weight: 600; }
#nmApp.nm-beta .nb-pop button svg { color: var(--nm-mut); flex: none; }
#nmApp.nm-beta .nb-pop button:active, #nmApp.nm-beta .nb-pop button:hover { background: var(--nm-card2); }
#nmApp.nm-beta .nb-pop .nb-ck { font-style: normal; font-weight: 800; color: var(--nm-text); }
#nmApp.nm-beta .nb-pop hr { border: 0; border-top: 1px solid var(--nm-line); margin: 6px 4px; }
#nmApp.nm-beta .nb-topseg { margin: 4px 0 12px; }
/* ── Beta: меню-вкладки с подчёркиванием ── */
#nmApp.nm-beta .nb-tabs { display: flex; gap: 24px; background: transparent; border-radius: 0; padding: 0; box-shadow: none; border-bottom: 1px solid var(--nm-line);
  position: relative; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; }
#nmApp.nm-beta .nb-tabs::-webkit-scrollbar { display: none; }
#nmApp.nm-beta .nb-tabs button { flex: 0 0 auto; background: transparent !important; box-shadow: none !important; border-radius: 0; padding: 12px 0 13px; font-weight: 700; font-size: 15.5px;
  color: var(--nm-mut) !important; transition: color .25s; }
#nmApp.nm-beta .nb-tabs button.on { color: var(--nm-text) !important; }
#nmApp.nm-beta .nb-tabs button small { display: inline-block; margin-left: 7px; min-width: 22px; padding: 2px 7px; border-radius: 99px; background: rgba(240,85,47,.2); color: var(--nm-acc2); font-weight: 700; font-size: 11.5px; text-align: center; }
#nmApp.nm-beta .nb-line { position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; border-radius: 2px; background: var(--nm-grad); pointer-events: none; transform-origin: 0 50%; }#nmApp.nm-beta .nb-line { transition: left .5s cubic-bezier(.34,1.3,.64,1), width .5s cubic-bezier(.34,1.3,.64,1); }
#nmApp.nm-beta .nb-tabs.nm-range-seg, #nmApp.nm-beta .nb-tabs.nm-usr-tabs, #nmApp.nm-beta .nb-tabs.nm-posmode { display: flex; }
#nmApp.nm-beta .nb-statseg { margin: 12px 0 0; }
#nmApp.nm-beta .nb-statv { padding: 14px 0 2px; }
#nmApp.nm-beta .nb-statv b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
#nmApp.nm-beta .nb-statv small { color: var(--nm-mut); font-size: 13px; }

/* ── «Вся сеть»: удобнее на телефоне — период закреплён сверху, клубы листаются карточками, Beta-вид ── */
.nd-m .nd-chips { position: sticky; top: 0; z-index: 4; padding: 8px 0 10px; margin-bottom: 8px; background: var(--nm-bg, #0b0d14); }
.nd-m .nd-row2 { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px 12px; padding: 0 14px 4px; scrollbar-width: none; }
.nd-m .nd-row2::-webkit-scrollbar { display: none; }
.nd-m .nd-row2 > .nd-club { flex: 0 0 86%; scroll-snap-align: center; margin-bottom: 0; }
.nd-m .nd-row2 > .nd-club:only-child { flex-basis: 100%; }
.nd-m .nd-kv { font-size: 14px; gap: 6px 12px; }
.nd-m .nd-big { font-size: 28px; }
#nmApp.nm-beta .nd-m .nd-chips { display: flex; gap: 22px; border-bottom: 1px solid var(--nm-line); background: var(--nm-bg); padding: 4px 0 0; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
#nmApp.nm-beta .nd-m .nd-chip { flex: 0 0 auto; height: auto; padding: 12px 0 13px; border: 0; border-radius: 0; background: transparent; color: var(--nm-mut); font: inherit; font-weight: 700; font-size: 15.5px; box-shadow: inset 0 -2px 0 transparent; transition: color .25s, box-shadow .25s; }
#nmApp.nm-beta .nd-m .nd-chip.on { background: transparent; color: var(--nm-text); box-shadow: inset 0 -2px 0 var(--nm-acc); }
#nmApp.nm-beta .nd-m .nd-card { background: var(--nm-card); border: 0; border-radius: 20px; padding: 16px 18px;
  box-shadow: inset 0 1px 0 var(--nm-top-light), inset 0 0 0 1px var(--nm-line), var(--nm-shadow); }
#nmApp.nm-beta .nd-m .nd-lab { opacity: 1; color: var(--nm-mut); font-weight: 600; }
#nmApp.nm-beta .nd-m .nd-big { font-weight: 800; letter-spacing: -.02em; }
#nmApp.nm-beta .nd-m .nd-d.up { color: var(--nm-good); }
#nmApp.nm-beta .nd-m .nd-d.dn { color: var(--nm-bad); }
#nmApp.nm-beta .nd-m .nd-club h4 { font-size: 16px; font-weight: 800; }
#nmApp.nm-beta .nd-m .nd-table td:first-child, #nmApp.nm-beta .nd-m .nd-table th:first-child { background: var(--nm-card); }
.nm-res-day{margin:14px 2px 6px;font-size:13px;font-weight:600;opacity:.7}
.nm-res-day:first-child{margin-top:4px}
#nmApp .nm-pc-bd.nm-pc-bd2 { right: auto; left: -9%; background: #f59e0b; }
#nmApp .nm-rv { display: flex; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--nm-line, rgba(255,255,255,.08)); }
#nmApp .nm-rv-t { flex: 0 0 86px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#nmApp .nm-rv-b { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
#nmApp .nm-rv-b span { margin-left: 6px; opacity: .6; }
#nmApp .nm-rv-b small { display: block; opacity: .55; font-size: 11px; }
#nmApp .nm-rv-pc { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
#nmApp .nm-rv-pc i { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: rgba(245,158,11,.16); color: #f59e0b; }
#nmApp .nm-resbox { display: block; padding: 0 2px 16px; }
#nmApp .nm-rv { align-items: center; }
#nmApp .nm-rv-b { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#nmApp .nm-rv-w { min-width: 0; }
#nmApp .nm-rv-w b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nmApp .nm-rv-w span { margin-left: 0; display: block; font-size: 11px; }
#nmApp .nm-rv-pc { margin-top: 0; justify-content: flex-end; max-width: 60%; flex: 0 1 auto; }
