/* Окно аудита клиента (audit-window.js) — отчёты за год как вкладка «Отчёты» ЛК1 (ТЗ Жоогазын 14.10.2026).
   Окно ниже общего #modal (z-index 100): окна выписки, ККМ, ЭСФ и подтверждения открываются поверх. */

/* ─── окно ─── */
body.aw-open { overflow: hidden; }
.aw-backdrop {
    position: fixed; inset: 0; z-index: 90; background: rgba(10, 18, 38, .46); backdrop-filter: blur(3px);
    display: flex; align-items: stretch; justify-content: center; padding: 22px 28px; animation: fadeIn .16s ease-out;
}
.aw-backdrop.closing { animation: fadeOut .17s ease-in forwards; }
.aw-backdrop.closing .aw { animation: sink .17s ease-in forwards; }
.aw {
    width: min(1480px, 100%); background: var(--bg); border-radius: 20px; box-shadow: var(--shadow-3);
    display: flex; flex-direction: column; overflow: hidden; animation: rise .24s cubic-bezier(.22, .9, .35, 1.1);
}
.aw-head {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 20px; background: var(--panel);
    border-bottom: 1px solid var(--border); flex-wrap: wrap; min-height: 72px;
}
.aw-id { display: flex; align-items: center; gap: 13px; min-width: 0; flex: 1 1 420px; }
.aw-ava {
    width: 44px; height: 44px; border-radius: 13px; flex: 0 0 44px; color: #fff; font-weight: 800; font-size: 15px;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(18, 30, 55, .15);
}
.aw-id-text { min-width: 0; }
.aw-name { font-size: 17px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-left: 4px; }
.aw-chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650;
    background: #eef1f6; color: #4a5568; white-space: nowrap;
}
.aw-chip b { font-weight: 800; }
.aw-chip.cash { background: #e7f6ee; color: #0b7a4b; }
.aw-chip.acc { background: #eef0ff; color: #3f4fd1; }
.aw-chip.lk1 { background: var(--accent-soft); color: var(--accent-2); }
.aw-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.aw-x {
    border: none; background: #f2f4f8; color: var(--muted); cursor: pointer; width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; transition: all .13s; flex: 0 0 36px;
}
.aw-x:hover { background: #e6e9f0; color: var(--text); }
.aw-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.aw-root { padding: 16px 20px 26px; transition: opacity .2s; }
.aw-skel { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.aw-refresh.busy svg { animation: spin 1s linear infinite; }

/* ─── проверки карточки ─── */
.aw-checks { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; box-shadow: var(--shadow-1); }
.aw-checks-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; color: var(--text); margin-bottom: 10px; flex-wrap: wrap; }
.aw-checks-title svg { color: var(--accent); }
.aw-checks-sum { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.aw-checks-sum.err { background: var(--err-soft); color: var(--err-deep); }
.aw-checks-sum.warn { background: var(--warn-soft); color: var(--warn-deep); }
.aw-checks-sum.ok { background: var(--ok-soft); color: var(--ok-deep); }
.aw-checks-upd { margin-left: auto; font-size: 11.5px; font-weight: 550; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.aw-checks-upd svg { color: var(--muted); }
.aw-chk-row { display: flex; flex-wrap: wrap; gap: 6px; }
.aw-chk {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px 5px 6px; border-radius: 10px; border: 1px solid transparent;
    font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; transition: all .13s; background: #f4f6f9; color: var(--text-2);
}
.aw-chk-ico { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--muted); }
.aw-chk-st { display: inline-flex; margin-left: 2px; }
.aw-chk.st-ok .aw-chk-st { color: var(--ok); }
.aw-chk.st-warn { background: #fff8eb; color: #8a5a00; }
.aw-chk.st-warn .aw-chk-st, .aw-chk.st-warn .aw-chk-ico { color: var(--warn-deep); }
.aw-chk.st-err { background: #fff1f1; color: #9b1c1c; }
.aw-chk.st-err .aw-chk-st, .aw-chk.st-err .aw-chk-ico { color: var(--err-deep); }
.aw-chk:hover { border-color: #d6dce6; transform: translateY(-1px); }
.aw-chk.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 100, 244, .12); }
.aw-chk-open { margin-top: 10px; border-radius: 12px; padding: 12px 14px; border: 1px solid var(--border); animation: rise .2s ease-out; background: #fafbfd; }
.aw-chk-open.st-err { background: #fff6f6; border-color: #f5cdcd; }
.aw-chk-open.st-warn { background: #fffaf0; border-color: #f3dfb4; }
.aw-chk-open.st-ok { background: #f3fbf7; border-color: #cdeedd; }
.aw-chk-open-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.aw-chk-open.st-err .aw-chk-open-head svg { color: var(--err-deep); }
.aw-chk-open.st-warn .aw-chk-open-head svg { color: var(--warn-deep); }
.aw-chk-open.st-ok .aw-chk-open-head svg { color: var(--ok-deep); }
.aw-chk-open-st { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.aw-chk-open-msg { font-size: 13px; color: var(--text-2); margin: 6px 0 0 25px; line-height: 1.5; }
.aw-chk-open-act { font-size: 12.5px; color: #7a5200; background: #fff3d6; border-radius: 8px; padding: 7px 10px; margin: 8px 0 0 25px; line-height: 1.45; }
.aw-chk-open-act svg { color: var(--warn-deep); vertical-align: -2px; }
.aw-chk-open-btns { display: flex; gap: 8px; margin: 10px 0 0 25px; flex-wrap: wrap; }

/* ─── отчёты за год ─── */
.aw-reports { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px 16px; box-shadow: var(--shadow-1); }
.aw-rep-head { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.aw-rep-title { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.aw-sums { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-left: auto; }
.aw-sum { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; cursor: default; }
.aw-sum b { font-weight: 800; }
.aw-sum.green { color: #0b7a4b; }
.aw-sum.blue { color: #2453d6; }
.aw-rep-ctl { display: flex; align-items: center; gap: 8px; }
.aw-year { display: flex; align-items: center; gap: 6px; }
.aw-year select { width: 92px; font-weight: 700; padding: 6px 10px; }
.aw-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 4px; font-size: 11.5px; color: var(--text-2); font-weight: 550; }
.aw-lg { display: inline-flex; align-items: center; gap: 6px; }
.aw-sw { width: 13px; height: 13px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0, 0, 0, .06); }
.aw-lg-act { color: var(--muted); }

/* блок района */
.aw-dist { margin-top: 14px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.aw-dist.closed { opacity: .62; transition: opacity .15s; }
.aw-dist.closed:hover { opacity: .95; }
.aw-dist-head { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 10px 14px; background: #f8f9fc; border-bottom: 1px solid var(--border); }
.aw-dist-name { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; }
.aw-dist-name svg { color: var(--muted); }
.aw-dist-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 550; }
.aw-dist-meta span { display: inline-flex; align-items: center; gap: 5px; }
.aw-dist-meta b { color: var(--text); font-weight: 750; }
.aw-dist-meta svg { color: #2453d6; }
.aw-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #eef1f6; color: #5a6473; font-style: normal; }
.aw-badge.off { background: #f1f2f5; color: #7c8698; }
.aw-badge.dir { background: #eef0ff; color: #3f4fd1; }
.aw-noyear { padding: 14px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }

/* сетка */
.aw-grid-scroll { overflow-x: auto; }
.aw-grid { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 860px; font-size: 12.5px; }
.aw-grid th, .aw-grid td { border-right: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; }
.aw-grid tr > :last-child { border-right: none; }
.aw-grid tbody tr:last-child td { border-bottom: none; }
.aw-grid th.aw-rl, .aw-grid td.aw-rl { width: 178px; text-align: left; padding: 0 10px 0 12px; background: #fff; position: sticky; left: 0; z-index: 1; }
.aw-grid th {
    background: #f9fafc; color: var(--muted); font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em;
    height: 30px; text-align: center;
}
.aw-grid th.aw-rl { background: #f9fafc; }
.aw-mh.act { background: #e7f7ee !important; color: #12623f !important; }
.aw-mh.cur { box-shadow: inset 0 -2px 0 var(--accent); }
.aw-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #16a34a; margin-left: 4px; vertical-align: 2px; }
.aw-r td.aw-rl { height: 34px; font-size: 12.5px; }
.aw-rl-in { display: flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; }
.aw-rl-in b { font-weight: 750; color: var(--text); }
.aw-sfx { color: var(--muted); font-size: 11.5px; }
.aw-r.opt td.aw-rl { font-style: italic; }
.aw-r.opt td.aw-rl b { color: var(--faint); font-weight: 650; }
.aw-r.opt .aw-sfx { color: var(--faint); }
.aw-r.opt .aw-c { opacity: .55; }
.aw-r.policy td { border-top: 2px solid #8b5cf6; }
.aw-r.policy td.aw-rl b { color: #7c3aed; }
.aw-row-alert {
    display: inline-flex; align-items: center; gap: 3px; margin-left: 3px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 750;
    font-style: normal; cursor: pointer; overflow: hidden; text-overflow: ellipsis; max-width: 116px;
}
.aw-row-alert.st-err { background: #fee2e2; color: #b91c1c; }
.aw-row-alert.st-warn { background: #fef3c7; color: #92400e; }

/* ячейки — цвета как во вкладке «Отчёты» ЛК1 */
.aw-c { text-align: center; vertical-align: middle; height: 34px; cursor: pointer; transition: filter .12s, box-shadow .12s; position: relative; color: #94a3b8; }
.aw-c:hover { filter: brightness(.95); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .16); }
.aw-c b { font-weight: 800; font-size: 13px; }
.aw-c .aw-dn { font-size: 10.5px; letter-spacing: .02em; }
.aw-c.s-ok, .aw-sw.s-ok, .aw-st.s-ok, .aw-pill.s-ok { background: #d1fae5; color: #065f46; }
.aw-c.s-corr, .aw-sw.s-corr, .aw-st.s-corr, .aw-pill.s-corr { background: #fef9c3; color: #854d0e; }
.aw-c.s-mis, .aw-sw.s-mis, .aw-st.s-mis, .aw-pill.s-mis { background: #fed7aa; color: #9a3412; }
.aw-c.s-bad, .aw-sw.s-bad, .aw-st.s-bad, .aw-pill.s-bad { background: #fecaca; color: #991b1b; }
.aw-c.s-due, .aw-sw.s-due, .aw-st.s-due, .aw-pill.s-due { background: #eef2f7; color: #64748b; }
.aw-c.s-dn, .aw-sw.s-dn, .aw-st.s-dn, .aw-pill.s-dn { background: #dbeafe; color: #4f6aa6; }
.aw-c.s-dis, .aw-sw.s-dis, .aw-st.s-dis, .aw-pill.s-dis { background: #e0edff; color: #2563eb; }
.aw-c.s-na, .aw-sw.s-na, .aw-st.s-na, .aw-pill.s-na { background: #fff; color: #c1c8d1; }
.aw-sw.s-na { border-color: #dfe3ea; }
.aw-c.s-fut, .aw-sw.s-fut, .aw-st.s-fut, .aw-pill.s-fut { background: #fff; }
.aw-c.s-fut { cursor: default; }
.aw-c.s-fut:hover { filter: none; box-shadow: none; }
.aw-c.s-due.hot { background: #ffedd5; color: #c2410c; }
.aw-c.extra { box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08); }
.aw-c.sel, .aw-c.sel:hover { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 2px rgba(59, 100, 244, .2); z-index: 2; filter: none; }
.aw-yin { display: inline-flex; align-items: center; gap: 7px; }
.aw-ytxt { font-size: 11.5px; font-weight: 650; }
.aw-c.s-na .aw-ytxt { color: #b4bcc8; font-weight: 550; }

/* правила района */
.aw-rules { padding: 9px 14px 11px; background: #fbfcfd; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.aw-rules-h { font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.aw-rules ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 2px; }
.aw-rules b { font-weight: 800; color: var(--text); }

/* ─── подробности ячейки ─── */
.aw-detail-wrap { margin-top: 14px; scroll-margin-top: 16px; }
.aw-hint { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 12px 14px; border: 1px dashed #d8dee8; border-radius: 12px; background: #fbfcfe; }
.aw-detail { border: 1px solid #d9e1f5; border-radius: 16px; background: linear-gradient(180deg, #f7f9ff 0%, #fff 90px); padding: 14px 16px 16px; scroll-margin: 16px; }
.aw-d-err { color: var(--err-deep); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.aw-d-head { display: flex; align-items: center; gap: 12px; }
.aw-d-ttl { min-width: 0; }
.aw-d-title { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.aw-d-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.aw-pill { margin-left: auto; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.aw-d-x { border: none; background: #eef1f6; color: var(--muted); width: 30px; height: 30px; border-radius: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 30px; }
.aw-d-x:hover { background: #e3e7ef; color: var(--text); }
.aw-banner { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 13px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.aw-banner > svg { margin-top: 1px; }
.aw-banner-t { font-weight: 750; }
.aw-banner-l { font-size: 12.5px; margin-top: 2px; opacity: .92; }
.aw-banner.b-ok { background: #e9f9f1; color: #065f46; }
.aw-banner.b-corr { background: #fefbe6; color: #854d0e; }
.aw-banner.b-mis { background: #fff1e4; color: #9a3412; }
.aw-banner.b-bad { background: #fff0f0; color: #991b1b; }
.aw-banner.b-warn { background: #fff4e6; color: #b45309; }
.aw-banner.b-info { background: #f1f5fb; color: #334155; }
.aw-banner.b-dn { background: #eef4ff; color: #4f6aa6; }
.aw-banner.b-dis { background: #eaf2ff; color: #2563eb; }
.aw-banner.b-na { background: #f5f6f8; color: #64748b; }
.aw-sec { margin-top: 14px; }
.aw-sec-h { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 750; color: var(--text); margin-bottom: 8px; flex-wrap: wrap; }
.aw-sec-h svg { color: var(--accent); }
.aw-sec-tag { font-size: 11px; font-weight: 650; color: var(--muted); background: #f1f3f7; padding: 2px 8px; border-radius: 999px; }
.aw-filed { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: #fff; }
.aw-filed + .aw-filed { margin-top: 8px; }
.aw-filed.older { background: #fbfcfd; }
.aw-filed-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aw-kind { font-size: 11.5px; font-weight: 750; padding: 2px 9px; border-radius: 999px; background: #e7f6ee; color: #0b7a4b; }
.aw-kind.corr { background: #fef9c3; color: #854d0e; }
.aw-filed-meta { font-size: 12px; color: var(--muted); flex: 1; min-width: 200px; }
.aw-filed-meta b { color: var(--text); font-weight: 650; }
.aw-kvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin-top: 9px; }
.aw-kv { display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border-radius: 10px; background: #f6f8fb; }
.aw-kv span { font-size: 11px; color: var(--muted); font-weight: 600; }
.aw-kv b { font-size: 13.5px; font-weight: 750; color: var(--text); font-variant-numeric: tabular-nums; }
.aw-kv.tot { background: #eef3ff; }
.aw-kv.tot b { color: #1e3fae; }
.aw-kv.bad { background: #fff0f0; }
.aw-kv.bad b { color: #b91c1c; }
.aw-blocks { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; font-size: 12px; color: var(--text-2); }
.aw-sumt, .aw-docs, .aw-emp { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.aw-sumt th, .aw-docs th, .aw-emp th { text-align: right; font-size: 11px; font-weight: 700; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: .03em; }
.aw-sumt th:first-child, .aw-docs th:first-child, .aw-emp th:first-child { text-align: left; }
.aw-sumt td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--border-soft); font-variant-numeric: tabular-nums; }
.aw-sumt td:first-child { text-align: left; color: var(--text-2); font-weight: 600; }
.aw-sumt tr.calc td { background: #f7f9ff; }
.aw-sumt tr.diff td { font-weight: 700; }
.aw-sumt tr.diff.up td { color: #b91c1c; }
.aw-sumt tr.diff.down td { color: #0b7a4b; }
.aw-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; padding: 8px 11px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; }
.aw-note.ok { background: #e9f9f1; color: #065f46; }
.aw-note.warn { background: #fff7e8; color: #8a5a00; }
.aw-note.bad { background: #fff0f0; color: #991b1b; }
.aw-note svg { margin-top: 1px; flex: 0 0 auto; }
.aw-docs-scroll { overflow-x: auto; }
.aw-docs th { text-align: left; }
.aw-docs td { padding: 8px 10px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.aw-docs tr:last-child td, .aw-emp tr:last-child td { border-bottom: none; }
.aw-doc-l { white-space: nowrap; font-weight: 700; color: var(--text-2); width: 120px; }
.aw-doc-l svg { color: var(--muted); }
.aw-doc-l.click, .aw-doc-c.click { cursor: pointer; }
.aw-doc-l.click:hover, .aw-doc-c.click:hover { background: #f6f8fd; }
.aw-doc-c .aw-st { margin-right: 6px; }
.aw-doc-sum { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.aw-st { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; font-style: normal; white-space: nowrap; }
.aw-st.s-info { background: #eef3ff; color: #2453d6; }
.aw-st.s-warn { background: #fff4e0; color: #b45309; }
.aw-st.s-na { background: #f1f3f7; color: #7c8698; }
.aw-line { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); line-height: 1.5; padding: 5px 0; border-bottom: 1px dashed #edf0f4; }
.aw-line:last-child { border-bottom: none; }
.aw-line > svg { color: var(--muted); margin-top: 3px; flex: 0 0 auto; }
.aw-line b { color: var(--text); }
.aw-line-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.aw-emp td { padding: 6px 10px; border-bottom: 1px solid var(--border-soft); text-align: right; font-variant-numeric: tabular-nums; }
.aw-emp td:first-child, .aw-emp td.muted { text-align: left; }
.aw-emp tr.dir td { background: #f4f5ff; font-weight: 650; }
.aw-dir { border-radius: 12px; padding: 11px 13px; border: 1px solid var(--border); }
.aw-dir.st-bad { background: #fff6f6; border-color: #f6caca; }
.aw-dir.st-warn { background: #fffaf0; border-color: #f2dfb5; }
.aw-dir.st-ok { background: #f4fbf7; border-color: #cfeedd; }
.aw-dir.focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, .16); }
.aw-dir .aw-sec-h { margin-bottom: 6px; }
.aw-dir-who { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13.5px; }
.aw-dir-who span { font-size: 11.5px; color: var(--muted); }
.aw-dir-st { display: flex; gap: 8px; align-items: baseline; margin-top: 5px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.aw-dir-m { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 5px; }
.aw-stages { display: flex; flex-direction: column; gap: 4px; }
.aw-stage { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; cursor: pointer; font-size: 13px; transition: background .12s; position: relative; }
.aw-stage:hover { background: #f5f7fb; }
.aw-stage input { position: absolute; opacity: 0; pointer-events: none; }
.aw-stage-box { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #c8d0dc; display: inline-flex; align-items: center; justify-content: center; color: transparent; flex: 0 0 18px; transition: all .12s; background: #fff; }
.aw-stage.done .aw-stage-box { background: var(--ok); border-color: var(--ok); color: #fff; }
.aw-stage.done .aw-stage-l { color: var(--text); }
.aw-stage-l { color: var(--text-2); }
.aw-stage-l i { color: var(--muted); font-style: normal; font-size: 12px; }
.aw-stage-by { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.aw-stage.off { cursor: default; }
.aw-stage.off:hover { background: transparent; }
.aw-stage.off:not(.done) .aw-stage-box { background: #f3f5f8; border-color: #dfe4ec; }
.aw-stage.off:not(.done) .aw-stage-l { color: var(--faint); }
.aw-acts { padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.aw-dn-pick { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--text-2); cursor: pointer; flex-wrap: wrap; }
.aw-dn-pick svg { color: #4f6aa6; }
.aw-dn-pick input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.aw-dn-pick .muted { font-weight: 500; font-size: 12px; }
.aw-dismiss { display: flex; gap: 8px; align-items: flex-start; }
.aw-dismiss textarea { flex: 1; min-height: 40px; resize: vertical; font: inherit; font-size: 13px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.aw-dismiss textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 100, 244, .12); }
.aw-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── вкладка «Аудит» карточки ─── */
.aw-inline { margin-top: 18px; }

@media (max-width: 900px) {
    .aw-backdrop { padding: 0; }
    .aw { border-radius: 0; }
    .aw-root { padding: 12px; }
    .aw-sums { margin-left: 0; }
    .aw-dismiss { flex-direction: column; align-items: stretch; }
}
.aw-pill.s-na, .aw-pill.s-fut { background: #f1f3f7; color: #7c8698; }
.aw-pill.s-due { background: #eef2f7; color: #475569; }
