/* Оформление «белый лист» (26.09.2026): почти белый фон, тонкие линии; действия и ссылки — графитово-синие,
   красный Прабо — только логотип, тонкая метка активного пункта и тревоги; подсветки серые, не розовые; шапка полупрозрачная. */
:root { --knob-bg:#eef3f9; --knob-line:#d3deea; --bg:#fafbfc; --panel:#fff; --line:#e4e7eb; --text:#20262e; --muted:#6b7480; --accent:#2f4a66; --accent2:#3d5d7f; --green:#e2efda; --red:#c0392b; --yellow:#fff2cc;
  --brand:#E2231A; --brand-dark:#c21d15; --sel:#eef0f3; --title:#1f2933; --head:#f4f5f7; --head-text:#3b4450; --hover:#f6f7f9; --link:#2b5a86;
  --ok:#2e7d32; --warn:#8a6d00; --warn-line:#d4a017; --bad-bg:#fbe3e0; }   /* статусы: сдано / внимание / проблема — те же, что на экранах портала */
* { box-sizing: border-box; }
html, body { margin:0; height:100%; font: 14px/1.4 -apple-system, "Segoe UI", Arial, sans-serif; color:var(--text); background:var(--bg); }
.hidden { display:none !important; }
.muted { color:var(--muted); }
a { color:var(--link); }
.err { color:var(--red); min-height:1.2em; margin-top:8px; }
button { font: inherit; cursor:pointer; }
button.primary, .login-box button { background:var(--accent); color:#fff; border:0; border-radius:6px; padding:8px 16px; }
button.primary:hover, .login-box button:hover { background:var(--accent2); }
button.link { background:none; border:0; color:var(--link); padding:4px 8px; }
button.small { padding:3px 8px; border:1px solid var(--line); background:#fff; border-radius:4px; }
h2 > button.small { font-size:13px; font-weight:400; vertical-align:middle; }  /* кнопка в заголовке не берёт его шрифт («Выгрузить в Excel» в карточке позиции) */
input, select, textarea { font: inherit; padding:6px 8px; border:1px solid var(--line); border-radius:5px; background:#fff; }
input:focus, select:focus, textarea:focus { outline:2px solid #c6d0db; }

.login { min-height:100%; display:flex; align-items:center; justify-content:center; padding:16px; }
.login-box { background:var(--panel); padding:32px; border-radius:12px; width:100%; max-width:380px; box-shadow:0 6px 24px rgba(0,0,0,.08); display:flex; flex-direction:column; gap:12px; }
.login-box h1 { margin:0; font-size:22px; color:var(--title); }
.login-brand { display:flex; align-items:center; gap:10px; }
.login-box label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--muted); }

.shell { display:flex; min-height:100vh; }
.nav { width:280px; flex:0 0 280px; background:#fff; color:var(--text); border-right:1px solid var(--line); padding:16px 0; overflow-y:auto; position:sticky; top:0; height:100vh; }
.brand { display:flex; align-items:center; gap:10px; font-size:18px; font-weight:600; color:var(--title); padding:0 20px 14px; text-decoration:none; }
.brand:hover span { text-decoration:underline; text-underline-offset:3px; }
.brand img, .top-brand img { flex:0 0 auto; display:block; }
.top-brand { display:none; padding:2px; border-radius:6px; }
.top-brand:hover { background:var(--bg); }
.shell.nav-off .top-brand { display:block; }
/* разделы меню: читаемые заголовки обычными буквами, пункты с отступом под заголовком, раздел сворачивается щелчком (nav.js) */
.nav-section { font-size:13px; font-weight:600; color:var(--title); padding:10px 16px 5px 20px; }
button.nav-section { display:flex; width:100%; align-items:center; justify-content:space-between; gap:8px; background:none; border:0; border-radius:0; text-align:left; font:inherit; font-size:13px; font-weight:600; color:var(--title); cursor:pointer; }
button.nav-section:hover { background:var(--hover); }
.nav-section .chev { flex:0 0 auto; color:#6b7480; transition:transform .15s; }
button.nav-section:hover .chev { color:var(--title); }
.nav-group { border-top:1px solid #eef0f3; padding:2px 0 4px; }
.nav > div > .nav-group:first-child { border-top:0; }
.nav-group.closed .nav-group-body { display:none; }
.nav-group.closed .chev { transform:rotate(-90deg); }
.nav-item { display:block; padding:5px 16px 5px 29px; border-left:3px solid transparent; color:#3b4450; text-decoration:none; font-size:13px; line-height:1.35; }
.nav-item:hover { background:var(--hover); }
.nav-item.active { background:var(--sel); color:var(--title); border-left-color:var(--brand); font-weight:600; }
.main { flex:1; min-width:0; display:flex; flex-direction:column; }
.top { display:block; padding:0; background:rgba(255,255,255,.78); -webkit-backdrop-filter:saturate(180%) blur(10px); backdrop-filter:saturate(180%) blur(10px); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; }
.top-row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:8px 24px 6px 12px; }
.top-actions { display:flex; gap:8px; }
/* контуры: полоса под шапкой (nav.js) */
.ctabs { display:flex; flex-wrap:wrap; gap:0 2px; padding:0 12px; }   /* не помещаются — переносятся на вторую строку, а не прячутся */
.ctab { padding:7px 12px 8px; border-bottom:2px solid transparent; color:#3b4450; text-decoration:none; white-space:nowrap; font-size:13.5px; }
.ctab:hover { background:var(--hover); color:var(--title); }
.ctab.on { border-bottom-color:var(--brand); color:var(--title); font-weight:600; }
/* функциональные блоки — выделены цветом и отделены от «Моей работы» и «Анализа» */
.ctab-block { color:#1d5c8f; font-weight:600; background:#eef5fb; border-radius:6px 6px 0 0; margin-left:2px; }
.ctab-block:hover { background:#e1edf8; color:#134a75; }
.ctab:not(.ctab-block) + .ctab-block { margin-left:10px; }
.ctab-block.on { border-bottom-color:#1d5c8f; color:#134a75; background:#e1edf8; }
.brand-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-right:12px; }
.brand-row .brand { min-width:0; }
.nav-fold { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; margin-bottom:14px; background:none; border:1px solid transparent; border-radius:6px; padding:0; color:#5d6672; }
.nav-fold:hover { background:var(--hover); color:var(--title); border-color:var(--line); }
/* чат одним нажатием из шапки: плашка — число новых сообщений */
.chat-btn { position:relative; display:inline-flex; align-items:center; text-decoration:none; padding:3px 7px; }
.chat-btn .nav-badge { position:absolute; top:-3px; right:-5px; margin:0; min-width:18px; height:18px; line-height:18px; padding:0 5px; font-size:11px; box-shadow:0 0 0 2px #fff; }
.chat-btn.has-new { color:var(--title); }
.learn-btn { font-size:14px; font-weight:600; color:var(--title); margin-right:6px; }   /* раздел «Обучение» — свой вход в шапке (02.11.2026) */
.learn-btn.on { box-shadow:inset 0 -2px 0 var(--brand); }
.learn-btn .ln-ico { margin-right:4px; } @media (max-width: 1180px) { .learn-btn .ln-txt { display:none; } .learn-btn .ln-ico { margin-right:0; } }   /* шапка не шире экрана на средних ширинах */
/* «Обучение» — своё левое меню вместо меню портала (единый концепт 3.3, 03.11.2026): избранное и недавние портала скрыты, пока открыт раздел */
.shell.ln-mode #navQuick { display:none; }
.ln-navsum { display:none; }
.nav-item.ln-back { font-weight:600; color:var(--link); margin:0 0 6px; padding-left:20px; }
.ln-prog { padding:2px 16px 6px 20px; font-size:12px; color:var(--muted); }
.ln-pbar { height:5px; border-radius:3px; background:var(--sel); margin:2px 0 4px; overflow:hidden; } .ln-pbar i { display:block; height:100%; background:var(--ok); }
.nav-item .ln-mk { float:right; font-size:11px; color:var(--muted); margin-left:6px; } .nav-item .ln-mk.ok { color:var(--ok); font-weight:700; } .nav-item .ln-mk.bad { color:var(--red); font-weight:700; }
.nav-item.ln-sub { padding:3px 16px 3px 44px; font-size:12.5px; color:var(--muted); }
.nav-item.ln-sub.on { color:var(--title); border-left-color:var(--brand); background:var(--hover); }
.ln-link { margin:6px 0 10px; display:flex; flex-direction:column; gap:3px; font-size:13.5px; } .ln-link a.late { color:var(--red); }
@media (max-width: 760px) {
  .ln-navsum { display:block; width:100%; text-align:left; background:none; border:0; padding:8px 16px; font:inherit; font-weight:600; color:var(--title); cursor:pointer; }
  .ln-navsum::after { content:' ▾'; color:var(--muted); } .ln-navbox.open .ln-navsum::after { content:' ▴'; }
  .ln-navbox:not(.open) .ln-navbody { display:none; }
}
.nav-fold.folded svg { transform:rotate(180deg); }
.nav-item.soon { color:#9aa3ae; cursor:default; }
.nav-item.soon:hover { background:none; }
.soon-l { display:inline-block; margin-left:8px; padding:0 6px; border-radius:8px; background:#eef0f3; color:#6b7480; font-size:10px; font-weight:600; vertical-align:middle; }
.contour-card a { display:block; padding:4px 0 0; font-weight:500; }
.contour-card .help { margin:1px 0 6px; }
.soon-row { color:#8b95a2; padding:4px 0; }
.top-actions button { white-space:nowrap; }
/* навигация: скрываемое меню, поиск по порталу, избранное (nav.js) */
.top-left, .top-right { display:flex; align-items:center; gap:10px; min-width:0; }
#userInfo { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:42vw; font-size:13px; }
.icon-btn { background:none; border:1px solid transparent; border-radius:6px; padding:2px 8px; font-size:18px; line-height:1.4; color:#3b4450; }
.icon-btn:hover { background:var(--bg); border-color:var(--line); }
.fav-btn.on { color:#d49b00; }
.search-btn { display:flex; align-items:center; justify-content:space-between; gap:12px; width:320px; max-width:40vw; padding:6px 10px; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--muted); font-size:13px; text-align:left; }
.search-btn:hover { border-color:#c3c9d1; color:var(--text); }
.search-btn span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
kbd { border:1px solid var(--line); border-bottom-width:2px; border-radius:4px; padding:0 5px; font-size:11px; background:#fff; color:var(--muted); font-family:inherit; white-space:nowrap; }
.shell.nav-off .nav { display:none; }
.nav-section.nav-fav { color:#9a6b00; }
.pal-back { position:fixed; inset:0; background:rgba(20,35,50,.35); z-index:70; display:flex; justify-content:center; align-items:flex-start; padding-top:10vh; }
.pal { width:min(640px, 92vw); background:#fff; border-radius:10px; box-shadow:0 12px 40px rgba(0,0,0,.25); overflow:hidden; }
.pal input { width:100%; box-sizing:border-box; border:0; border-bottom:1px solid var(--line); padding:14px 16px; font-size:16px; outline:none; }
.pal-list { max-height:55vh; overflow-y:auto; }
.pal-group { font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); padding:10px 16px 4px; }
.pal-item { display:flex; align-items:center; gap:10px; padding:7px 16px; cursor:pointer; }
.pal-item:hover { background:var(--bg); }
.pal-item.sel { background:#f1f3f5; box-shadow:inset 3px 0 0 var(--brand); }
.pal-item .t { flex:1; min-width:0; }
.pal-item .s { font-size:12px; color:var(--muted); }
.pal-item .star { background:none; border:0; font-size:17px; color:#b8c2cc; padding:0 4px; }
.pal-item .star:hover, .pal-item .star.on { color:#d49b00; }
.pal-empty { padding:14px 16px; color:var(--muted); font-size:13px; }
.pal-foot { padding:6px 16px; font-size:11px; color:var(--muted); border-top:1px solid var(--line); background:var(--bg); }
.pal mark { background:var(--yellow); color:inherit; padding:0; }
.quick-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:14px; }
.quick-grid .card { margin:0; }
.quick-list a { display:block; padding:3px 0; }
#page { padding:20px 24px; }
h2 { margin:0 0 6px; font-size:20px; color:var(--title); }
.sub { color:var(--muted); margin-bottom:14px; }

.params { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; background:var(--panel); padding:12px 16px; border:1px solid var(--line); border-radius:8px; margin-bottom:14px; }
.params label { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted); }
.params input[type=text] { min-width:220px; }
.params select { min-width:160px; max-width:320px; }
.ms { position:relative; }
.ms-btn { min-width:180px; text-align:left; padding:6px 8px; border:1px solid var(--line); border-radius:5px; background:#fff; color:var(--text); }
.ms-btn.on { background:var(--green); font-weight:600; }
.ms[data-name=measures] .ms-btn.on { background:#fff; }   /* меры выбраны всегда — зелёным только заданные отборы, чтобы цвет не спорил с главной ручкой «Вид» */
.ms-panel { position:absolute; top:100%; left:0; z-index:20; background:#fff; border:1px solid var(--line); border-radius:6px; box-shadow:0 8px 24px rgba(0,0,0,.12); min-width:320px; max-width:520px; padding:8px; margin-top:4px; }
.ms-search { width:100%; margin-bottom:6px; }
.ms-list { max-height:260px; overflow:auto; }
.params .ms-item, .ms-panel .ms-item { display:flex; flex-direction:row; align-items:center; gap:6px; padding:3px 4px; font-size:13px; color:var(--text); cursor:pointer; white-space:nowrap; }   /* и вне формы параметров — отборы «Размещения в пошив» (28.10.2026: пункты шли в строку) */
.ms-item input { margin:0; flex:none; }
.ms-item:hover { background:var(--hover); }
.ms-actions { display:flex; justify-content:space-between; gap:8px; margin-top:6px; }
.params .actions { display:flex; gap:8px; }
.summary { display:flex; gap:16px; align-items:center; margin:8px 0; color:var(--muted); font-size:13px; flex-wrap:wrap; }
.table-wrap { overflow:auto; background:var(--panel); border:1px solid var(--line); border-radius:8px; max-height:72vh; }
table.grid { border-collapse:separate; border-spacing:0; width:max-content; min-width:100%; font-size:13px; }
table.grid th { position:sticky; top:0; background:var(--head); color:var(--head-text); font-weight:600; text-align:left; padding:7px 10px; white-space:nowrap; cursor:pointer; user-select:none; border-right:1px solid #e6e8ec; }
table.grid th.num { text-align:right; }
table.grid th .arrow { opacity:.7; font-size:11px; margin-left:4px; }
table.grid td { padding:5px 10px; border-bottom:1px solid #edf0f4; border-right:1px solid #f1f3f6; white-space:nowrap; max-width:420px; overflow:hidden; text-overflow:ellipsis; }
table.grid td.num { text-align:right; font-variant-numeric:tabular-nums; }
table.grid td.neg { color:var(--red); }
table.grid tr:hover td { background:#f8f9fb; }
table.grid td.edit { background:var(--green); cursor:pointer; }
table.grid td.edit select, table.grid td.edit input { width:100%; }
table.grid tr.total td { font-weight:600; background:#f1f3f5; position:sticky; bottom:0; }
.chart { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:10px 16px; margin-bottom:14px; overflow-x:auto; }
.chart svg { display:block; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:14px 16px; margin-bottom:14px; }
.card h3 { margin:0 0 8px; font-size:15px; color:var(--title); }
.badge { display:inline-block; padding:1px 7px; border-radius:10px; background:#eef0f3; font-size:12px; margin-right:4px; }
.modal { position:fixed; inset:0; background:rgba(0,0,0,.35); display:flex; align-items:center; justify-content:center; z-index:50; padding:16px; }
.modal-box { background:#fff; border-radius:10px; padding:20px 24px; width:100%; max-width:520px; max-height:90vh; overflow:auto; }
.modal-box h3 { margin:0 0 12px; }
.modal-box label { display:flex; flex-direction:column; gap:3px; margin-bottom:10px; font-size:13px; color:var(--muted); }
.modal-box .row { display:flex; gap:10px; justify-content:flex-end; margin-top:12px; }
.pill { padding:2px 8px; border-radius:10px; font-size:12px; }
.pill.new { background:#eef0f3; } .pill.work { background:var(--yellow); } .pill.deal { background:var(--green); } .pill.off { background:#f2dede; }
.help { font-size:12px; color:var(--muted); margin-top:6px; }
@media (max-width: 760px) { .shell { flex-direction:column; } .nav { width:auto; flex:none; height:auto; position:static; border-right:0; border-bottom:1px solid var(--line); } #page { padding:12px; } .search-btn span, #userInfo { display:none; } .search-btn { width:auto; } .top-row { padding:8px 12px 4px; } }

/* модели */
.tabs { display:flex; gap:4px; margin:0 0 12px; flex-wrap:wrap; }
.tab { padding:7px 14px; border:1px solid var(--line); background:#fff; border-radius:6px 6px 0 0; color:var(--muted); }
.tab.on { background:#fff; color:var(--title); border-color:var(--line); border-bottom:2px solid var(--brand); font-weight:600; }
.kpis { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:10px; margin-bottom:14px; }
.kpi { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:10px 12px; }
.kpi-l { font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; }
.kpi-v { font-size:18px; font-weight:600; margin-top:4px; font-variant-numeric:tabular-nums; }
.kpi-v.neg, .neg { color:var(--red); }
.ok { color:#2e7d32; }
.table-wrap.model { max-height:78vh; }
table.model td.sticky, table.model th.sticky { position:sticky; left:0; background:#fff; z-index:2; min-width:260px; max-width:300px; white-space:normal; }
table.model th.sticky { background:var(--head); z-index:3; }
table.model thead tr.grp th { position:sticky; top:0; z-index:3; text-align:center; font-size:11px; letter-spacing:.04em; }
table.model thead tr:nth-child(2) th { top:28px; }
table.model th.g-fact { background:#e9eef5; } table.model th.g-dec { background:#eff1f4; } table.model th.g-plan { background:#e7f1ea; } table.model th.g-staff { background:#fbf2dd; }
table.model td.b, table.grid td.b { font-weight:600; }
table.grid tr.closed td { color:#9aa4b1; text-decoration:line-through; }
table.grid tr.closed td.edit, table.grid tr.closed td.edit * { text-decoration:none; color:var(--text); }
table.grid td.wrap { white-space:normal; max-width:320px; font-size:12px; }
table.grid td.edit input, table.grid td.edit select { padding:3px 5px; font-size:12px; }
table.grid td.edit input { width:64px; text-align:right; }
table.grid tr.hdr td { background:var(--head); font-weight:600; color:var(--title); }
table.grid tr.res td { background:#f7f8fa; font-weight:600; }
table.grid tr.note td { color:var(--muted); font-size:12px; }
table.cvp td.lbl { min-width:320px; white-space:normal; }
table.cvp td.expl { white-space:normal; min-width:420px; max-width:720px; color:var(--muted); font-size:12px; }
.params input.in { text-align:right; }
.views { display:flex; gap:8px; align-items:flex-end; margin-left:auto; }
.views label { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted); }
.card.desc { white-space:pre-line; line-height:1.5; border-left:4px solid #cfd4db; }
table.grid thead tr.frow td { position:sticky; top:31px; background:#fafbfc; padding:3px 6px; border-bottom:2px solid var(--line); z-index:1; }
table.grid thead tr.frow input { width:100%; min-width:70px; padding:3px 6px; font-size:12px; border:1px solid var(--line); border-radius:4px; }
.cols-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:2px 12px; }
.cols-list .ms-item { display:flex; align-items:center; gap:6px; font-size:13px; }
.chart-head { display:flex; gap:12px; align-items:baseline; margin-bottom:4px; }
.chart-head a { margin-left:auto; font-size:12px; } .chart-head a + a { margin-left:12px; }
button.small.on { background:var(--green); border-color:#9dc08b; font-weight:600; }

/* ABC-анализ */
.nav-item.nav-special { font-weight:600; color:var(--title); }
.drill { display:flex; gap:6px; flex-wrap:wrap; width:100%; }
.badge.on { background:var(--green); font-weight:600; } .badge.on a { margin-left:4px; text-decoration:none; color:var(--red); }
.matrix { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.mcell { border:1px solid var(--line); border-radius:8px; padding:8px 10px; cursor:pointer; background:#fafbfd; }
.mcell:hover { box-shadow:0 2px 8px rgba(0,0,0,.08); }
.mc-k { font-weight:700; font-size:16px; } .mc-n { color:var(--muted); font-size:12px; } .mc-v { font-weight:600; margin:2px 0; } .mc-r { font-size:11px; color:var(--muted); line-height:1.3; }
.cell-ax { background:#dff3e3; } .cell-ay { background:#e8f3d8; } .cell-az { background:#fff4d6; } .cell-bx { background:#e3eef9; } .cell-by { background:#eef1f6; } .cell-bz { background:#fbeede; } .cell-cx { background:#f1f1f1; } .cell-cy { background:#f4ecec; } .cell-cz { background:#f6dcdc; }
.pill.cell-ax, .pill.cell-ay, .pill.cell-az, .pill.cell-bx, .pill.cell-by, .pill.cell-bz, .pill.cell-cx, .pill.cell-cy, .pill.cell-cz { padding:1px 8px; border-radius:10px; font-weight:600; }
.segs { display:flex; flex-wrap:wrap; gap:6px; } .badge.seg { cursor:pointer; padding:4px 10px; }
/* справочник номенклатуры */
.nm { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:6px 0; }
.nm-row { display:flex; gap:10px; align-items:center; padding:5px 12px; cursor:pointer; border-bottom:1px solid #f1f3f6; }
.nm-row:hover { background:var(--hover); }
.nm-l0 { font-weight:700; background:var(--head); } .nm-l1 { padding-left:32px; font-weight:600; } .nm-l2 { padding-left:56px; }
.nm-tgl { width:14px; color:var(--muted); cursor:pointer; } .nm-name { flex:1; } .nm-n { color:var(--muted); font-size:12px; width:90px; text-align:right; } .nm-v { width:130px; text-align:right; font-variant-numeric:tabular-nums; }
table.nm-items { margin:0 0 6px 70px; width:calc(100% - 70px); font-size:12px; }
table.nm-items td, table.nm-items th { padding:3px 8px; }
tr.nm-item.ovr td:last-child { background:var(--yellow); }
tr.nm-var td { background:#fbfcfe; }

/* регламенты */
.nav-section.nav-reg { color:#b07d00; }
.nav-item.nav-hot { font-weight:600; background:#fffaeb; border-left-color:#f0b429; }
.nav-item .hot { display:inline-block; margin-left:8px; padding:0 6px; border-radius:8px; background:#fff1c2; color:#7a5a00; font-size:10px; font-weight:700; text-transform:uppercase; vertical-align:middle; }
.card.hot-card { border-left:4px solid #ffd166; background:#fffbea; }
.doc-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; }
.doc-head .actions { display:flex; gap:8px; align-items:center; }
.doc-layout { display:flex; gap:20px; align-items:flex-start; }
.doc-toc { position:sticky; top:calc(var(--top-h, 0px) + 12px); width:260px; flex:0 0 260px; background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:8px 0; max-height:88vh; overflow:auto; }
.doc-toc .nav-section { padding:6px 14px; }
.doc-toc a { display:block; padding:4px 14px; font-size:13px; color:var(--text); text-decoration:none; }
.doc-toc a.toc-l2 { padding-left:24px; font-size:12px; color:var(--muted); }
.doc-toc a:hover { background:var(--hover); }
.doc-body { flex:1; min-width:0; background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:20px 28px; line-height:1.55; font-size:14.5px; max-width:1100px; }
.doc-body h2 { font-size:22px; margin:6px 0 14px; }
.doc-body h3 { font-size:17px; margin:26px 0 8px; color:var(--title); padding-top:8px; border-top:1px solid var(--line); }
.doc-body h4 { font-size:15px; margin:16px 0 6px; }
.doc-body p { margin:0 0 10px; }
.doc-body ul, .doc-body ol { margin:0 0 10px 22px; padding:0; }
.doc-body li { margin:2px 0; }
.doc-body table.grid.doc { width:100%; font-size:13px; }
.doc-body table.grid.doc td { white-space:normal; max-width:none; }
.doc-body pre { background:#f4f6f9; padding:10px; border-radius:6px; overflow:auto; font-size:12px; }
.doc-body .tasks label.task { display:block; padding:2px 0; }
.doc-body.small { font-size:13px; padding:12px; }
.editor-layout { display:flex; gap:16px; }
.editor-layout textarea { flex:1; min-height:75vh; font: 13px/1.5 Menlo, Consolas, monospace; padding:12px; border:1px solid var(--line); border-radius:8px; }
.editor-layout .preview { flex:1; overflow:auto; max-height:75vh; }
@media print { .nav, .top, .doc-head .actions, .doc-toc { display:none !important; } .doc-body { border:0; padding:0; max-width:none; } #page { padding:0; } }
@media (max-width: 900px) { .doc-layout { flex-direction:column; } .doc-toc { position:static; width:auto; } .editor-layout { flex-direction:column; } }
.card.mission { background:#fff; color:var(--text); border:1px solid var(--line); border-left:4px solid var(--brand); }
.card.mission .mission-l { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--brand-dark); margin-bottom:6px; }
.card.mission .mission-t { font-size:16px; line-height:1.5; }
.card.mission .help { color:var(--muted); margin-top:8px; } .card.mission a { color:var(--link); }
.pill.g1 { background:#eceff3; } .pill.g2 { background:#dbe7f5; } .pill.g3 { background:#e2efda; } .pill.g4 { background:#fff2cc; } .pill.g5 { background:#ffd166; }
tr.muted td { color:#9aa4b1; }
/* куб продаж */
table.cube th.cmp, table.cube td.cmp { font-size:11px; color:var(--muted); border-right:1px solid #e3e8ee; padding-left:4px; }
table.cube th.cmp { color:var(--muted); }
table.cube td.cmp.neg { color:var(--red); }
table.cube th.tot { background:#e9ecf0; }
table.cube tr.subtotal td { background:#f7f8fa; font-weight:600; color:var(--title); }
table.cube thead th { white-space:normal; vertical-align:bottom; }
table.cube thead th[data-ck] { cursor:pointer; } table.cube thead th[data-ck]:hover { background:#e3e9f0; } table.cube .cb-sort { margin-left:4px; font-size:10px; color:var(--title); }
table.cube tr.grp td { font-weight:600; color:var(--title); background:#f7f8fa; }
table.cube tr.grp.lv0 td, table.cube tr.grp.lv0 td.sticky { background:#eef1f5; }
table.cube tr.grp.lv1 td.sticky { background:#f7f8fa; }
table.cube .cb-tog { display:inline-block; width:18px; text-align:center; color:var(--muted); text-decoration:none; border:0; font-size:13px; }
table.cube .cb-tog:hover { color:var(--accent); }
table.cube tr.grp td a.cb-drill { color:var(--title); }
table.cube td.sticky, table.cube th.sticky { min-width:180px; max-width:400px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
table.cube th.sticky { z-index:4; }
table.cube td.sticky.last, table.cube th.sticky.last { border-right:2px solid #c9d3de; }
table.cube tr.subtotal td.sticky { background:#f7f8fa; }
table.cube tr.total td.sticky { background:#f1f3f5; z-index:3; }
table.cube tr:hover td.sticky { background:#f8f9fb; }
table.cube td a.cb-drill { color:var(--text); text-decoration:none; border-bottom:1px dotted #9aa4b1; }
table.cube td a.cb-drill:hover { color:var(--accent2); }
table.cube th[data-ck]:hover { background:#e6e9ee; }

.doc-body hr { border:0; border-top:1px solid var(--line); margin:18px 0; }
/* бюджет безубыточности */
table.grid tr.grp td { background:#f3f4f6; font-weight:600; color:var(--title); }
.bar { height:12px; border-radius:3px; }

/* меню: антикризисный раздел выделен */
.nav-section.nav-crisis { color:#a3201a; }

/* ---- чат (по образцу «Разработки» портала БТ): слева ветки, справа переписка ---- */
.nav-badge { display:inline-block; min-width:18px; margin-left:8px; padding:0 6px; border-radius:9px; background:#e74c3c; color:#fff; font-size:11px; font-weight:700; text-align:center; }
.chat { display:flex; height:calc(100vh - var(--top-h, 60px) - 44px); min-height:480px; background:var(--panel); border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.chat.full { position:fixed; inset:0; z-index:40; height:auto; border-radius:0; }
.chat-left { width:340px; flex:0 0 340px; border-right:1px solid var(--line); display:flex; flex-direction:column; min-height:0; }
.chat-head { display:flex; gap:8px; align-items:center; padding:10px 12px; border-bottom:1px solid var(--line); }
.chat-head b, .chat-head select { flex:1; min-width:0; }
.chat-left > input { margin:8px 12px 0; }
.chat-filters { display:flex; flex-wrap:wrap; gap:4px; padding:8px 12px; border-bottom:1px solid var(--line); }
.chat-filters select { font-size:12px; padding:2px 4px; max-width:130px; }
.chip { border:1px solid var(--line); background:#fff; border-radius:12px; padding:2px 10px; font-size:12px; color:var(--text); }
.chip.on { background:#eef2f6; border-color:#b9c6d4; color:var(--accent); font-weight:600; }
.chat-list { flex:1; overflow-y:auto; min-height:0; }
.chat-sec { font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); padding:10px 12px 4px; }
.chat-row { display:block; padding:8px 12px; border-bottom:1px solid #f0f3f6; text-decoration:none; color:var(--text); }
.chat-row:hover { background:var(--hover); }
.chat-row.cur { background:var(--sel); box-shadow:inset 3px 0 0 var(--brand); }
.chat-row.unread .chat-row-title { font-weight:700; }
.chat-row.st-closed, .chat-row.st-archived { opacity:.65; }
.chat-row-top { display:flex; justify-content:space-between; gap:8px; }
.chat-row-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-row-time { font-size:11px; color:var(--muted); white-space:nowrap; }
.chat-row-last { font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:2px; }
.chat-row-meta { font-size:11px; color:#9aa7b6; margin-top:2px; }
.chat-badge { background:#e74c3c; color:#fff; border-radius:9px; font-size:11px; font-weight:700; padding:0 7px; height:18px; line-height:18px; }
.chat-none { padding:16px 12px; }
.chat-more { display:block; width:100%; text-align:left; padding:8px 12px; border-top:1px solid var(--line); }
.chat-asst { border-top:1px solid var(--line); padding:8px 12px; font-size:12px; background:#fafbfd; }
.chat-asst-t { font-weight:600; color:var(--accent); }
.chat-asst-b { display:flex; gap:6px; flex-wrap:wrap; margin:6px 0 4px; }
.chat-right { flex:1; min-width:0; display:flex; flex-direction:column; min-height:0; }
.chat-empty { margin:auto; }
.chat-thead { padding:10px 16px; border-bottom:1px solid var(--line); }
.chat-title { font-size:17px; font-weight:600; color:var(--title); }
.chat-tmeta { font-size:12px; color:var(--muted); margin-top:3px; }
.chat-tmeta select { font-size:12px; padding:1px 4px; }
.chat-tact { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin-top:8px; }
.chat-state { font-size:12px; padding:2px 8px; border-radius:10px; background:var(--green); }
.chat-state.st-closed { background:#eceff3; } .chat-state.st-archived { background:var(--yellow); }
button.small.danger { color:var(--red); border-color:#f0c6c1; }
.chat-msgs { flex:1; overflow-y:auto; padding:12px 16px; background:#fafbfc; min-height:0; }
.chat-day { text-align:center; margin:12px 0 6px; } .chat-day span { font-size:11px; color:var(--muted); background:#eaeef3; border-radius:10px; padding:2px 10px; }
.chat-msg { background:#fff; border:1px solid var(--line); border-radius:10px; padding:8px 12px; margin:6px 0; max-width:880px; }
.chat-msg.mine { border-color:#d9dee5; background:#f6f8fa; margin-left:auto; }
.chat-msg.asst { border-left:3px solid #ffd166; }
.chat-msg.hl { outline:2px solid #ffd166; }
.chat-msg-h { font-size:12px; display:flex; gap:6px; align-items:baseline; flex-wrap:wrap; }
.chat-msg-a { margin-left:auto; opacity:.55; } .chat-msg:hover .chat-msg-a { opacity:1; }
.chat-msg-a .link { font-size:12px; padding:0 4px; }
.chat-msg-b { white-space:pre-wrap; word-wrap:break-word; margin-top:4px; line-height:1.45; }
.chat-msg-b pre { background:#f5f6f8; color:#20262e; border:1px solid var(--line); padding:8px 10px; border-radius:6px; overflow-x:auto; white-space:pre; font-size:12px; margin:4px 0; }
.chat-msg-b code { background:#eef2f6; padding:0 4px; border-radius:4px; font-size:12px; }
.chat-msg-b textarea { width:100%; }
.chat-pic img { max-width:260px; max-height:170px; border-radius:8px; border:1px solid var(--line); margin:6px 8px 0 0; vertical-align:top; background:#f6f9f8; }
.chat-service { text-align:center; font-size:12px; color:var(--muted); margin:6px 0; }
.chat-compose { border-bottom:1px solid var(--line); padding:10px 16px; background:#fff; }
.chat-compose textarea { width:100%; resize:vertical; min-height:6em; }
.chat-compose-b { display:flex; gap:8px; align-items:center; margin-top:6px; }
.chat-compose-b .err { flex:1; margin:0; }
.chat-attach { cursor:pointer; color:var(--link); }
.chat-pics:empty { display:none; }
.chat-thumb { display:inline-block; position:relative; margin:4px 8px 4px 0; }
.chat-thumb img { height:64px; border-radius:6px; border:1px solid var(--line); }
.chat-thumb button { position:absolute; top:-6px; right:-6px; width:20px; height:20px; border-radius:50%; border:1px solid var(--line); background:#fff; padding:0; line-height:1; }
.chat-mb { max-height:50vh; overflow-y:auto; border:1px solid var(--line); border-radius:6px; padding:4px 8px; margin-bottom:6px; }
.modal-box label.chat-mb-i { flex-direction:row; align-items:center; gap:6px; margin:2px 0; color:var(--text); }
@media (max-width: 760px) { .chat { flex-direction:column; height:auto; } .chat-left { width:auto; flex:none; max-height:45vh; } .chat-msgs { max-height:60vh; } }

/* Safari: закреплённые ячейки таблиц в прокручиваемом блоке рисуются отдельным слоем и перекрывали выпадающие списки формы (куб, 24.09.2026).
   Форма параметров — свой слой над содержимым, таблица — изолированный слой ниже, список — собственный слой отрисовки. */
.params { position:relative; z-index:10; }
.table-wrap { position:relative; z-index:0; isolation:isolate; }
.ms-panel { transform:translateZ(0); }
/* вложения файлов в чате */
.chat-file { display:inline-block; margin:4px 8px 0 0; padding:3px 10px; border:1px solid var(--line); border-radius:14px; background:#f6f9fb; color:var(--link); text-decoration:none; font-size:13px; }
.chat-file:hover { background:var(--hover); }
.chat-thumb-file { padding:6px 26px 6px 10px; border:1px solid var(--line); border-radius:14px; background:#f6f9fb; font-size:12px; }
/* состав данных из 1С */
.table-wrap.onec table.grid td { vertical-align:top; }
.table-wrap.onec table.grid td.wrap { white-space:normal; min-width:180px; max-width:340px; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; }
.table-wrap.onec tr.onec-sec td { background:var(--head); position:sticky; top:31px; z-index:1; }
.table-wrap.onec tr.onec-sec button { margin-left:10px; }
.table-wrap.onec tr.onec-off td { color:var(--muted); }
.table-wrap.onec textarea.onec-cmt { width:100%; min-width:200px; font:inherit; font-size:12px; resize:vertical; }
.pill.rec-need { background:var(--green); } .pill.rec-maybe { background:var(--yellow); } .pill.rec-check { background:#dbe7f5; } .pill.rec-no { background:#eceff3; color:var(--muted); }
.chip.onec-dec { cursor:pointer; } .chip.onec-dec.on.yes { background:#2e7d32; border-color:#2e7d32; color:#fff; } .chip.onec-dec.on.no { background:#8a94a3; border-color:#8a94a3; color:#fff; }
.card.onec-sum { padding:8px 14px; font-size:13px; }
.table-wrap.onec .onec-limit { margin-top:4px; font-size:12px; color:#8a5a00; background:#fff7e0; border-radius:4px; padding:2px 6px; }
/* схемы в документах (блок ```svg) */
.doc-body .doc-svg { margin:10px 0 6px; padding:12px; background:#fbfcfe; border:1px solid var(--line); border-radius:8px; }
.doc-body .doc-svg svg { display:block; width:100%; height:auto; max-width:1000px; margin:0 auto; font-family:-apple-system, "Segoe UI", Arial, sans-serif; }
.doc-body .doc-svg + p em, .doc-body p.caption { color:var(--muted); font-size:13px; }
@media print { .doc-body .doc-svg { break-inside:avoid; } }
/* блоки оформления учебников и документов (pages.js mdLook, 04.11.2026): плашки, карточки, шаги, сравнение, самопроверка, вопрос, тренажёр — цвета темы */
.md-box { border-left:4px solid var(--accent); background:var(--knob-bg); border-radius:0 8px 8px 0; padding:10px 14px; margin:12px 0; }
.md-box > p:last-child, .md-box > ul:last-child, .md-box > ol:last-child { margin-bottom:0; }
.md-box-t { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--accent); margin-bottom:4px; }
.md-warn { border-left-color:var(--warn-line); background:var(--yellow); } .md-warn > .md-box-t { color:var(--warn); }
.md-tip { border-left-color:var(--ok); background:var(--green); } .md-tip > .md-box-t { color:var(--ok); }
.md-ok { background:var(--panel); border:1px solid var(--line); border-left:4px solid var(--accent); } .md-ok > .md-box-t { color:var(--accent); }   /* красный — только логотип, активный пункт и тревоги */
.md-cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:10px; margin:10px 0 14px; }
.md-card { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:10px 12px; }
.md-card-t { font-weight:700; color:var(--title); margin-bottom:3px; } .md-card-x { font-size:13px; color:var(--text); line-height:1.45; }
.md-big { font-size:24px; font-weight:700; color:var(--accent); line-height:1.1; margin-bottom:2px; font-variant-numeric:tabular-nums; }
.md-steps { list-style:none; counter-reset:mds; display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:10px; margin:10px 0 14px !important; padding:0 !important; }
.md-steps li { counter-increment:mds; position:relative; background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:30px 12px 10px; margin:0 !important; }
.md-steps li::before { content:counter(mds); position:absolute; top:8px; left:12px; width:20px; height:20px; border-radius:50%; background:var(--accent); color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.md-compare { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:10px; margin:10px 0 14px; }
.md-col { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:10px 14px; } .md-col:first-child { border-top:3px solid var(--muted); } .md-col:last-child { border-top:3px solid var(--ok); }
.md-col > p:last-child, .md-col > ul:last-child { margin-bottom:0; }
.md-check { border:1px solid var(--line); border-radius:8px; background:var(--panel); padding:8px 6px 4px; margin:14px 0; } .md-check > .md-box-t { padding:0 10px 4px; }
.md-check details { padding:8px 10px; border-top:1px solid var(--line); } .md-check summary { cursor:pointer; font-weight:600; }
.md-check .md-ans { margin-top:6px; color:var(--text); font-size:13.5px; } .md-check .md-ans > p:last-child { margin-bottom:0; }
.md-quiz { border:1px dashed var(--accent); border-radius:8px; padding:10px 14px; margin:12px 0; background:var(--panel); }
.md-quiz-q { font-weight:600; margin-bottom:6px; } .md-quiz label { display:block; padding:3px 0; cursor:pointer; }
.md-quiz.ok { border:1px solid var(--ok); background:var(--green); } .md-quiz.bad { border:1px solid var(--red); background:var(--bad-bg); }
.md-quiz label.right { font-weight:700; color:var(--ok); } .md-quiz-r { margin-top:6px; font-size:13.5px; }
.md-trainer { border:1px solid var(--accent); border-radius:10px; padding:12px 14px; margin:14px 0; background:var(--panel); }
/* наглядность в документах (docviz.js): ```chart, ```flow, ```live, ```calc, сортировка таблиц */
.doc-body .dv-chart, .doc-body .dv-flow, .doc-body .doc-live, .doc-body .doc-calc { margin:10px 0 14px; padding:12px 14px; background:#fbfcfe; border:1px solid var(--line); border-radius:8px; }
.doc-body .dv-chart svg, .doc-body .dv-flow svg { display:block; width:100%; height:auto; max-width:1000px; margin:0 auto; font-family:-apple-system, "Segoe UI", Arial, sans-serif; }
.doc-body .dv-flow svg { max-height:640px; }
.doc-body .dv-title { font-weight:600; font-size:14px; margin-bottom:6px; }
.doc-body .dv-chart figcaption { color:var(--muted); font-size:12px; text-align:right; }
.doc-body .dv-legend { display:flex; flex-wrap:wrap; gap:14px; font-size:12px; color:var(--muted); margin-bottom:4px; }
.doc-body .dv-legend i { display:inline-block; width:12px; height:12px; border-radius:2px; margin-right:5px; vertical-align:-1px; }
.doc-body .doc-live-h, .doc-body .dv-calc-h { font-size:13px; color:var(--muted); margin-bottom:8px; }
.doc-body .dv-calc-h { color:var(--text); font-weight:600; }
.doc-body .doc-calc .params { margin-bottom:10px; }
.doc-body .doc-calc .params input[type=number] { width:150px; }
.doc-body .doc-calc label.chk { flex-direction:row; align-items:center; gap:6px; color:var(--text); }
.doc-body .dv-res { margin:6px 0; font-size:14px; }
.doc-body .dv-res.pos { color:#1e7b4f; } .doc-body .dv-res.neg { color:var(--red); }
.doc-body th.dv-sort { cursor:pointer; user-select:none; }
.doc-body th.dv-sort::after { content:' ↕'; color:#b5bcc6; font-weight:400; }
.doc-body th.dv-asc::after { content:' ↑'; color:var(--accent); } .doc-body th.dv-desc::after { content:' ↓'; color:var(--accent); }
.doc-body .dv-filter input { width:min(360px, 100%); margin:4px 0 6px; }
@media print { .doc-body .dv-chart, .doc-body .dv-flow, .doc-body .doc-live { break-inside:avoid; } .doc-body .dv-filter, .doc-body .doc-calc .params { display:none; } .doc-body th.dv-sort::after { content:''; } }
/* документ портала: проект, статус, «что изменилось», Word (пункт 1.15) */
a.button.small { display:inline-block; padding:3px 8px; border:1px solid var(--line); background:#fff; border-radius:4px; color:var(--text); text-decoration:none; font-size:inherit; }
a.button.small:hover { border-color:#9cc0db; }
.doc-head .pg-note { margin-top:3px; color:#4b5563; }
.badge.pg-st-0 { background:#fff2cc; color:#7a5a00; } .badge.pg-st-1 { background:#e3ecf7; color:#23466b; } .badge.pg-st-2 { background:#e2efda; color:#2e5b1f; } .badge.pg-st-3 { background:#f1f1f1; color:#8a8f96; }
/* версии документа (22.10.2026): реализован, заменён; строка версии; сравнение редакций */
.badge.pg-st-4 { background:#dff1ee; color:#1f7a6e; } .badge.pg-st-5 { background:#f6e3e1; color:#8a2a20; }
.doc-head .pg-ver { margin-top:2px; } .doc-head .pg-replaced { margin-top:4px; padding:4px 8px; background:#f6e3e1; border-radius:6px; color:#8a2a20; display:inline-block; }
.modal-box.pg-diff-box { width:min(1000px, 96vw); max-width:96vw; }
.pg-diff { max-height:65vh; overflow:auto; border:1px solid var(--line); border-radius:6px; font:12.5px/1.45 ui-monospace, Menlo, monospace; margin:8px 0; }
.pg-dl { white-space:pre-wrap; word-break:break-word; padding:1px 8px; } .pg-dl-add { background:#e6f5ec; color:#1d5a35; } .pg-dl-del { background:#fbe9e7; color:#8a2a20; }
.pg-dl-gap { color:var(--muted); background:var(--head); text-align:center; } .pg-dl-ctx { color:#59626d; }
.params.pg-meta { margin:0 0 10px; } .params.pg-meta .pg-note-l { flex:1 1 420px; } .params.pg-meta .pg-note-l input { width:100%; }
/* полоса «портал обновлён» */
#verBar { position:fixed; top:0; left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 24px); z-index:100; background:#fff2cc; border:1px solid #e6c200; border-top:0; border-radius:0 0 10px 10px; padding:8px 14px; box-shadow:0 4px 14px rgba(0,0,0,.12); font-size:14px; display:flex; gap:10px; align-items:center; }
#verBar span { flex:1 1 auto; min-width:0; } #verBar button { flex:none; }
@media print { #verBar { display:none; } }
.modal-box.onec-wide { max-width:1000px; }
/* библиотека (library.js): статус документа цветом, доступ по должностям в карточке */
.modal-box.lib-wide { max-width:720px; }
.lib-bar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:12px; }
.lib-bar input[type=search] { flex:1 1 260px; min-width:0; }
.lib-bar select { max-width:100%; }
.lib-chk { display:inline-flex !important; flex-direction:row !important; align-items:center; gap:5px; color:var(--text) !important; margin:0 !important; font-size:13px; }
.lib-chk label { display:inline !important; margin:0 !important; color:var(--text) !important; font-size:13px; cursor:pointer; }
.lib-days { width:58px !important; padding:3px 6px !important; }
.lib-found { margin:-4px 0 10px; }
/* адресная книга */
table.abk td.abk-ph { white-space:nowrap; font-variant-numeric:tabular-nums; }
table.abk td a { word-break:break-all; }
/* телефон: карточка на человека, без прокрутки вбок */
@media (max-width: 760px) {
  table.abk thead { display:none; }
  table.abk, table.abk tbody, table.abk tr, table.abk td { display:block; width:100%; }
  table.abk tr { padding:8px 2px; border-bottom:1px solid var(--line); }
  table.abk td { border:0 !important; padding:1px 0 !important; }
  table.abk td:empty, table.abk td.abk-e { display:none; }
  table.abk td[data-l]::before { content:attr(data-l) ': '; color:var(--muted); font-size:12px; }
  table.abk td:first-child { font-size:15px; }
  table.abk tr.abk-unit { padding:6px 4px; background:var(--head); border-radius:4px; }
  table.abk { table-layout:auto; }
}
.warn-note { border-left:4px solid #d4a017; color:#8a6d00; }
details.abk-br > summary { cursor:pointer; list-style:revert; } details.abk-br > summary h3 { display:inline; }
table.abk tr.abk-unit td { background:var(--head); color:var(--head-text); font-weight:600; font-size:12.5px; padding-top:8px; }
table.abk { table-layout:fixed; } table.abk th:nth-child(1) { width:30%; } table.abk th:nth-child(2) { width:34%; } table.abk th:nth-child(3) { width:12%; }
/* люди и учётки: неработающие — свёрнутым разделом */
details.adm-gone > summary { cursor:pointer; list-style:revert; }
details.adm-gone > summary h3 { display:inline; }
table.grid.lib { width:100%; table-layout:fixed; min-width:600px; }
table.grid.lib col.c-st { width:140px; } table.grid.lib col.c-dt { width:84px; }
table.grid.lib col.c-acc { width:220px; } table.grid.lib col.c-btn { width:92px; }
table.grid.lib.ed { min-width:820px; }
table.grid.lib td { white-space:normal; vertical-align:top; }
table.grid.lib td.lib-acc { max-width:260px; font-size:12px; color:var(--muted); }
.lib-sens { color:#8a5a00; margin-top:3px; }
.lib-apply { color:#3b5a3b; }
tr.lib-arch td { opacity:.55; }
.badge.lib-st { white-space:nowrap; }
.badge.st-law { background:#e3ecf7; color:#23466b; } .badge.st-ok { background:#e2efda; color:#2e5b1f; } .badge.st-work { background:#eaf3e6; color:#3b6a2b; }
.badge.st-draft { background:#fff2cc; color:#7a5a00; } .badge.st-ext { background:#efe9f6; color:#4f3a6e; } .badge.st-data { background:#eef0f3; color:#3b4450; } .badge.st-old { background:#f1f1f1; color:#8a8f96; }
.lib-2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:600px) { .lib-2 { grid-template-columns:1fr; } }
.lib-access { border:1px solid var(--knob-line); background:var(--knob-bg); border-radius:8px; padding:10px 12px; margin-bottom:10px; }
.lib-h { font-weight:600; color:var(--title); margin-bottom:6px; } .lib-h2 { font-size:12px; color:var(--muted); margin:10px 0 4px; }
.lib-roles { display:grid; grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:3px 12px; margin-top:6px; }
.lib-roles.lib-dim { opacity:.4; pointer-events:none; }
.lib-add { display:flex; gap:6px; margin-top:6px; } .lib-add input, .lib-add select { flex:1; min-width:0; }
#lPos .chip, #lUsers .chip { display:inline-block; margin:2px 4px 2px 0; } #lPos .chip a, #lUsers .chip a { text-decoration:none; color:var(--red); margin-left:3px; }
.onec-fl-bar { display:flex; gap:8px; align-items:center; margin:10px 0 8px; } .onec-fl-bar .help { margin-right:auto; }
.table-wrap.onec.onec-fl { max-height:60vh; }
.table-wrap.onec button.onec-fields { display:block; margin-top:4px; font-size:12px; text-align:left; padding:0; }
/* активный пункт меню важнее пометок «новое» и «особый»: красная метка слева */
.nav-item.nav-hot.active, .nav-item.nav-special.active { background:var(--sel); color:var(--title); border-left-color:var(--brand); }
/* презентации в документах (блок ```slides, pages.js) */
.deck-wrap { max-width:1280px; }
.slide-frame { position:relative; width:100%; aspect-ratio:16 / 9; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:#fff; margin:0 0 20px; }
.slide-scale { position:absolute; left:0; top:0; width:1920px; height:1080px; transform-origin:0 0; }
.slide-scale > section { width:1920px; height:1080px; position:relative; overflow:hidden; }
.slide-scale h1, .slide-scale h2, .slide-scale h3, .slide-scale p, .slide-scale ul, .slide-scale ol, .slide-scale table { margin:0; }
.slide-scale ul, .slide-scale ol { padding-left:1.2em; }
.slide-scale table { border-collapse:collapse; }
.slide-scale th, .slide-scale td { padding:0.35em 0.6em; border-bottom:1px solid #E4E1DA; vertical-align:top; }
.slide-no { position:absolute; right:10px; bottom:8px; font-size:11px; color:var(--muted); background:rgba(255,255,255,.85); padding:0 6px; border-radius:6px; }
@media print { .slide-frame { break-inside:avoid; break-after:page; border:0; } }
/* последние правки (pages.js) */
.pill.chg-new { background:#e3f1e6; color:#1f6b35; font-weight:600; } .pill.chg-edit { background:#eef0f3; color:#4a5360; }
.diff { max-height:62vh; overflow:auto; border:1px solid var(--line); border-radius:8px; font:12.5px/1.45 Menlo, Consolas, monospace; margin:10px 0; }
.diff-line { display:flex; gap:8px; padding:1px 10px; white-space:pre-wrap; word-break:break-word; color:#6b7480; }
.diff-m { flex:0 0 12px; font-weight:700; }
.diff-add { background:#e8f5ec; color:#1d2733; } .diff-add .diff-m { color:#1f6b35; }
.diff-del { background:#fdeceb; color:#1d2733; } .diff-del .diff-m { color:var(--red); }
.diff-gap { color:#b0b7c0; background:var(--bg); }
.modal-box a.small { display:inline-block; padding:3px 8px; border:1px solid var(--line); border-radius:4px; text-decoration:none; }
/* страницы анализа: дашборд сверху, виды, сводная (cube.js) */
.cb-dash { margin:0 0 16px; }
.cb-dash-h { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:12px; color:var(--muted); margin:0 0 8px; }
.cb-dash.folded .cb-dash-body { display:none; }
.cb-dash .kpis { grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); }
.kpi.kpi-bad { border-color:#f0c6c1; }
.cb-dash-row { display:grid; grid-template-columns:minmax(0, 0.9fr) minmax(0, 1.6fr) minmax(0, 0.8fr); gap:14px; }
.cb-dash-row table.grid { width:100%; }
.cb-dash-row table.grid td:first-child, .cb-dash-row table.grid th { white-space:normal; }
.cb-dash-row .card { margin:0; }
.cb-dash-row .table-wrap { overflow:visible; }     /* без полосы прокрутки поверх последней строки (таблица блоков на 1–2 px шире) */
.cb-gcol > b { display:block; margin:6px 0 2px; }
.cb-glist { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:3px 10px; align-items:baseline; font-size:13px; }
.cb-glist a { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cb-glist .num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.cb-dash-row table.grid td, .cb-dash-row table.grid th { padding:3px 6px; font-size:12px; }
/* дашборд «Анализа остатков»: полосы состояния запаса и филиалов */
.cb-dash .sk-mx { width:100%; table-layout:fixed; } .cb-dash .sk-mx th:first-child { width:52px; white-space:normal; }
.cb-dash .sk-mx td, .cb-dash .sk-mx th { padding:3px 4px; } .cb-dash .sk-mx td.sk-c { text-align:center; min-width:0; } .cb-dash .sk-mx td.sk-c b { font-size:14px; }
.cb-dash .sk-mx td.sk-c .help { white-space:normal; line-height:1.25; }
.cb-dash-row.sk-drow { grid-template-columns:minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); }
.sk-dbar { display:grid; grid-template-columns:minmax(0, 140px) minmax(0, 1fr) 52px; gap:8px; align-items:center; font-size:12px; margin:0 0 5px; }
.sk-dbar > span, .sk-dbar > a { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sk-dbar > b { text-align:right; font-weight:500; font-variant-numeric:tabular-nums; }
.sk-dtrack { display:flex; height:14px; border-radius:3px; overflow:hidden; background:#eef1f5; }
.sk-dtrack i { display:block; height:100%; cursor:pointer; }
.sk-dleg { display:flex; flex-wrap:wrap; align-items:center; row-gap:2px; }
.sk-dleg span { display:inline-flex; align-items:center; gap:4px; margin-right:10px; min-width:0; }
.sk-dleg i { display:inline-block; width:10px; height:10px; border-radius:2px; }
@media (max-width: 1100px) { .cb-dash-row { grid-template-columns:1fr; } }
.cb-dash .cb-plan { margin-top:14px; }
.cb-dash .cb-plan table.grid { width:100%; }
/* главная ручка сложной страницы — готовые наборы (вид, сценарий, сохранённые условия): выделена цветом, меняется первой; остальное — ручная настройка.
   Один элемент на всех страницах: кубы, формы, ABC, модели (реорганизация, CVP, управление, бюджет, цены, грейды) */
.cb-views select { min-width:360px; max-width:100%; }
@media (max-width: 700px) { .cb-views select { min-width:0; width:100%; } }     /* телефон: список видов по ширине экрана */
.cb-manual { flex-basis:100%; font-size:12px; color:var(--muted); margin:4px 0 -2px; }
.knob { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:flex-end; flex-basis:100%; padding:10px 12px; background:var(--knob-bg); border:1px solid var(--knob-line); border-left:4px solid var(--accent); border-radius:8px; margin-bottom:2px; }
.knob label { display:flex; flex-direction:column; gap:4px; font-size:12px; font-weight:600; color:var(--title); }
.knob select { font-weight:600; border-color:var(--accent); background:#fff; }
.views.knob { margin-left:0; }
.views.knob select { min-width:320px; max-width:100%; }
table.grid.lib td.nowrap { white-space:nowrap; }
/* потенциал отрасли (industry.js) */
.ind-knob { padding:10px 14px; border-radius:8px; margin-bottom:12px; }
.ind-knobs { display:flex; flex-wrap:wrap; gap:10px 16px; align-items:flex-end; }
.ind-knobs label { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted); }
.ind-knobs input { width:150px; } .ind-knobs select { max-width:280px; }
table.grid.ind td { white-space:normal; vertical-align:top; }
table.grid.ind tr.ind-row { cursor:pointer; } table.grid.ind tr.ind-row:hover td { background:var(--hover); }
table.grid.ind tr.ind-kit > td { background:#fafbfc; padding:6px 10px 10px; }
table.grid.ind-kitt { width:100%; font-size:12px; } table.grid.ind-kitt tr.muted td { color:var(--muted); }
table.grid.ind tr.ind-total td { border-top:2px solid var(--line); background:var(--head); }
.ind-prices input { width:110px; }
ul.ind-notes { margin:6px 0 0; padding-left:18px; } ul.ind-notes li { margin:3px 0; }
/* ядро задач (work.js) */
.badge.wk-st { white-space:nowrap; } .wk-new { background:#eef0f3; color:#3b4450; } .wk-work { background:#e3ecf7; color:#23466b; } .wk-done { background:#e2efda; color:#2e5b1f; }
.wk-partial { background:#fff2cc; color:#7a5a00; } .wk-failed { background:#fbe3e0; color:#9b2c1f; } .wk-dropped { background:#f1f1f1; color:#8a8f96; }
.wk-note { font-size:11px; color:var(--muted); margin-top:2px; } .wk-note.wk-ok { color:#2e7d32; }
table.grid.wk td { white-space:normal; vertical-align:top; } table.grid.wk tr.wk-row { cursor:pointer; } table.grid.wk tr.wk-row:hover td { background:var(--hover); }
table.grid.wk tr.wk-sub td:first-child { padding-left:22px; }
table.grid.wk-proj-t { table-layout:fixed; width:100%; min-width:1100px; }
table.grid.wk-proj-t col.c-who { width:150px; } table.grid.wk-proj-t col.c-due { width:86px; } table.grid.wk-proj-t col.c-st { width:150px; } table.grid.wk-proj-t col.c-cm { width:170px; }
td.wk-txt { font-size:12px; color:#3b4450; }
.wk-kpis .wk-kpi { text-align:left; cursor:pointer; font:inherit; } .wk-kpis .wk-kpi.on { outline:2px solid var(--accent); }
.wk-bar { display:flex; flex-wrap:wrap; gap:10px 16px; align-items:flex-end; padding:10px 14px; border-radius:8px; margin-bottom:12px; }
.wk-bar label { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted); }
.wk-views button.on { background:var(--accent); color:#fff; border-color:var(--accent); }
.wk-board { display:grid; grid-template-columns:repeat(6, minmax(190px, 1fr)); gap:10px; overflow-x:auto; padding-bottom:6px; }
.wk-col { background:#f4f5f7; border-radius:8px; padding:8px; min-height:120px; } .wk-col.wk-drop { outline:2px dashed var(--accent); }
.wk-col-h { margin-bottom:8px; }
.wk-card { background:#fff; border:1px solid var(--line); border-radius:7px; padding:8px 9px; margin-bottom:7px; cursor:pointer; font-size:12.5px; }
.wk-card:hover { border-color:#b9c6d4; } .wk-card.wk-od { border-left:3px solid var(--red); } .wk-card-t { font-weight:600; margin-bottom:3px; }
.wk-meta { font-size:13px; margin-bottom:8px; } .wk-meta > div { margin:2px 0; }
.wk-body { background:#fafbfc; border:1px solid var(--line); border-radius:6px; padding:8px 10px; font-size:13px; margin-bottom:8px; }
/* текст задачи с форматированием — hbText в hub.js: «Штаб», карточка задачи на «Работе» (21.10.2026) */
.hb-tx { line-height:1.45; } .hb-tx p { margin:2px 0 6px; } .hb-tx .hb-tx-h { font-weight:600; margin:8px 0 2px; }
.hb-tx ol, .hb-tx ul { margin:2px 0 8px; padding-left:24px; } .hb-tx li { margin:3px 0; } .hb-tx li ul { margin:2px 0 3px; padding-left:18px; } .hb-tx li > div { margin-top:2px; }
.hb-tx > :last-child { margin-bottom:0; }
.wk-box { font-size:13px; margin-bottom:8px; }
.wk-proj { margin:4px 0; }


/* «Новое на портале» (news.js) и живые задачи в документах (work.js, блок ```tasks) — 28.09.2026 */
.home-top { grid-template-columns:repeat(auto-fit, minmax(340px, 1fr)); }
.home-top .nw-card { grid-column:span 2; }
@media (max-width:760px) { .home-top .nw-card { grid-column:auto; } }
.nw-item { display:grid; grid-template-columns:128px 1fr auto; gap:4px 10px; align-items:start; padding:7px 0; border-bottom:1px solid var(--line); }
.nw-item:last-of-type { border-bottom:0; }
.nw-item .help { margin-top:2px; }
.nw-when { font-size:12px; text-align:right; white-space:nowrap; }
.nw-k { justify-self:start; white-space:nowrap; font-size:11px; }
.nw-feature { background:#e2efda; color:#2e5b1f; } .nw-doc_new { background:#e3ecf7; color:#23466b; } .nw-doc_edit { background:#eef0f3; color:#3b4450; }
.nw-lib { background:#fff2cc; color:#7a5a00; } .nw-project { background:#efe4f7; color:#5b2e7a; }
.nw-dot { display:inline-block; font-size:11px; font-weight:600; color:#fff; background:var(--accent); border-radius:9px; padding:1px 7px; vertical-align:middle; }
.nw-fresh { background:linear-gradient(90deg, #f3f8ff, transparent 60%); }
.nw-docs summary { cursor:pointer; font-size:12px; color:var(--accent); margin-top:3px; } .nw-docs div { font-size:12.5px; padding:1px 0; }
@media (max-width:640px) { .nw-item { grid-template-columns:1fr; } .nw-when { text-align:left; } }
.wk-home .kpis { margin:4px 0 6px; }
.doc-tasks { border:1px solid var(--line); border-radius:10px; padding:12px 14px; margin:10px 0 18px; background:#fbfcfd; }
.doc-tasks-h { font-size:13px; color:var(--muted); margin-bottom:8px; }
.doc-tasks h4 { margin:14px 0 6px; }
table.grid.doc-tasks-t { table-layout:fixed; width:100%; min-width:760px; }
table.grid.doc-tasks-t col.c-who { width:140px; } table.grid.doc-tasks-t col.c-due { width:84px; } table.grid.doc-tasks-t col.c-st { width:150px; } table.grid.doc-tasks-t col.c-cm { width:200px; }

/* папка заданий по клиентам (wkOpenGroup) */
.wg-bar { display:flex; gap:12px; align-items:center; margin:8px 0; } .wg-bar input[type=search] { min-width:240px; }
.wg-wrap { max-height:55vh; overflow:auto; }
table.grid.wg { table-layout:fixed; width:100%; min-width:760px; }
table.grid.wg col.c-st { width:170px; } table.grid.wg col.c-cm { width:260px; } table.grid.wg col.c-btn { width:100px; }
table.grid.wg textarea { width:100%; font-size:12.5px; } table.grid.wg select { width:100%; }

/* параметры ценовой политики (prices.js) */
.ps-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(420px, 1fr)); gap:14px; } .ps-grid .card { margin:0; }
table.grid.ps-t td { white-space:normal; vertical-align:middle; } table.grid.ps-t input.ps-in { text-align:right; }
.ps-recalc { display:flex; gap:14px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
@media (max-width:640px) { .ps-grid { grid-template-columns:1fr; } }

td.chg-sec { white-space:normal; max-width:420px; font-size:12.5px; color:var(--muted); }

/* нормативная численность продавцов (headcount.js) */
.hc-params { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:10px 18px; margin-bottom:8px; }
.hc-group label { display:flex; justify-content:space-between; gap:8px; align-items:center; font-size:12.5px; margin:3px 0; }
.hc-group input { text-align:right; }
.hc-params > .hc-group { min-width:0; }   /* колонка сжимается: длинный список («Откуда цель» на «Клиентской базе») не наезжает на соседнюю (10.11.2026) */
.hc-group select { min-width:0; max-width:100%; flex:1 1 auto; text-overflow:ellipsis; }
table.grid.hc-t td { white-space:normal; } table.grid.hc-t tr.total td { border-top:2px solid var(--line); }

/* руководители филиалов: решение (branch_heads.js) */
.bh-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:10px 18px; margin-bottom:10px; font-size:13px; }
.bh-form { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:8px 14px; }
.bh-form label, label.bh-wide { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted); }
label.bh-wide { margin-top:8px; } label.bh-wide textarea { width:100%; }
.bh-card .primary { margin-top:8px; }

/* прошлый период: старая и новая мотивация (motcmp.js) */
.mc-bar { display:flex; flex-wrap:wrap; gap:10px 18px; align-items:flex-end; } .mc-bar label { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted); }
.mc-bar .help { flex-basis:100%; }
table.grid.mc-t tr.mc-row { cursor:pointer; } table.grid.mc-t tr.mc-row:hover td { background:var(--hover); } table.grid.mc-t tr.total td { border-top:2px solid var(--line); }
.mc-growth { margin:6px 0 0 18px; line-height:1.55; }

/* модель плана продаж и численности (salesplan.js) */
.spl-bar { display:flex; flex-wrap:wrap; gap:10px 16px; align-items:flex-end; } .spl-bar label { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted); }
table.grid.spl-t td { white-space:normal; } table.grid.spl-t tr.spl-u { cursor:pointer; } table.grid.spl-t tr.spl-u.on td { background:var(--sel); } table.grid.spl-t tr.spl-u:hover td { background:var(--hover); }
table.grid.spl-t tr.total td { border-top:2px solid var(--line); }
.spl-actions { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:flex-end; margin-bottom:10px; } .spl-actions label { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted); }
.spl-sep { width:1px; height:34px; background:var(--line); margin:0 4px; } .spl-list { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.ps-grid .ps-card { min-width:0; } .ps-grid .ps-wide { grid-column:1 / -1; }
table.grid.ps-t th { white-space:normal; }

/* Администратор (28.09.2026): люди и учётки, должности, «глазами учётки» */
.va-bar { position:fixed; left:50%; bottom:14px; transform:translateX(-50%); z-index:55; background:#fff7d6; border:1px solid #e8cf73; color:#4a3b00; padding:8px 12px; border-radius:10px;
  box-shadow:0 4px 16px rgba(0,0,0,.12); display:flex; gap:10px; align-items:center; flex-wrap:wrap; max-width:calc(100% - 24px); font-size:13px; }
.adm-tabs { display:flex; gap:6px; flex-wrap:wrap; margin:4px 0 12px; }
.adm-tabs button.on, .adm-flags button.on { background:var(--accent); color:#fff; border-color:var(--accent); }
.adm-bar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.adm-bar input[type=search] { min-width:0; flex:1 1 260px; }
.adm-flags { display:flex; gap:6px; flex-wrap:wrap; }
.adm-flag { background:#f2dede; display:inline-block; margin:1px 0; }
.adm-t td { vertical-align:top; }
.adm-t td.nowrap { white-space:nowrap; }
.adm-t td.nowrap button { margin:0 2px 4px 0; }
.adm-va { display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end; margin-top:10px; }
.adm-va label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--muted); min-width:0; }
.adm-va select, .adm-va input { max-width:100%; }
.adm-links { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:12px; }
.adm-link { display:block; text-decoration:none; color:var(--text); margin:0; }
a.adm-link:hover { background:var(--hover); }
.adm-pw { font:600 20px/1.3 ui-monospace, Menlo, monospace; padding:12px; background:var(--head); border-radius:8px; margin:10px 0; user-select:all; letter-spacing:1px; word-break:break-all; }

.adm-list { text-align:left; max-height:260px; overflow:auto; margin-top:6px; }
.adm-t details summary { cursor:pointer; }
.adm-checks { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:4px 12px; margin:10px 0; }
.modal-box .adm-checks label.chk { flex-direction:row; align-items:center; gap:6px; margin:0; color:var(--text); }

.adm-hides { display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.adm-hide { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--text); cursor:pointer; }

/* Карточка клиента (28.09.2026) */
.cc-head h2 { margin:4px 0 2px; }
.cc-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(330px, 1fr)); gap:14px; align-items:start; }
.cc-grid .card { margin:0; min-width:0; }
.cc-wide { grid-column:1 / -1; }
.cc-row { display:flex; justify-content:space-between; gap:12px; padding:3px 0; border-bottom:1px dashed var(--line); font-size:13px; }
.cc-row span { color:var(--muted); }
.cc-row b { font-weight:500; text-align:right; overflow-wrap:anywhere; }
.cc-contact { font-size:13px; padding:2px 0; overflow-wrap:anywhere; }
.cc-contact .muted { display:inline-block; min-width:56px; }
.cc-item { padding:8px 0; border-top:1px solid var(--line); }
.cc-item:first-of-type { border-top:0; }
.cc-note { font-size:13px; background:var(--head); border-radius:6px; padding:6px 8px; margin-top:6px; white-space:pre-line; }
.cc-persons { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:4px 18px; }
.cc-form { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:10px 16px; margin:10px 0; }
.cc-form label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--muted); }

.cc-filters { display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end; }
.cc-filters label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--muted); min-width:0; }
.cc-filters select { max-width:260px; }
.cc-filters .cc-q { flex:1 1 240px; }
.cc-kpis { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px; margin:10px 0; }
.cc-kpis div { background:var(--head); border-radius:8px; padding:8px 10px; display:flex; flex-direction:column; gap:2px; }
.cc-kpis b { font-size:18px; color:var(--title); }
.cc-kpis span { font-size:12px; color:var(--muted); }
.cc-two { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:14px; }
.cc-sub { margin:8px 0 0 10px; padding-left:10px; border-left:3px solid var(--line); }
tr.cc-k-grow td { background:#eaf6ea; } tr.cc-k-help td { background:#fff6de; } tr.cc-k-risk td { background:#fbe9e7; } tr.cc-k-lost td { color:var(--muted); }
.cc-gaps { display:flex; flex-wrap:wrap; gap:6px 18px; margin:8px 0; font-size:13px; }
.cc-gaps label.chk { display:inline-flex; flex-direction:row; gap:6px; align-items:center; color:var(--text); }

.cc-profile .cc-span { grid-column:1 / -1; }
.cc-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:4px; }
.cc-tag { background:var(--knob-bg); border:1px solid var(--knob-line); border-radius:12px; padding:2px 4px 2px 10px; font-size:13px; color:var(--text); }
.cc-tag button { padding:0 4px; }
.cc-inline { display:flex; gap:8px; } .cc-inline input { width:120px; }
.cc-hint { margin-top:4px; } .cc-hint .link { padding:0 2px; }
.cc-former { font-size:13px; margin-top:4px; } .cc-former summary { cursor:pointer; color:var(--muted); }

.cc-light { display:inline-block; width:12px; height:12px; border-radius:50%; background:#c9ced6; vertical-align:middle; }
.cc-light.cc-red { background:#d9534f; } .cc-light.cc-yellow { background:#f0ad4e; } .cc-light.cc-green { background:#5cb85c; }
.cc-fill h3 { display:flex; align-items:center; gap:8px; }
.cc-fill-red { border-left:4px solid #d9534f; } .cc-fill-yellow { border-left:4px solid #f0ad4e; } .cc-fill-green { border-left:4px solid #5cb85c; }
.cc-fill-t td.cc-fs { white-space:nowrap; } .cc-fill-t tr.cc-tot td { background:var(--head); }
.cc-miss .pill { background:var(--head); display:inline-block; margin:2px 0; }
/* компактная карточка: короткие блоки — колонками без пустот, широкие — ниже; каждый блок сворачивается, сводка видна в свёрнутом */
.cc-tools { font-size:12.5px; color:var(--muted); margin:2px 0 8px; } .cc-tools .link { padding:0; }
.cc-cols { display:flex; gap:12px; align-items:flex-start; margin-bottom:12px; }
.cc-col { flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:12px; }
.cc-col > .card { margin:0; min-width:0; }
.cc-wides > .card { margin:0 0 12px; min-width:0; }
.cc-cols .card, .cc-wides > .card { padding:10px 14px; }
.cc-sec > summary { list-style:none; cursor:pointer; display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.cc-sec > summary::-webkit-details-marker { display:none; }
.cc-sec > summary::before { content:'▸'; color:var(--muted); font-size:20px; line-height:1; transition:transform .15s; align-self:center; width:14px; }   /* крупнее — по просьбе Консультанта 01.10.2026 */
.cc-sec[open] > summary::before { transform:rotate(90deg); }
.cc-sec > summary h3 { margin:0; font-size:15px; }
.cc-sum { color:var(--muted); font-size:12.5px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1 1 120px; }
.cc-sec[open] > summary .cc-sum { display:none; }
.cc-sec > .cc-body { margin-top:6px; }
.cc-fill { padding:10px 14px; margin:0 0 12px; }
.cc-fill-top { display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:13px; margin:2px 0; }
.cc-fill .help { margin:2px 0; }
.cc-mk { font-size:11.5px; margin-left:6px; padding:0 6px; border-radius:8px; white-space:nowrap; }
.cc-mk.ok { color:#2e7d32; background:#e8f5e9; } .cc-mk.stale { color:#c0392b; background:#fbe9e7; } .cc-mk.old, .cc-mk.none { color:var(--muted); }
.modal-box.cc-chk-box { width:min(1100px, 96vw); max-width:96vw; }
table.grid.cc-chk { width:100%; min-width:0; }
table.grid.cc-chk td { vertical-align:top; white-space:normal; overflow-wrap:anywhere; max-width:none; text-overflow:clip; }
.cc-chk-box .table-wrap { max-height:none; } .cc-chk tr.cc-chk-o td { background:var(--head); font-weight:600; color:var(--title); } .cc-chk tr.cc-chk-err td { background:#fbe9e7; } .cc-chk-m { font-size:12.5px; }
.cc-chk tr.cc-fh-miss td { background:#fff8e6; } .cc-fh { margin:4px 0 8px 18px; padding:0; font-size:13px; } .cc-fh li { margin:3px 0; }
tr.cc-doc { cursor:pointer; } tr.cc-doc:hover td { background:var(--head); }
.cc-gaps label.cc-cmp-new { color:var(--muted); font-style:italic; }
.cc-tag.cc-tag-new { border-style:dashed; color:var(--muted); } .cc-cmp-act { white-space:nowrap; } .cc-cmp-act select { max-width:160px; }
 .cc-chk input { width:16px; height:16px; }

/* Матрица номенклатуры (29.09.2026) */
.nmx-axes { display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:12px; }
.nmx-axis { margin:0; display:flex; flex-direction:column; gap:8px; min-width:0; }
.nmx-axis h3 { margin:0; font-size:14px; }
.nmx-axis-top { display:flex; justify-content:space-between; align-items:baseline; gap:8px; flex-wrap:wrap; }
.nmx-vals { display:flex; flex-direction:column; gap:1px; max-height:340px; overflow:auto; }
.nmx-val, .nmx-vals-h { display:grid; grid-template-columns:minmax(0, 1fr) 52px 76px; gap:8px; align-items:center; }
.nmx-vals-h { font-size:11.5px; color:var(--muted); padding:0 6px; } .nmx-vals-h span:not(:first-child) { text-align:right; }
.nmx-val { padding:4px 6px; border:0; background:none; text-align:left; border-radius:5px; color:inherit; width:100%; }
.nmx-val:hover { background:var(--hover); }
.nmx-vn { display:flex; flex-direction:column; gap:3px; min-width:0; font-size:13px; overflow-wrap:anywhere; }
.nmx-bar { height:4px; border-radius:2px; background:var(--head); overflow:hidden; } .nmx-bar i { display:block; height:100%; background:var(--accent2); }
.nmx-val .n { text-align:right; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; } .nmx-val .r { text-align:right; font-size:13px; font-variant-numeric:tabular-nums; }
.nmx-filters { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; margin:8px 0; }
.nmx-filters label { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted); }
.nmx-filters select { max-width:220px; } .nmx-filters .nmx-chk { flex-direction:row; align-items:center; gap:6px; color:var(--text); padding-bottom:6px; }
table.grid.nmx-mx td.nmx-cell { cursor:pointer; } table.grid.nmx-mx td.nmx-cell.on { background:#e6eef6; }
table.grid.nmx-items td { white-space:normal; max-width:none; }
table.grid.nmx-items td:first-child { min-width:260px; }

/* карточка позиции номенклатуры (29.09.2026) */
.nmi-chips { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 10px; }
.nmi-chip { border:1px solid var(--line); border-radius:12px; padding:2px 9px; font-size:12.5px; background:var(--panel); }
.nmi-bars { display:flex; align-items:flex-end; gap:3px; height:170px; padding-top:6px; }
.nmi-bar { flex:1 1 0; min-width:0; height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:4px; }
.nmi-bar i { display:block; width:100%; background:#c9d3de; border-radius:3px 3px 0 0; } .nmi-bar.cur i { background:var(--accent2); }
.nmi-bar span { font-size:10px; color:var(--muted); white-space:nowrap; writing-mode:vertical-rl; transform:rotate(180deg); height:38px; }
.nmi-range { display:flex; flex-wrap:wrap; gap:18px; } .nmi-range div { display:flex; flex-direction:column; } .nmi-range b { font-size:18px; font-variant-numeric:tabular-nums; }
.nmi-sizes { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:4px 16px; }
.nmi-sizes div { display:grid; grid-template-columns:minmax(0, 1fr) 56px 38px; gap:2px 8px; align-items:center; font-size:13px; }
.nmi-sizes span { overflow-wrap:anywhere; } .nmi-sizes b { text-align:right; font-variant-numeric:tabular-nums; } .nmi-sizes em { font-style:normal; color:var(--muted); text-align:right; font-size:12px; }
.nmi-sizes i { grid-column:1 / -1; display:block; height:3px; border-radius:2px; background:var(--accent2); }
.nmi-kv { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:8px 18px; }
.nmi-kv div { display:flex; flex-direction:column; gap:2px; } .nmi-kv span { font-size:12px; color:var(--muted); } .nmi-kv b { font-weight:500; overflow-wrap:anywhere; }
.nmi-desc { margin-top:8px; white-space:pre-wrap; font-size:13px; max-height:260px; overflow:auto; border-left:3px solid var(--line); padding-left:10px; }
table.grid tr.nmi-me td { background:#e6eef6; }
@media (max-width:640px) { .nmi-bars { height:130px; gap:1px; } .nmi-bar span { font-size:9px; } }
.nmi-up { color:#2e7d32; }
table.grid.nmx-items tr.nmx-row { cursor:pointer; } table.grid.nmx-items tr.nmx-row:hover td { background:var(--hover); }
.nmi-p { margin:0 0 6px; font-size:13.5px; line-height:1.45; }
.nmi-facts { display:flex; flex-direction:column; gap:3px; font-size:13px; margin-bottom:10px; padding:8px 10px; background:var(--head); border-radius:6px; }
.nmi-pf { display:flex; flex-direction:column; gap:3px; margin-bottom:10px; } .nmi-pf > span { font-size:12px; color:var(--muted); font-weight:600; }
.nmi-pv { white-space:pre-wrap; font-size:13.5px; } .nmi-pf textarea { width:100%; font:inherit; font-size:13.5px; padding:6px 8px; border:1px solid var(--line); border-radius:6px; }
.nmi-obj { display:flex; flex-direction:column; gap:6px; } .nmi-obj div { display:grid; grid-template-columns:minmax(140px, 260px) 1fr; gap:10px; font-size:13.5px; }
.nmi-obj b { font-weight:600; } @media (max-width:640px) { .nmi-obj div { grid-template-columns:1fr; gap:2px; } }
.nmi-top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.nmi-draft { background:var(--yellow); border-radius:6px; padding:6px 10px; font-size:13px; margin:6px 0; }
.chat-msg-b.chat-long:not(.open) { max-height:14em; overflow:hidden; -webkit-mask-image:linear-gradient(180deg, #000 70%, transparent); mask-image:linear-gradient(180deg, #000 70%, transparent); }
.chat-more { font-size:12.5px; margin-top:2px; }
.chat-att { font-size:12px; color:var(--muted); }
.chat-att-list { display:flex; flex-wrap:wrap; gap:4px 12px; margin-top:4px; font-size:12.5px; }
.nmi-care { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:8px 16px; margin:4px 0; }
.nmi-care > div { display:flex; align-items:center; gap:10px; font-size:13.5px; line-height:1.35; }
.nmi-care-ico { width:34px; height:34px; flex:none; color:var(--text); }
.nmi-ul { margin:4px 0 8px; padding-left:18px; font-size:13.5px; line-height:1.45; }
.nmi-h4 { margin:14px 0 6px; font-size:14px; font-weight:600; }
.nmi-asd { color:var(--accent); text-decoration:none; border-bottom:1px dotted currentColor; } .nmi-asd.on { font-weight:700; border-bottom-style:solid; }
.nmi-asdr:not(:empty) { margin:8px 0 12px; padding:8px 10px; border-left:3px solid var(--accent); background:var(--bg-soft, rgba(127,127,127,.06)); } .nmi-asdr-h { font-size:13px; margin-bottom:6px; } .nmi-asd-x { margin-left:8px; font-size:12px; }
.nmi-more { margin-top:8px; } .nmi-more > summary { cursor:pointer; font-size:13px; color:var(--accent); margin-bottom:6px; }
.nmi-warn { color:#b26a00; }
.nmi-segnav { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; margin-bottom:8px; }
.nmi-segnav > span { display:flex; flex-wrap:wrap; gap:4px; } .nmi-segchip.on { background:var(--accent); color:#fff; border-color:var(--accent); }
table.nmi-pivot tr.nmi-pg { cursor:pointer; } table.nmi-pivot tr.nmi-pg:hover td { background:var(--hover); }
table.nmi-pivot tr.nmi-ps td { font-size:13px; color:var(--text); background:var(--head); } table.nmi-pivot tr.nmi-pt td { border-top:2px solid var(--line); }
.nmi-tw { display:inline-block; width:12px; color:var(--muted); }
/* вход через AD и журнал входов (29.09.2026) */
.login-hint { font-size:12px; color:var(--muted); margin-top:-6px; }
.pill.adm-ad { background:#dbe7f5; color:var(--accent); font-weight:600; } .pill.adm-local { background:#eef0f3; color:#4a5360; }
.adm-src { font-size:12px; padding:0 4px; }
.lg-mode b { color:var(--muted); } .lg-mode.on b { color:#1f6b35; }
.lg-day { display:flex; flex-wrap:wrap; gap:6px; }
.lg-bar label { display:flex; flex-direction:row; align-items:center; gap:4px; }
.lg-pages { display:flex; gap:12px; align-items:center; justify-content:center; margin-top:10px; font-size:13px; color:var(--muted); }
.lg-ua { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pill.lg-res-ok { background:var(--green); color:#1f6b35; } .pill.lg-res-bad_password, .pill.lg-res-no_user, .pill.lg-res-disabled { background:#f2dede; color:var(--red); }
.pill.lg-res-no_group, .pill.lg-res-locked_portal { background:var(--yellow); color:#7a5b00; } .pill.lg-res-ldap_unavailable, .pill.lg-res-error { background:#eceff3; color:#4a5360; }
/* карточка позиции: группы по будущему доступу, краткий вид для менеджера, навигация (29.09) */
.nmi-top { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-bottom:6px; font-size:13px; }
.nmi-back { margin-right:auto; }
.nmi-mode { display:inline-flex; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.nmi-mode button { border:0; border-radius:0; background:var(--panel); padding:4px 12px; } .nmi-mode button.on { background:var(--accent); color:#fff; }
.nmi-nav, .nmi-gonav { display:flex; flex-wrap:wrap; gap:6px; }
.nmi-navb { display:inline-block; padding:4px 10px; border-radius:14px; font-size:12.5px; text-decoration:none; border:1px solid var(--line); background:var(--panel); color:var(--text); }
.nmi-navb:hover { background:var(--hover); }
.g-product { --g:#2f6fb0; } .g-sell { --g:#2e8b57; } .g-stock { --g:#b7791f; } .g-analytics { --g:#7b4fb3; } .g-onec { --g:#6b7480; } .g-cost { --g:#a3412a; }
.nmi-navb[class*="g-"] { border-color:var(--g); color:var(--g); }
.nmi-grp { margin:16px 0 8px; border-left:4px solid var(--g); padding-left:10px; }
.nmi-gh { display:flex; align-items:baseline; gap:10px; margin:0 0 6px; } .nmi-gh h3 { margin:0; color:var(--g); font-size:17px; }
.nmi-forms { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; font-size:12.5px; margin:4px 0 10px; }
.nmi-form { text-decoration:none; border-bottom:1px dashed currentColor; }
.nmi-chip.c-prot { background:#e7f0fa; border-color:#b9d1ec; } .nmi-chip.c-ok { background:#e2efda; border-color:#b7d7a8; } .nmi-chip.c-mid { background:#fff2cc; border-color:#ecd48a; }
/* статусы товара у конкурентов и дилеров (market.js, cmFlagChips) */
.nmi-chip.c-new { background:#e7f0fa; border-color:#9ec1e8; } .nmi-chip.neg { background:#fde2e1; border-color:#f1b3b0; } .nmi-chip.cm-lo { background:#fff2cc; border-color:#ecd48a; }
.nmi-chip.c-bad { background:#fbe3e0; border-color:#efb7b0; } .nmi-chip.c-seg1 { background:#f1f3f5; } .nmi-chip.c-seg2 { background:#e8eef7; } .nmi-chip.c-seg3 { background:#fff2cc; } .nmi-chip.c-seg4 { background:#f6e0b0; }
.nmi-hero { display:grid; grid-template-columns:220px 1fr; gap:18px; align-items:start; border-top:4px solid #2f6fb0; }
.nmi-photo { aspect-ratio:1; background:var(--head); border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.nmi-photo img { width:100%; height:100%; object-fit:contain; cursor:zoom-in; }
.nmi-photo-ph { color:var(--muted); font-size:13px; text-align:center; padding:10px; } .nmi-photo-ph span { font-size:11.5px; }
.nmi-keys { display:flex; flex-direction:column; gap:7px; }
.nmi-kl { display:grid; grid-template-columns:170px 1fr; gap:10px; font-size:13.5px; line-height:1.4; } .nmi-kl-l { color:var(--muted); overflow-wrap:anywhere; }  /* подпись переносится, а не наползает на значение («Средняя цена продаж, 12 мес.», «Цвета на распродаже») */
.nmi-av.ok b { color:#2e7d32; } .nmi-av.low b { color:#b26a00; } .nmi-av.none b { color:var(--red); }
.nmi-cchip { display:inline-block; margin:0 6px 4px 0; padding:2px 8px; border-radius:12px; background:var(--head); font-size:12.5px; text-decoration:none; color:var(--text); }
.nmi-cchip.c-sale { background:#fff1e3; color:#8a4b12; }
.nmi-care-row { display:flex; flex-wrap:wrap; gap:6px; } .nmi-care-row .nmi-care-ico { width:28px; height:28px; }
.nmi-box { border-left:4px solid var(--g); } .nmi-box h3 { margin:0 0 6px; font-size:15px; color:var(--g); }
.nmi-usp { font-weight:600; margin-bottom:6px; } .nmi-tog { display:flex; flex-wrap:wrap; }
.nmi-more-a { font-size:12.5px; margin-left:6px; } .nmi-gonav { margin:10px 0; }
.nmi-pf-foot { display:flex; justify-content:space-between; align-items:center; gap:8px; }
@media (max-width:640px) { .nmi-hero { grid-template-columns:1fr; } .nmi-photo { max-width:240px; } .nmi-kl { grid-template-columns:1fr; gap:0; } }
.nmx-dash { display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 10px; }
.nmx-tile { display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:8px 12px; border:1px solid var(--line); border-left:4px solid var(--line); border-radius:8px; background:var(--panel); cursor:pointer; min-width:150px; text-align:left; }
.nmx-tile b { font-size:18px; } .nmx-tile span { font-size:12px; color:var(--muted); } .nmx-tile:hover { background:var(--hover); }
.nmx-tile.ok { border-left-color:#2e8b57; } .nmx-tile.mid { border-left-color:#d4a017; } .nmx-tile.bad { border-left-color:var(--red); }
.nmx-st { display:inline-block; padding:1px 8px; border-radius:10px; font-size:12px; white-space:nowrap; } .nmx-st.ok { background:#e2efda; } .nmx-st.mid { background:#fff2cc; } .nmx-st.bad { background:#fbe3e0; }
.cc-ev-qa { margin-top:4px; display:grid; gap:2px; font-size:13px; }
/* ответы опроса: клиент слева — колонка шире даты ленты, длинное название переносится, а не наезжает на ответ (Консультант 03.10.2026) */
.cp-feed .cc-ev { grid-template-columns:minmax(160px, 230px) 1fr; } .cp-feed .cc-ev-d { overflow-wrap:anywhere; word-break:break-word; min-width:0; }
@media (max-width:600px) { .cp-feed .cc-ev { grid-template-columns:1fr; gap:2px; } }
.cp-words { display:flex; flex-wrap:wrap; gap:4px; margin:6px 0 10px; } .cp-words .nmi-cchip.on { outline:2px solid var(--accent); }
.nmx-st.none { background:var(--hover); color:var(--muted); } .nmx-st + .nmx-st { margin-left:3px; } .nmx-asts { display:inline-flex; flex-wrap:wrap; gap:3px; } .nmx-asts .nmx-st + .nmx-st { margin-left:0; }
.nmi-nav[hidden], .nmi-mode[hidden] { display:none; }
div.nmi-mode { display:inline-flex; margin:4px 0 10px; border:1px solid var(--accent); border-radius:10px; overflow:hidden; }
div.nmi-mode button { border:0; border-radius:0; background:var(--panel); padding:8px 22px; font-size:14.5px; font-weight:600; color:var(--accent); }
div.nmi-mode button.on { background:var(--accent); color:#fff; }
.nmi-intro { font-size:14px; line-height:1.45; margin-bottom:4px; padding-bottom:8px; border-bottom:1px solid var(--line); }
.nmi-navb.on { background:var(--g); color:#fff; }
.nmi-sum { border-left:4px solid var(--g); } .nmi-sum .nmi-kv b { font-weight:500; }
.nmi-grp { scroll-margin-top:70px; }
/* справочник номенклатуры 1С и классификатор (29.09) */
table.nt-tree tr.nt-fold { cursor:pointer; } table.nt-tree tr.nt-fold:hover td { background:var(--hover); } table.nt-tree tr.nt-fold td { background:var(--head); }
tr.cl-sec td { background:var(--head); border-top:2px solid var(--line); } tr.cl-row:hover td { background:var(--hover); }
/* фото товаров из 1С (29.09) */
.nmi-photo-box { display:flex; flex-direction:column; gap:6px; }
.nmi-photo img { background:#fff; }
.nmi-thumbs { display:flex; flex-wrap:wrap; gap:4px; } .nmi-thumbs img { width:46px; height:46px; object-fit:contain; background:#fff; border:1px solid var(--line); border-radius:4px; cursor:pointer; }
.nmi-thumbs img.on { border:2px solid var(--accent); }
.nmi-lb { position:fixed; inset:0; background:rgba(15,20,28,.82); z-index:1000; display:flex; align-items:center; justify-content:center; }
.nmi-lb-in { position:relative; max-width:94vw; max-height:92vh; display:flex; flex-direction:column; align-items:center; gap:8px; }
.nmi-lb-in img { max-width:94vw; max-height:84vh; object-fit:contain; background:#fff; border-radius:6px; }
.nmi-lb-cap { color:#fff; font-size:13.5px; text-align:center; }
.nmi-lb button { position:absolute; background:rgba(255,255,255,.9); border:0; border-radius:50%; width:42px; height:42px; font-size:26px; line-height:1; cursor:pointer; }
.nmi-lb-prev { left:-54px; top:45%; } .nmi-lb-next { right:-54px; top:45%; } .nmi-lb-x { right:-54px; top:0; }
@media (max-width:640px) { .nmi-lb-prev { left:6px; } .nmi-lb-next { right:6px; } .nmi-lb-x { right:6px; top:6px; } }
/* карточка позиции: «Главное» — плитки, цвета и размеры строкой, «Продавать»; группы — вкладками, разделы свёрнуты до строки-итога (10.11.2026) */
#nmiRoot .nmi-hero { grid-template-columns:200px minmax(0, 1fr); gap:16px; }
#nmiRoot .nmi-keys { gap:8px; }
#nmiRoot .nmi-intro { font-size:13.5px; padding-bottom:6px; }
.nmi-tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:8px; }
.nmi-tile { display:flex; flex-direction:column; gap:2px; min-width:0; padding:8px 10px; border:1px solid var(--line); border-left:4px solid var(--line); border-radius:8px; background:var(--head); font-size:13px; line-height:1.4; }
.nmi-tile[data-go] { cursor:pointer; } .nmi-tile[data-go]:hover { background:var(--hover); border-color:#c9d3de; }
.nmi-tile.bad { border-left-color:var(--red); }
.nmi-tile-t { font-size:12px; color:var(--muted); } .nmi-tile-v { font-size:14px; overflow-wrap:anywhere; } .nmi-tile-v b { font-size:15px; }
.nmi-tile-s { font-size:12px; color:var(--muted); overflow-wrap:anywhere; } .nmi-tile-s a { color:var(--link); }
.nmi-crow { display:flex; flex-wrap:wrap; align-items:center; gap:4px 0; font-size:13px; }
.nmi-crow-l { color:var(--muted); font-size:12.5px; margin-right:8px; }
.nmi-crow .nmi-cchip { margin:0 5px 0 0; } .nmi-crow .help { margin-left:6px; }
.nmi-crow:not(.open) .nmi-cmore { display:none; } .nmi-crow.open .nmi-csum { display:none; }
.nmi-cmore-a { font-size:12.5px; margin-left:4px; }
.nmi-sellrow { grid-column:1 / -1; border-top:1px solid var(--line); padding-top:8px; font-size:13.5px; }
.nmi-sellrow .nmi-usp { margin:2px 0 4px; } .nmi-sellrow .nmi-ul { margin:2px 0 6px; }
.nmi-sellmore { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; font-size:13px; } .nmi-sellmore .nmi-cchip { margin:0; }
.nmi-thumbs-more { width:46px; height:46px; border:1px solid var(--line); border-radius:4px; background:var(--head); color:var(--muted); font-size:13px; padding:0; }
.nmi-menu { position:relative; } .nmi-menu > summary { list-style:none; cursor:pointer; color:var(--link); } .nmi-menu > summary::-webkit-details-marker { display:none; } .nmi-menu > summary::after { content:' ▾'; }
.nmi-menu-in { position:absolute; right:0; top:calc(100% + 4px); z-index:30; width:min(560px, 86vw); display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:10px 12px; background:var(--panel); border:1px solid var(--line); border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,.12); }
.nmi-menu-in .nmi-forms { margin:0; }
.nmi-tabs { position:sticky; z-index:15; display:flex; flex-wrap:wrap; align-items:flex-end; gap:0 2px; margin:6px 0 12px; background:var(--bg); border-bottom:1px solid var(--line); }
.nmi-tab { border:0; border-bottom:3px solid transparent; background:none; padding:7px 12px 5px; font-size:13.5px; color:var(--muted); border-radius:0; }
.nmi-tab:hover { color:var(--text); } .nmi-tab.on { color:var(--accent); border-bottom-color:var(--accent); font-weight:600; }
.nmi-tab[class*="g-"].on { color:var(--g); border-bottom-color:var(--g); }
.nmi-tabs-r { margin-left:auto; display:flex; align-items:center; gap:8px; padding:0 0 4px 8px; }
.nmi-tabs-i { font-size:12.5px; } #nmiRoot:not(.nmi-is-full) .nmi-tabs-i { display:none; }
#nmiFull .nmi-grp { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px 12px; align-items:start; margin-top:4px; }
#nmiFull .nmi-grp[hidden] { display:none; }
#nmiFull .nmi-grp > * { grid-column:1 / -1; margin:0; }
#nmiFull .nmi-grp > details.cc-sec:not([open]) { grid-column:auto; }
#nmiFull .nmi-grp > details.cc-sec { padding:10px 14px; scroll-margin-top:120px; }
#nmiFull .cost-est { justify-self:start; }
tr.nmi-clip { display:none; } .nmi-clip-b { margin:6px 0 2px; }
@media (max-width:1000px) { #nmiFull .nmi-grp { grid-template-columns:minmax(0, 1fr); } }
/* телефон: вкладки одной строкой с прокруткой внутри полосы (страница вбок не едет), фото меньше — плитки видны без долгой прокрутки */
@media (max-width:640px) { #nmiRoot .nmi-hero { grid-template-columns:1fr; } #nmiRoot .nmi-photo { max-width:170px; } .nmi-tiles { grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); }
  .nmi-tabs { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; } .nmi-tabs::-webkit-scrollbar { display:none; } .nmi-tabs-r { display:none; } .nmi-tab { flex:none; padding:6px 8px; font-size:13px; } }
/* справочник номенклатуры v2: плитки, список, группы, качество (29.09) */
.nr-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin:6px 0 8px; } .nr-kpi { font-size:13.5px; color:var(--muted); } .nr-kpi b { color:var(--text); }
.nr-views { margin:0; }
.nr-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:12px; }
.nr-tile { position:relative; display:flex; flex-direction:column; gap:4px; padding:10px; background:var(--panel); border:1px solid var(--line); border-radius:10px; text-decoration:none; color:var(--text); }
.nr-tile:hover { border-color:var(--accent); box-shadow:0 2px 10px rgba(30,50,80,.08); }
.nr-img { width:100%; aspect-ratio:1; object-fit:contain; background:#fff; border-radius:6px; }
.nr-noimg { display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:12px; background:var(--head); }
.nr-t { font-size:13.5px; font-weight:600; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.nr-m { font-size:12px; color:var(--muted); } .nr-b { display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center; font-size:12.5px; }
.nr-av { color:#2e7d32; font-weight:600; } .nr-av.none { color:var(--muted); font-weight:400; } .nr-pr { color:var(--text); }
.nr-err { position:absolute; top:8px; right:8px; background:#fbe3e0; color:var(--red); font-size:11.5px; padding:1px 6px; border-radius:8px; }
.nr-thumb { width:40px; height:40px; object-fit:contain; background:#fff; border-radius:4px; font-size:9px; } td.nr-td-img { width:48px; }
.nr-fill { display:inline-flex; align-items:center; gap:6px; min-width:90px; } .nr-fill i { display:inline-block; height:6px; border-radius:3px; background:currentColor; max-width:60px; }
.nr-fill.ok { color:#2e8b57; } .nr-fill.mid { color:#b7791f; } .nr-fill.bad { color:var(--red); } .nr-fill b { font-size:12px; font-weight:600; }
.nr-sec { margin:14px 0; } .nr-sec-h { display:flex; align-items:baseline; gap:10px; margin-bottom:6px; } .nr-sec-h h3 { margin:0; font-size:15px; }
.nr-strip { display:grid; grid-auto-flow:column; grid-auto-columns:170px; gap:10px; overflow-x:auto; padding-bottom:6px; }
.nr-qual h3 { font-size:15px; margin:10px 0 6px; } .nmx-tile.on { outline:2px solid var(--accent); }
/* Клиентская база (#client-base) */
.cbx-dash .nmx-tile { min-width:170px; max-width:230px; } .cbx-dash .nmx-tile em { font-style:normal; font-size:11px; color:var(--muted); }
.cbx-dims { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 10px; }
.cbx-dims button { border:1px solid var(--line); background:var(--panel); border-radius:14px; padding:3px 10px; font-size:12px; cursor:pointer; }
.cbx-dims button.on { background:var(--accent); color:#fff; border-color:var(--accent); }
.cbx-t td, .cbx-t th { white-space:nowrap; } .cbx-t tr.cbx-tot td { border-top:2px solid var(--line); font-weight:600; }
a.cbx-n { text-decoration:none; border-bottom:1px dotted currentColor; } a.cbx-g { font-weight:600; }
.cbx-bar { display:inline-block; width:80px; height:8px; background:var(--hover); border-radius:4px; vertical-align:middle; overflow:hidden; }
.cbx-bar i { display:block; height:100%; background:var(--accent); }
.cbx-drill { border-left:4px solid var(--accent); }
.cc-h4 { font-size:13px; margin:10px 0 4px; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; }
/* карточка клиента: взаимодействие из 1С */
.cc-kpis { display:flex; flex-wrap:wrap; gap:14px; margin:6px 0 10px; font-size:13px; color:var(--muted); } .cc-kpis b { color:var(--text); }
.cc-feed { display:flex; flex-direction:column; gap:6px; max-height:520px; overflow:auto; }
.cc-ev { display:grid; grid-template-columns:88px 1fr; gap:8px; padding:6px 0; border-bottom:1px dashed var(--line); font-size:13px; }
.cc-ev-d { color:var(--muted); font-variant-numeric:tabular-nums; } .cc-ev-t { margin-top:2px; white-space:pre-wrap; }
/* карточка клиента: продажи по месяцам */
.cc-mt td, .cc-mt th { white-space:nowrap; font-size:12px; } .cc-mt tr.cc-dyn td { font-size:11px; }
.cc-sw { display:inline-block; width:10px; height:10px; border-radius:2px; margin:0 4px 0 6px; vertical-align:middle; }
.cc-mini { font-size:10px; } .cc-chart { margin:4px 0 10px; }

/* выбор участников ветки чата — окно поверх страницы и поверх окна новой ветки (30.09.2026) */
.chat-pick { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.chat-pick-box { background: var(--panel); color: var(--text); border-radius: 10px; padding: 16px; width: min(520px, 100%); max-height: 86vh; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.chat-pick-list { overflow: auto; max-height: 55vh; }
.chat-pick-q { width: 100%; }
.chat-pick .row { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.chat-pick-n { margin-right: auto; }
.nw-mem { margin: 6px 0 10px; }
.chat-pick label.chat-mb-i { display: flex; flex-direction: row; align-items: center; gap: 6px; margin: 2px 0; color: var(--text); }

/* справочник номенклатуры: группировка по классификатору 1С или сегментам скилов (30.09.2026) */
.nr-list tr.nr-g1 td { background: var(--knob-bg); border-top: 2px solid var(--line); padding: 8px 10px; }
.nr-list tr.nr-g2 td { background: var(--bg); padding: 6px 10px 6px 22px; font-weight: 600; }
.nr-list tr.nr-g2 .muted, .nr-list tr.nr-g1 .muted { font-weight: 400; margin-left: 8px; }
h3.nr-g1h { margin: 22px 0 6px; padding-top: 8px; border-top: 2px solid var(--line); }
h3.nr-g1h .muted { font-weight: 400; font-size: 13px; margin-left: 8px; }

/* клиентская база: отборы по клиентам и группировка списка (30.09.2026) */
.cbx-fx { background: var(--knob-bg); border: 1px solid var(--knob-line); border-radius: 8px; padding: 8px 10px; }
.cbx-fx select { max-width: 240px; }
.cbx-grp select { margin-left: 4px; }
.cbx-t tr.cbx-g1 td { background: var(--knob-bg); border-top: 2px solid var(--line); }
.cbx-t tr.cbx-g2 td { background: var(--bg); }
.cbx-t tr.cbx-g2 td:first-child { padding-left: 22px; }
.cbx-att { margin: 10px 0; }
.cbx-att .nmx-dash { margin-top: 6px; }


/* сделки клиента — пайплайны: шкала времени и цепочка сделки (30.09.2026) */
.cd-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.cd-kpis { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 8px; font-size: 13px; }
.cd-k b { font-size: 15px; } .cd-k.neg b { color: #c0392b; }
.cd-tl { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.cd-tl svg { width: 100%; min-width: 640px; display: block; }
.cd-grid { stroke: var(--line); stroke-width: 1; } .cd-today { stroke: #c0392b; stroke-dasharray: 3 3; }
.cd-mo { font-size: 10px; fill: var(--muted); } .cd-lab { font-size: 10.5px; fill: var(--text); cursor: pointer; } .cd-lane { font-style: italic; fill: var(--muted); }
.cd-hit { fill: transparent; } .cd-row { cursor: pointer; } .cd-row:hover .cd-hit { fill: rgba(47, 74, 102, .06); } .cd-row.sel .cd-hit { fill: rgba(47, 111, 179, .12); }
.cd-m { stroke-width: 1.2; } .cd-m-ap { fill: #fff; stroke: #b8860b; } .cd-m-kp { fill: #fff; stroke: #2f4a66; } .cd-m-or { fill: #2f4a66; stroke: #fff; }
.cd-m-wh { fill: #fff; stroke: #6b7480; } .cd-m-sh { fill: #1f6b3a; stroke: #fff; } .cd-m-pay { fill: #d4a017; stroke: #fff; } .cd-m-x { stroke: #c0392b; stroke-width: 2; fill: none; }
.cd-ct { fill: #fff; stroke: #2f6fb3; stroke-width: 1.2; } .cd-ct-new { stroke: #b8860b; } .cd-ct-incident, .cd-ct-claim { stroke: #c0392b; } .cd-pay { fill: #d4a017; }
.cd-next { stroke: #2f6fb3; stroke-width: 1.3; stroke-dasharray: 3 2; fill: none; } .cd-next.od { stroke: #c0392b; }
.cd-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); margin: 6px 0; }
.cd-legend .lg { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: middle; font-style: normal; }
.lg-ap { border: 1.5px solid #b8860b; transform: rotate(45deg); width: 7px !important; height: 7px !important; } .lg-kp { border: 1.5px solid #2f4a66; border-radius: 50% !important; width: 8px !important; }
.lg-or { background: #2f4a66; border-radius: 50% !important; width: 8px !important; } .lg-wh { border: 1.5px solid #6b7480; width: 7px !important; } .lg-sh { background: #1f6b3a; width: 8px !important; }
.lg-pay { background: #d4a017; transform: rotate(45deg); width: 7px !important; height: 7px !important; } .lg-x { color: #c0392b; width: auto !important; height: auto !important; }
.lg-next { border-top: 2px dashed #2f6fb3; height: 0 !important; }
.cd-det { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-top: 10px; background: var(--panel); }
.cd-det-h { margin-bottom: 8px; } .cd-det-h a { float: right; text-decoration: none; }
.cd-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 8px; }
.cd-box { display: inline-flex; flex-direction: column; border: 1.5px solid #2f4a66; border-radius: 8px; padding: 4px 8px; min-width: 78px; font-size: 12px; background: var(--bg); }
.cd-box em { font-style: normal; color: var(--muted); font-size: 11.5px; } .cd-box.off { border-style: dashed; border-color: var(--line); opacity: .7; }
.cd-box.cd-end { border-width: 2.5px; max-width: 320px; }
.cd-arr { font-size: 11px; color: var(--muted); min-width: 34px; text-align: center; position: relative; } .cd-arr::after { content: '→'; display: block; font-size: 14px; line-height: 1; }
.cd-seg { font-size: 9.5px; fill: #fff; font-weight: 600; pointer-events: none; }
.cd-wait { fill: url(#none); fill: rgba(47, 111, 179, .18); stroke: #2f6fb3; stroke-dasharray: 2 2; stroke-width: .8; }
.cd-wait-lg { background: rgba(47, 111, 179, .18); border: 1px dashed #2f6fb3; }

/* отгрузки и оплаты клиента по месяцам (30.09.2026) */
.cd-ar { margin: 6px 0 14px; } .cd-ar h4 { margin: 4px 0; }
.cd-k.ok b { color: #2e8b57; }
.cd-zero { stroke: var(--text); stroke-width: 1; opacity: .5; }
.cd-mcol { cursor: pointer; } .cd-mcol:hover .cd-hit { fill: rgba(47, 74, 102, .05); } .cd-mcol.sel .cd-hit { fill: rgba(47, 111, 179, .10); }
.cd-b-sh { fill: #2e8b57; } .cd-b-pay { fill: #d4a017; } .cd-b-debt { fill: #e9a79f; } .cd-b-od { fill: #b03a2e; } .cd-b-adv { fill: #8fb3d9; }
.cd-b-sh-lg { background: #2e8b57; } .cd-b-pay-lg { background: #d4a017; } .cd-b-debt-lg { background: #e9a79f; } .cd-b-od-lg { background: #b03a2e; } .cd-b-adv-lg { background: #8fb3d9; }
.cd-v { font-size: 9.5px; font-weight: 600; pointer-events: none; } .cd-v-sh { fill: #1f6b3a; } .cd-v-pay { fill: #9a7400; } .cd-v-debt { fill: #b03a2e; } .cd-v-adv { fill: #2f5f8f; }
.cd-debt-t { color: #b03a2e; } .cd-adv-t { color: #2f5f8f; }
.cd-stmt td, .cd-stmt th { white-space: nowrap; } .cd-st-s td:nth-child(3) { color: #1f6b3a; } .cd-st-p td:nth-child(5) { color: #9a7400; } .cd-st-r td:nth-child(4) { color: #b03a2e; }
/* этапы сделок: квадратики — деньги, расстояние — дни */
.cd-q { stroke-width: 1; } .cd-q-kp { fill: #fff; stroke: #6aa3d8; stroke-width: 1.3; } .cd-q-or { fill: #dbe8f5; stroke: #2f6fb3; stroke-width: 1.3; }
.cd-q-sh { fill: #2e8b57; stroke: #1f6b3a; } .cd-q-pay { fill: #d4a017; stroke: #9a7400; } .cd-q-alloc { fill: #f6e3a6; stroke: #b8860b; stroke-dasharray: 2 1.5; stroke-width: 1.2; }
.cd-q-ret { fill: #c0392b; stroke: #8e1b10; }
.cd-legend .lg.cd-q { width: 10px; height: 10px; border: 1.3px solid; box-sizing: border-box; }
.lg.cd-q-kp { background: #fff; border-color: #6aa3d8; } .lg.cd-q-or { background: #dbe8f5; border-color: #2f6fb3; } .lg.cd-q-sh { background: #2e8b57; border-color: #1f6b3a; }
.lg.cd-q-pay { background: #d4a017; border-color: #9a7400; } .lg.cd-q-alloc { background: #f6e3a6; border: 1.3px dashed #b8860b; } .lg.cd-q-ret { background: #c0392b; border-color: #8e1b10; }
.cd-d-ap { fill: #e9c46a; stroke: #b8860b; } .cd-d-ag { fill: #5d8fc4; stroke: #fff; } .cd-d-wh { fill: #7a8a99; stroke: #fff; } .cd-d-is { fill: #c0392b; stroke: #fff; } .cd-d-tn { fill: #7b3fa0; stroke: #fff; }
.lg.lg-dot { width: 7px !important; height: 7px !important; border-radius: 50% !important; }
.cd-d-mf { fill: #d9822b; stroke: #fff; } .cd-d-bu { fill: #2a9d8f; stroke: #fff; } .lg.cd-d-mf { background: #d9822b; } .lg.cd-d-bu { background: #2a9d8f; }
.lg.cd-d-ap { background: #e9c46a; } .lg.cd-d-ag { background: #5d8fc4; } .lg.cd-d-wh { background: #7a8a99; } .lg.cd-d-is { background: #c0392b; } .lg.cd-d-tn { background: #7b3fa0; }
.cd-open-l { stroke: #2f6fb3; stroke-width: 1.5; stroke-dasharray: 3 2; } .cd-open-lg { border-top: 2px dashed #2f6fb3; height: 0 !important; }
.cd-gap { font-size: 9px; fill: var(--muted); pointer-events: none; }
.cd-alloc { font-size: 11px; color: #8a6d00; background: #fff4cc; border-radius: 6px; padding: 0 5px; }
.cd-ar-rows summary { cursor: pointer; margin: 6px 0; }
[data-doc1c] { cursor: pointer; }
.cd-pre { fill: rgba(233, 196, 106, .10); }
/* юрлица и договоры (30.09.2026) */
.cc-le { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 8px 0; background: var(--panel); }
.cc-le.ok { border-left-color: #2e8b57; } .cc-le.bad { border-left-color: #c0392b; background: #fdf3f1; }
.cc-le-h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; } .cc-le-h b { font-size: 15px; }
.cc-le-head { margin: 4px 0; font-size: 13px; } .cc-le-head .cc-badge { margin-left: 6px; }
.cc-spark { margin: 4px 0 6px 18px; padding: 0; font-size: 13px; } .cc-spark li { margin: 2px 0; } .cc-le-head .cc-badge.bad { white-space: normal; }
.cc-badge { display: inline-block; font-size: 11.5px; line-height: 1.5; padding: 0 7px; border-radius: 9px; background: #eef1f4; color: var(--muted); white-space: nowrap; }
.cc-badge.ok { background: #e3f4ea; color: #1f6b3a; } .cc-badge.bad { background: #fbe3e0; color: #b03a2e; font-weight: 600; } .cc-badge.warn { background: #fff4cc; color: #8a6d00; }
.cc-dogs { margin-top: 6px; } .cc-dogs td { vertical-align: top; }
.cc-dog-cur td { background: #eef8f1; } .cc-dog-cur td:first-child { box-shadow: inset 4px 0 0 #2e8b57; }
.cc-dog-off td, .cc-dog-idle td { color: var(--muted); } .cc-dog-off b, .cc-dog-idle b { font-weight: 500; }
.cc-more { margin-top: 6px; } .cc-more summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.cc-dogs-off td, .cc-dogs-off td .help { color: var(--muted); } .cc-dogs-off b { font-weight: 500; }
.cd-pairs { margin: 8px 0; } .cd-pairs-h { margin-bottom: 4px; } .cd-pairs input[type=date] { font: inherit; padding: 1px 4px; }
.cc-agr { font-size: 12px; color: #2f5f8f; margin-top: 2px; } .cd-st-od td { background: #fdf0ee; }
/* дебиторка и кредиторка клиентов (30.09.2026) */
.db-ctl { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.db-ctl > div { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.db-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 14px; padding: 2px 10px; font-size: 13px; cursor: pointer; background: var(--panel); }
.db-chip.on { border-color: #2f6fb3; background: rgba(47, 111, 179, .10); } .db-chip input { margin: 0; }
#dbQ { min-width: 220px; }
.db-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.db-kpi { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--panel); display: flex; flex-direction: column; gap: 2px; }
.db-kpi b { font-size: 19px; } .db-kpi span { font-size: 12px; color: var(--muted); } .db-kpi.neg b { color: #b03a2e; } .db-kpi.ok b { color: #2e8b57; }
.db-aging { display: flex; height: 34px; border-radius: 8px; overflow: hidden; margin: 8px 0; background: var(--line); }
.db-ag { display: flex; align-items: center; justify-content: center; min-width: 2px; } .db-ag span { font-size: 12px; font-weight: 600; color: #1d2733; white-space: nowrap; }
.db-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 900px) { .db-two { grid-template-columns: 1fr; } }
.db-top-r { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr minmax(110px, auto); gap: 8px; align-items: center; font-size: 13px; margin: 3px 0; }
.db-top-r a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-bar { position: relative; height: 12px; background: rgba(0, 0, 0, .04); border-radius: 3px; } .db-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #e9a79f; border-radius: 3px; } .db-bar i.od { background: #b03a2e; }
.db-t { font-size: 12.5px; } .db-t th { white-space: nowrap; position: sticky; top: 0; } .db-sort { cursor: pointer; } .db-sort.on { color: #2f6fb3; }
.db-wrap { max-height: 70vh; overflow: auto; }
.db-g td { background: rgba(47, 74, 102, .07); } .db-p td { font-weight: 500; } .db-le td { color: var(--muted); } .db-le td:first-child { padding-left: 26px; }
.db-tot td { font-weight: 700; border-top: 2px solid var(--line); position: sticky; bottom: 0; background: var(--panel); }
.db-tw { cursor: pointer; display: inline-block; width: 14px; color: var(--muted); }
.db-od1 { background: rgba(243, 217, 138, .35); } .db-od2 { background: rgba(240, 176, 103, .35); } .db-od3 { background: rgba(224, 122, 110, .30); } .db-od4, .db-od5 { background: rgba(192, 57, 43, .22); color: #8e1b10; }
.db-adv { color: #2f5f8f; } .db-warn { color: #b8860b; }
/* сомнительный к возврату долг: фиолетовый, отдельно от просрочки */
.db-dbt-b { display: inline-block; font-size: 11px; font-weight: 600; color: #6b3fa0; background: rgba(107, 63, 160, .12); border-radius: 8px; padding: 0 6px; margin-left: 4px; cursor: help; white-space: nowrap; }
.db-dbt-r td { background: rgba(107, 63, 160, .06); } .db-dbt-r td:first-child { box-shadow: inset 3px 0 0 #8e63c4; }
.cd-dbt { margin: 6px 0 10px; font-size: 13px; } .cd-dbt-m { border-left: 3px solid #8e63c4; background: rgba(107, 63, 160, .06); padding: 4px 8px; margin: 3px 0; border-radius: 0 6px 6px 0; }
.db-kpi.dbt { border-color: #b59ad8; }
/* работа с ПДЗ: стадии по журналу юриста, отметки, статусы юрлиц */
.db-views { margin: 4px 0 8px; }
.db-lg-b { display: inline-block; font-size: 11px; color: #5a4a2f; background: rgba(184, 134, 11, .14); border-radius: 8px; padding: 0 6px; margin-left: 4px; cursor: help; white-space: nowrap; }
.pz-st, .pz-fl, .pz-ka { display: inline-block; font-size: 11px; border-radius: 8px; padding: 0 6px; margin: 1px 2px 1px 0; white-space: nowrap; }
.pz-st { font-weight: 600; color: #fff; background: #8a8f98; } .pz-s1 { background: #7b1d14; } .pz-s2 { background: #a3301f; } .pz-s3 { background: #c0392b; } .pz-s4 { background: #d9822b; } .pz-s5 { background: #2f6fb3; } .pz-s6 { background: #8a8f98; }
.pz-fl { color: #6b3fa0; background: rgba(107, 63, 160, .12); } .pz-ka { color: #8e1b10; background: rgba(192, 57, 43, .12); }
.pz-t { font-size: 12px; } .pz-gap td { background: rgba(192, 57, 43, .07); } .pz-gap td:first-child { box-shadow: inset 3px 0 0 #c0392b; }
.pz-j td { background: var(--panel); font-size: 12.5px; } .pz-j td div { margin: 3px 0 3px 18px; }
.cd-lg { margin: 6px 0 10px; font-size: 13px; border-left: 3px solid #b8860b; padding: 4px 8px; background: rgba(184, 134, 11, .06); border-radius: 0 6px 6px 0; }
.cd-lg-e { margin: 3px 0 3px 12px; } .cd-lg details summary { cursor: pointer; } .db-kpi.dbt b { color: #6b3fa0; }
.db-dbt-card { border-color: #b59ad8; } .db-dbt-card h3 { color: #6b3fa0; }
.db-flag { padding: 0 3px !important; color: var(--muted) !important; font-size: 12px; opacity: .45; } tr:hover .db-flag { opacity: 1; } .db-flag:hover { color: #6b3fa0 !important; }
/* монитор «Пайплайны» (30.09.2026) */
.pm-ctl { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 8px 0; } .pm-ctl select, .pm-dates input { font: inherit; padding: 2px 6px; }
.pm-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 2px solid var(--line); margin: 10px 0 12px; }
.pm-tabs button { border: 0; background: none; padding: 8px 14px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.pm-tabs button.on { color: var(--text); font-weight: 600; border-bottom-color: #2f6fb3; }
#pmBody { transition: opacity .15s; }
.db-kpi em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.pm-cycle { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; font-size: 13px; }
.pm-fun-r { display: grid; grid-template-columns: 120px 1fr minmax(210px, auto); gap: 10px; align-items: center; margin: 6px 0; font-size: 13px; }
.pm-fun-b { height: 22px; display: flex; justify-content: center; background: rgba(0, 0, 0, .03); border-radius: 4px; } .pm-fun-b i { display: block; height: 100%; border-radius: 4px; }
.pm-bars { margin-top: 8px; } .pm-bar-r { display: grid; grid-template-columns: minmax(200px, 1.4fr) 2fr minmax(150px, auto); gap: 8px; align-items: center; font-size: 13px; margin: 3px 0; }
.pm-matrix td, .pm-matrix th { text-align: center; } .pm-matrix td:first-child { text-align: left; } .pm-heat { font-size: 12px; } .pm-heat b { font-size: 14px; } .pm-heat div { color: var(--muted); }
.pm-scroll { max-height: 70vh; overflow: auto; } .pm-t { font-size: 12.5px; } .pm-t th { position: sticky; top: 0; white-space: nowrap; }
.pm-deal { cursor: pointer; } .pm-deal:hover td { background: rgba(47, 111, 179, .06); }
/* карточка клиента: сводка и группы (30.09.2026) */
.cc-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 6px 0 4px; } .cc-reps { display: flex; flex-wrap: wrap; gap: 4px; }
.cc-summary { padding: 12px; }
.cc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.cc-tile { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-left: 4px solid #2e8b57; border-radius: 10px; padding: 8px 12px; background: var(--panel); color: inherit; text-decoration: none; }
.cc-tile:hover { box-shadow: 0 1px 6px rgba(0, 0, 0, .08); } .cc-tile.warn { border-left-color: #d4a017; } .cc-tile.bad { border-left-color: #c0392b; }
.cc-tile-h { font-size: 12px; color: var(--muted); } .cc-tile b { font-size: 18px; } .cc-tile > span:last-child { font-size: 12.5px; color: var(--muted); }
.cc-todo { display: flex; flex-direction: column; gap: 3px; margin: 10px 0 4px; } .cc-todo > b { margin-bottom: 2px; }
.cc-todo-i { text-decoration: none; color: inherit; padding: 3px 10px; border-radius: 6px; font-size: 13.5px; }
.cc-todo-i::before { content: '●'; margin-right: 8px; } .cc-todo-i.bad::before { color: #c0392b; } .cc-todo-i.warn::before { color: #d4a017; } .cc-todo-i.info::before { color: #2f6fb3; }
.cc-todo-i:hover { background: rgba(47, 111, 179, .07); }
.cc-grp-h { margin: 18px 0 6px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; display: inline-block; }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 12px; align-items: start; }
.cc-stale { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 6px; } .cc-stale > summary { cursor: pointer; }
.cc-years { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; margin: 6px 0; }
.cd-sub { margin: 6px 0; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; background: var(--panel); } .cd-sub > summary { cursor: pointer; padding: 4px 0; }
/* «Мой день» (01.10.2026) */
.dy-who { font-weight: 400; font-size: 16px; }
.dy-sec > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; } .dy-sec > summary h3 { margin: 0; display: inline; }
.dy-sec.bad { border-left: 4px solid #c0392b; } .dy-sec.warn { border-left: 4px solid #d4a017; } .dy-sec.dy-muted { opacity: .85; }
.dy-n { display: inline-block; min-width: 26px; padding: 0 8px; margin-left: 6px; border-radius: 12px; background: rgba(47, 74, 102, .10); font-size: 13px; text-align: center; }
.dy-scroll { max-height: 60vh; overflow: auto; } .dy-t { font-size: 12.5px; } .dy-t th { position: sticky; top: 0; white-space: nowrap; }
.dy-ord { cursor: pointer; } .dy-ord:hover td { background: rgba(47, 111, 179, .06); }
/* «Мои клиенты», «Мои деньги» (01.10.2026) */
.cc-tile.on { box-shadow: 0 0 0 2px #2f6fb3 inset; }
.mm-weeks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 6px 0 10px; }
.mm-wk { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 8px 4px; background: var(--panel); font-size: 12.5px; }
.mm-wk.on { box-shadow: 0 0 0 2px #2f6fb3 inset; } .mm-wk b { font-size: 15px; }
.mm-bar { height: 80px; width: 34px; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .03); border-radius: 4px; } .mm-bar i { display: block; width: 100%; background: #8fb3d9; border-radius: 4px; }
.mm-wk.od .mm-bar i { background: #c0392b; }
@media (max-width: 700px) { .mm-weeks { grid-template-columns: repeat(3, 1fr); } }
/* всплывающая подсказка к показателю (DSO, ADD) — наведение или касание */
.tip { position: relative; border-bottom: 1px dotted currentColor; cursor: help; outline: none; }
.tip:hover::after, .tip:focus::after { content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 6px); z-index: 50; width: min(320px, 80vw); white-space: normal;
  background: #1d2733; color: #fff; font-size: 12.5px; font-weight: 400; line-height: 1.4; padding: 8px 10px; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); text-align: left; }
/* платёжный календарь (01.10.2026) */
.cf-in { fill: #2e8b57; opacity: .8; } .cf-out { fill: #c0392b; opacity: .75; } .cf-line { fill: none; stroke: #2f4a66; stroke-width: 2; } .cf-gap { fill: #b03a2e; }
.cf-min { stroke: #b03a2e; stroke-dasharray: 5 4; } .cf-wk { cursor: pointer; } .cf-wk:hover .cd-hit, .cf-wk.sel .cd-hit { fill: rgba(47, 111, 179, .08); }
.cf-t { font-size: 12.5px; } .cf-t td:first-child { white-space: nowrap; } .cf-t .cf-sum td { font-weight: 600; border-top: 1px solid var(--line); } .cf-t .cf-bal td { background: rgba(47, 74, 102, .06); }
.cf-det { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 16px; }
/* «Мой день»: быстрая карточка и проверка по клиентам (01.10.2026) */
.dy-qc { max-width: 980px; } .dy-qc-tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 8px 0; } .dy-qc-tiles .cc-tile b { font-size: 15px; }
.dy-qc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 700px) { .dy-qc-two { grid-template-columns: 1fr; } }
.dy-is-bad td { background: rgba(192, 57, 43, .05); }

/* платёжный календарь: поставщики по видам */
.cf-sups td, .cf-sups th { white-space: nowrap; } .cf-sups td:nth-child(2) { white-space: normal; min-width: 150px; max-width: 260px; font-size: 12px; }
.cf-sc td { background: rgba(47, 74, 102, .06); } .cf-sp td:first-child { padding-left: 26px; } .cf-spn { display: inline-block; max-width: 280px; white-space: normal; }
.cf-spc { max-width: 1100px; } .cf-mon { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0; font-size: 12px; }
.cf-mon div { display: flex; flex-direction: column; align-items: flex-end; border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; min-width: 70px; }
.cf-mon span { color: var(--muted); } .cf-mon b { color: #8e1b10; font-weight: 600; } .cf-mon i { font-style: normal; color: #2e8b57; }
.cf-mon b.cf-fut { color: var(--text, #1d2733); }
.cc-sur { margin: 3px 0; font-size: 12.5px; border-left: 3px solid #2e8b57; padding: 1px 6px; } .cc-sur.warn { border-color: #d4a017; } .cc-sur.off { border-color: #c0392b; color: var(--muted); }
a.db-kpi { text-decoration: none; color: inherit; cursor: pointer; } a.db-kpi:hover, a.db-kpi.on { border-color: #2f6fb3; background: rgba(47, 111, 179, .06); }
.ct-t td { vertical-align: top; } .ct-t td:nth-child(5), .ct-t td:nth-child(6), .ct-t td:nth-child(7) { min-width: 170px; max-width: 260px; }
.adm-hours { display: flex; gap: 4px; align-items: flex-end; margin: 6px 0 10px; } .adm-hours div { display: flex; flex-direction: column; align-items: center; width: 34px; font-size: 11px; color: var(--muted); }
.adm-hours i { display: block; width: 22px; background: #8fb3d9; border-radius: 3px 3px 0 0; min-height: 1px; } .adm-hours b { font-weight: 600; color: var(--text, #1d2733); }

/* монитор «Нарушения SLA заказов» */
.osl-t td { vertical-align: top; }
.osl-det td { background: #f7f9fb; }
.osl-st { border-left: 3px solid #cfd6de; padding: 4px 10px; margin: 4px 0; }
.osl-st.bad { border-left-color: #c0392b; } .osl-st.warn { border-left-color: #d4a017; }
.osl-it { font-size: 13px; margin: 2px 0 2px 8px; }
.cc-me td { background: #f3f8fd; }
.cd-m-mf { fill: #fff; stroke: #d9822b; } .cd-m-mf.done { fill: #d9822b; } .cd-m-bu { fill: #fff; stroke: #2a9d8f; } .cd-m-bu.done { fill: #2a9d8f; }
.lg.lg-mf { color: #d9822b; background: none; font-style: normal; font-size: 11px; } .lg.lg-bu { color: #2a9d8f; background: none; font-style: normal; font-size: 11px; }
.pm-t tr.sel td { background: #eef5fb; }
.pm-flow td { vertical-align: top; }
/* пайплайн заказа фабрике / поставщику и сшивка с заказом клиента (prod_ctl.js pcPipe, Консультант 04.10.2026: «сшивка заказ — заказ на фабрику с красочным оформлением») */
.pp-chain { display: flex; flex-wrap: wrap; align-items: stretch; gap: 2px; margin: 2px 0; }
.pp-box { display: inline-flex; flex-direction: column; justify-content: center; border-radius: 8px; padding: 3px 9px; min-width: 82px; font-size: 11.5px; line-height: 1.25; color: #fff; background: #2a9d8f; }
.pp-box b { font-size: 12px; font-weight: 600; } .pp-box em { font-style: normal; opacity: .92; font-size: 11px; }
.pp-box.cl { background: #2f6fb3; } .pp-box.ok { background: #2a9d8f; } .pp-box.bad { background: #c0392b; } .pp-box.wait { background: #e09a2b; }
.pp-box.off { background: transparent; color: var(--muted); border: 1.5px dashed var(--line); } .pp-box.sup { background: #8e6cc0; }
.pp-arr { align-self: center; font-size: 11px; color: var(--muted); min-width: 26px; text-align: center; } .pp-arr::after { content: '→'; display: block; font-size: 14px; line-height: 1; }
.pp-arr.bad { color: #c0392b; font-weight: 600; }
.pp-chain.big .pp-box { padding: 6px 12px; min-width: 118px; font-size: 12.5px; } .pp-chain.big .pp-box b { font-size: 13px; }
.pp-leg { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); margin: 4px 0 8px; } .pp-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -2px; }
/* просмотр документа библиотеки (07.10.2026) */
.modal-box.libv-box { width:min(1200px, 96vw); max-width:96vw; height:92vh; max-height:92vh; display:flex; flex-direction:column; padding:12px 16px; overflow:hidden; }
.libv-head { display:flex; gap:10px; align-items:center; justify-content:space-between; margin-bottom:8px; }
.libv-head b { font-size:15px; color:var(--title); min-width:0; overflow-wrap:anywhere; }
.libv-btns { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; flex-shrink:0; }
.libv-body { flex:1; overflow:auto; min-height:0; border-top:1px solid var(--line); padding-top:10px; }
.libv-body.libv-frame { padding:0; overflow:hidden; }
.libv-frame iframe { width:100%; height:100%; border:0; display:block; }
.libv-frame img { max-width:100%; max-height:100%; display:block; margin:0 auto; }
.libv-tabs { margin:0 0 6px; overflow-x:auto; flex-wrap:nowrap; } .libv-tabs button { white-space:nowrap; }
.libv-doc { max-width:900px; margin:0 auto; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.libv-doc.libv-xl { max-width:none; overflow-wrap:normal; }
.libv-doc h1 { font-size:20px; } .libv-doc h2 { font-size:17px; } .libv-doc h3 { font-size:15px; } .libv-doc p { margin:0 0 6px; }
/* исправления и примечания Word (13.10.2026); «итоговый текст» — класс lv-final */
.libv-doc ins.lv-ins { color:#1e7b34; text-decoration:underline; text-decoration-color:#1e7b34; background:rgba(30,123,52,.08); }
.libv-doc del.lv-del { color:#b3261e; text-decoration:line-through; }
.libv-doc mark.lv-hl { background:var(--yellow); color:inherit; padding:0 1px; }
.libv-doc .lv-pins { border-left:3px solid #1e7b34; padding-left:6px; }
.libv-doc .lv-pdel { border-left:3px solid #b3261e; padding-left:6px; }
.libv-doc sup.lv-cm { color:var(--accent2); font-weight:600; font-size:10px; }
.libv-doc .lv-cmt { display:block; margin:4px 0 8px 14px; padding:5px 9px; border-left:3px solid #e0a800; background:var(--bg); color:var(--muted); font-size:12.5px; line-height:1.45; }
.libv-doc .lv-cma { font-style:italic; }
.libv-doc.lv-final del.lv-del, .libv-doc.lv-final sup.lv-cm, .libv-doc.lv-final .lv-cmt, .libv-doc.lv-final .lv-pdel { display:none; }
.libv-doc.lv-final ins.lv-ins { color:inherit; text-decoration:none; background:none; }
.libv-doc.lv-final .lv-pins { border-left:0; padding-left:0; }
.libv-doc table.lv-tbl { border-collapse:collapse; margin:8px 0; font-size:13px; }
.libv-doc .lv-tbl td, .libv-doc .lv-tbl th { border:1px solid #cfd6df; padding:3px 6px; vertical-align:top; }
.libv-doc .lv-tbl td, .libv-doc .lv-tbl th { overflow-wrap:break-word; }   /* не anywhere, как у документа: иначе узкая колонка («Тема», «Срок») сжималась до пары букв (14.10.2026) */
.libv-doc .lv-tbl td.lv-vm { border-top-color:transparent; }
.libv-doc .lv-sheet td { white-space:nowrap; font-size:12px; } .libv-doc .lv-sheet td.n { text-align:right; }
.libv-doc .lv-sheet td.lv-span { white-space:normal; }    /* заголовок или пояснение в одной ячейке строки — на всю ширину с переносом (lib_view._cls, 17.10.2026) */
.libv-doc .lv-sheet td.lv-long { white-space:normal; min-width:220px; max-width:420px; }
.lv-slide { border:1px solid var(--line); border-radius:8px; padding:8px 12px; margin:0 0 10px; } .lv-slide-n { font-size:12px; color:var(--muted); margin-bottom:4px; }
.lv-pre { white-space:pre-wrap; font-size:13px; }
.libv-note { margin:0 0 8px; }
a.lib-dl { font-size:12px; }
@media (max-width:760px) { .modal-box.libv-box { width:100%; max-width:100%; height:calc(100vh - 32px); max-height:calc(100vh - 32px); padding:10px; } }
/* производство: период всего отчёта (07.10.2026) */
.pr-per label { white-space:nowrap; } .pr-per select { max-width:100%; }
/* шкала времени заказа фабрике (07.10.2026): пайплайн и сроки */
.pc-tl { display:flex; align-items:center; gap:8px; margin-top:4px; } .pc-tl-sc { position:relative; flex:1; min-width:150px; height:12px; background:#f1f4f8; border-radius:3px; }
.pc-tl-sc i { position:absolute; top:2px; height:8px; border-radius:2px; } .pc-tl-sc b { position:absolute; top:-2px; width:0; height:16px; border-left:2px solid #24384f; }
.pc-tl-sc b.f { border-left:2px dashed #7b8794; } .pc-tl-sc b.fac { border-left:2px solid #2f6fb3; } .pc-tl-t { font-size:12px; white-space:nowrap; min-width:64px; } .pc-tl.big .pc-tl-sc { height:16px; } .pc-tl.big .pc-tl-sc i { height:12px; }
/* прайс и история цен (08.10.2026) */
.pls-types { flex-basis:100%; } .pls-types summary { cursor:pointer; font-weight:600; }
.pls-tgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:8px 16px; margin:8px 0; } .pls-tgrid label { display:block; font-weight:400; }
table.pls tr.pls-g td { background:#f1f4f8; font-weight:600; } table.pls tr.pls-g2 td { background:#f8fafc; } table.pls tr.pls-g2 td.sticky { padding-left:22px; }
table.pls td .help { margin:0; font-size:11px; }
.modal-box.pls-box { width:min(1200px, 96vw); max-width:96vw; }
/* механика цен 1С (08.10.2026) */
.pmc-chain { display:flex; flex-wrap:wrap; align-items:stretch; gap:8px; margin:8px 0; } .pmc-box { flex:1 1 180px; border:1px solid #d5dde6; border-radius:6px; padding:8px 10px; background:#f8fafc; }
.pmc-arr { align-self:center; font-size:20px; color:#7b8794; } @media (max-width:760px) { .pmc-arr { display:none; } }
/* моделирование прайс-листа (08.10.2026) */
.pmd-adj { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:4px 0; } .pmd-adj select { max-width:320px; }
.pmd-ch, td.pmd-ch { background:#fff6d6; } .pmd-mk { display:flex; flex-wrap:wrap; gap:8px 16px; margin:6px 0; }
/* цена сделки против прайса (08.10.2026) */
.pdl-wf { width:100%; max-width:820px; height:auto; } .pdl-wf .pdl-b { fill:#24384f; } .pdl-wf .pdl-up { fill:#2e8b57; } .pdl-wf .pdl-dn { fill:#c0392b; }
.pdl-wf .pdl-v { font-size:11px; fill:#24384f; } .pdl-wf .pdl-l { font-size:10px; fill:#5b6775; }
.pls-tile { cursor:pointer; } .pls-tile:hover { border-color:#24384f; } .pls-tile.on { outline:2px solid #24384f; }
/* «Пульс продаж» — вкладка «Моего дня» (static/pulse.js, 09.10.2026) */
.ps-tabs { display: flex; gap: 4px; margin: 4px 0 10px; border-bottom: 1px solid var(--line); }
.ps-tabs a { padding: 6px 16px; border-radius: 8px 8px 0 0; text-decoration: none; color: var(--muted); font-weight: 600; border: 1px solid transparent; }
.ps-tabs a.on { color: var(--text); background: var(--panel); border-color: var(--line); border-bottom-color: var(--panel); margin-bottom: -1px; }
.ps-data { margin-bottom: 8px; }
.ps-who { margin: 6px 0; } .ps-who b { font-size: 17px; }
.ps-board-h { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; } .ps-board-h h3 { margin: 0; }
.ps-tiles { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 8px; } .ps-tile b { font-size: 24px; }
.ps-say { margin-top: 8px; font-size: 15px; padding: 8px 12px; border-radius: 8px; background: #eef1f4; }
.ps-say.ok { background: #e3f4ea; } .ps-say.warn { background: #fff4cc; } .ps-say.bad { background: #fbe3e0; }
.ps-day, .ps-rank { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 8px 0; }
.ps-day > div, .ps-rank > div { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.ps-day b, .ps-rank b { font-size: 20px; }
.ps-up { color: #1f6b3a; font-size: 13px; } .ps-dn { color: #b03a2e; font-size: 13px; }
.ps-cal { display: inline-flex; gap: 1px; vertical-align: middle; flex-wrap: wrap; }
.ps-cal i { width: 7px; height: 14px; border-radius: 2px; background: #e6e9ee; display: inline-block; }
.ps-cal i.on { background: #2e8b57; } .ps-cal i.off { background: #c0392b; } .ps-cal i.fut { background: transparent; border: 1px dashed #c9cfd8; box-sizing: border-box; }
.ps-calrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.ps-hints ol { font-size: 15px; line-height: 1.5; padding-left: 24px; margin: 6px 0; } .ps-hints li { margin: 4px 0; }
.ps-money { display: inline-block; font-size: 12px; padding: 0 7px; border-radius: 9px; background: #eef1f4; color: var(--muted); white-space: nowrap; }
.ps-league { max-width: 560px; margin: 8px 0; } .ps-me td { font-weight: 700; background: #eef5fc; }
.ps-t td { vertical-align: top; } .ps-t .ps-lead { min-width: 190px; } .ps-t .ps-lead .cc-badge { white-space: normal; } .ps-dim td { opacity: .6; }
/* линия заказа — вкладка монитора «Пайплайны» (09.10.2026) */
.pml-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; margin-top: 8px; }
.pml-step { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-left: 4px solid #2f6fb3; border-radius: 10px; padding: 8px 10px; min-width: 150px; flex: 1 1 150px; background: var(--panel); }
.pml-step b { font-size: 18px; } .pml-arrow { align-self: center; color: var(--muted); font-size: 18px; }

/* хелпдеск 1С и ИТ (helpdesk.js, 11.10.2026): приоритет цветом, история обращения */
.hd-p { display:inline-block; padding:1px 7px; border-radius:9px; font-size:12px; font-weight:600; color:#fff; }
.hd-p1 { background:#c0392b; } .hd-p2 { background:#d4801a; } .hd-p3 { background:#2e75b6; } .hd-p4 { background:#8a94a3; }
.hd-evs { max-height:260px; overflow:auto; border:1px solid var(--line, #e4e7eb); border-radius:8px; padding:6px 10px; margin-bottom:8px; }
.hd-ev { padding:4px 0; border-bottom:1px dashed var(--line, #e4e7eb); } .hd-ev:last-child { border-bottom:0; }
.hd-inline { display:inline-flex; gap:6px; align-items:center; margin-right:14px; }
.hd-warn { color:#8a6d00; font-weight:600; }
/* календарь компании: карточка праздника на главной (app.js homeFest, 11.10.2026) */
.fest-card { display:flex; gap:14px; align-items:baseline; flex-wrap:wrap; border-left:4px solid #b8860b; background:#fff8e6; margin-bottom:14px; }
.fest-card b { font-size:17px; }
/* «Славия»: план месяца (slavia.js, 11.10.2026) */
.slv-form { display:grid; grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:6px 14px; margin:8px 0; }
.slv-t td:first-child { white-space:nowrap; } .slv-t th a { color:inherit; }
/* БДДС — движение денег (bdds.js, 15.10.2026) */
.bds-wrap { max-height: 72vh; }
table.grid.bds-t thead th { position: sticky; top: 0; z-index: 2; background: var(--panel); }
table.grid.bds-t td.bds-name, table.grid.bds-t th.bds-name { position: sticky; left: 0; z-index: 1; background: var(--panel); min-width: 260px; max-width: 360px; white-space: normal; }
table.grid.bds-t thead th.bds-name { z-index: 3; }
table.grid.bds-t td.num a { color: inherit; text-decoration: none; } table.grid.bds-t td.num a:hover { text-decoration: underline; color: var(--accent); }
table.grid.bds-t .bds-tot { border-left: 2px solid var(--line); }
table.grid.bds-t td.bds-neg { color: #8a3a32; }
table.grid.bds-t tr.bds-bal td { background: #eef3f9; font-weight: 600; } table.grid.bds-t tr.bds-bal td.bds-name { background: #eef3f9; }
table.grid.bds-t tr.bds-bal2 td { color: var(--muted); font-size: 12.5px; }
table.grid.bds-t tr.bds-sec td { border-top: 2px solid var(--line); font-weight: 600; }
table.grid.bds-t tr.bds-total td { background: #f1f3f5; font-weight: 700; border-top: 2px solid var(--line); } table.grid.bds-t tr.bds-total td.bds-name { background: #f1f3f5; }
table.grid.bds-t tr.bds-sec2 td, table.grid.bds-t tr.bds-memo td { color: #4a5360; } table.grid.bds-t tr.bds-memo td { font-style: italic; }
table.grid.bds-t tr.bds-sub2 td, table.grid.bds-t tr.bds-art td { color: #4a5360; font-size: 12.5px; }
table.grid.bds-t tr.bds-chk td { font-size: 12px; border-top: 2px solid var(--line); }
table.grid.bds-t th.bds-we { color: var(--red); }
.bds-tw { text-decoration: none; color: var(--muted); }
.bds-ok { color: #1f6b35; font-weight: 700; }
.bds-dash { stroke-dasharray: 5 4; stroke-width: 1.5; opacity: .7; } .bds-pt { fill: #2f4a66; } .bds-ax { fill: #2f4a66; } .bds-axl { stroke: #2f4a66; opacity: .3; }
.cd-legend .lg.bds-lg-dash { background: none; border-top: 2px dashed #2f4a66; height: 0; }
.bds-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.bds-bar { display: grid; grid-template-columns: minmax(110px, 1.3fr) 2fr auto 44px; gap: 8px; align-items: center; font-size: 13px; margin: 4px 0; }
.bds-bar i { display: block; height: 10px; background: #2f6fb3; border-radius: 3px; opacity: .75; } .bds-bar em { color: var(--muted); font-style: normal; text-align: right; }
.bds-q { border-left: 4px solid #d4a017; } .bds-q.ok { border-left-color: #2e8b57; } .bds-q h3 { margin: 0 0 6px; font-size: 15px; }
.pill.bds-warn { background: var(--yellow); color: #7a5b00; }
table.grid.bds-src td { white-space: normal; vertical-align: top; }
.modal-box.bds-cellm { max-width: min(1300px, 96vw); width: 96vw; } .bds-cellm table.grid td { white-space: normal; vertical-align: top; } .bds-cellm table.grid td.num { white-space: nowrap; }
table.grid.bds-t td { padding-top: 3px; padding-bottom: 3px; }
table.grid.bds-t thead tr.bds-h2 th { top: 27px; } .bds-wf-tot { fill: #2f4a66; } .bds-wf-up { fill: #2e8b57; } .bds-wf-down { fill: #c0392b; } .bds-wf-link { stroke: #8a94a3; stroke-dasharray: 3 3; }
.bds-fctl select { max-width: 300px; } .bds-fctl input[type=date], .bds-fctl input[list] { font: inherit; padding: 2px 6px; } .bds-fctl { margin: 6px 0; }
@media (max-width: 700px) { table.grid.bds-t td.bds-name, table.grid.bds-t th.bds-name { min-width: 170px; } .bds-bar { grid-template-columns: 1fr 1fr auto; } .bds-bar em { display: none; } }
/* дебиторка: договор — оригинал или скан (debts.js, 17.10.2026) */
.db-ar { font-size: 11.5px; padding: 1px 6px; border-radius: 8px; white-space: nowrap; } .db-ar-orig { background: var(--green); color: #1f6b35; }
.db-ar-scan { background: #eceff3; color: #4a5360; } .db-ar-none, .db-ar-nodog { background: #f6e7e5; color: #8a3a32; }
.db-ar-bad { font-size: 11.5px; color: #fff; background: #c0392b; padding: 1px 6px; border-radius: 8px; white-space: nowrap; }
.db-ar-warn { font-size: 11.5px; color: #7a5b00; background: var(--yellow); padding: 1px 6px; border-radius: 8px; white-space: nowrap; }
/* агенты портала: доска, очередь решений, карточка агента (agents.js, 17.10.2026) */
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin-top: 10px; }
.ag-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel); }
.ag-card.on { border-left: 4px solid #2e8b57; } .ag-card.plan { opacity: .78; }
.ag-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .ag-h b { font-size: 15.5px; }
.ag-st { font-size: 11.5px; padding: 1px 8px; border-radius: 8px; background: #eceff3; color: #4a5360; white-space: nowrap; } .ag-st.on { background: var(--green); color: #1f6b35; }
.ag-about { font-size: 13px; } .ag-nums { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); } .ag-nums a { text-decoration: none; } .ag-nums b { font-size: 16px; color: var(--text); }
.ag-top { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; border-top: 1px dashed var(--line); padding-top: 6px; }
.ag-chip { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 8px; background: #eceff3; color: #4a5360; white-space: nowrap; margin: 1px 4px 1px 0; }
.ag-chip.r-overdue, .ag-chip.r-no_react, .ag-chip.r-never { background: #f6e7e5; color: #8a3a32; }
.ag-chip.r-review, .ag-chip.r-load, .ag-chip.r-no_assignee { background: var(--yellow); color: #7a5b00; }
.ag-chip.r-wait, .ag-chip.r-stale { background: #e8eef6; color: #2f4a66; }
.ag-dig { margin: 4px 0 6px; padding-left: 18px; } .ag-dig li { margin: 2px 0; }
.ag-f { border: 1px solid var(--line); border-left: 4px solid #b9c2cc; border-radius: 10px; padding: 8px 10px; margin: 6px 0; background: var(--panel); }
.ag-f.sev1 { border-left-color: #d4a017; } .ag-f.sev2, .ag-f.sev3 { border-left-color: #c0392b; }
.ag-fh { display: flex; gap: 10px; align-items: flex-start; } .ag-ft { flex: 1; min-width: 0; } .ag-ft > a, .ag-ft > b { font-weight: 600; text-decoration: none; }
.ag-sev { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #eceff3; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; }
.ag-f.sev2 .ag-sev, .ag-f.sev3 .ag-sev { background: #c0392b; color: #fff; } .ag-f.sev1 .ag-sev { background: var(--yellow); }
.ag-why { margin: 3px 0; } .ag-fa { display: flex; flex-direction: column; gap: 4px; align-items: stretch; flex: none; }
.ag-fx { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0 36px; padding-top: 8px; border-top: 1px dashed var(--line); }
.ag-txt { flex: 1 1 360px; font-size: 13px; } .ag-txt ul { margin: 2px 0 6px; padding-left: 18px; }
.ag-acts { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; flex: 1 1 260px; }
.ag-pass { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.ag-pipe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .ag-pipe i { color: var(--muted); font-style: normal; }
.ag-step { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; min-width: 110px; } .ag-step b { font-size: 18px; } .ag-step span { font-size: 12px; color: var(--muted); }
.ag-step.warn { border-left: 4px solid #d4a017; }
@media (max-width: 640px) { .ag-fh { flex-wrap: wrap; } .ag-fa { flex-direction: row; flex-wrap: wrap; width: 100%; } .ag-fx { margin-left: 0; } .ag-grid { grid-template-columns: 1fr; } }
button.ag-go { background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 5px 10px; font-size: 13px; } button.ag-go:hover { background: var(--accent2); }
.ag-links { display: flex; gap: 14px; font-size: 13px; } .ag-links a { text-decoration: none; }
.ag-tl { flex: 1 1 100%; font-size: 13px; display: flex; flex-direction: column; gap: 3px; } .ag-tl a { text-decoration: none; }
.ag-auto { display: flex; gap: 8px; align-items: center; margin: 4px 0; font-size: 13.5px; }
.ag-home { border-left: 4px solid #d4a017; margin-bottom: 14px; } .ag-home > div { font-size: 13px; margin: 2px 0; } .ag-home h3 a { text-decoration: none; }
table.grid.ag-plan, table.grid.ag-tb { width: 100%; } table.grid.ag-plan td, table.grid.ag-tb td { white-space: normal; max-width: none; overflow: visible; text-overflow: clip; } table.grid.ag-tb { margin: 6px 0; }
.ag-chip.ag-a { background: #e8eef6; color: #2f4a66; } .ag-dec { margin: 4px 0 8px; padding-left: 20px; font-size: 13px; }
.ag-chip.r-loss, .ag-chip.r-floor { background: #f6e7e5; color: #8a3a32; } .ag-chip.r-conc, .ag-chip.r-transport, .ag-chip.r-decision { background: var(--yellow); color: #7a5b00; }
.ps-tabs.ag-tabs { flex-wrap: wrap; row-gap: 2px; }
.ag-chip.r-late, .ag-chip.r-pay { background: #f6e7e5; color: #8a3a32; } .ag-chip.r-pick, .ag-chip.r-noagree, .ag-chip.r-noplan, .ag-chip.r-supplier, .ag-chip.r-factory { background: var(--yellow); color: #7a5b00; }
tr.ag-wk { cursor: pointer; } tr.ag-wk:hover td { background: rgba(47, 111, 179, .05); }
table.grid td.ag-wkd { white-space: normal; max-width: none; overflow: visible; background: var(--bg); }

/* Рынок: конкуренты (market.js, 17.10.2026) */
.cm-lo { color: #2f6fb3; }
table.grid.cm-tb td { white-space: normal; }
.cm-ph { width:92px; height:92px; object-fit:contain; background:#fff; border:1px solid var(--line); border-radius:6px; display:block; } .cm-ph0 { display:flex; align-items:center; justify-content:center; font-size:11px; color:var(--muted); background:var(--head); }
.cm-brief { font-size:12.5px; margin:4px 0; color:var(--text); } .cm-brief span { color:var(--muted); } .cm-pair { display:flex; gap:10px; padding:8px 0; border-bottom:1px solid var(--line); } .cm-pair > div:last-child { min-width:0; }
.cm-in { color:var(--ok); font-weight:600; } .cm-out { color:var(--red); font-weight:600; }
table.grid.cm-cat td.num { white-space:nowrap; } table.grid.cm-cat { min-width:0; width:100%; } table.grid.cm-cat th:first-child, table.grid.cm-cat td:first-child { min-width:240px; max-width:380px; }
tr.cm-click { cursor: pointer; } tr.cm-click:hover td { background: rgba(47, 111, 179, .05); }
tr.cm-click.on td { background: rgba(47, 111, 179, .12); } tr.cm-click.on td:first-child { box-shadow: inset 4px 0 0 var(--accent); }   /* выбранный дилер — его позиции ниже (11.11.2026) */
table.grid tr.cm-det td { white-space: normal; background: var(--bg); } tr.cm-det td > div { margin: 4px 0 8px; }
.cm-deg { color: var(--muted); }
td.cm-act { white-space: nowrap; } td.cm-act select { margin-right: 4px; }
.modal-box.cm-modal { max-width: 1100px; width: 95vw; }
tr.cm-focus td { background: rgba(47, 111, 179, .07); }

/* Дилеры и кандидаты (dealers.js, 17.10.2026) */
.dl-spark { display: inline-flex; align-items: flex-end; gap: 1px; height: 22px; vertical-align: middle; }
.dl-spark i { display: block; width: 5px; background: var(--accent); opacity: .7; min-height: 0; }
.cm-lv td { vertical-align: top; }
.cm-todo { margin: 0 0 4px; padding-left: 16px; }
/* экран на замороженных данных Excel (ревизия экранов, 27.10.2026): заметная строка вверху страницы */
.frozen-bar { margin:0 0 12px; padding:8px 12px; background:var(--yellow); border:1px solid #e6c65c; border-left:4px solid #d4a017; border-radius:5px; color:#5c4700; font-weight:600; }
/* одна себестоимость (№ 739): пометка «оценка до закрытия месяца» на экранах продаж */
.cost-est { display: inline-block; margin: 2px 0 8px; padding: 3px 10px; border-radius: 10px; font-size: 12px; background: #fff4d6; color: #7a5a00; border: 1px solid #f0d58a; cursor: help; }
/* закрытие месяца (#bdrlive): доля выручки с себестоимостью 1С */
.bdl-ok { background: #e3f3e6; } .bdl-mid { background: #fff4d6; } .bdl-bad { background: #fbe1e1; }
.bdl-close td.num, .bdl-close th.num { padding-left: 4px; padding-right: 4px; }
/* сверка БДР (#bdrlive, № 576): шрифты, размеры и заливка — как в образце Ермилова (Calibri 12/11 в шапке, строки Arial 8, итоги Arial 10, группы — серым) */
.bdl-rc-title { font-family: Calibri, Carlito, Arial, sans-serif; font-size: 12pt; font-weight: 700; color: #000; margin: 0 0 4px; }
.bdl-rc-flt { font-family: Calibri, Carlito, Arial, sans-serif; font-size: 11pt; color: #000; margin: 0 0 8px; }
.bdl-rc { border-collapse: collapse; font-family: Arial, sans-serif; font-size: 8pt; color: #000; background: #fff; }
.bdl-rc col.c-l { width: 373px; } .bdl-rc col.c-n { width: 115px; }
.bdl-rc th { font-family: Calibri, Carlito, Arial, sans-serif; font-size: 11pt; font-weight: 700; text-align: center; padding: 1px 4px; border: 1px solid #d4d4d4; background: #fff; color: #000; }
.bdl-rc td { height: 15pt; padding: 0 4px; border: 1px solid #d4d4d4; background: #fff; color: #000; }
.bdl-rc td.num { text-align: right; white-space: nowrap; }
.bdl-rc tr.l0 td { background: #d9d9d9; font-weight: 700; }
.bdl-rc tr.l1 td { background: #f2f2f2; font-weight: 700; }
.bdl-rc tr.big td { font-size: 10pt; } .bdl-rc tr.big td:first-child { text-align: right; }
.kpi.kpi-bad { border-color:#e7a3a3; background:#fdf3f3; }
/* «Мои статьи» (#myart): сигнал по лимиту */
.mya-sig { display:inline-block; padding:1px 8px; border-radius:9px; font-size:12px; white-space:nowrap; }
.mya-red { background:#fbe1e1; color:#9b1c1c; } .mya-yellow { background:#fff4d6; color:#7a5a00; } .mya-green { background:#e3f3e6; color:#1d6b33; }

/* плашка «Назначено обучение» (06.11.2026): всплывает поверх любого экрана портала */
.ln-pop { position:fixed; top:64px; right:16px; z-index:40; width:min(380px, calc(100vw - 24px)); background:var(--panel); border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:10px; box-shadow:0 8px 28px rgba(0,0,0,.16); padding:10px 14px; font-size:14px; }
.ln-pop.late { border-left-color:var(--red); }
.ln-pop-h { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; color:var(--title); }
.ln-pop-x { border:0; background:none; font-size:20px; line-height:1; color:var(--muted); cursor:pointer; padding:0 2px; }
.ln-pop-i { display:flex; gap:10px; align-items:center; padding:7px 0; border-top:1px solid var(--line); text-decoration:none; color:var(--text); }
.ln-pop-i:hover b { text-decoration:underline; }
.ln-pop-i b { display:block; color:var(--title); font-size:13.5px; }
.ln-pop-i .m { display:block; font-size:12.5px; color:var(--muted); margin-top:1px; }
.ln-pop-i .m .late { color:var(--red); font-weight:600; }
.ln-pop-i .go { margin-left:auto; color:var(--accent); font-size:13px; white-space:nowrap; }
.ln-pop-all { display:block; padding-top:7px; border-top:1px solid var(--line); font-size:13px; }
@media (max-width:760px) { .ln-pop { top:auto; bottom:12px; right:12px; } }

/* множественный выбор в отборе (ценовой сегмент на экране номенклатуры) */
.nt-multi { position: relative; display: block; }
.nt-multi > summary { list-style: none; cursor: pointer; padding: 5px 26px 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card, #fff); min-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.nt-multi > summary::-webkit-details-marker { display: none; }
.nt-multi > summary::after { content: '▾'; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--muted, #888); }
.nt-multi > div { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 100%; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.nt-multi > div label { display: flex; gap: 6px; align-items: center; padding: 3px 0; white-space: nowrap; font-weight: normal; }

/* матрица товаров Прабо по общей матрице: ячейка лист × ступень */
.nmxv-t td.nmxv-c { cursor: pointer; vertical-align: top; min-width: 150px; }
.nmxv-t td.nmxv-c:hover, .nmxv-t td.nmxv-c.on { background: var(--hover, rgba(0,0,0,.04)); }
.nmxv-t td.nmxv-hole { box-shadow: inset 3px 0 0 #d9534f; }

/* справочник номенклатуры: ячейка общей матрицы на плитке и «Ещё отборы» */
.nr-cell { display: block; font-size: 11.5px; color: var(--accent, #2a6fb0); margin-top: 2px; cursor: pointer; line-height: 1.3; }
.nr-cell:hover { text-decoration: underline; }
.nr-more { flex-basis: 100%; }
.nr-more > summary { cursor: pointer; color: var(--muted, #888); font-size: 13px; margin-top: 2px; }
.nr-more[open] { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.nr-more[open] > summary { flex-basis: 100%; }

/* руководство по порталу (#guide, guide.js, 08.11.2026): роль, разделы меню роли с пояснениями, сценарии — цвета темы */
.gd-role { border-left:4px solid var(--accent); }
.gd-role-t { line-height:1.5; }
.gd-pick { display:flex; align-items:center; gap:8px; margin:0 0 8px; font-size:13px; color:var(--muted); }
.gd-pick select { max-width:100%; min-width:0; flex:1 1 auto; font:inherit; padding:4px 6px; }
.gd-facts { display:flex; flex-wrap:wrap; gap:6px 18px; margin-top:8px; color:var(--muted); font-size:13px; }
.gd-facts b { color:var(--title); font-size:15px; }
.gd-tabs { align-items:center; }
.gd-tabs .gd-hub { margin-left:auto; padding:8px 4px; font-size:13px; text-decoration:none; }
.gd-find { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin:0 0 12px; }
.gd-find input { flex:1 1 260px; max-width:520px; min-width:0; padding:7px 10px; border:1px solid var(--line); border-radius:6px; font:inherit; }
.gd-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:14px; align-items:start; margin-bottom:14px; }
.gd-grid .card { margin:0; min-width:0; }
.gd-card h3 { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 10px; }
.gd-open { font-size:12px; font-weight:400; text-decoration:none; }
.gd-grp h4 { margin:10px 0 2px; font-size:12px; color:var(--muted); font-weight:600; }
.gd-item { padding:4px 0 2px; overflow-wrap:anywhere; }
.gd-item > a { font-weight:500; }
.gd-item .help { margin-top:1px; }
.gd-nodesc { color:var(--warn); }
.gd-docs { margin:4px 0; }
.gd-docs > summary { cursor:pointer; padding:3px 0; }
.gd-docs .gd-item { padding-left:14px; }
.gd-newcard { border-left:4px solid var(--warn-line); }
.gd-news-row { padding:4px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.gd-news-row:last-of-type { border-bottom:0; }
.gd-h { margin:18px 0 8px; font-size:15px; color:var(--title); }
.gd-scen { padding:0; }
.gd-scen > summary { cursor:pointer; padding:11px 16px; line-height:1.45; }
.gd-scen[open] > summary { border-bottom:1px solid var(--line); }
.gd-steps { margin:10px 16px 6px 8px; padding-left:24px; line-height:1.55; }
.gd-steps li { margin:3px 0; overflow-wrap:anywhere; }
.gd-done { margin:4px 16px 8px; padding:6px 10px; background:var(--hover); border-radius:6px; line-height:1.5; }
.gd-scen > .help { margin:0 16px 12px; line-height:1.5; }
.gd-noacc { color:var(--muted); }
.gd-hubcard { border-left:4px solid var(--accent); line-height:1.5; }
@media (max-width: 760px) { .gd-grid { grid-template-columns:1fr; } .gd-tabs .gd-hub { margin-left:0; } }
/* ФОТ и вклад (#fotvklad): столбцы окон 3 и 12 мес. и итоговые строки */
.fvk-t td.fvk-agg, .fvk-t th.fvk-agg { background: #f6f8fa; border-left: 2px solid var(--line); }
.fvk-t tr.fvk-tot td { border-top: 2px solid var(--line); background: #fafbfc; }
/* «Инциденты и претензии»: ссылки на утверждённый документ и проекты «Штаба» под заголовком */
.inc-links { margin: 2px 0 8px; font-size: 13px; }
/* «Клиентская база: план 2027» (09.11.2026) */
.b27-det { background:var(--hover); border-radius:6px; padding:10px 12px; margin-top:12px; }
.b27-det-h { margin-bottom:6px; } .b27-det-h a { font-size:12.5px; margin-left:8px; }
.b27-unit { margin:4px 0 14px; }
.b27-facts { font-size:12.5px; line-height:1.5; margin:4px 0 8px; }
.b27-tops { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:12px; }
.b27-tops table.grid td { white-space:normal; }
.b27-tops > div { min-width:0; overflow-x:auto; }
table.grid.b27-t th { white-space:normal; vertical-align:bottom; min-width:84px; }
table.grid.b27-t, .b27-tops table.grid { width:100%; }
table.grid.b27-t td:first-child { white-space:nowrap; }
.guide-btn .ln-ico { display:inline-flex; vertical-align:-3px; } .guide-btn.on { box-shadow:inset 0 -2px 0 var(--brand); }   /* «Руководство» в шапке (10.11.2026) */
/* документы контура таблицей: версия, статус, проект «Штаба», даты (10.11.2026) */
.cc-docs-card { grid-column:1 / -1; } .cc-docs-card .table-wrap { max-height:none; }
table.grid.cc-docs { width:100%; } table.grid.cc-docs td { white-space:normal; } table.grid.cc-docs td a { display:inline; padding:0; }
table.grid.cc-docs td:first-child { min-width:320px; width:38%; } table.grid.cc-docs td:nth-child(5) { min-width:230px; } table.grid.cc-docs td:nth-child(2), table.grid.cc-docs td:nth-child(4), table.grid.cc-docs td:nth-child(n+6) { white-space:nowrap; } .nav-badge-new { font-size:11px; font-weight:600; color:#8a6d00; background:#fff3c4; border-radius:4px; padding:0 5px; }

/* Реорганизация 2027 (#model/reorg27): обязанности по ДИ — списком, строки людей — по верху */
.r27-dut { margin: 4px 0 0 18px; padding: 0; max-width: 460px; }
.r27-dut li { margin: 2px 0; }
.r27-t td { vertical-align: top; }
.r27-t select.in { max-width: 230px; }
.r27-ana { margin: 6px 0 10px 18px; padding: 0; } .r27-ana li { margin: 3px 0; }

/* «Реорганизация 2027»: оценка пунктов ДИ по данным (di_match) */
.r27-v { display: inline-block; font-size: 11px; line-height: 1.5; padding: 0 6px; border-radius: 8px; white-space: nowrap; }
.r27-v-do { background: #e3f4ea; color: #1f6b3a; } .r27-v-other { background: #e5eefb; color: #24518f; } .r27-v-no { background: #fbe3e0; color: #b03a2e; }
.r27-v-diff { background: #fff4cc; color: #8a6d00; } .r27-v-nm { background: #eef1f4; color: var(--muted); }
.r27-blk { margin: 8px 0 2px; font-weight: 600; font-size: 12.5px; }
.r27-di-body { max-width: 560px; }
/* цена и рентабельность заказа: положено и выставили (deal_margin, 10.11.2026) */
.dm-verdict { margin: 4px 0 6px; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.dm-verdict.bad { background: var(--bad-bg); color: #8e1b10; } .dm-verdict.ok { background: #e3f4ea; color: #1f6b3a; }
.dm-t tr.dm-bad td { background: #fdf0ee; } .dm-t td.neg { font-weight: 600; }
.dm-mark { font-size: 12px; white-space: nowrap; } .dm-mark.bad { color: #b03a2e; font-weight: 600; } .dm-mark.ok { color: var(--muted); }
tr.dm-bad-doc td { background: #fdf0ee; }
.ag-pf { font-size: 13px; margin: 2px 0 3px; }
.dm-est { color: #5a4a8a; } .cd-kpis.dm-est .cd-k b { color: #5a4a8a; }
.cd-dm-bad { fill: #b03a2e; font-weight: 700; }
.ag-nums { font-size: 13px; margin: 2px 0; display: flex; flex-wrap: wrap; gap: 2px 14px; } .ag-nums b { font-weight: 600; }
.dm-sum h3 { margin-top: 0; } .osl-dm { margin-top: 8px; }
.dm-top { display: flex; justify-content: flex-end; margin: 2px 0 4px; } .dm-sum .dm-top { float: right; margin: 0; } .dm-vat button { font-size: 12px; }
/* карточка агента: раскрытие правила до нарушений и документов (10.11.2026) */
tr.ag-rule-r { cursor: pointer; } tr.ag-rule-r:hover td, tr.ag-rule-r.on td { background: #f4f7fb; } tr.ag-drill > td { background: #fbfcfe; padding: 6px 10px 10px; }
.ag-drill-l { display: flex; flex-direction: column; gap: 6px; max-height: 520px; overflow: auto; }
.ag-dr-f { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ag-dr-docs { font-size: 13px; margin: 2px 0; } a.ag-step-a { text-decoration: none; color: inherit; } a.ag-step-a .ag-step { cursor: pointer; } a.ag-step-a:hover .ag-step { border-color: var(--accent); }
/* раздел «ЗУП» (zup.js, 19.11.2026) */
.zp-tabs { flex-wrap: wrap; } .zp-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 12px; }
details.zp-dep { border-left: 2px solid var(--line); padding: 4px 0 4px 10px; margin-top: 4px; } details.zp-dep > summary { cursor: pointer; list-style: revert; padding: 2px 0; }
details.zp-dep .zp-tw { margin: 6px 0 8px; max-height: none; } td.zp-ppl { white-space: normal; min-width: 280px; max-width: 640px; }
.badge.zp-off { background: #f6e3e1; color: #8a2a20; }
.zp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; } .zp-two .card { min-width: 0; overflow: auto; }
/* ЗУП «Дни и ФОТ по людям» (20.11.2026): буквы табеля, двухстрочная шапка, фамилия закреплена слева при прокрутке месяцев */
.zp-tt { display: inline-block; padding: 0 4px; margin: 1px 3px 1px 0; border-radius: 3px; font-size: 11.5px; line-height: 17px; background: #eef0f3; color: #3b4450; white-space: nowrap; }
.zp-tt-w { background: #e2efda; color: #275a1c; } .zp-tt-v { background: #e3ecf7; color: #234e7a; } .zp-tt-s { background: #fdecd2; color: #7a4a06; }
.zp-tt-u { background: #eceaf5; color: #4a3f7a; } .zp-tt-n { background: #f6e3e1; color: #8a2a20; } .zp-tt-r { background: #fff; color: #2b5a86; border: 1px dashed #9db4cc; line-height: 15px; }
table.zp-dt thead tr:nth-child(2) th { top: 32px; font-weight: 500; font-size: 12px; } table.zp-dt th.zp-mh { text-align: center; border-bottom: 1px solid #e0e3e8; }
table.zp-dt td.zp-mend, table.zp-dt th.zp-mh { border-right: 1px solid #d6dae0; } table.zp-dt tfoot td { background: var(--head); font-weight: 600; }
table.zp-dt .zp-nm { position: sticky; left: 0; z-index: 2; background: var(--panel); min-width: 210px; max-width: 280px; white-space: normal; }
table.zp-dt thead .zp-nm { z-index: 3; background: var(--head); } table.zp-dt tfoot .zp-nm { background: var(--head); }
.zp-ctl select, .zp-ctl input { max-width: 100%; } td.zp-ttc { max-width: none; } td.zp-short { color: var(--warn); } .zp-legend { margin: 0 0 10px; line-height: 22px; } .zp-per { white-space: nowrap; }
