/* ——— отчёт скоринга: итог → требует решения → все проверки → решение. Окна деталей — scoring-modals.css ——— */
.rp { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.rp-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px 6px 24px; min-height: 52px; flex-wrap: wrap; row-gap: 6px; }
.rp-h h3 { font-size: 15px; }
.rp-scroll { flex: 1; overflow-y: auto; padding: 4px 24px 24px; }

/* итог: карточка цвета итога (как в PDF) — вердикт, причина, счётчики-фильтры, сколько проверок; справа решение сотрудника */
.rv { padding: 6px 0 20px; border-bottom: 1px solid var(--hair); }
.rv-top { display: flex; align-items: center; gap: 14px; }
.rv .label { display: block; margin-bottom: 2px; }
.rv h2 { font-size: 22px; letter-spacing: -.01em; }
.rv.card { padding: 16px 18px 14px; border: 0; border-radius: 16px; background: var(--na-soft); margin-top: 4px; }
.rv.card.ok { background: var(--ok-soft); } .rv.card.warn { background: var(--warn-soft); } .rv.card.bad { background: var(--bad-soft); }
.rv.card .rv-top { align-items: flex-start; }
.rv.card h2 { font-size: 24px; line-height: 1.25; }
.rv.card.ok h2 { color: var(--ok-ink); } .rv.card.warn h2 { color: var(--warn-ink); } .rv.card.bad h2 { color: var(--bad-ink); }
.rv-dec { flex: none; text-align: right; }
.rv-dec b { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.rv-dec b svg { width: 16px; height: 16px; }
.rv-dec b.ok { color: var(--ok-ink); } .rv-dec b.bad { color: var(--bad-ink); }
.rv-why { margin: 8px 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.rv-cnts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 4px; margin: 0 -8px; }
.rv-cnt { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 7px 8px 8px; border-radius: 10px; text-align: left; color: var(--ink); }
.rv-cnt b { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rv-cnt i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.rv-cnt i.bad { background: var(--bad); } .rv-cnt i.warn { background: var(--warn); } .rv-cnt i.ok { background: var(--ok); } .rv-cnt i.na { background: var(--na); }
.rv-cnt span { max-width: 100%; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-cnt:not(:disabled):hover { background: rgba(255, 255, 255, .65); }
.rv-cnt:disabled { cursor: default; }
.rv-cnt.on { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.rv-tot { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-2); }
.rp.narrow .rv-cnts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp.narrow .rv.card .rv-top { flex-wrap: wrap; gap: 6px 14px; }
.rp.narrow .rv.card h2 { font-size: 20px; }
.rp.narrow .rv-dec { text-align: left; }
/* во время хода — полоса «N из M» */
.rv-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--fill-2); }
.rv-bar i { display: block; min-width: 3px; }
.rv-bar i.bad { background: var(--bad); } .rv-bar i.warn { background: var(--warn); } .rv-bar i.ok { background: var(--ok); }
.rv-bar i.man { background: #A2B3CA; } .rv-bar i.na { background: #DDE1EA; } .rv-bar i.pend { background: var(--fill-2); }
.rv.run .rv-top { margin-bottom: 14px; }
.rv.run h2 { font-size: 18px; }
.rv-n { margin-left: auto; color: var(--ink-2); font-size: 14px; }
.rv.idle { display: flex; align-items: center; gap: 20px; padding: 28px 0; border: 0; }
.rv.idle img { width: 120px; height: 120px; object-fit: contain; }
.rv.idle h2 { font-size: 18px; }
.rv.idle p { margin: 4px 0 0; color: var(--ink-2); }

/* секции */
.rs { padding-top: 20px; }
.rs-h { font-size: 15px; display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.rs-h .n { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.rs-hr { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.rs-hr .rs-h { margin: 0; flex: 1; }
.tag { display: inline-flex; align-items: center; height: 20px; font-size: 11.5px; font-weight: 500; color: var(--ink-2); background: var(--fill-2); border-radius: 6px; padding: 0 6px; white-space: nowrap; vertical-align: 1px; }
.tag.ai { color: var(--accent-2); background: var(--accent-soft); }
.st-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.st-ic svg { width: 16px; height: 16px; }
.st-ic.bad { background: var(--bad-soft); color: var(--bad); }
.st-ic.warn { background: var(--warn-soft); color: var(--warn); }
.st-ic.ok { background: var(--ok-soft); color: var(--ok); }
.st-ic.na { background: var(--fill-2); color: var(--faint); }

/* что требует решения */
.fi-list { display: flex; flex-direction: column; }
.fi { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 8px; border-top: 1px solid var(--hair); }
.fi:first-child { border-top: 0; }
button.fi:hover { background: var(--fill-2); border-radius: 10px; }
.fi-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fi-t { font-size: 14px; font-weight: 500; }
.fi-cmp { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-cmp b { font-weight: 500; color: var(--ink); }
.fi-cmp b.neg { color: var(--bad-ink); }
.fi-m { display: flex; align-items: center; gap: 6px; flex: none; }
.fi-lv { font-size: 12.5px; white-space: nowrap; }
.fi-lv.bad { color: var(--bad-ink); } .fi-lv.warn { color: var(--warn-ink); }
.fi-go { width: 16px; height: 16px; color: var(--icon-2); flex: none; }
.fi.man .fi-b { cursor: pointer; }
.fi-act { display: flex; gap: 6px; flex: none; }
.fi-dec { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); padding: 6px 8px 0; }
.fi-dec svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--icon-2); }
.fi-dec b { font-weight: 500; color: var(--ink); }
.none { display: flex; align-items: center; gap: 8px; padding: 12px 8px; color: var(--ink-2); font-size: 14px; }
.none svg { width: 18px; height: 18px; color: var(--ok); }

/* все проверки; фильтр — счётчиками карточки итога, здесь только «Показаны: … ✕ сбросить» */
.ct-on { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.ct-on .btn-link { font-size: 13px; font-weight: 500; }
.ct { display: flex; flex-direction: column; }
.ct-doc { font-size: 14px; font-weight: 600; padding: 16px 8px 2px; }
.ct-g { font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 14px 8px 6px; }
.ct-r { display: grid; grid-template-columns: 22px 76px minmax(0, 1.5fr) 124px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px; border-top: 1px solid var(--hair); font-size: 13.5px; }
.ct-g + .ct-r { border-top: 0; }
.ct-r:hover { background: var(--fill-2); border-radius: 8px; }
.ct-r .st-ic { width: 22px; height: 22px; }
.ct-r .st-ic svg { width: 14px; height: 14px; }
.ct-r .st-ic .spin { width: 12px; height: 12px; }
.ct-c { font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.ct-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-s { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-s.bad { color: var(--bad-ink); } .ct-s.warn { color: var(--warn-ink); } .ct-s.ok { color: var(--ok-ink); } .ct-s.na { color: var(--ink-3); }
.ct-w { font-size: 12.5px; color: var(--ink-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-r.pending { cursor: default; }
.ct-r.pending:hover { background: transparent; }
.ct-r.pending .ct-n { color: var(--ink-3); }
.rp.narrow .ct-r { grid-template-columns: 22px 66px minmax(0, 1fr) 112px; }
.rp.narrow .ct-w { display: none; }
.rp.narrow .fi-lv { display: none; }

/* решение */
.rp-dec { border-top: 1px solid var(--hair); padding: 12px 16px 14px 24px; }
.dc { display: flex; align-items: center; gap: 8px; }
.dc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dc-t b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp.narrow .dc-dev span { display: none; }
.dc-done { display: flex; align-items: center; gap: 12px; }
.dc-done .grow b { display: block; font-weight: 500; font-size: 14px; }
.dc-done .grow span { font-size: 13px; color: var(--ink-2); }
/* доставка решения: подпись проректора → СБИС → контрагент (только наступившие шаги) */
.dl { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.dl-s { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.dl-s svg { width: 12px; height: 12px; stroke-width: 2.6; }
.dl-s i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--hair-2); display: inline-block; }
.dl-s.done { color: var(--ink-2); } .dl-s.done svg { color: var(--ok); }
.dl-s.cur { color: var(--ink); font-weight: 500; } .dl-s.cur svg { color: var(--accent); }
.dl-a { width: 14px; height: 1px; background: var(--hair-2); }
/* сведения о проверке — свёрнуты */
.tech summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 4px 0; }
.tech summary::-webkit-details-marker { display: none; }
.tech summary svg { width: 14px; height: 14px; transition: transform .15s; }
.tech[open] summary svg { transform: rotate(90deg); }
.tech-g { display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; font-size: 13px; padding: 10px 0 4px 20px; }
.tech-g span { color: var(--ink-3); }
.tech-g b { font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }


/* [p0210-front] форма документа (К3), подача № N (К7), основание итога, построчные нарушения (К4) */
.form-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; background: rgba(255, 255, 255, .7); color: var(--ink-2); flex: none; }
.form-chip svg { width: 13px; height: 13px; }
.form-chip.edo { color: var(--accent-2); }
.rv-basis { margin: -6px 0 12px; font-size: 13px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.rv-docs { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; }
.rv-doc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.rv-doc b { font-weight: 500; color: var(--ink); }
.rv-doc-r { min-width: 0; overflow-wrap: anywhere; }
.sub-chip { height: 22px; }
.rv.card.recalc .rv-why { color: var(--ink-2); }
.rv.card.recalc .rv-why .spin { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }
.rv-f { border-bottom: 1px dotted var(--ink-3); cursor: help; }
.fi-rows { display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.fi-rows > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-rows > span::before { content: "— "; color: var(--ink-3); }
.fi-rows > span.faint::before { content: ""; }
.fi-rows > span.unch { color: var(--ink-3); }
.rp.narrow .fi-rows > span { white-space: normal; }
