/* C2: правки вида для группы страниц «reports». Подключается после c2.css.
   Страницы: Прибыли и убытки (.c2r-pnl), Баланс (.c2r-bal), Сверка с банком (.c2r-rc),
   Закрытие месяца (.c2r-cl). Всё внутри .c2r, чтобы не задеть другие страницы. */

/* ---------------------------------------------------------------- основа страницы */
.c2r{display:flex;flex-direction:column;gap:20px;min-width:0;color:#1C1C1E;
  --ink:#1C1C1E;--ink-2:#3A3A44;--mut:#6B6B76;--mut-2:#8E8E93;--plum:#1C1C1E;--plum-2:#4A48B8;--rose:#4A48B8;
  --card:transparent;--wash:rgba(118,118,128,.08);--wash-2:rgba(118,118,128,.12);--line:rgba(60,60,67,.1);--line-2:rgba(60,60,67,.18);
  --red:#C2413A;--red-w:rgba(221,95,88,.12);--red-bd:rgba(221,95,88,.28);--amber:#975A08;--amber-ic:#D89533;--amber-w:rgba(240,166,60,.14);--amber-bd:rgba(240,166,60,.32);
  --green:#2E7D52;--green-w:rgba(62,156,105,.12);--green-bd:rgba(62,156,105,.28)}
.c2r .num{white-space:nowrap;font-variant-numeric:tabular-nums}
.c2r .neg,.c2r b.neg,.c2r td.neg{color:#C2413A}
.c2r .pos,.c2r td.pos{color:#2E7D52}
.c2r .k-card{min-width:0}
.c2r .k-h{align-items:center;margin-bottom:14px}
.c2r .k-h h2{font-size:21px;font-weight:700;letter-spacing:-.02em}
.c2r .k-note,.c2r .note{font-size:13.5px;color:#6B6B76;line-height:1.5}
/* старые карточки .card внутри страниц группы: как k-card */
.c2r .card{padding:24px 26px!important;-webkit-backdrop-filter:var(--c2-blur);backdrop-filter:var(--c2-blur);min-width:0}
.c2r .card-h{margin-bottom:14px;align-items:center}
.c2r .card-h h2{font-size:21px;font-weight:700;letter-spacing:-.02em;color:#1C1C1E}
.c2r .card-h p{font-size:14px;color:#6B6B76;margin-top:4px}
.c2r .grid{gap:20px!important}
.c2r .c2-key{margin-bottom:14px}

/* метка-«пилюля» рядом с заголовком карточки */
.c2r-pill{font-size:14px;font-weight:600;color:#3C3C43;background:rgba(118,118,128,.1);border-radius:999px;padding:5px 12px;white-space:nowrap;font-variant-numeric:tabular-nums}

/* плитки: на телефоне по две в ряд; нечётное число — первая во всю ширину */
.c2r .k-kpis{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.c2r .k-kpi-v{min-width:0}
.c2r .k-kpi-d>span:first-child:not(:empty){white-space:nowrap}

/* явный оттенок плитки сильнее, чем оттенок «по порядку» (в c2.css :nth-child перебивает .c2-t-*) */
.c2r .k-kpis>.k-kpi.c2-t-rose{--t1:rgba(236,92,128,.2);--t2:rgba(236,92,128,.06);--ts:rgba(236,92,128,.38);--tc:#B02E55;--tb:rgba(236,92,128,.14)}
.c2r .k-kpis>.k-kpi.c2-t-amber{--t1:rgba(240,166,60,.22);--t2:rgba(240,166,60,.07);--ts:rgba(240,166,60,.4);--tc:#975A08;--tb:rgba(240,166,60,.17)}
.c2r .k-kpis>.k-kpi.c2-t-blue{--t1:rgba(64,140,230,.2);--t2:rgba(64,140,230,.06);--ts:rgba(64,140,230,.38);--tc:#1F5FA8;--tb:rgba(64,140,230,.14)}
.c2r .k-kpis>.k-kpi.c2-t-teal{--t1:rgba(52,170,180,.22);--t2:rgba(52,170,180,.07);--ts:rgba(52,170,180,.4);--tc:#1B6E77;--tb:rgba(52,170,180,.15)}
.c2r .k-kpis>.k-kpi.c2-t-indigo{--t1:rgba(94,92,230,.24);--t2:rgba(150,110,230,.08);--ts:rgba(94,92,230,.42);--tc:#4A48B8;--tb:rgba(94,92,230,.13)}
.c2r .k-kpis>.k-kpi.c2-t-green{--t1:rgba(62,156,105,.22);--t2:rgba(62,156,105,.07);--ts:rgba(62,156,105,.4);--tc:#22603F;--tb:rgba(62,156,105,.15)}

/* кнопки внутри страниц группы */
.c2r .btn1,.c2r label.btn1,.c2r .k-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;border:0!important;border-radius:13px!important;padding:0 18px!important;
  font:inherit;font-size:14.5px!important;font-weight:600;color:#fff!important;background:#4A48B8!important;box-shadow:0 8px 18px -10px rgba(74,72,184,.75)!important;cursor:pointer}
.c2r .btn1:hover,.c2r .k-btn:hover{background:#3F3DA8!important}
.c2r .btn1:disabled,.c2r .k-btn:disabled{background:rgba(118,118,128,.18)!important;color:#6B6B76!important;box-shadow:none!important;cursor:not-allowed}
.c2r .btn2{display:inline-flex;align-items:center;gap:7px;min-height:40px;border-radius:12px!important;border:1px solid rgba(60,60,67,.14)!important;
  background:rgba(255,255,255,.72)!important;color:#1C1C1E!important;font-size:14px!important;font-weight:600;padding:0 14px!important;cursor:pointer}
.c2r .btn2:hover{background:#fff!important}
.c2r .btn2 svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.c2r a.k-link,.c2r .bl-lnk,.c2r .rc-tl,.c2r .rc-lnk{color:#4A48B8!important;font-weight:600}
.c2r details.bt>summary{color:#4A48B8;font-weight:600;font-size:14px}

/* ---------------------------------------------------------------- статусы: строки и метки */
.c2r .at{display:flex;flex-direction:column;gap:10px}
.c2r .at-i{grid-template-columns:34px minmax(0,1fr);gap:12px;padding:14px 16px;border-radius:18px;border:1px solid rgba(255,255,255,.6)!important;
  background:rgba(118,118,128,.07)}
.c2r .at-i.red{background:linear-gradient(150deg,rgba(236,92,108,.17),rgba(236,92,108,.05)),rgba(255,255,255,.4)}
.c2r .at-i.amber{background:linear-gradient(150deg,rgba(240,166,60,.2),rgba(240,166,60,.06)),rgba(255,255,255,.4)}
.c2r .at-i.green{background:linear-gradient(150deg,rgba(62,156,105,.18),rgba(62,156,105,.05)),rgba(255,255,255,.4)}
.c2r .at-ic{width:34px;height:34px;background:rgba(118,118,128,.14);color:#3C3C43}
.c2r .at-ic svg{stroke:currentColor;width:17px;height:17px}
.c2r .at-i.red .at-ic{background:rgba(236,92,108,.18);color:#A8352F}
.c2r .at-i.amber .at-ic{background:rgba(240,166,60,.22);color:#7A4806}
.c2r .at-i.green .at-ic{background:rgba(62,156,105,.18);color:#22603F}
.c2r .at-t{font-size:15px;font-weight:700;line-height:1.35}
.c2r .at-s{font-size:13.5px;color:#5E5E68;line-height:1.5;margin-top:3px}

.c2r-chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 11px;font-size:13px;font-weight:600;white-space:nowrap;
  background:rgba(118,118,128,.12);color:#3C3C43}
.c2r-chip.ok{background:rgba(62,156,105,.15);color:#22603F}
.c2r-chip.warn{background:rgba(240,166,60,.18);color:#7A4806}
.c2r-chip.bad{background:rgba(221,95,88,.14);color:#A8352F}
.c2r-chip.info{background:rgba(94,92,230,.12);color:#4A48B8}

/* строка проверки: значок, текст, метка или ссылка справа */
.c2r-st{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;border-radius:18px;
  border:1px solid rgba(255,255,255,.6);background:rgba(118,118,128,.07)}
.c2r-st+.c2r-st{margin-top:10px}
.c2r-st.ok{background:linear-gradient(150deg,rgba(62,156,105,.16),rgba(62,156,105,.04)),rgba(255,255,255,.4)}
.c2r-st.warn{background:linear-gradient(150deg,rgba(240,166,60,.2),rgba(240,166,60,.06)),rgba(255,255,255,.4)}
.c2r-st.bad{background:linear-gradient(150deg,rgba(236,92,108,.17),rgba(236,92,108,.05)),rgba(255,255,255,.4)}
.c2r-st-ic{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(118,118,128,.14);color:#3C3C43}
.c2r-st-ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.c2r-st.ok .c2r-st-ic{background:rgba(62,156,105,.2);color:#22603F}
.c2r-st.warn .c2r-st-ic{background:rgba(240,166,60,.24);color:#7A4806}
.c2r-st.bad .c2r-st-ic{background:rgba(236,92,108,.2);color:#A8352F}
.c2r-st-t{display:flex;flex-direction:column;gap:3px;min-width:0}
.c2r-st-t b{font-size:15.5px;font-weight:700}
.c2r-st-t span{font-size:13.5px;line-height:1.45;color:#5E5E68}
.c2r-st-r{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}

/* ---------------------------------------------------------------- графики группы */
.c2r-plot{position:relative;display:block}
.c2r-mark{position:absolute;left:0;transform:translateY(-125%);font-size:12.5px;font-weight:700;color:#3A3A44;white-space:nowrap;
  background:rgba(255,255,255,.85);border-radius:7px;padding:1px 7px;pointer-events:none;font-variant-numeric:tabular-nums}
.c2r-xl{display:grid;font-size:13px;font-weight:500;color:#8E8E93;text-align:center;margin-top:8px;white-space:nowrap}
.c2r-xl span{overflow:visible}
.c2r .c2-hits{z-index:2}
.c2r-ax{position:absolute;left:0;font-size:11.5px;font-weight:500;color:#8E8E93;transform:translateY(-115%);background:rgba(255,255,255,.75);border-radius:4px;padding:0 4px;pointer-events:none;white-space:nowrap}

/* ================================================================ Прибыли и убытки */
.c2r-pnl .pl-rep{padding:24px 26px}
.c2r-pnl .pl-rh{margin-bottom:16px;align-items:center}
.c2r-pnl .pl-rh h2{font-size:21px;font-weight:700;letter-spacing:-.02em}
.c2r-pnl .pl-rh p{font-size:14px;color:#6B6B76;margin-top:4px}
.c2r-pnl .pl-ctl{gap:10px}
.c2r-pnl .pl-sc{border-radius:18px;background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.7);overflow-x:auto;overscroll-behavior-x:contain;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.c2r-pnl .pl-t2{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;
  border-collapse:separate!important;border-spacing:0;min-width:100%}
.c2r-pnl .pl-t2 th,.c2r-pnl .pl-t2 td{padding:10px 14px;font-size:14px!important;border-bottom:1px solid rgba(60,60,67,.08)!important;white-space:nowrap}
.c2r-pnl .pl-t2 thead th{background:#F3F3F7!important;color:#6B6B76!important;font-size:13px!important;font-weight:600!important;
  border-bottom:1px solid rgba(60,60,67,.12)!important;padding-top:12px;padding-bottom:10px}
.c2r-pnl .pl-t2 thead th small{font-size:11.5px;font-weight:500;color:#8E8E93}
.c2r-pnl .pl-t2 thead th.pl-run{color:#4A48B8!important}
.c2r-pnl .pl-t2 thead th:first-child{position:sticky;left:0;z-index:3;background:#F3F3F7!important}
.c2r-pnl .pl-t2 tbody th{position:sticky;left:0;z-index:2;background:#FBFBFD!important;color:#3A3A44!important;font-weight:500!important;
  text-align:left;min-width:220px;box-shadow:1px 0 0 rgba(60,60,67,.12)!important}
.c2r-pnl .pl-t2 tbody td{color:#1C1C1E}
.c2r-pnl .pl-t2 tr.pl-top th,.c2r-pnl .pl-t2 tr.pl-top td{font-weight:700!important;color:#1C1C1E!important}
.c2r-pnl .pl-t2 tr.pl-qty th,.c2r-pnl .pl-t2 tr.pl-qty td{font-size:13px!important;color:#6B6B76!important}
.c2r-pnl .pl-t2 tr.pl-sub th,.c2r-pnl .pl-t2 tr.pl-sub td{font-weight:700!important;color:#1C1C1E;background:#F2F2F7!important}
.c2r-pnl .pl-t2 tr.pl-sub td.neg{color:#C2413A}
.c2r-pnl .pl-t2 tr.pl-tot th,.c2r-pnl .pl-t2 tr.pl-tot td{font-weight:700!important;font-size:15px!important;border-top:2px solid rgba(60,60,67,.24)!important;
  background:#F7F7FA!important;padding-top:12px;padding-bottom:12px}
.c2r-pnl .pl-t2 tr.pl-tot th{background:#F7F7FA!important;color:#1C1C1E!important}
.c2r-pnl .pl-t2 tr.pl-cum th,.c2r-pnl .pl-t2 tr.pl-cum td{font-size:13px!important;color:#6B6B76!important}
.c2r-pnl .pl-t2 tr.pl-cum td.neg{color:#C2413A!important;opacity:.85}
.c2r-pnl .pl-t2 tr.pl-cat th,.c2r-pnl .pl-t2 tr.pl-cat td{font-size:13px!important;color:#5E5E68!important}
.c2r-pnl .pl-t2 tr.pl-cat th{padding-left:34px;background:#FBFBFD!important}
.c2r-pnl .pl-t2 td.neg{color:#C2413A}
.c2r-pnl .pl-t2 td.pos{color:#2E7D52}
.c2r-pnl .pl-t2 th.pl-tt,.c2r-pnl .pl-t2 td:last-child{background:rgba(118,118,128,.07)!important;font-weight:700}
.c2r-pnl .pl-t2 tr.pl-sub td:last-child,.c2r-pnl .pl-t2 tr.pl-tot td:last-child{background:rgba(118,118,128,.12)!important}
.c2r-pnl .pl-t2 tbody tr:hover td{background-color:rgba(94,92,230,.04)}
.c2r-pnl .pl-tg{color:#4A48B8!important;font-weight:600}
.c2r-pnl .pl-foot{font-size:13px;color:#6B6B76;margin-top:14px}

@media (max-width:760px){
  .c2r{gap:14px}
  .c2r .k-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .c2r .k-kpi-d>span:first-child:not(:empty){white-space:normal}
  .c2r .k-kpis>.k-kpi:only-child,.c2r .k-kpis.c2r-odd>.k-kpi:first-child{grid-column:1/-1}
  .c2r .k-h h2,.c2r .card-h h2{font-size:18px}
  .c2r .card{padding:18px 16px!important;border-radius:24px!important}
  .c2r .c2-key{padding:9px 12px}
  .c2r-xl{font-size:11.5px}
  .c2r-pill{font-size:12.5px;padding:4px 10px}
  .c2r-st{grid-template-columns:32px minmax(0,1fr);padding:12px 14px;gap:12px}
  .c2r-st-ic{width:32px;height:32px}
  .c2r-st-r{grid-column:2;justify-content:flex-start}
  .c2r-pnl .pl-rep{padding:18px 16px}
  .c2r-pnl .pl-rh h2{font-size:18px}
  .c2r-pnl .pl-t2 th,.c2r-pnl .pl-t2 td{padding:9px 10px;font-size:13px!important}
  .c2r-pnl .pl-t2 tbody th{min-width:0;width:132px;max-width:132px;white-space:normal;line-height:1.3}
  .c2r-pnl .pl-t2 tr.pl-cat th{padding-left:16px}
  .c2r-pnl .pl-t2 tr.pl-tot th,.c2r-pnl .pl-t2 tr.pl-tot td{font-size:13.5px!important}
}

/* ================================================================ общие: метка в главном выводе, таблицы группы */
.c2r-chip svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.c2r .k-hero-l .c2r-chip{margin-left:8px;vertical-align:1px;font-size:12.5px;padding:3px 10px}
.c2r-tbl{width:100%;border-collapse:separate!important;border-spacing:0}
.c2r-tbl th{text-align:left;padding:10px 14px!important;font-size:12.5px!important;white-space:nowrap}
.c2r-tbl td{padding:12px 14px!important;vertical-align:top;font-size:14.5px;line-height:1.35}
.c2r-tbl .r{text-align:right!important;white-space:nowrap}
.c2r-tbl b{font-weight:600}
.c2r-tbl tr.tot td{font-weight:700;font-size:15px;border-top:1.5px solid rgba(60,60,67,.22)!important;background:rgba(118,118,128,.07)}
.c2r-tbl tr.tot td b{font-weight:700}
.c2r-tbl tbody tr:not(.tot):hover td{background:rgba(94,92,230,.035)}

/* ================================================================ Баланс */
.c2r-bal .bl-h3{font-size:16px;font-weight:700;margin:0 0 10px;color:#1C1C1E}
.c2r-bal .bl-side+.bl-side{border-top:1px solid rgba(60,60,67,.1)!important;margin-top:24px;padding-top:20px}
.c2r-bal .bl-bar{height:22px;border-radius:9px;gap:3px;background:rgba(118,118,128,.1);margin-bottom:12px}
.c2r-bal .bl-bar i{border-radius:6px}
.c2r-bal .bl-t td:first-child{position:relative;padding-left:38px!important;color:#1C1C1E;font-weight:500}
.c2r-bal .bl-t i.bl-dot{position:absolute;left:15px;top:16px;width:11px;height:11px;border-radius:4px}
.c2r-bal .bl-t .tag.c2r-sub{display:block!important;background:none!important;padding:0!important;border-radius:0!important;font-weight:400;white-space:normal;color:#6B6B76}
.c2r-bal .bl-t small{display:block;font-size:12.5px;color:#6B6B76;margin-top:2px;line-height:1.4}
.c2r-bal .bl-t small.bl-go{margin-top:4px}
.c2r-bal .bl-t .bl-sh{color:#6B6B76;font-size:13px}
.c2r-bal .bl-t tr.bl-eq td{font-weight:700}
.c2r-bal .bl-zero{font-size:13px;color:#6B6B76;margin:10px 0 0}
.c2r-bal .bl-at-l{margin-top:8px;font-size:13.5px}
.c2r-bal .cwf-r{font-size:14.5px;padding:9px 0;gap:14px}
.c2r-bal .cwf-l small{font-size:12.5px;color:#6B6B76}
.c2r-bal .cwf-r.fin{border-top:1.5px solid rgba(60,60,67,.22);margin-top:6px;padding-top:12px;font-weight:700}
.c2r-bal .cwf-r b{font-weight:600}
.c2r-bal .cwf-r.fin b{font-weight:700}
.c2r-bal .cwf-t{height:18px;border-radius:6px;background:rgba(118,118,128,.1)}
.c2r-bal .cwf-t i{border-radius:6px}
.c2r-bal .cwf-t i.in{background:linear-gradient(90deg,#3E9C69,#7CCB97)!important;opacity:1!important}
.c2r-bal .cwf-t i.out{background:linear-gradient(90deg,#F2A7A3,#DD5F58)!important}
.c2r-bal .cwf-t i.tot.bl-ok{background:#3E9C69!important}
.c2r-bal .cwf-t i.tot.neg{background:#DD5F58!important}
.c2r-bal .cwf-t u{background:rgba(60,60,67,.35)}
@media (max-width:760px){
  .c2r-bal .bl-t .bl-sh{display:none}
  .c2r-bal .bl-t td:first-child{padding-left:30px!important}
  .c2r-bal .bl-t i.bl-dot{left:10px}
  .c2r-tbl td{padding:11px 10px!important;font-size:14px}
  .c2r-tbl th{padding:9px 10px!important}
}
.c2r .k-hero-l{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.c2r .k-hero-l .c2r-chip{margin:0;flex:none;width:auto}
.c2r-bal .bl-grid{grid-template-areas:"bal right" "m m"}
.c2r-bal .bl-right{grid-area:right;display:flex;flex-direction:column;gap:20px;min-width:0}
@container ovx (max-width:900px){
  .c2r-bal .bl-grid{grid-template-areas:"imp" "bal" "wf" "m"}
  .c2r-bal .bl-right{display:contents}
}
@media (max-width:760px){
  .c2r .k-kpi-d>span:first-child:not(:empty){border-radius:10px;padding:3px 9px;font-size:12.5px;line-height:1.35}
}

/* ================================================================ Сверка с банком */
.c2r-rc .rc-grid{gap:20px!important}
.c2r-rc .rc-drop{border:1.5px dashed rgba(60,60,67,.22)!important;border-radius:20px!important;background:rgba(255,255,255,.45)!important;padding:16px 18px!important}
.c2r-rc .rc-drop.over{border-color:#4A48B8!important;background:rgba(94,92,230,.08)!important}
.c2r-rc .rc-drop p{font-size:14px;color:#3A3A44}
.c2r-rc .rc-drop .rc-priv{font-size:12.5px;color:#6B6B76}
.c2r-rc .rc-file svg{stroke:currentColor;margin-right:0}
.c2r-rc .rc-tl{font-size:14px}
.c2r-rc .rc-exp{background:rgba(118,118,128,.07)!important;border-radius:16px!important;padding:14px 16px!important}
.c2r-rc .rc-exp-h{font-size:14.5px;font-weight:700}
.c2r-rc .rc-exp-h b{font-size:18px;font-weight:700}
.c2r-rc .rc-exp-r{font-size:13.5px;color:#3A3A44;margin-top:8px}
.c2r-rc .rc-exp-r small{font-size:12.5px;color:#6B6B76}
.c2r-rc .rc-exp-r.bad{color:#C2413A}
.c2r-rc .rc-f{font-size:13px;color:#5E5E68;font-weight:500}
.c2r-rc .rc-f input{min-height:44px;font-size:15px}
.c2r-rc .rc-hint{font-size:13px;color:#6B6B76}
.c2r-rc .rc-wait{font-size:13.5px;color:#6B6B76}
.c2r-rc .rc-man{border-top:1px solid rgba(60,60,67,.1)!important}
.c2r-rc .rc-mv{font-size:14px;color:#3A3A44;padding:8px 0}
.c2r-rc .rc-mv b{font-weight:700}
.c2r-rc .rc-mv-t{border-top:1.5px solid rgba(60,60,67,.22)!important;font-weight:700;color:#1C1C1E;font-size:15px}
.c2r-rc .rc-lines li{font-size:14px;padding:9px 0;border-top:1px solid rgba(60,60,67,.08)!important;grid-template-columns:minmax(0,1fr) 90px 128px}
.c2r-rc .rc-bar{height:10px;border-radius:5px;background:rgba(118,118,128,.1)}
.c2r-rc .rc-bar i{border-radius:5px}
.c2r-rc .rc-bar i.in{background:linear-gradient(90deg,#3E9C69,#7CCB97)!important;opacity:1!important}
.c2r-rc .rc-bar i.out{background:linear-gradient(90deg,#DD5F58,#F2A7A3)!important}
.c2r-rc .rc-lines b{font-weight:600}
.c2r-rc .rc-lines b.neg{color:#C2413A!important}
.c2r-rc .rc-lines b.pos{color:#2E7D52}
.c2r-rc .rc-dl li{font-size:14px;border-top:1px solid rgba(60,60,67,.08)!important;padding:8px 0}
.c2r-rc .rc-dl b.neg{color:#C2413A!important}
.c2r-rc .rc-hist li{grid-template-columns:120px auto minmax(0,1fr);font-size:14px;padding:12px 0;border-top:1px solid rgba(60,60,67,.08)!important}
.c2r-rc .rc-hist li:first-child{border-top:0!important}
.c2r-rc .rc-hd{font-weight:600;color:#1C1C1E}
.c2r-rc .rc-hb b{font-weight:600}
.c2r-rc .rc-hn{font-size:12.5px;color:#6B6B76}
.c2r-rc .rc-hist .c2r-chip{justify-self:start;font-size:12.5px;padding:3px 10px}
.c2r-rc .rc-fr{font-size:14px;border-top:1px solid rgba(60,60,67,.08)!important}
.c2r-rc .rc-fr small{font-size:12.5px;color:#6B6B76}
.c2r-rc .rc-fi{width:28px;height:28px;background:rgba(118,118,128,.14)}
.c2r-rc .rc-fi.ok{background:rgba(62,156,105,.2)}
.c2r-rc .rc-fi.bad{background:rgba(236,92,108,.2)}
.c2r-rc .rc-fi svg{stroke:#22603F}
.c2r-rc .rc-fi.bad svg{stroke:#A8352F}
.c2r-rc .rc-h3{font-size:15px;font-weight:700;margin-top:18px}
.c2r-rc .rc-ads li{font-size:13.5px;border-top:1px solid rgba(60,60,67,.08)!important;padding:9px 0}
.c2r-rc .rc-ads li.warn .rc-as{color:#975A08}
.c2r-rc .rc-ads li.bad .rc-as{color:#C2413A}
.c2r-rc .rc-demo{background:linear-gradient(150deg,rgba(240,166,60,.2),rgba(240,166,60,.06)),rgba(255,255,255,.4)!important;border:1px solid rgba(255,255,255,.6)!important;
  border-radius:14px;color:#7A4806!important;font-size:13.5px}
.c2r-rc .rc-dep-t{font-size:14px;color:#3A3A44}
.c2r-rc .rc-del{font-size:13px;color:#6B6B76;padding:6px 8px!important;min-height:32px;border-radius:8px}
.c2r-rc .rc-del:hover{color:#C2413A;background:rgba(221,95,88,.08)}
.c2r-rc .rc-err{border-radius:16px!important}
@media (max-width:760px){
  .c2r-rc .rc-lines li{grid-template-columns:minmax(0,1fr) 116px}
  .c2r-rc .rc-hist li{grid-template-columns:auto minmax(0,1fr)}
}
.c2r-rc .rc-grid{grid-template-areas:"l r"!important;align-items:start}
.c2r-rc .rc-col{display:flex;flex-direction:column;gap:20px;min-width:0}
.c2r-rc .rc-col-l{grid-area:l}.c2r-rc .rc-col-r{grid-area:r}
@container ovx (max-width:900px){
  .c2r-rc .rc-grid{grid-template-areas:"chk" "since" "dep" "hist"!important}
  .c2r-rc .rc-col{display:contents}
}
@container ovx (max-width:640px){ .c2r-rc .rc-a-since .c2-key{display:none} }

/* ================================================================ Закрытие месяца */
.c2r-cl .k-top .k-sub{font-size:14px;color:#5E5E68}
.c2r-cl .bk-cl-note{margin:14px 2px 0;font-size:13.5px;line-height:1.5}
.c2r-cl .c2r-st-r .k-link{font-size:14px;text-decoration:none;white-space:nowrap}
.c2r-cl .c2r-st-r .k-link:hover{text-decoration:underline}
.c2r-mos{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.c2r-mo{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:14px 16px;border-radius:18px;background:rgba(118,118,128,.06);
  border:1px solid rgba(255,255,255,.6);min-width:0}
.c2r-mo b{font-size:15px;font-weight:700;white-space:nowrap}
.c2r-mo small{font-size:12.5px;color:#6B6B76;line-height:1.35}
.c2r-mo .c2r-chip{font-size:12.5px;padding:3px 10px}
.c2r-mo.ok{background:linear-gradient(150deg,rgba(62,156,105,.16),rgba(62,156,105,.04)),rgba(255,255,255,.4)}
.c2r-mo.warn{background:linear-gradient(150deg,rgba(240,166,60,.22),rgba(240,166,60,.06)),rgba(255,255,255,.4);box-shadow:0 10px 24px -16px rgba(240,166,60,.6)}
@media (max-width:760px){
  .c2r-cl .k-top{flex-direction:column;align-items:stretch}
  .c2r-cl .k-top-r .k-btn{width:100%;justify-content:center}
  .c2r-mos{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .c2r-mo{padding:12px}
  .c2r-mo b{font-size:14px}
}
/* класс .bad у строки не должен красить заголовок (общий .bad в c2.css) */
.c2r-st,.c2r-st.bad,.c2r-mo{color:#1C1C1E}
.c2r-st-t b{color:#1C1C1E}
.c2r .k-btn:disabled{opacity:1!important;color:#5E5E68!important;background:rgba(118,118,128,.16)!important;border:1px solid rgba(60,60,67,.1)!important}
.c2r-pnl .pl-t2 tr td.neg{color:#C2413A!important}
.c2r-pnl .pl-t2 tr td.pos{color:#2E7D52!important}
.c2r-pnl .pl-t2 tr.pl-cum td.neg{color:#C2413A!important;opacity:.85}

/* ================================================================ раунд 2: без фраз-выводов и карточек-предупреждений */

/* ---------------- Движение денег (страница .cf3, рядом стили c2-money.css) */
.cf3{gap:20px}
.cf3 .k-top-r{gap:10px}
.cf3 .cf3-btn{cursor:pointer;font:inherit;font-size:13.5px;font-weight:600;color:#3C3C43;margin:0}
.cf3 .cf3-btn:hover{background:rgba(255,255,255,.85)}
.cf3 .cf3-btn:focus-visible{outline:2px solid #4A48B8;outline-offset:2px}
.cf3 .cf3-due{color:#4A48B8}
.cf3 .cf3-due svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cf3-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:stretch}
.cf3-grid>.k-card{min-width:0;grid-area:auto!important}
@media (max-width:1100px){.cf3-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){
  .cf3 .k-top{flex-direction:column;align-items:stretch}
  .cf3 .k-top-l,.cf3 .k-top-r{justify-content:flex-start}
  .cf3 .k-top-r{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .cf3 .cf3-btn{justify-content:center;padding:0 10px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* окно «Сроки платежей» */
.due-pop{display:flex;flex-direction:column;gap:14px;padding-top:12px}
.due-pop .m2-due-tl{gap:14px}
.due-pop .m2-rows>.c2-r:last-child{border-bottom:0}
.due-pop .k-link{color:#4A48B8;font-weight:600}

/* ---------------- Прогноз */
.cf3-fc .k-top{margin-bottom:20px}
.cf3-fc .k-top-r .fc2-cfg{margin:0}
.cf3-fc .fc2{display:flex;flex-direction:column;gap:20px}
.cf3-fc .fc2-kp:empty,.cf3-fc .fc2-levers:empty{display:none}
.cf3-fc .fc2 .k-kpis{margin:0}
.cf3-fc .fc2-res{display:flex;flex-direction:column;gap:20px}
.cf3-fc .fc3-sub{margin:0 0 12px}
.cf3-fc details.k-more .fc2-table{margin:0}
.cf3-fc details.k-more .cf-table{background:transparent;border:0;box-shadow:none;padding:0}
.cf3-fc #fcAcc .k-scroll{margin-top:4px}

/* ---------------- Прибыли и убытки */
.c2r-pnl>.k-note{margin:0}

/* ---------------- Баланс: полосы и статьи */
.c2r-bal .bl2-card .k-h{justify-content:space-between;gap:12px;flex-wrap:wrap}
.c2r-bal .bl2-card .k-h .c2r-chip{font-size:13px}
.bl2-br{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;align-items:center;margin-bottom:10px}
.bl2-bl{font-size:14px;font-weight:600;color:#3A3A44}
.c2r-bal .bl2-bar{margin:0;height:24px;display:flex;overflow:hidden}
.c2r-bal .bl2-bar>i{display:block;height:100%;min-width:3px;border-radius:6px;cursor:default;transition:filter .12s}
.c2r-bal .bl2-bar>i:hover,.c2r-bal .bl2-bar>i.on{filter:brightness(.92) saturate(1.15);background-color:transparent}
.bl2-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 36px;margin-top:22px;padding-top:18px;border-top:1px solid rgba(60,60,67,.1)}
.bl2-col{min-width:0}
.bl2-list{display:flex;flex-direction:column}
.bl2-r{display:grid;grid-template-columns:11px minmax(0,1fr) auto 42px;gap:12px;align-items:baseline;padding:11px 0;border-bottom:1px solid rgba(60,60,67,.08)}
.bl2-r:last-child{border-bottom:0}
.bl2-r .bl-dot{width:11px;height:11px;border-radius:4px;align-self:start;margin-top:4px}
.bl2-l{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:14.5px;font-weight:500;color:#1C1C1E}
.bl2-l small{font-size:12.5px;font-weight:400;color:#6B6B76;line-height:1.4}
.bl2-l small.bl-go{margin-top:2px}
.bl2-r>b{font-size:14.5px;font-weight:600;text-align:right}
.bl2-sh{font-size:12.5px;color:#6B6B76;text-align:right}
@container ovx (max-width:900px){ .bl2-cols{grid-template-columns:minmax(0,1fr)} }
@media (max-width:760px){
  .bl2-br{grid-template-columns:minmax(0,1fr);gap:6px}
  .bl2-r{grid-template-columns:11px minmax(0,1fr) auto;gap:10px}
  .bl2-sh{display:none}
}

/* ---------------- Закрытие месяца и сверка с банком */
.c2r-cl .k-top-r{gap:10px}
.c2r-cl .c2r-recon{min-height:44px!important;border-radius:13px!important}
.c2r-cl .c2r-recon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.c2r .c2r-lnkb{border:0!important;background:none!important;box-shadow:none!important;padding:0!important;min-height:0!important;font:inherit;font-size:14px;
  font-weight:600;color:#4A48B8!important;cursor:pointer;white-space:nowrap}
.c2r .c2r-lnkb:hover{text-decoration:underline}
@media (max-width:760px){
  .c2r-cl .k-top-r{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  .c2r-cl .k-top-r>*{width:100%;justify-content:center}
}

/* окно сверки: большое, внутри — две колонки на компьютере */
.c2-pop.rc-pop{width:min(1120px,100%);max-height:calc(100vh - 48px)}
.c2-pop.rc-pop .c2-pop-b{padding-top:16px;padding-bottom:20px}
.rc-pop .rc-box{gap:16px}
.rc-pop .rc-box>.empty{padding:40px 0}
.rc-pop .c2r-rc .card{background:rgba(255,255,255,.66)!important;border:1px solid rgba(60,60,67,.08)!important;box-shadow:0 1px 2px rgba(16,24,40,.04)!important;
  -webkit-backdrop-filter:none;backdrop-filter:none;border-radius:22px!important}
@container ovx (min-width:901px){ .rc-pop .c2r-rc .rc-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)} }
@container ovx (max-width:900px){ .c2r-rc .rc-grid{grid-template-columns:minmax(0,1fr)!important} }
.rc-pop .c2-pop-hr{align-items:center}
@media (max-width:760px){
  .c2-pop.rc-pop{width:100%;max-height:calc(100vh - 20px)}
  .rc-pop .c2r-rc .card{padding:16px 14px!important}
  .rc-pop .c2r-rc .rc-form{grid-template-columns:minmax(0,1fr)}
  .rc-pop .c2r-rc .rc-depf{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .rc-pop .c2r-rc .rc-depf .btn2{grid-column:1/-1;justify-content:center}
}
/* в .ovx есть общие .ok/.bad (плашки с отступом 14px): метке они не нужны */
.ovx .c2r-chip,.c2-pop .c2r-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 11px;border-radius:999px;font-weight:600;min-height:0}
.c2r-bal .bl2-card .k-h .c2r-chip{padding:5px 12px}
@media (max-width:760px){ .c2r .k-kpis.c2r-oddl>.k-kpi:last-child{grid-column:1/-1} }
/* панель «Настроить прогноз»: поверх шапки, нижнего меню и полосы предпросмотра; «Готово» всегда видно */
.cf3-fc .fc2-drawer{z-index:590}
.cf3-fc .fc2-ph{position:sticky;top:-20px;z-index:2;margin:-20px -22px 0;padding:16px 22px 12px;background:rgba(249,249,251,.96);border-bottom:1px solid rgba(60,60,67,.08)}

/* ================================================================ Сверка: строки выписки и учёт (bank_match.js, ноябрь 2026) */
.c2r-rc .bm{display:flex;flex-direction:column;gap:12px}
.c2r-rc .bm .card-h{margin-bottom:2px}
.c2r-rc .bm-sum{margin:0;font-size:14px;color:#3A3A44;line-height:1.45}
.c2r-rc .bm-sum b{color:#1C1C1E}
.c2r-rc .bm-expl{font-size:13.5px;line-height:1.45;padding:11px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.6)}
.c2r-rc .bm-expl.ok{background:linear-gradient(150deg,rgba(62,156,105,.16),rgba(62,156,105,.05)),rgba(255,255,255,.4);color:#22603F}
.c2r-rc .bm-expl.warn{background:linear-gradient(150deg,rgba(240,166,60,.2),rgba(240,166,60,.06)),rgba(255,255,255,.4);color:#7A4806}
.c2r-rc .bm-st{font-weight:700}
.c2r-rc .bm-done{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.c2r-rc .bm-done li{display:flex;gap:8px;align-items:flex-start;font-size:13.5px;color:#22603F;line-height:1.4}
.c2r-rc .bm-ic{flex:none;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:rgba(62,156,105,.18);color:#22603F;font-size:12px;font-weight:700;margin-top:1px}
.c2r-rc .bm-g h4{display:flex;align-items:center;gap:8px;margin:4px 0 6px;font-size:14px;font-weight:700;color:#1C1C1E}
.c2r-rc .bm-dot{width:9px;height:9px;border-radius:50%;flex:none}
.c2r-rc .bm-dot.bad{background:#DD5F58}.c2r-rc .bm-dot.warn{background:#E39A2D}
.c2r-rc .bm-n{font-size:12px;font-weight:600;color:#6B6B76;background:rgba(118,118,128,.12);border-radius:999px;padding:1px 8px}
.c2r-rc .bm-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.c2r-rc .bm-r{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.72);border:1px solid rgba(60,60,67,.1);min-width:0}
.c2r-rc .bm-g-extra .bm-r,.c2r-rc .bm-g-missing .bm-r{border-left:3px solid #DD5F58}
.c2r-rc .bm-g-differs .bm-r,.c2r-rc .bm-g-shift .bm-r{border-left:3px solid #E39A2D}
.c2r-rc .bm-t{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:14.5px}
.c2r-rc .bm-t b{font-weight:700;color:#1C1C1E;min-width:0}
.c2r-rc .bm-t .num{font-weight:700;white-space:nowrap;color:#1C1C1E}
.c2r-rc .bm-t .num.neg{color:#C2413A}
.c2r-rc .bm-m small{display:block;margin-top:4px;font-size:13px;line-height:1.45;color:#5E5E68;overflow-wrap:anywhere}
.c2r-rc .bm-a{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.c2r-rc .bm-a .btn1,.c2r-rc .bm-a .btn2{min-height:38px;font-size:14px;padding:0 14px!important}
.c2r-rc .bm-cat{min-height:40px;border-radius:12px;border:1px solid rgba(60,60,67,.18);background:#fff;padding:0 10px;font:inherit;font-size:14px;max-width:100%}
.c2r-rc .bm-keep{font-size:13.5px!important;color:#6B6B76!important;font-weight:500!important}
.c2r-rc .bm-err{margin-top:6px;font-size:13px;color:#C2413A}
.c2r-rc .bm-det{margin-top:6px}
.c2r-rc .bm-det summary{font-size:13px;font-weight:600;color:#4A48B8;cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:4px}
.c2r-rc .bm-det summary::-webkit-details-marker{display:none}
.c2r-rc .bm-det[open] .chev{transform:rotate(180deg)}
.c2r-rc .bm-det ul{list-style:none;margin:6px 0 0;padding:0}
.c2r-rc .bm-det li{display:grid;grid-template-columns:84px minmax(0,1fr) auto;gap:10px;font-size:12.5px;padding:6px 0;border-top:1px solid rgba(60,60,67,.08);color:#3A3A44}
.c2r-rc .bm-det li b{font-weight:600;white-space:nowrap}
.c2r-rc .bm-dl{color:#5E5E68;min-width:0}
.c2r-rc .bm-pend{margin:0;font-size:13px;color:#5E5E68;line-height:1.45}
.c2r-rc .bm-okd{border-top:1px solid rgba(60,60,67,.1)}
.c2r-rc .bm-ok{list-style:none;margin:4px 0 0;padding:0}
.c2r-rc .bm-ok li{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;align-items:start;padding:8px 0;border-top:1px solid rgba(60,60,67,.08);font-size:13.5px}
.c2r-rc .bm-ok li:first-child{border-top:0}
.c2r-rc .bm-ok b{font-weight:600;color:#1C1C1E}
.c2r-rc .bm-ok small{display:block;font-size:12.5px;color:#6B6B76;line-height:1.4}
.c2r-rc .bm-ok .num{white-space:nowrap}
.c2r-rc .bm-note{margin:0;font-size:12.5px;color:#6B6B76;line-height:1.45}
@container ovx (max-width:640px){
  .c2r-rc .bm-r{padding:12px}
  .c2r-rc .bm-a .btn1,.c2r-rc .bm-a .btn2,.c2r-rc .bm-cat{flex:1 1 100%;justify-content:center}
  .c2r-rc .bm-det li{grid-template-columns:minmax(0,1fr) auto}
  .c2r-rc .bm-det li span:first-child{grid-column:1/-1;font-weight:600}
}

/* ноябрь 2026, «оптимизировать место»: результат сверки — две колонки примерно одной высоты */
.ovx .rc-grid .rc-a-bm{grid-area:bm}
@container ovx (min-width:901px){ .rc-pop .c2r-rc .rc-grid.rc-res{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)} }
@container ovx (max-width:900px){ .c2r-rc .rc-grid{grid-template-areas:"chk" "bm" "since" "dep" "hist"!important} }
.c2r-rc .rc-reup{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:2px 0 4px}
.c2r-rc .rc-reup.over{outline:2px dashed #4A48B8;outline-offset:4px;border-radius:12px}
.c2r-rc .rc-reup .rc-priv{font-size:12.5px;color:#6B6B76}
.c2r-rc .rc-reup .btn2 svg{stroke:currentColor}
.c2r-rc .rc-v{margin-bottom:2px}
.c2r-rc .rc-adsd{border-top:1px solid rgba(60,60,67,.1)}
.c2r-rc .rc-adsd .rc-ads{margin-top:4px}
.c2r-rc .rc-mini > :not(.card-h){display:none!important}
.c2r-rc .rc-mini > .card-h{cursor:pointer;margin-bottom:0!important;position:relative;padding-right:28px}
.c2r-rc .rc-mini > .card-h::after{content:"";position:absolute;right:4px;top:50%;width:8px;height:8px;border-right:2px solid #4A48B8;border-bottom:2px solid #4A48B8;transform:translateY(-70%) rotate(45deg);transition:transform .15s}
.c2r-rc .rc-mini.open > :not(.card-h){display:revert!important}
.c2r-rc .rc-mini.open > .card-h{margin-bottom:12px!important}
.c2r-rc .rc-mini.open > .card-h::after{transform:translateY(-30%) rotate(-135deg)}
.c2r-rc .rc-mini{padding-top:16px!important;padding-bottom:16px!important}
.c2r-rc .rc-mini .card-h h2{font-size:17px}
.c2r-rc .bm-okd summary .bm-n{margin-left:6px}
.c2r-rc details.bt:not([open]){gap:0}
.c2r-rc details.bt[open]{gap:10px}
.c2r-rc .rc-adsd,.c2r-rc .bm-okd{margin-top:0;padding-top:4px}
.c2r-rc .rc-man{margin-top:6px}
/* «С прошлой сверки» и проценты под результатом: на всю ширину окна */
.c2r-rc .rc-row-f{display:none}
.c2r-rc .rc-grid.rc-res .rc-row-f{display:flex;flex-direction:column;gap:14px;grid-area:f;min-width:0}
@container ovx (min-width:901px){ .c2r-rc .rc-grid.rc-res{grid-template-areas:"l r" "f f"!important} }
@container ovx (max-width:900px){ .c2r-rc .rc-grid.rc-res .rc-row-f{display:contents} }
