/* «Аудит» (audit.js, ТЗ Жоогазын «ТЗ по аудиту 16/10/2026»): сдача отчётов по месяцам, сводка по этапам, контроль задач менеджеров,
   боковая панель задач, полоса этапов во вкладках отчётов, окно «Задачи в чаты ЛК1», настройки «Задачи аудита».
   Префикс adt- (au- занят «Рассылкой» — automation.js). Шапки таблиц тёмно-синие, как в таблицах ТЗ. */

:root {
    --adt-navy: #1c2a52;
    --adt-navy-2: #273a6e;
    --adt-navy-line: rgba(255, 255, 255, .12);
}
/* цвета этапов — чип, номер, полоска (0 «Доступы» с 20.10.2026 — рабочий этап, не серый «Онбординг») */
.s0 { --sc: #475569; } .s1 { --sc: #2563eb; } .s2 { --sc: #0d9488; } .s3 { --sc: #7c3aed; }
.s4 { --sc: #c026d3; } .s5 { --sc: #ea580c; } .s6 { --sc: #a16207; } .s7 { --sc: #be123c; } .s8, .fin { --sc: #16a34a; }

/* ═══ Страница ═══ */
.adt-page { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.adt-page.is-loading .adt-card { opacity: .62; transition: opacity .15s; }
.adt-head { margin-bottom: 2px; gap: 10px; flex-wrap: nowrap; }
.adt-head .page-title { flex: 1 1 280px; min-width: 0; }
.adt-head .btn { flex: 0 0 auto; }
.adt-sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.adt-sync svg { color: var(--faint); }
.adt-stats { margin-bottom: 0; }
@media (max-width: 1100px) { .adt-head { flex-wrap: wrap; } }
@media (max-width: 1380px) { .adt-head .btn span { display: none; } .adt-head .btn { padding-left: 10px; padding-right: 10px; } }

/* выбранная ячейка «Сдачи отчётов» — её расшифровка ниже */
.sr-c.sr-pick, .sr-l.sr-pick { background: #e6eeff !important; box-shadow: inset 0 0 0 2px var(--accent); border-radius: 8px; }
.sr-c.sr-ann.sr-pick { border-radius: 0; }

/* ═══ Панель фильтров ═══ */
.adt-bar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-1); }
.adt-bar-l { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; margin-right: 2px; }
.adt-bar-l svg { color: var(--accent); }
.adt-per { flex-wrap: wrap; }
.adt-per .btn.icon-btn { width: 34px; height: 36px; }
.adt-per-note { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.adt-bar-r { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 650; white-space: nowrap; }
.adt-reset { color: var(--accent-2); }
@media (max-width: 1500px) { .adt-bar-r { display: none; } }

/* ═══ Карточки ═══ */
.adt-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-1); overflow: hidden; min-width: 0; }
.adt-card-h { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.adt-card-ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-2); }
.adt-card-ico.bad { background: var(--err-soft); color: var(--err-deep); }
.adt-card-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 360px; }
.adt-card-t > b { font-size: 15px; font-weight: 800; letter-spacing: -.2px; color: var(--text); }
.adt-card-for { font-size: 12px; font-weight: 750; color: var(--accent-2); }
.adt-card-t > b + .adt-card-for { margin-top: -1px; }
.adt-card-t small { font-size: 11.5px; color: var(--muted); line-height: 1.4; max-width: 860px; }
.adt-card-foot { display: flex; align-items: center; gap: 7px; padding: 9px 16px; border-top: 1px solid var(--border-soft); background: #fbfcfe; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.adt-card-foot svg { flex: 0 0 auto; color: var(--faint); }
.adt-skel { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.adt-legend { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; font-size: 11px; font-weight: 650; color: var(--muted); }
.adt-legend .lg { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.adt-legend .lg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; font-style: normal; }
.adt-legend .lg.bad i { background: #fadcdc; box-shadow: inset 0 0 0 1px #f2b8b8; }
.adt-legend .lg.warn i { background: #ffeccc; box-shadow: inset 0 0 0 1px #f7cf8a; }
.adt-legend .lg.hot i { background: #fff3dd; box-shadow: inset 0 0 0 1px #f1c27a; }
.adt-legend .lg.m-red i { background: #fbd9d9; }
.adt-legend .lg.m-orange i { background: #ffe7c2; }
.adt-legend .lg.m-blue i { background: #dce7ff; }
.adt-legend .lg.m-none i { background: none; color: var(--faint); font-weight: 800; width: auto; }
.adt-tab-link { flex: 0 0 auto; }
.adt-cal-link { flex: 0 0 auto; }
.adt-cal-link svg { color: var(--accent); }
@media (max-width: 1500px) { .adt-legend { display: none; } }
/* «24 / 75» — не сдали из обязанных (ТЗ 20.10.2026) */
.adt-subk { --k: var(--accent-2); --kb: #eef3ff; --kl: #d6e0fb; display: inline-flex; flex-direction: column; gap: 3px; min-width: 118px; padding: 7px 13px 8px;
    border: 1px solid var(--kl); border-radius: 12px; background: var(--kb); font: inherit; text-align: left; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.adt-subk:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(20, 40, 90, .45); }
.adt-subk.bad { --k: var(--err-deep); --kb: #fdeeee; --kl: #f5c9c9; }
.adt-subk.warn { --k: #8a4d06; --kb: #fff4e1; --kl: #f6d9a6; }
.adt-subk.ok { --k: var(--ok-deep); --kb: #ecf8f1; --kl: #c6ead6; }
.adt-subk-l { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--k); opacity: .85; white-space: nowrap; }
.adt-subk-n { display: flex; align-items: baseline; gap: 3px; font-variant-numeric: tabular-nums; line-height: 1; }
.adt-subk-n b { font-size: 21px; font-weight: 850; color: var(--k); letter-spacing: -.5px; }
.adt-subk-n i { font-style: normal; font-size: 15px; font-weight: 600; color: var(--faint); }
.adt-subk-n em { font-style: normal; font-size: 15px; font-weight: 750; color: var(--text-2); }
.adt-subk-bar { display: block; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--k) 16%, #fff); overflow: hidden; margin-top: 2px; }
.adt-subk-bar i { display: block; height: 100%; border-radius: 4px; background: var(--ok); }
/* этап, которого у отчёта нет */
.adt-t1 tr.is-na th.adt-stage { color: var(--faint); font-weight: 600; }
.adt-t1 tr.is-na .adt-stn { opacity: .35; }
.adt-t td.adt-na-note { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--faint); background: repeating-linear-gradient(135deg, #fff 0 8px, #fafbfd 8px 16px); }
.adt-na-note svg { vertical-align: -2px; margin-right: 4px; }
.adt-week-host:empty { display: none; }

/* ═══ Таблицы 1 и 2 ═══ */
.adt-tscroll { overflow-x: auto; }
.adt-t { width: 100%; min-width: 1040px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12.5px; }
.adt-t thead th { background: var(--adt-navy); color: #eef2fd; font-size: 11.5px; font-weight: 700; line-height: 1.25; padding: 9px 8px; text-align: center; vertical-align: middle;
    border-right: 1px solid var(--adt-navy-line); border-bottom: 1px solid var(--adt-navy-line); }
.adt-t thead th:last-child { border-right: none; }
.adt-t thead tr + tr th { background: var(--adt-navy-2); font-size: 11px; font-weight: 650; padding: 7px 6px; }
.adt-t thead th.adt-th-g { letter-spacing: .02em; }
.adt-t thead th.adt-th-st, .adt-t thead th.adt-th-mgr { text-align: left; padding-left: 16px; }
.adt-t td, .adt-t tbody th, .adt-t tfoot th { padding: 7px 8px; border-bottom: 1px solid var(--border-soft); border-right: 1px solid #f2f4f8; text-align: center; vertical-align: middle;
    background: #fff; font-variant-numeric: tabular-nums; }
.adt-t td:last-child { border-right: none; }
.adt-t tbody tr:last-child td, .adt-t tbody tr:last-child th { border-bottom: none; }
.adt-t tbody tr:hover td, .adt-t tbody tr:hover th { background: #fafbff; }
.adt-n { font-size: 13px; font-weight: 650; color: var(--text); }
.adt-zero, .adt-n.adt-zero { color: #c0c7d2; font-weight: 600; }
.adt-clk { cursor: pointer; transition: background .1s; }
.adt-t td.adt-clk:hover, .adt-t th.adt-clk:hover { background: #e9efff !important; }
/* Таблица 1 */
.adt-t1 col.c-st { width: 190px; } .adt-t1 col.c-cl { width: 128px; } .adt-t1 col.c-pct { width: 118px; } .adt-t1 col.c-s { width: 84px; }
.adt-t1 col.c-od { width: 92px; } .adt-t1 col.c-avg { width: 92px; } .adt-t1 col.c-norm { width: 92px; } .adt-t1 col.c-ver { width: 104px; }
.adt-stage { text-align: left !important; padding-left: 14px !important; font-weight: 700; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adt-stn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; margin-right: 8px; font-size: 11px; font-weight: 800; color: #fff;
    background: var(--sc, #64748b); vertical-align: -1px; }
.adt-stn.fin { background: var(--ok); }
.adt-stn svg { width: 12px; height: 12px; }
.adt-stl { vertical-align: middle; }
.adt-cl b { font-size: 14.5px; font-weight: 800; }
.adt-cl span { color: var(--muted); font-weight: 600; font-size: 12px; }
.adt-pct { text-align: left !important; }
.adt-pct b { font-size: 12.5px; font-weight: 750; margin-left: 7px; }
.adt-pbar { display: inline-block; width: 52px; height: 6px; border-radius: 4px; background: #edf0f5; overflow: hidden; vertical-align: 1px; }
.adt-pbar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.adt-t td.adt-pct.hot { background: #fff3dd; }
.adt-pct.hot .adt-pbar i { background: #f59e0b; }
.adt-pct.fin .adt-pbar i { background: var(--ok); }
.adt-t td.adt-bad { background: #fde8e8; color: var(--err-deep); font-weight: 800; }
.adt-t td.adt-warn { background: #fff0d4; color: #92560a; font-weight: 800; }
.adt-t td.adt-norm { color: var(--ok-deep); font-weight: 700; }
.adt-verdict { display: inline-block; padding: 2px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 750; }
.adt-verdict.bad { background: var(--err-soft); color: var(--err-deep); }
.adt-verdict.ok { background: var(--ok-soft); color: var(--ok-deep); }
.adt-t1 tr.is-hot .adt-stage { box-shadow: inset 3px 0 0 #f59e0b; }
.adt-t1 tr.is-empty .adt-stage { color: var(--muted); font-weight: 600; }
.adt-t1 tr.is-empty .adt-stn { opacity: .55; }
.adt-unsent { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 6px; background: #eef0f4; color: #6b7686; font-size: 10px; font-weight: 800; font-style: normal; vertical-align: 1px; }
.adt-t1 tr.adt-fin td, .adt-t1 tr.adt-fin th { background: #ecf8f1 !important; color: var(--ok-deep); }
.adt-t1 tr.adt-fin .adt-cl span { color: #3d8b63; }
.adt-fin-note { text-align: left !important; font-size: 12px; font-weight: 600; color: #3d8b63 !important; }
.adt-fin-note svg { vertical-align: -2px; margin-right: 4px; }
/* Таблица 2 */
.adt-t2 col.c-mgr { width: 220px; } .adt-t2 col.c-stg { width: 94px; } .adt-t2 col.c-tot { width: 80px; } .adt-t2 col.c-x { width: 92px; }
.adt-th-sn { display: inline-block; margin-right: 4px; opacity: .65; font-weight: 800; }
.adt-t2 thead th { font-size: 11px; padding-left: 4px; padding-right: 4px; }
.adt-mgr { text-align: left !important; padding-left: 12px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adt-mgr .adt-ava { margin-right: 8px; vertical-align: middle; }
.adt-mgr-n { font-size: 13px; font-weight: 700; color: var(--text); vertical-align: middle; }
.adt-ava { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 10.5px; font-weight: 800; color: #fff; flex: 0 0 26px; }
.adt-nolk1 { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--warn-soft); color: var(--warn-deep); font-size: 10px; font-weight: 800; font-style: normal; }
.adt-mc b { display: block; font-size: 15px; font-weight: 800; line-height: 1.15; }
.adt-mc small { display: block; font-size: 10.5px; font-weight: 700; margin-top: 1px; }
.adt-t td.adt-mc.st-red { background: #fde3e3; color: #9b1c1c; }
.adt-t td.adt-mc.st-orange { background: #fff0d4; color: #8a4d06; }
.adt-t td.adt-mc.st-blue { background: #e8efff; color: #1f45c4; }
.adt-t td.adt-mc.st-none { color: #c8ced8; font-weight: 700; }
.adt-sum b { font-size: 14px; font-weight: 800; }
.adt-t td.adt-t-bad { color: var(--err-deep); font-weight: 800; }
.adt-t td.adt-t-warn { color: #a65f05; font-weight: 800; }
.adt-t td.adt-t-esc { color: #6d4bd6; font-weight: 800; }
.adt-t tfoot th, .adt-t tfoot td { background: #f4f6fa !important; border-top: 1px solid var(--border); border-bottom: none; font-weight: 800; }
.adt-t tfoot .adt-mgr-n { font-weight: 800; padding-left: 34px; text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; color: var(--text-2); }
.adt-allclear { display: flex; align-items: center; gap: 14px; padding: 22px 20px; color: var(--ok-deep); }
.adt-allclear div { display: flex; flex-direction: column; gap: 2px; }
.adt-allclear b { font-size: 14px; }
.adt-allclear span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 1500px) {
    .adt-t { font-size: 12px; min-width: 980px; }
    .adt-t thead th { font-size: 10.8px; padding: 8px 5px; }
    .adt-t1 col.c-st { width: 168px; } .adt-t2 col.c-mgr { width: 184px; }
    .adt-t2 col.c-stg { width: 84px; } .adt-t2 col.c-tot { width: 68px; } .adt-t2 col.c-x { width: 82px; }
    .adt-stage { font-size: 12.5px; }
    .adt-mgr-n { font-size: 12.5px; }
    .adt-bar-l span { display: none; }
}

/* ═══ Боковая панель задач ═══ */
.adt-dr-bd { position: fixed; inset: 0; background: rgba(10, 18, 38, .32); z-index: 90; opacity: 0; transition: opacity .2s; }
.adt-dr-bd.open { opacity: 1; }
.adt-dr { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); background: #fff; z-index: 91; display: flex; flex-direction: column;
    box-shadow: -18px 0 60px rgba(12, 22, 44, .22); transform: translateX(100%); transition: transform .22s cubic-bezier(.22, .9, .35, 1); }
.adt-dr.open { transform: none; }
.adt-dr-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--border-soft); }
.adt-dr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adt-dr-t b { font-size: 15.5px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adt-dr-t small { font-size: 12px; color: var(--muted); font-weight: 600; }
.adt-dr-tools { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.adt-dr-search input { width: 220px; height: 36px; padding-top: 6px; padding-bottom: 6px; }
.adt-dr-count { font-size: 12.5px; font-weight: 650; }
.adt-dr-tools .btn { margin-left: auto; }
.adt-dr-bulk { display: flex; align-items: center; gap: 8px; padding: 8px 18px; background: #eef3ff; border-bottom: 1px solid #dbe5ff; flex-wrap: wrap; }
.adt-dr-bulk[hidden] { display: none; }
.adt-bulk-n { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--accent-2); font-weight: 650; margin-right: 4px; white-space: nowrap; }
.adt-dr-list { flex: 1; overflow-y: auto; padding: 10px 14px 24px; overscroll-behavior: contain; }
.adt-ck { display: inline-flex; align-items: center; cursor: pointer; flex: 0 0 auto; }
.adt-ck input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.adt-ck span { display: none; }
.adt-task { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 12px; margin-bottom: 8px;
    border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .12s, background .12s; }
.adt-task:hover { border-color: #cdd7ee; }
.adt-task.is-sel { background: #f4f7ff; border-color: #b9c8f6; }
.adt-task > .adt-ck { margin-top: 2px; }
.adt-task-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.adt-task-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.adt-task-name { font-size: 13.5px; font-weight: 750; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.adt-task-name:hover { color: var(--accent-2); }
.adt-task-rep { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); font-weight: 650; white-space: nowrap; }
.adt-task-tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.adt-task-prob { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.adt-task-prob > div { display: flex; gap: 6px; align-items: flex-start; }
.adt-task-prob svg { flex: 0 0 auto; color: var(--err); margin-top: 2px; }
.adt-task-prob em { font-style: normal; color: var(--muted); }
.adt-task-meta { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.adt-task-acts { display: flex; flex-direction: column; gap: 4px; }
.mini-btn.adt-act { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: #5d6879; text-decoration: none; border: 1px solid var(--border-soft); border-radius: 8px; }
.mini-btn.adt-act:hover:not(:disabled) { color: var(--accent-2); background: var(--accent-soft); border-color: #d6e0fb; }
.mini-btn.adt-act:disabled { opacity: .4; cursor: default; }
/* статусы задач и пометки */
.adt-st { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 7px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.adt-st.st-new { background: #eef1f6; color: #4d5868; }
.adt-st.st-taken { background: #e3ebff; color: #2546b8; }
.adt-st.st-waiting { background: #fff1d6; color: #8a5208; }
.adt-st.st-review { background: #efe9fd; color: #5b3cc4; }
.adt-st.st-closed { background: var(--ok-soft); color: var(--ok-deep); }
.adt-flag { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.adt-flag.bad { background: var(--err-soft); color: var(--err-deep); }
.adt-flag.warn { background: #fff0d4; color: #8a4d06; }
.adt-flag.esc { background: #efe9fd; color: #5b3cc4; }
.adt-flag.risk { background: #fde8d8; color: #a2410f; }
.adt-flag.unsent { background: #fff; color: #6b7686; box-shadow: inset 0 0 0 1px #d5dbe5; border-radius: 6px; }
.adt-flag.ok { background: var(--ok-soft); color: var(--ok-deep); }

/* ═══ Чип этапа (панель, таблицы вкладок, окно отправки) ═══ */
.adt-stage-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 7px; font-size: 11px; font-weight: 750; white-space: nowrap;
    color: var(--sc); background: color-mix(in srgb, var(--sc) 11%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 22%, #fff); }
.adt-stage-chip.od { box-shadow: inset 0 0 0 1.5px #ef9a9a; }
.adt-stage-chip.hot { box-shadow: inset 0 0 0 1.5px #f3c47a; }
.adt-stage-chip svg { width: 11px; height: 11px; }
.adt-scell { white-space: nowrap; }
.adt-scell-st { display: block; margin: 3px 0 0 3px; font-size: 10.5px; font-weight: 650; color: var(--muted); }
.adt-scell-st.st-taken { color: #2546b8; } .adt-scell-st.st-waiting { color: #8a5208; } .adt-scell-st.st-review { color: #5b3cc4; }
.adt-scell-skel { display: inline-block; width: 92px; height: 16px; border-radius: 6px; vertical-align: middle; }
.sr-table th.sr-w-stg { width: 150px; min-width: 132px; }
.adt-mini { display: inline-flex; align-items: center; gap: 3px; margin-left: 5px; padding: 0 6px; border-radius: 6px; font-size: 10px; font-weight: 800; white-space: nowrap;
    color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, #fff); }
.adt-mini.od { box-shadow: inset 0 0 0 1px #ef9a9a; }
.adt-mini.hot { box-shadow: inset 0 0 0 1px #f3c47a; }
.adt-mini svg { width: 10px; height: 10px; }
@media (max-width: 1500px) { .sr-table th.sr-w-stg { width: 128px; min-width: 120px; } .adt-scell .adt-stage-chip { font-size: 10.5px; padding: 2px 6px; } }

/* ═══ Полоса этапов во вкладках отчётов (ТЗ, картинка 2) ═══ */
.sr-strip-host { margin-bottom: 12px; }
.adt-strip { display: grid; grid-template-columns: 112px repeat(9, minmax(0, 1fr)); background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-1); }
.adt-strip-h { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 12px; background: var(--adt-navy); color: #fff; min-width: 0; }
.adt-strip-h b { font-size: 14px; font-weight: 800; letter-spacing: -.1px; }
.adt-strip-h small { font-size: 10.5px; color: rgba(255, 255, 255, .7); font-weight: 600; line-height: 1.25; }
.adt-sc { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 8px 10px 9px; border: none; border-left: 1px solid var(--border-soft); background: #fff;
    font: inherit; text-align: left; cursor: pointer; transition: background .12s, box-shadow .12s; }
.adt-sc:hover:not(:disabled) { background: #f4f7ff; }
.adt-sc:disabled { cursor: default; }
.adt-sc.zero .adt-sc-l, .adt-sc.zero .adt-sc-n { opacity: .5; }
.adt-sc.na { background: repeating-linear-gradient(135deg, #fff 0 7px, #f8f9fb 7px 14px); }
.adt-sc.na .adt-sc-l, .adt-sc.na .adt-sc-bar { opacity: .4; }
.adt-sc-n.adt-sc-na { font-size: 11px; font-weight: 700; color: var(--faint); opacity: 1; padding: 4px 0 3px; }
.adt-sc.on { background: color-mix(in srgb, var(--sc) 9%, #fff); box-shadow: inset 0 0 0 2px var(--sc); }
.adt-sc.has-bad::before, .adt-sc.has-warn::before { content: ''; position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; }
.adt-sc.has-bad::before { background: var(--err); box-shadow: 0 0 0 3px #fde3e3; }
.adt-sc.has-warn::before { background: var(--warn); box-shadow: 0 0 0 3px #fff0d4; }
.adt-sc-l { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--text-2); min-width: 0; padding-right: 10px; }
.adt-sc-l > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adt-sc-l i { flex: 0 0 16px; height: 16px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 10px; font-weight: 800;
    color: #fff; background: var(--sc); }
.adt-sc-l svg { flex: 0 0 auto; color: var(--sc); }
.adt-sc-n { display: flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.adt-sc-n b { font-size: 18px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.adt-sc-n small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.adt-sc-bar { display: block; height: 3px; border-radius: 3px; background: #eef1f6; overflow: hidden; }
.adt-sc-bar i { display: block; height: 100%; background: var(--sc); border-radius: 3px; }
.adt-sc.fin { background: #f0faf4; }
.adt-sc.fin:hover:not(:disabled) { background: #e3f6ea; }
.adt-sc.fin .adt-sc-l { color: var(--ok-deep); }
.adt-sc.fin .adt-sc-n b { color: var(--ok-deep); }
.adt-sc.skel { min-height: 64px; border-radius: 0; }
.adt-strip.is-loading .adt-strip-h { opacity: .85; }
.adt-strip.is-err { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--err-soft); color: var(--err-deep); font-size: 12.5px; font-weight: 650; border-color: #f5c9c9; }
.adt-strip-seg { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.adt-strip-seg button, .adt-strip-sw { border: none; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); border-radius: 6px; padding: 2px 6px; font: inherit; font-size: 10.5px;
    font-weight: 700; text-align: left; cursor: pointer; white-space: nowrap; }
.adt-strip-seg button:hover, .adt-strip-sw:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.adt-strip-seg button.on { background: #fff; color: var(--adt-navy); }
.adt-strip-sw { margin-top: 4px; width: max-content; }
@media (max-width: 1500px) {
    .adt-strip { grid-template-columns: 96px repeat(9, minmax(0, 1fr)); }
    .adt-sc { padding: 7px 8px 8px; }
    .adt-sc-l { font-size: 11px; align-items: flex-start; }
    .adt-sc-l > span { white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; hyphens: auto; -webkit-hyphens: auto; }
    .adt-sc-n b { font-size: 16px; }
    .adt-sc-n small { font-size: 10.5px; }
}
/* строка поиска вкладок: статус отчёта списком, фильтр этапа, срок */
.sr-fsel.on .csel-btn { border-color: #b9c8f6; background: #f3f6ff; color: var(--accent-2); }
.sr-stage-chip { background: #f1edfb; color: #5b3cc4; }
.sr-due { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--text-2); padding: 6px 10px; border-radius: 9px; background: #f3f5f9; white-space: nowrap; }
.sr-due svg { color: var(--muted); }
/* итоги по сданным — внизу таблицы, прилипают к нижнему краю прокрутки */
.sr-table tfoot.sr-foot td { position: sticky; bottom: 0; z-index: 2; background: #f6f8fc; border-top: 1px solid var(--border); border-bottom: none; font-weight: 750; padding-top: 9px; padding-bottom: 9px; }
.sr-table tfoot.sr-foot td.sr-foot-l { left: 0; z-index: 4; font-size: 12px; color: var(--text-2); text-align: left; white-space: nowrap; }
.sr-table tfoot.sr-foot td.sr-foot-l svg { color: #2f7a43; vertical-align: -2px; margin-right: 4px; }
.sr-foot-pol { font-size: 12px; white-space: nowrap; }
.sr-foot-pol .ok { color: var(--ok-deep); }
.sr-foot-pol .bad { color: var(--err-deep); }

/* ═══ Окна: задачи в чаты ЛК1, напоминание клиентам ═══ */
.adt-send-intro { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border-radius: 11px; background: #f3f6ff; color: #33437a; font-size: 12.5px; line-height: 1.5; margin-bottom: 12px; }
.adt-send-intro svg { flex: 0 0 auto; color: var(--accent); margin-top: 1px; }
.adt-notes { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
.adt-note { border: 1px solid var(--border); border-radius: 13px; padding: 11px 12px 12px; background: #fff; }
.adt-note.is-off { background: #fbfbfc; }
.adt-note.is-off .adt-note-items { opacity: .6; }
.adt-note-h { display: flex; align-items: center; gap: 10px; }
.adt-note-h .row-ava { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; font-size: 11px; }
.adt-note-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.adt-note-who b { font-size: 13.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adt-note-who small { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.adt-note-off { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--err-deep); font-weight: 650; }
.adt-note-items { display: flex; flex-direction: column; gap: 6px; margin-top: 9px; }
.adt-ni { padding: 8px 10px; border-radius: 10px; background: #f8f9fc; border: 1px solid #eef1f6; }
.adt-ni-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 650; color: var(--text-2); }
.adt-rep-badge { display: inline-flex; padding: 1px 7px; border-radius: 6px; background: var(--adt-navy); color: #fff; font-size: 11px; font-weight: 800; }
.adt-ni-due { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.adt-ni-due.overdue { color: var(--err-deep); }
.adt-ni-due.soon { color: #8a4d06; }
.adt-ni-line { margin-top: 4px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.adt-ni-line b { color: var(--text); font-weight: 700; }
.adt-note-tpl { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.adt-note-tpl > span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 750; color: var(--text-2); }
.adt-note-tpl > span svg { color: var(--accent); }
.adt-note-tpl i { font-style: normal; font-weight: 550; color: var(--muted); }
.adt-note-tpl textarea { width: 100%; min-height: 66px; font-size: 12.8px; line-height: 1.45; resize: vertical; background: #fcfdff; }
.adt-send-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.adt-send-foot > .muted { margin-left: auto; font-size: 12.5px; }
.adt-ai { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px; border: 1.5px solid var(--border); font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.adt-ai input { display: none; }
.adt-ai.on { border-color: #c9b8f6; background: #f5f1ff; color: #5b3cc4; }
.adt-result { display: flex; flex-direction: column; gap: 10px; }
.adt-res-ok, .adt-res-bad { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; }
.adt-res-ok { background: var(--ok-soft); color: var(--ok-deep); }
.adt-res-bad { background: var(--err-soft); color: var(--err-deep); }
.adt-res-ok div, .adt-res-bad div { display: flex; flex-direction: column; gap: 2px; }
.adt-res-ok b, .adt-res-bad b { font-size: 14px; }
.adt-res-ok span, .adt-res-bad span { font-size: 12.5px; color: var(--text-2); }
.adt-res-list { display: flex; flex-direction: column; gap: 4px; max-height: 30vh; overflow-y: auto; padding: 0 4px; font-size: 12.5px; color: var(--text-2); }
.adt-res-list > div { display: flex; align-items: center; gap: 6px; }
.adt-res-list svg { flex: 0 0 auto; color: var(--ok); }
.adt-res-list.bad svg { color: var(--err); }
.adt-res-list a { color: var(--accent-2); font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }

/* ═══ Настройки → «Задачи аудита» ═══ */
.adts-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.adts-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 1180px) { .adts-grid { grid-template-columns: minmax(0, 1fr); } }
.adts-card { padding: 16px 18px 18px; }
.adts-h { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.adts-h > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adts-h b { font-size: 14.5px; font-weight: 800; letter-spacing: -.2px; }
.adts-h small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.adts-row { display: flex; align-items: center; gap: 14px; padding: 12px 0 10px; border-top: 1px solid var(--border-soft); margin-top: 8px; }
.adts-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adts-row-t b { font-size: 13px; font-weight: 750; }
.adts-row-t small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.adts-time { width: 104px; height: 34px; padding: 4px 8px; }
.adts-sub { display: flex; flex-direction: column; gap: 6px; padding: 0 0 6px; font-size: 11.5px; font-weight: 750; color: var(--muted); transition: opacity .15s; }
.adts-sub.off { opacity: .45; pointer-events: none; }
.adts-work { display: grid; grid-template-columns: 116px 116px minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: end; }
.adts-work .fld { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 650; color: var(--text-2); }
.adts-fld { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; font-size: 12px; font-weight: 650; color: var(--text-2); }
.adts-people { display: flex; flex-wrap: wrap; gap: 7px; }
.adts-person { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: all .12s; }
.adts-person input { display: none; }
.adts-person:hover { border-color: #c6d2f5; }
.adts-person.on { border-color: var(--accent); background: var(--accent-soft); }
.adts-person-n { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.2; }
.adts-person-n small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.adts-person-n small b { color: var(--warn-deep); font-weight: 700; }
.adts-person > i { color: var(--faint); display: inline-flex; font-style: normal; }
.adts-person.on > i { color: var(--accent); }
.adts-note { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 8px; font-weight: 500; }
.adts-norms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 12px; }
.adts-norm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.adts-norm .adt-stn { margin-right: 0; flex: 0 0 20px; }
.adts-norm-l { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adts-norm input { width: 76px; height: 34px; padding: 4px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.adts-norm small { width: 54px; font-size: 11px; color: var(--muted); font-weight: 600; }
.adts-rules { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.adts-rule { display: grid; grid-template-columns: minmax(0, 1fr) 76px 52px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.adts-rule input { height: 34px; padding: 4px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.adts-rule em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.adts-due { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.adts-due-r { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--border-soft); font-size: 12.5px; }
.adts-due-r:last-child { border-bottom: none; }
.adts-due-r .adt-rep-badge { justify-self: start; }
.adts-due-w { color: var(--text-2); min-width: 0; }
.adts-due-r b { font-weight: 750; color: var(--text); white-space: nowrap; }
.adts-note svg { vertical-align: -2px; margin-right: 3px; color: var(--faint); }
.adts-tpls { margin-top: 18px; }
.adts-tg { margin-top: 14px; }
.adts-tg-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin-bottom: 6px; }
.adts-tg-h .adt-stn { margin-right: 0; }
.adts-tpl { display: grid; grid-template-columns: 250px minmax(0, 1fr) 24px; gap: 14px; align-items: center; width: 100%; padding: 9px 12px; margin-bottom: 4px; border: 1px solid var(--border-soft);
    border-radius: 11px; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: all .12s; }
.adts-tpl:hover { border-color: #c6d2f5; background: #fafbff; }
.adts-tpl-t { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.adts-tpl-t b { font-size: 12.8px; font-weight: 750; color: var(--text); }
.adts-tpl-t i { font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 6px; }
.adts-edits { background: #fff0d4; color: #8a4d06; }
.adts-kg { background: #e3ebff; color: #2546b8; }
.adts-own { background: #efe9fd; color: #5b3cc4; }
.adts-tpl-x { font-size: 12.3px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.adts-tpl-go { color: var(--faint); display: inline-flex; }
.adts-tpl:hover .adts-tpl-go { color: var(--accent); }
@media (max-width: 1280px) { .adts-tpl { grid-template-columns: 200px minmax(0, 1fr) 24px; } }
.adts-save { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px 10px 16px; border-radius: 14px;
    background: #101726; color: #e8ecf5; box-shadow: var(--shadow-2); animation: rise .2s ease-out; }
.adts-save[hidden] { display: none; }
.adts-save > span { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; }
.adts-save > span svg { color: #7ea2ff; }
.adts-save .btn:not(.btn-primary) { background: transparent; color: #c9d1e3; border-color: rgba(255, 255, 255, .18); }
.adts-save .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, .06); }
/* окно шаблона */
.adts-ed-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.adts-ed-sub code { font-size: 11px; background: #f2f4f8; padding: 1px 6px; border-radius: 5px; color: var(--text-2); }
#adtsTplRu, #adtsTplKg { width: 100%; font-size: 13px; line-height: 1.5; resize: vertical; }
.adts-vars { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 7px; font-size: 11.5px; color: var(--muted); font-weight: 650; }
.adts-var { border: 1px solid #dfe5f2; background: #f6f8fd; color: var(--accent-2); border-radius: 7px; padding: 2px 7px; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.adts-var:hover { background: var(--accent-soft); }
.adts-ai-box { margin-top: 14px; padding: 12px; border-radius: 12px; background: #f7f5ff; border: 1px solid #e7e0fb; display: flex; flex-direction: column; gap: 9px; }
.adts-ai-h { display: flex; align-items: center; gap: 8px; }
.adts-ai-h b { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #5b3cc4; }
.adts-ai-h span { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 650; }
.adts-ai-box > .btn { align-self: flex-start; }
.adts-edits-list { display: flex; flex-direction: column; gap: 6px; }
.adts-edit { padding: 7px 9px; border-radius: 9px; background: #fff; border: 1px solid #ece7fb; font-size: 12px; line-height: 1.45; }
.adts-edit small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 650; margin-bottom: 3px; }
.adts-edit .was { color: #9b1c1c; text-decoration: line-through; text-decoration-color: rgba(155, 28, 28, .35); }
.adts-edit .now { color: var(--ok-deep); margin-top: 2px; }
.adts-sug { padding: 10px 11px; border-radius: 10px; background: #fff; border: 1px solid #d9cdf8; font-size: 12.8px; line-height: 1.5; color: var(--text); }
.adts-sug small { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 750; color: #5b3cc4; margin-bottom: 4px; }
.adts-sug.ok { color: var(--ok-deep); border-color: #bfe7d1; display: flex; align-items: center; gap: 6px; font-weight: 650; }
.adts-sug-acts { display: flex; gap: 8px; margin-top: 8px; }
.adts-sug.muted { color: var(--muted); }

/* ═══ «Свод 091» → «Документы»: незакрытые на этапе (ТЗ Жоогазын «ТЗ на 20/10/2026», стр. 9) — svod091.js → renderS91Stages ═══ */
.s91t-card { margin-top: 12px; transition: opacity .15s; }
.s91t-card.is-loading { opacity: .62; }
.s91t-h .adt-card-t { flex: 1 1 420px; }
.adt-card-ico.s91t-ico { background: color-mix(in srgb, var(--sc) 13%, #fff); color: var(--sc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 24%, #fff); }
.adt-card-ico.s91t-ico b { font-size: 15px; font-weight: 850; }
.s91t-kpi { display: inline-flex; align-items: baseline; gap: 3px; padding: 6px 12px 7px; border-radius: 12px; background: #f4f6fb; border: 1px solid var(--border-soft);
    font-variant-numeric: tabular-nums; white-space: nowrap; }
.s91t-kpi b { font-size: 20px; font-weight: 850; color: var(--text); letter-spacing: -.4px; }
.s91t-kpi i { font-style: normal; color: var(--faint); font-size: 14px; }
.s91t-kpi em { font-style: normal; font-size: 14px; font-weight: 750; color: var(--text-2); }
.s91t-kpi small { margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.s91t-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--border-soft); background: #fbfcfe; }
.s91t-bar .search-wrap input { width: 230px; height: 36px; }
.s91t-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.s91t-chip { --c: var(--text-2); --cb: #fff; --cl: var(--border); display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px;
    border: 1px solid var(--cl); background: var(--cb); color: var(--c); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; transition: all .12s; white-space: nowrap; }
.s91t-chip b { font-weight: 800; font-variant-numeric: tabular-nums; }
.s91t-chip:hover { border-color: #c6d2f5; }
.s91t-chip.bad { --c: var(--err-deep); } .s91t-chip.warn { --c: #8a4d06; } .s91t-chip.wait { --c: #8a5208; } .s91t-chip.ask { --c: #9b1c1c; } .s91t-chip.ok { --c: var(--ok-deep); }
.s91t-chip.on { --cb: color-mix(in srgb, var(--c) 10%, #fff); --cl: color-mix(in srgb, var(--c) 40%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, #fff); }
.s91t-chip:not(.bad):not(.warn):not(.wait):not(.ask):not(.ok).on { --c: var(--accent-2); }
.s91t-sel { margin: 0; border-radius: 0; border-left: none; border-right: none; }
.s91t-scroll { overflow: auto; max-height: calc(100vh - 250px); min-height: 160px; }
.s91t { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12.5px; }
/* клиент и ошибки делят оставшееся место — таблица влезает и в ноутбук 1366 */
.s91t col.c-ck { width: 38px; } .s91t col.c-req { width: 158px; } .s91t col.c-ans { width: 138px; }
.s91t col.c-mgr { width: 136px; } .s91t col.c-hist { width: 160px; } .s91t col.c-res { width: 140px; }
.s91t thead th { position: sticky; top: 0; z-index: 3; background: var(--adt-navy); color: #eef2fd; font-size: 11.5px; font-weight: 700; text-align: left; padding: 10px 10px;
    border-right: 1px solid var(--adt-navy-line); white-space: nowrap; }
.s91t thead th:last-child { border-right: none; }
.s91t td { padding: 8px 10px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; background: #fff; }
.s91t tbody tr:hover td { background: #fafbff; }
.s91t tr.is-sel td { background: #f3f6ff; }
.s91t tr.is-closed td { background: #fbfdfc; }
.s91t tr.is-closed .s91-name { color: var(--text-2); }
.s91t-ck { text-align: center; }
.s91t-ck input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.s91t-cl .name-cell { gap: 9px; }
.s91t-cl .row-ava { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; font-size: 11px; }
.s91t-cl .s91-name { display: block; max-width: none; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s91t-cl .name-cell > div:last-child { flex: 1; }
.s91t-per { display: inline-flex; margin-left: 5px; padding: 0 6px; border-radius: 6px; background: #eef1f6; color: var(--text-2); font-size: 10px; font-weight: 800; }
/* строка-заголовок этапа */
.s91t tr.s91t-gh td { position: sticky; top: var(--s91t-th, 37px); z-index: 2; padding: 7px 12px; background: color-mix(in srgb, var(--sc) 6%, #fff); border-bottom: 1px solid color-mix(in srgb, var(--sc) 18%, #fff);
    box-shadow: inset 3px 0 0 var(--sc); }
.s91t tr.s91t-gh td > * { vertical-align: middle; }
.s91t tr.s91t-gh b { margin-left: 8px; font-size: 12.5px; font-weight: 800; color: var(--text); }
.s91t-gh-n { margin-left: 8px; font-size: 11.5px; color: var(--muted); font-weight: 550; }
.s91t-gh-go { float: right; border: none; background: none; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--sc); cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.s91t-gh-go:hover { background: color-mix(in srgb, var(--sc) 10%, #fff); }
/* ячейки */
.s91t-req, .s91t-ans, .s91t-res, .s91t-ask { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px 5px; max-width: 100%; padding: 4px 9px; border-radius: 9px; border: 1px solid transparent;
    font: inherit; font-size: 11.8px; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; transition: filter .12s, border-color .12s; line-height: 1.25; }
.s91t-req:hover, .s91t-ans:hover, .s91t-res:hover { filter: brightness(.97); border-color: rgba(0, 0, 0, .06); }
.s91t-req small { flex-basis: 100%; font-size: 10.5px; font-weight: 600; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s91t-req.st-ok { background: #eaf0ff; color: #2546b8; }
.s91t-req.st-queued { background: #f1f3f7; color: #5d6879; }
.s91t-req.st-fail { background: #fdeeee; color: var(--err-deep); }
.s91t-ask { background: #fff7f7; color: #b42318; border: 1px dashed #f1b4b4; }
.s91t-ask:hover { border-style: solid; background: #fdeeee; }
.s91t-ans.st-ok { background: #e8f6ee; color: #1f7a4d; }
.s91t-ans.st-done { background: #dff3e7; color: #166534; }
.s91t-ans.st-none { background: #f3f5f8; color: var(--muted); cursor: default; }
.s91t-ans.st-none.late { background: #fdeeee; color: #b42318; }
.s91t-err { display: flex; align-items: flex-start; gap: 6px; width: 100%; padding: 0; border: none; background: none; font: inherit; text-align: left; cursor: pointer; color: #9b1c1c; }
.s91t-err span { flex: 1; min-width: 0; font-size: 12.3px; font-weight: 600; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s91t-err i { flex: 0 0 auto; font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: #fdeeee; color: #9b1c1c; margin-top: 1px; }
.s91t-err:hover span { text-decoration: underline; text-decoration-color: rgba(155, 28, 28, .35); }
.s91t-hint { display: inline-flex; align-items: flex-start; gap: 5px; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.s91t-hint svg { margin-top: 1px; flex: 0 0 auto; }
.s91t-noerr { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--ok-deep); }
.s91t-mgr { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; font-size: 12.3px; font-weight: 650; color: var(--text); }
.s91t-mgr > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s91t-mgr .adt-ava { width: 24px; height: 24px; flex-basis: 24px; font-size: 9.5px; }
.s91t-mgr.none { color: var(--faint); font-weight: 600; font-style: italic; }
.s91t-hist { display: flex; flex-direction: column; gap: 1px; width: 100%; padding: 3px 0; border: none; background: none; font: inherit; text-align: left; cursor: pointer; }
.s91t-hist span { font-size: 12.2px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s91t-hist small { font-size: 10.8px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s91t-hist:hover span { color: var(--accent-2); }
.s91t-res { white-space: nowrap; }
.s91t-res.bad { background: #fde3e3; color: #9b1c1c; }
.s91t-res.warn { background: #fff0d4; color: #8a4d06; }
.s91t-res.wait { background: #fff6dc; color: #8a5208; }
.s91t-res.work { background: #e6edff; color: #2546b8; }
.s91t-res.rev { background: #efe9fd; color: #5b3cc4; }
.s91t-res.plan { background: #f1f3f7; color: #4d5868; }
.s91t-res.ok { background: #dff3e7; color: #166534; }
@media (max-width: 1500px) {
    .s91t { font-size: 12px; }
    .s91t col.c-ck { width: 34px; } .s91t col.c-req { width: 118px; } .s91t col.c-ans { width: 100px; } .s91t col.c-mgr { width: 128px; } .s91t col.c-hist { width: 128px; } .s91t col.c-res { width: 116px; }
    .s91t thead th { white-space: normal; line-height: 1.2; padding: 8px 8px; }
    .s91t td { padding: 7px 8px; }
    .s91t-cl .row-ava { display: none; }
    .s91t-w { display: none; }
    .s91t-res { white-space: normal; }
    .s91t-gh-n { display: none; }
}
/* окно хронологии */
.s91tl-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 650; color: var(--text-2); margin: -4px 0 12px; }
.s91tl-sub .s91t-res { cursor: default; }
.s91tl-probs { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 12px; background: #fff7f7; border: 1px solid #f6d4d4; margin-bottom: 12px; }
.s91tl-probs > div { display: flex; gap: 7px; align-items: flex-start; font-size: 12.8px; color: #7a1d1d; line-height: 1.45; }
.s91tl-probs > div svg { flex: 0 0 auto; margin-top: 2px; color: var(--err); }
.s91tl-probs > div.soft { color: var(--muted); }
.s91tl-probs > div.soft svg { color: var(--faint); }
.s91tl-probs em { font-style: normal; color: var(--muted); }
.s91tl-tasks { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; margin-bottom: 12px; }
.s91tl-task { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 9px; background: #f4f6fb; border: 1px solid var(--border-soft); font-weight: 700; color: var(--text); }
.s91tl-task .adt-stn { margin-right: 0; width: 18px; height: 18px; font-size: 10px; }
.s91tl-task i { font-style: normal; font-weight: 600; color: var(--muted); font-size: 11px; }
.s91tl-task.done { background: #ecf8f1; border-color: #c6ead6; }
.s91tl-task.done i { color: var(--ok-deep); }
.s91tl-list { list-style: none; margin: 0; padding: 0 0 4px; max-height: 50vh; overflow-y: auto; position: relative; }
.s91tl-list li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 8px 4px 10px 0; }
.s91tl-list li::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: -8px; width: 2px; background: #e8ecf3; }
.s91tl-list li:last-child::before { display: none; }
.s91tl-dot { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef2fb; color: #4d5c80; position: relative; z-index: 1; }
.s91tl-list li.k-created .s91tl-dot, .s91tl-list li.k-reopened .s91tl-dot, .s91tl-list li.k-overdue .s91tl-dot { background: #fdeeee; color: var(--err-deep); }
.s91tl-list li.k-closed .s91tl-dot, .s91tl-list li.k-got .s91tl-dot, .s91tl-list li.k-agreed .s91tl-dot { background: #dff3e7; color: #166534; }
.s91tl-list li.k-request .s91tl-dot, .s91tl-list li.k-client_sent .s91tl-dot, .s91tl-list li.k-approval .s91tl-dot { background: #e6edff; color: #2546b8; }
.s91tl-list li.k-client_reply .s91tl-dot { background: #e8f6ee; color: #1f7a4d; }
.s91tl-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 3px; }
.s91tl-t b { font-size: 13px; font-weight: 750; color: var(--text); }
.s91tl-t span { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.s91tl-at { text-align: right; font-size: 11.5px; font-weight: 650; color: var(--muted); white-space: nowrap; padding-top: 4px; }
.s91tl-at small { display: block; font-weight: 600; color: var(--faint); margin-top: 2px; }
.s91tl-empty { display: flex; align-items: center; gap: 8px; padding: 14px; border-radius: 12px; background: #f6f8fc; color: var(--muted); font-size: 12.5px; }
.s91t-w { font-style: normal; }
