/* Administration screens (Э-7.1 … Э-7.7, М-5, М-10). Shared elements come from theme/ (agent C);
   this file holds only what the admin screens add. Colours only via tokens of theme/tokens.css (A9). */

.adm { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.adm-desktop { display: flex; flex-direction: column; gap: 20px; }
.adm-phone { display: none; }
.adm-subhint { display: inline-flex; vertical-align: middle; margin-left: 2px; }
.adm-subhint--phone { display: none; }
@media (max-width: 767px) { .adm-subhint--phone { display: inline-flex; } }

/* ---------------------------------------------------------------- table (element-map `table`) */
.adm-scroll { position: relative; }
.adm-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.adm-table th {
  box-sizing: border-box; padding: 10px 12px; text-align: center; vertical-align: bottom;
  font-size: 12px; font-weight: 500; line-height: 16px; color: var(--ink-2); letter-spacing: 0.02em;
  background: var(--surface); border-bottom: 1px solid var(--line-2); white-space: normal; overflow-wrap: normal; hyphens: none;
}
/* 29.09, п. 5: every header centred, the numeric ones too */
.adm-table th.num { text-align: center; }
.adm-table th .help-dot { width: 18px; height: 18px; }
.adm-table td {
  box-sizing: border-box; padding: 11px 12px; text-align: center; vertical-align: top;
  font-size: 13px; line-height: 1.4; color: var(--ink); border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
/* правка 07.10 · 117 (v83): cells by the centre, numbers too; long text — only the columns the board sets left (col.left).
   C's fitTables marks every column without a width .tl — the boards keep e.g. «ФИО и состояние» centred, so it is undone here */
.adm-table td.num, .adm-table td.tl { text-align: center; }
.adm-table td.adm-tl { text-align: left; }
.adm-table tr.is-selected td { background: var(--beige); }
.adm-table tr.is-dragging td { background: var(--beige); }
.adm-table td.adm-mid { vertical-align: middle; }

.adm-strong { font-weight: 500; }
.adm-sub { font-size: 12px; color: var(--ink-3); }
/* Р12-01: channels outside the registry under a run status — a second line, no board yet (A draws later) */
.adm-run-warn, .adm-run-note { margin-top: 4px; white-space: normal; overflow-wrap: anywhere; }
.adm-ok { color: var(--g-high); }
.adm-bad { color: var(--g-low); }
.adm-muted { color: var(--ink-3); }
/* ПЗ-7: the former nicks under the nick of a staff row (Э-7.2, М-5 v96) */
.adm-former { display: inline-block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.adm-ink2 { color: var(--ink-2); }

/* owner badge: graphite plate with white text (element-map `замок последнего владельца`, L2801) */
.adm-owner { display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  background: var(--accent-soft); color: var(--on-soft);
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }

/* row actions: pencil, mail, lock, trash — 18 px outline icons in --ink-2 */
.adm-actions { display: inline-flex; gap: 8px; color: var(--ink-2); }
.adm-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0;
  background: transparent; border: 0; color: inherit;
}
.adm-icon:disabled { cursor: default; }

/* drag handle ⠿ (element-map `drag_handle`) */
.adm-drag {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0;
  background: transparent; border: 0; color: var(--ink-3); cursor: grab;
}
.adm-drag:active { cursor: grabbing; }
.adm-drag { touch-action: none; }   /* a finger on ⠿ drags the row instead of scrolling the page */

/* ---------------------------------------------------------------- Э-7.1 rights */
.adm-rights-top { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.adm-rights-top .field { flex-shrink: 0; }
.adm-rights-top__note { display: inline-flex; align-items: center; min-height: 40px; max-width: 300px;
  font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.adm-perms { display: flex; gap: 12px; }
.adm-perms__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm-perm { display: flex; flex-direction: column; padding: 9px 12px; }
.adm-perm__head { display: flex; align-items: center; gap: 8px; }
.adm-perm__note { font-size: 12px; line-height: 1.35; color: var(--ink-3); margin: 3px 0 0 24px; }
.adm-perm__subs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0 24px; }
.adm-perm__lock { display: flex; flex-direction: column; gap: 6px; }
.adm-perm__state { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.35; color: var(--warn-ink); margin: 4px 0 0 24px; }   /* З-18, board Э-7.1 */
.adm-perm__state > svg { flex-shrink: 0; }
.adm-perm__state[hidden] { display: none; }
.adm-perm__state--ok { color: var(--g-high); }
.adm-perm__why { font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 6px 0 0 24px; }

/* third state of «Смотреть разделы»: some sections on (Q-20) — accent plate with a dash */
.checkbox__dash { display: none; width: 8px; height: 2px; background: var(--on-accent); }
.checkbox.is-mixed .checkbox__mark { background: var(--accent); border-color: var(--accent); }
.checkbox.is-mixed .checkbox__mark .ico { visibility: hidden; }
.checkbox.is-mixed .checkbox__dash { display: block; position: absolute; }
.checkbox__mark { position: relative; }

/* the last owner's «Управлять пользователями и правами»: --disabled plate, white check, lock */
.adm-locked { display: inline-flex; align-items: center; gap: 8px; }
.adm-locked__ico { display: inline-flex; color: var(--ink-3); }
.adm-locked__mark { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
  background: var(--disabled); color: var(--on-btn); flex-shrink: 0; }
.adm-locked__label { font-size: 13px; color: var(--ink-2); }

.adm-invite-row { display: flex; align-items: flex-start; gap: 14px; }
.adm-flexfield { min-width: 0; }
.adm-invite-row .adm-btn-slot { flex-shrink: 0; }
.adm-invite-row .adm-btn-slot { padding-top: 22px; }
.adm-invite-foot { margin-top: 14px; }

.adm-msg { margin-bottom: 16px; }

/* ---------------------------------------------------------------- Э-7.3 */
.adm-kind {
  position: relative; display: inline-flex; align-items: center; height: 32px;
  background: var(--surface); border: 1px solid var(--line-2);
}
.adm-kind.is-untyped { border-color: var(--accent); }
.adm-kind select {
  height: 30px; padding: 0 28px 0 10px; background: transparent; color: var(--ink);
  border: 0; border-radius: 0; font-size: 13px; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.adm-kind .ico { position: absolute; right: 7px; top: 7px; color: var(--ink-2); pointer-events: none; }
.adm-chatpick { width: 300px; }
.adm-brandmark { display: inline-flex; align-items: center; height: 34px; color: var(--ink); }
.adm-brandmark--sm { height: 30px; }

/* ---------------------------------------------------------------- phone ≤ 767 (element-map §3) */
.adm-cards { display: none; }
.adm-card {
  background: var(--surface); border: 1px solid var(--line); padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.adm-card.is-selected { background: var(--beige); }
.adm-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.adm-card__top-left { font-size: 12px; color: var(--ink-2); }
/* a long action title of the log (W 23.10: «Сотрудник изменён при переносе списков из n8n (до 29.09)») wraps by words
   instead of widening the phone page (sweep 390); the date on the left keeps its width */
.adm-card__top .adm-card__top-left { flex-shrink: 0; }
/* ПЗ-7: a nick with its former nicks wraps under itself, the state on the right stays in the card */
.adm-card__top .adm-card__top-left:has(.adm-former) { flex-shrink: 1; min-width: 0; }
.adm-card__top > .badge { min-width: 0; height: auto; min-height: 22px; padding-top: 3px; padding-bottom: 3px; white-space: normal; text-align: right; line-height: 1.3; }
.adm-card__title { font-size: 14px; line-height: 1.4; color: var(--ink); }
.adm-card__pairs { display: flex; gap: 10px; }
.adm-card__pair { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* a plan card (ПК-adm-03, 375 px): «Ответственный технолог» is too long for a quarter — its pair takes the first row */
.adm-card--wrap .adm-card__pairs { flex-wrap: wrap; row-gap: 8px; }
.adm-card--wrap .adm-card__pair:first-child { flex-basis: 100%; }
.adm-card__label { font-size: 11px; color: var(--ink-3); }
.adm-card__label-pair { display: inline-flex; align-items: center; gap: 2px; }
.adm-card__value { font-size: 14px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.adm-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--ink-2); padding-top: 8px; border-top: 1px solid var(--line); }
.adm-card__foot .adm-actions { gap: 4px; }
.adm-card__foot .adm-icon, .adm-card .adm-drag { width: 44px; height: 44px; }

.adm-mlist { display: flex; flex-direction: column; gap: 8px; }
.adm-mlist .mrow { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 44px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.adm-mlist .mrow:hover { color: var(--ink); }
.adm-mlist .mrow__main { flex-grow: 1; min-width: 0; font-size: 14px; }
.adm-mlist .mrow__sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.adm-mlist .mrow__right { flex-shrink: 0; font-size: 14px; font-weight: 500; color: var(--ink); }

@media (max-width: 1279px) and (min-width: 768px) {
  .adm-perms { flex-wrap: wrap; }
  .adm-perms__col { flex-basis: calc(50% - 6px); }
  .adm-scroll { overflow-x: auto; }
  .adm-scroll .adm-table { min-width: var(--min); }
}

@media (max-width: 767px) {
  .adm { gap: 12px; }
  .adm-desktop { display: none; }
  .adm-phone { display: flex; flex-direction: column; gap: 12px; }
  .adm-table { display: none; }
  .adm-cards { display: flex; flex-direction: column; gap: 8px; }
  .card { padding: 14px; }
  .block-title { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 12px; }
  .block-title > div:last-child { flex-wrap: wrap; }
  .block-title .btn { height: 44px; }
  .adm-perms { flex-direction: column; gap: 0; }
  .adm-perm { padding: 9px 0; }
  .adm-perm .checkbox { min-height: 44px; }
  .adm-rights-top { flex-direction: column; align-items: stretch; }
  .adm-rights-top .field, .adm-invite-row .field, .adm-invite-row .adm-flexfield { width: 100% !important; flex: 0 0 auto !important; }
  .adm-rights-top .btn, .adm-invite-row .btn { width: 100%; justify-content: center; height: 48px; font-size: 15px; }
  .adm-invite-row { flex-direction: column; align-items: stretch; }
  .adm-invite-row .adm-btn-slot { padding-top: 0; order: 10; }
  .adm-rights-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
  .adm-rights-actions .btn { width: 100%; justify-content: center; height: 48px; font-size: 15px; }
  .field__input, .select select { height: 44px; }
  .select .ico { top: 12px; }
  .adm-chatpick { width: 100%; }
  .adm-kind { height: 44px; width: 100%; }
  .adm-kind select { height: 42px; width: 100%; }
  .adm-kind .ico { top: 13px; }
}
@media (min-width: 768px) { .adm-rights-actions { display: none; } }
@media (max-width: 767px) { .adm-desktop-inline, .adm-caption--table { display: none !important; } }
.adm-phone > .badge { align-self: flex-start; }
.adm-mlist--tight { gap: 6px; }
.adm-phone .msection { margin-top: 6px; }

/* ---------------------------------------------------------------- A22: long lists, forms, confirm */
.adm-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.adm-more__count { font-size: 12px; color: var(--ink-3); }
.adm-lockback { color: var(--accent); }
.adm-form-row { display: flex; align-items: flex-start; gap: 14px; }
.adm-form-row .fbar__pair { height: 40px; margin-top: 22px; flex-shrink: 0; }
.adm-dialog { width: 460px; max-width: 100%; box-sizing: border-box; padding: 24px; background: var(--surface); border: 1px solid var(--line-2); }
.adm-dialog h2 { font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 400; color: var(--ink); margin: 0 0 10px; }
.adm-dialog p { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.adm-dialog__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.adm-pair { display: flex; gap: 20px; align-items: flex-start; }
.adm-pair > .card { flex: 1 1 0; min-width: 0; }
.adm-table tr.adm-note-row td { border-bottom: 1px solid var(--line); padding-top: 0; }
@media (max-width: 767px) {
  .adm-form-row { flex-direction: column; align-items: stretch; }
  .adm-form-row .adm-flexfield, .adm-form-row .field { width: 100% !important; flex: 0 0 auto !important; }
  .adm-form-row .fbar__pair { margin-top: 0; height: 44px; }
  .adm-dialog { width: 100%; }
  .adm-dialog__foot { flex-direction: column-reverse; }
  .adm-dialog__foot .btn { width: 100%; justify-content: center; height: 48px; }
  .adm-pair { flex-direction: column; }
  .adm-more { flex-direction: column; align-items: stretch; }
  .adm-more .btn { justify-content: center; height: 44px; }
}
.adm-newtopic { display: flex; flex-direction: column; gap: 8px; }
.adm-newtopic__act { display: flex; }
.adm-mrow-split { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 44px; background: var(--surface); border: 1px solid var(--line); }
.adm-mrow-split > a { flex-grow: 1; min-width: 0; color: var(--ink); text-decoration: none; font-size: 14px; align-self: stretch; display: flex; align-items: center; }
.adm-mrow-split > a:hover { color: var(--ink); }
.adm-badge-btn { padding: 0; border: 0; background: transparent; min-height: 44px; display: inline-flex; align-items: center; }
.adm-help-pair { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; }
.adm-perm__head .help-dot, .adm-perm__subs .help-dot { width: 18px; height: 18px; }
.adm-sub-pair { display: inline-flex; align-items: center; gap: 0; }
@media (max-width: 767px) {
  .adm-rights-actions .adm-help-pair, .adm-dialog__foot .adm-help-pair, .adm-more .adm-help-pair { display: flex; width: 100%; }
  .adm-rights-actions .adm-help-pair .btn, .adm-dialog__foot .adm-help-pair .btn { flex-grow: 1; }
}
.adm-invite-foot { display: flex; align-items: center; gap: 2px; }
.adm-help-block { display: flex; width: 100%; } .adm-help-block .btn { flex-grow: 1; width: auto; }
.adm-mrow-help { display: flex; align-items: center; gap: 4px; }
.adm-mrow-help > .mrow, .adm-mrow-help > .adm-mrow-split { flex-grow: 1; min-width: 0; }
.adm-mrow-help > .help-dot { width: 32px; height: 44px; }

/* ---------------------------------------------------------------- Э-7.5 files (s_admin.screen_admin_import) */
.adm-kindtiles { display: flex; gap: 12px; }
.adm-kindtile {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 0; color: var(--ink);
}
.adm-kindtile.is-active { border: 2px solid var(--accent); padding: 13px 15px; }
.adm-kindtile__btn { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 0; text-align: left; background: none; border: 0; border-radius: 0; color: var(--ink); cursor: pointer; }
.adm-kindtile__pick { margin-top: 8px; }
.adm-kindtile__pick .select select { height: 38px; font-size: 13px; }
.adm-kindtile__pick .select .ico { top: 9px; }
.adm-kindtile__pick .field { max-width: 100%; }
.adm-kindtile__title { font-size: 14px; font-weight: 500; color: var(--ink); }
.adm-kindtile__sub { font-size: 12px; color: var(--ink-3); }
.adm-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  height: 150px; margin-top: 16px; background: var(--line); border: 1px dashed var(--line-2); color: var(--ink);
}
.adm-drop.is-over { border-color: var(--accent); }
.adm-drop__ico { color: var(--ink-3); display: inline-flex; }
.adm-drop__text { font-size: 15px; color: var(--ink); text-align: center; padding: 0 12px; overflow-wrap: anywhere; }
.adm-drop--phone { width: 100%; height: 96px; gap: 8px; margin-top: 0; border-radius: 0; font: inherit; }
.adm-drop--phone .adm-drop__text { font-size: 14px; }
.adm-cols { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.adm-cols__label { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.adm-grow { flex-grow: 1; }
.adm-report-label { display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 500; color: var(--ink-2); margin: 0 0 8px 0; }
.adm-report-line { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.adm-report-period { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.adm-stack { display: flex; flex-direction: column; gap: 8px; }
.adm-search { width: 240px; }
.adm-auditq { width: 220px; }   /* «Поиск по таблице» над журналом, доска 38 v87 */
.adm-actionpick { width: 190px; }
.adm-clickrows tbody tr { cursor: pointer; }
.adm-phone-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.adm-kpis .kpi { min-width: 0; }
@media (max-width: 1279px) and (min-width: 768px) {
  .adm-kpis { flex-wrap: wrap; }
  .adm-kpis .kpi { flex-basis: calc(33.333% - 11px); }
}
@media (max-width: 767px) {
  .adm-kindtiles { flex-direction: column; }
  .adm-search, .adm-actionpick, .adm-auditq { width: 100%; }
  .adm-cols { display: none; }
}
.adm-mfilter { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 0 0 12px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); }
.adm-mfilter select { flex-grow: 1; min-width: 0; height: 42px; padding: 0 22px 0 0; background: transparent; border: 0; color: var(--ink);
  font-size: 13px; appearance: none; -webkit-appearance: none; }
.adm-mfilter > .ico:nth-of-type(2) { position: absolute; right: 40px; pointer-events: none; }
.adm-mfilter .help-dot { width: 36px; height: 42px; }

/* ---------------------------------------------------------------- Э-7.3 brands and sections order (v61, правка 26.09 · 47) */
.adm-color { display: inline-flex; align-items: center; gap: 8px; }
.adm-color__sq { width: 14px; height: 14px; flex-shrink: 0; }
.adm-pair--wrap { flex-wrap: wrap; }
.adm-pair__grow { flex: 1 1 360px; min-width: 0; }
.adm-pair__520 { flex: 0 1 520px; min-width: 0; }
.adm-pair__grow[hidden] { display: none; }
.adm-seclist { border-bottom: 1px solid var(--line); }
.adm-secrow { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--ink); }
.adm-secrow.is-dragging { opacity: 1; outline: 1px solid var(--line-2); }
.adm-secrow__ico { display: inline-flex; color: var(--ink-2); }

/* ---------------------------------------------------------------- Э-7.7 settings */
.adm-set { display: flex; align-items: flex-start; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.adm-set__label { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.adm-set__title { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; color: var(--ink); }
.adm-set__hint { font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.adm-set__ctl { flex-grow: 1; min-width: 0; padding-top: 2px; display: flex; flex-direction: column; gap: 6px; }
.adm-set-input { flex-shrink: 0; }
.adm-set-input.is-err { border-color: var(--err-ink); }
.adm-thr-list { display: flex; flex-direction: column; gap: 8px; }
.adm-thr { display: inline-flex; align-items: center; gap: 10px; }
.adm-thr__sq { width: 14px; height: 14px; flex-shrink: 0; }
.adm-thr__sq.is-high, .adm-progress__fill.is-high { background: var(--g-high-f); }
.adm-thr__sq.is-ok, .adm-progress__fill.is-ok { background: var(--g-ok-f); }
.adm-thr__sq.is-low, .adm-progress__fill.is-low { background: var(--g-low-f); }
.adm-thr__label { width: 110px; font-size: 13px; color: var(--ink); }
.adm-inline { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink); }
.adm-inline--start { align-items: flex-start; }
.adm-set-num { display: flex; flex-direction: column; gap: 6px; }
.adm-set-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.adm-set-col--10 { gap: 10px; }
.adm-set-select { max-width: 100%; }
.adm-set-select select { height: 38px; font-size: 13px; }
.adm-set-select .ico { top: 9px; }
.adm-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; background: var(--accent-soft); color: var(--on-soft); border: 0; border-radius: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; cursor: pointer; }
.adm-form-row--wrap { flex-wrap: wrap; row-gap: 12px; }
.adm-form-row--end { align-items: flex-end; margin-top: 16px; }
.adm-form-btn { padding-top: 22px; display: flex; gap: 10px; }
.adm-form-btn--end { padding-top: 0; }
.adm-rc-foot { margin-top: 16px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.adm-rc-foot__note { font-size: 12px; color: var(--ink-3); }
.adm-msel { position: relative; }
.adm-msel__btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 40px; padding: 0 9px 0 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 0; font-size: 14px; text-align: left; }
.adm-msel__btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* plans (ПЭ-adm-06): the chosen technologists are not cut — the field grows by lines */
.adm-msel--wrap .adm-msel__btn { height: auto; min-height: 40px; padding-top: 9px; padding-bottom: 9px; }
.adm-msel--wrap .adm-msel__btn > span { white-space: normal; text-overflow: clip; text-align: left; }
.adm-msel__btn .ico { color: var(--ink-2); flex-shrink: 0; }
.adm-msel__pop { width: 100%; }
/* grey captions of the board under a table and under a form row (Э-7.3 «Каналы анонсов», З-15) */
.adm-caption { font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.adm-caption--table { margin-top: 12px; }
.adm-caption--form { margin-top: 10px; }
.adm-nowrap { white-space: nowrap; }
/* «Направления контента с» of Э-7.7 (З-15): the date 160 and «Очистить»; for a user without admin_users the value to read */
.adm-cdir { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.adm-cdir__date { width: 160px; flex-shrink: 0; }
.adm-cdir .adm-caption { align-self: flex-start; }
.adm-ro--muted { color: var(--ink-2); }
.adm-cdir__err { max-width: 480px; }
/* a value to read in a form row: looks as the fields around it, nothing to open (Э-7.7 «Раздел») */
.adm-ro { display: flex; align-items: center; height: 40px; padding: 0 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); font-size: 14px; overflow: hidden; white-space: nowrap; }
.adm-subhead { font-size: 12px; font-weight: 500; color: var(--ink-2); margin: 20px 0 8px; }
.adm-diff-foot { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 767px) {
  .adm-set { flex-direction: column; gap: 10px; }
  .adm-set__label { width: 100%; }
  .adm-set-select { width: 100% !important; }
  .adm-form-btn { padding-top: 0; }
  .adm-form-btn .adm-help-pair { display: flex; width: 100%; }
  .adm-form-btn .btn { flex-grow: 1; justify-content: center; height: 44px; }
  .adm-form-row .adm-msel, .adm-form-row .adm-flexfield { width: 100% !important; }
}

/* ---------------------------------------------------------------- Э-7.4 plans */
.adm-progress { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; width: 100%; }
.adm-progress__bar { display: block; width: 150px; height: 8px; background: var(--line); border: 1px solid var(--line-2); flex-shrink: 0; box-sizing: border-box; }
.adm-progress__fill { display: block; height: 100%; }
.adm-progress__pct { min-width: 34px; white-space: nowrap; font-size: 12px; color: var(--ink-2); text-align: right; }
/* an empty slot (message, closed form) takes no gap of the column */
.adm > [data-slot]:empty { display: none; }
@media (max-width: 1279px) { .adm-form-row--wrap-narrow { flex-wrap: wrap; row-gap: 12px; } }
@media (max-width: 767px) {
  .adm-form-btn { width: 100%; }
  .adm-card .adm-progress__bar { width: 40px; }
  .adm-card .adm-progress { width: auto; gap: 6px; }
  .adm-card .adm-progress__pct { min-width: 0; }
}
/* a fixed field of the plan edit form: palette colour, no translucency (A9) */
.adm select:disabled, .adm .segmented__btn:disabled { opacity: 1; color: var(--ink-3); cursor: default; }
.adm .segmented__btn[aria-pressed="true"]:disabled { color: var(--on-accent); }
.adm-w520 { width: 520px; max-width: 100%; }
/* settings rows on a tablet: controls give way instead of pushing the page */
.adm-set__ctl .adm-help-pair { max-width: 100%; }
.adm-set__ctl .adm-help-pair > :first-child { min-width: 0; flex: 0 1 auto; }
.adm-set__ctl .adm-set-col { max-width: 100%; }
@media (max-width: 1279px) and (min-width: 768px) { .adm-set__label { width: 260px; } }
/* М-5 journal: the filter line opens action, period and search (Q-23) */
.adm-mfilter-pair { display: flex; width: 100%; }
.adm-mfilter--btn { flex-grow: 1; min-width: 0; padding: 0 12px; background: var(--surface); color: var(--ink); text-align: left; font-size: 14px; }
.adm-mfilter--btn > span { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-mfilter--btn > .ico:nth-of-type(2) { position: static; }
.adm-mpanel { display: flex; flex-direction: column; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); }
.adm-mpanel__dates { display: flex; gap: 10px; }
.adm-mpanel__dates > .field { flex: 1 1 0; min-width: 0; }
.adm-mpanel .search-box { width: 100%; }
.adm-mpanel .help-pair { display: flex; width: 100%; }
/* ПК-adm-05 (375 px): the search takes what is left beside its «?», not the whole row */
.adm-mpanel .help-pair > .search-box { flex: 1 1 auto; width: auto; min-width: 0; }
.adm-mpanel .help-pair > .search-box { flex-grow: 1; }
.adm-mpanel__foot .adm-help-pair { display: flex; width: 100%; }
.adm-mpanel__foot .btn { flex-grow: 1; justify-content: center; height: 44px; }

/* ---------------------------------------------------------------- Э-7.2 registries */
.adm-textbtn { padding: 0; background: none; border: 0; border-radius: 0; color: var(--ink-2); font-size: inherit; text-align: left; cursor: pointer; }
.adm-textbtn:hover { color: var(--ink); text-decoration: underline; }
.adm-inline-edit { display: inline-flex; align-items: center; gap: 4px; }
.adm-src { display: inline-flex; margin-top: 4px; }
.adm-subhead--top { margin: 0 0 4px; }
.adm-subhead--gap { display: flex; align-items: center; gap: 2px; margin: 22px 0 4px; }
.adm-icon:disabled { color: var(--disabled); }
/* live action titles are long: the «Действие» chip gives way instead of widening the page */
.block-title .adm-help-pair { max-width: 100%; min-width: 0; }
.adm-actionpick { min-width: 0; max-width: 100%; }
.adm-actionpick select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.adm-form-below { margin-top: 14px; }
/* a short state in a narrow column wraps between words only, never inside one (ПС2-ui-01: «снят из сотрудников» at 1440) */
.adm-table td .adm-words { overflow-wrap: normal; word-break: normal; hyphens: none; }
.adm-plan-remember { max-width: 200px; font-size: 12px; line-height: 1.4; color: var(--ink-3); align-self: center; }   /* v83 · 155 */
.adm-table tr.adm-total td { font-weight: 500; }   /* «Итого» of «Расход моделей» */
.adm-up-why { margin: 0 12px 0 0; }   /* why «Загрузить» is off (W import.chat_required) */
@media (max-width: 767px) { .adm-up-why { margin: 0 0 8px; } }

/* ---------------------------------------------------------------- phone tap zones ≥ 44×44 (E0-08, EM §1.6, §3; as theme/shell.css) */
@media (max-width: 767px) {
  .adm-drag, .adm-icon, .adm-textbtn, .adm-chip { position: relative; }
  .adm-drag::after, .adm-icon::after, .adm-textbtn::after, .adm-chip::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
  }
  /* a select cannot carry ::after: the phone height is 44, as the selects of C */
  .adm-set-select select, .adm-kindtile__pick .select select { height: 44px; font-size: 14px; }
  .adm-set-select .ico, .adm-kindtile__pick .select .ico { top: 12px; }
  .adm-kind { height: 46px; }
  .adm-kind select { height: 44px; }
  .adm-kind .ico { top: 14px; }
  .adm-chatpick { height: 46px; }   /* the select inside: 44 without the 1 px border */
  .adm-msel__btn, .adm-ro { height: 44px; }
  .adm-msel--wrap .adm-msel__btn { height: auto; min-height: 44px; }
  .adm-actionpick { height: 46px; }                 /* «Действие» of the journal (ФП-p3-23): the select inside 44 */
  .adm-actionpick select { height: 44px; }
  .adm-mpanel .search-box { height: 46px; }
  .adm-mpanel .search-box input { height: 44px; }
}
/* the invisible ::after tap zones of «?» and icons at the right edge must not widen the page (sweep, 390–767) */
@media (max-width: 1279px) { .adm { overflow-x: clip; } }
/* tablet: columns marked tablet: false are hidden (element-map 8.11а, E1-07) */
@media (min-width: 768px) and (max-width: 1279px) {
  .adm-tab-hide { display: none; }
  /* fitTables of C counts the hidden columns too: the width without them wins on a tablet */
  .adm-scroll .adm-table { min-width: var(--min-tab, var(--min)) !important; }
}

/* ---------------------------------------------------------------- З-16: «Ответственные» of the support chats (Э-7.3, М-5 v99) */
/* the first column (drag handle) stays when the wide registry scrolls sideways; the warning rows span the whole row */
.adm-stick1 > thead > tr > th:first-child, .adm-stick1 > tbody > tr:not(.adm-note-row) > td:first-child {
  position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line-2); }
.adm-stick1 > thead > tr > th:first-child { z-index: 3; }
.adm-resp { display: inline-flex; align-items: flex-start; gap: 8px; text-align: center; }   /* names centred, as the board (З16-ui-04) */
.adm-resp__list { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.adm-resp__item { display: block; line-height: 1.35; }
.adm-resp__mark { display: block; font-size: 12px; color: var(--warn-ink); }
.adm-resp__chat { display: inline-flex; align-items: center; gap: 4px; }
.adm-resp__chat .ico { color: var(--ink-2); flex-shrink: 0; }
.adm-resp .adm-icon { width: 24px; height: 24px; flex-shrink: 0; }
.adm-under > .adm-msg { margin-top: 12px; }
.adm-under > .adm-caption--table { margin-top: 10px; }
.adm-card__resp { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.adm-card__resp-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.adm-card__resp-list { font-size: 14px; color: var(--ink); }
/* the picker: a card of 700 under the registry; search 420, the groups in small capitals, a box and the name with its marks */
.adm-rp .card { max-width: 700px; }
.adm-rp__head, .adm-rp__foot, .adm-rp__headsub { display: none; }
/* a work chat the bot cannot write to: shown, not chosen (З16-ui-01) */
.adm-rp__row--off .adm-rp__name { color: var(--ink-3); cursor: default; }
/* an unchecked box that cannot be checked: empty with a grey frame, not the solid grey of C, which reads as checked (E, 02.11) */
.adm-rp__row--off .checkbox--disabled input:not(:checked) + .checkbox__mark { background: transparent; border-color: var(--disabled); }
.adm-rp__search { width: 420px; max-width: 100%; }
.adm-rp__group { margin-top: 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.adm-rp__row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.adm-rp__row .checkbox { padding-top: 2px; }
.adm-rp__name { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink); cursor: pointer; }
.adm-rp__name .adm-resp__chat { gap: 6px; }
.adm-rp__name .adm-resp__mark { font-size: 12px; }
.adm-rp__sub { font-size: 12px; color: var(--ink-3); }
.adm-rp__empty { padding: 8px 0; }
@media (max-width: 767px) {
  .adm-under { display: none; }
  /* М-5 экран 8: the picker over the whole screen, «Отмена» and «Готово» fixed at the bottom */
  .adm-rp { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--bg); }
  .adm-rp .card { max-width: none; border: 0; flex-grow: 1; overflow-y: auto; padding: 16px; }
  .adm-rp .card > .block-title { display: none; }
  /* М-5 экран 8 (v99.3): the bar of 56 with «Назад» and the title, then «<чат> · …» over the search (З16-ui-03) */
  .adm-rp__head { display: flex; flex-shrink: 0; align-items: center; gap: 4px; height: 56px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line-2); }
  .adm-rp__back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -12px; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
  .adm-rp__back .ico { transform: rotate(90deg); }
  .adm-rp__title { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 19px; color: var(--ink); }
  .adm-rp__headsub { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
  .adm-rp__search { width: 100%; }
  .adm-rp__foot { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line-2); background: var(--surface); }
  .adm-rp__foot > * { flex: 1 1 0; }
  .adm-rp__foot .btn { width: 100%; justify-content: center; height: 44px; }
}
/* З-16, Э-7.7 «Оповещения о запросах без ответа»: the line with the link to «Чаты и топики» */
.adm-set-text { font-size: 14px; color: var(--ink); }
.adm-link { color: var(--accent-strong); font-weight: 500; }
/* З-16, Э-7.6: «Оповещения» — a tile of 520 in its own row under the tiles */
.adm-kpis--alerts { margin-top: 16px; }
.adm-kpis--alerts .kpi { flex: 0 1 520px; }
@media (max-width: 767px) { .adm-kpis--alerts .kpi { flex-basis: 100%; } }
