/* WorkLine 1.9.69 — «Сверка»: сличительная ведомость (итог инвентаризации) */
.stmt-card[hidden] { display: none !important; }
.stmt-hint { margin: -4px 0 10px; font-size: 12.5px; line-height: 1.3; opacity: .6; }
#stmt-body { --st-minus: var(--danger, #ef4444); --st-plus: var(--success, #22c55e); }
.stmt-card .st-minus, #stmt-hist-overlay .st-minus { color: var(--danger, #ef4444); }
.stmt-card .st-plus, #stmt-hist-overlay .st-plus { color: var(--success, #22c55e); }

.st-empty { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; border: 1.5px dashed var(--border); border-radius: 12px; font-size: 13px; line-height: 1.35; text-align: center; }
.st-empty b { font-size: 14px; }
.st-empty span { opacity: .7; }

.st-head { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 10px; }
.st-head b { font-size: 15px; font-weight: 800; }
.st-head small { font-size: 12px; opacity: .6; line-height: 1.3; }

/* плитки: недостача, излишки, итог, сошлось */
.st-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
@media (min-width: 700px) { .st-tiles { grid-template-columns: repeat(4, 1fr); } }
.st-tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 11px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg); }
.st-tile span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; opacity: .6; }
.st-tile b { font-size: 15.5px; letter-spacing: -.2px; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.st-tile small { font-size: 12px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-tile.minus b { color: var(--danger, #ef4444); }
.st-tile.plus b { color: var(--success, #22c55e); }
.st-tile.net { border-width: 2px; }
.st-tile.net.minus { border-color: var(--danger, #ef4444); }
.st-tile.net.plus { border-color: var(--success, #22c55e); }
.st-tile.net b { font-size: 16.5px; }
.st-tile.net.ok b { opacity: .8; }
.st-tiles-sm .st-tile { padding: 8px 9px; }
.st-tiles-sm .st-tile b { font-size: 15px; }

.st-bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--border); margin: 0 0 6px; }
.st-bar i { display: block; height: 100%; }
.st-bar i.minus { background: var(--danger, #ef4444); }
.st-bar i.plus { background: var(--success, #22c55e); }
.st-sum { font-size: 12.5px; opacity: .75; margin-bottom: 10px; font-variant-numeric: tabular-nums; }

/* выводы */
.st-ins { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.st-in { display: flex; gap: 9px; align-items: flex-start; padding: 8px 10px; border-radius: 11px; background: var(--bg); border: 1px solid var(--border); font-size: 13px; line-height: 1.3; }
.st-in > i { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 900; color: #fff; background: var(--primary); margin-top: 1px; }
.st-in.warn > i { background: #f59e0b; }
.st-in.bad > i { background: var(--danger, #ef4444); }
.st-in.good > i { background: var(--success, #22c55e); }
.st-in > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-in b { font-weight: 800; }
.st-in small { font-size: 12px; opacity: .7; overflow-wrap: anywhere; white-space: pre-line; }

/* по категориям */
.st-sub-t { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; opacity: .6; margin: 2px 0 6px; }
.st-cats { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.st-cat { display: grid; grid-template-columns: minmax(0, 38%) 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; }
.st-cat > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-cat em { display: block; height: 7px; border-radius: 5px; background: var(--border); overflow: hidden; }
.st-cat em i { display: block; height: 100%; border-radius: 5px; background: var(--primary); }
.st-cat em i.minus { background: var(--danger, #ef4444); }
.st-cat em i.plus { background: var(--success, #22c55e); }
.st-cat b { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-cat b.minus { color: var(--danger, #ef4444); }
.st-cat b.plus { color: var(--success, #22c55e); }

/* список позиций ведомости */
.st-seg { margin-bottom: 8px; }
.st-seg .mode-segmented-btn { font-size: 12.5px; padding-left: 4px; padding-right: 4px; white-space: nowrap; }
.st-q { width: 100%; box-sizing: border-box; margin: 0 0 8px; padding: 9px 12px; border-radius: 11px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font-size: 14px; }
.st-list { display: flex; flex-direction: column; }
.st-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--border); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.st-row:active { background: var(--accent-bg); }
.st-nm { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.st-nm b { font-size: 14px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.st-nm small { font-size: 11.5px; opacity: .55; }
.st-rv { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; font-variant-numeric: tabular-nums; }
.st-rv b { font-size: 14px; font-weight: 800; white-space: nowrap; }
.st-rv small { font-size: 11.5px; opacity: .65; white-space: nowrap; }
.st-row.minus .st-rv b { color: var(--danger, #ef4444); }
.st-row.plus .st-rv b { color: var(--success, #22c55e); }
.st-row.ok .st-rv b { opacity: .45; }
.st-row.open { border-bottom-color: transparent; }
.st-det { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px 2px 10px; border-bottom: 1px solid var(--border); }
.st-det > div { display: flex; flex-direction: column; gap: 1px; padding: 7px 8px; border-radius: 10px; background: var(--bg); min-width: 0; }
.st-det > div.wide { grid-column: 1 / -1; }
.st-det span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; opacity: .55; }
.st-det b { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.st-det b.minus { color: var(--danger, #ef4444); }
.st-det b.plus { color: var(--success, #22c55e); }
.st-det small { font-size: 11.5px; opacity: .65; }
.st-more { width: 100%; margin-top: 10px; justify-content: center; }

/* история: динамика итога */
.st-trend { margin: 0 0 12px; padding: 10px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg); }
.st-trend-t { font-size: 12px; font-weight: 800; opacity: .6; margin-bottom: 6px; }
.st-trend-bars { display: flex; align-items: stretch; gap: 4px; height: 92px; }
.st-tb { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.st-tb em { flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.st-tb em i { display: block; width: 70%; max-width: 26px; border-radius: 4px 4px 0 0; background: var(--primary); }
.st-tb em i.minus { background: var(--danger, #ef4444); }
.st-tb em i.plus { background: var(--success, #22c55e); }
.st-tb small { font-size: 10px; opacity: .6; }
.st-cmp-sum { font-size: 13px; margin: 0 0 10px; }
#stmt-hist-overlay .st-del { color: #e04646 !important; border-color: rgba(224, 70, 70, .45) !important; }

/* права: без права кнопки не показываем (настоящая граница — правила Firestore) */
body:not(#mbp).wlp-no-statement-import #residues #stmt-card [data-stmt="upload"],
body:not(#mbp).wlp-no-statement-export #residues #stmt-card [data-stmt="export"] { display: none !important; }

/* «Сверка»: сводка сверху — кликабельные кнопки-фильтры (Все / В минус / В плюс / Сходится) */
.res-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.res-summary span,
.res-summary .res-sum-btn {
    display: inline-flex; align-items: baseline; gap: 4px;
    padding: 6px 11px; min-height: 32px; border-radius: 999px;
    border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
    font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: transform .1s ease, border-color .14s ease, background .14s ease, color .14s ease, opacity .14s ease;
}
.res-summary .res-sum-btn:active { transform: scale(.96); }
.res-summary b { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.res-summary .minus b { color: var(--danger, #ef4444); }
.res-summary .plus b { color: var(--success, #22c55e); }
.res-summary .ok { opacity: .82; }
.res-summary .res-sum-btn.all.active,
.res-summary .res-sum-btn.ok.active {
    border-color: var(--primary, #2563eb);
    background: rgba(var(--primary-rgb, 37, 99, 235), .12);
    color: var(--primary, #2563eb);
    font-weight: 700;
    opacity: 1;
}
.res-summary .res-sum-btn.minus.active {
    border-color: var(--danger, #ef4444);
    background: rgba(239, 68, 68, .12);
    color: var(--danger, #ef4444);
    font-weight: 700;
}
.res-summary .res-sum-btn.plus.active {
    border-color: var(--success, #22c55e);
    background: rgba(34, 197, 94, .12);
    color: var(--success, #22c55e);
    font-weight: 700;
}

/* переключатель разделов «Сверки» */
.res-switch { margin: 0 0 12px; }
.res-switch[hidden], .res-switch .mode-segmented-btn[hidden] { display: none !important; }
.res-switch .mode-segmented-btn {
    font-size: 12.5px; line-height: 1.15; white-space: nowrap;
    padding: 8px 6px; display: flex; align-items: center; justify-content: center; text-align: center;
}
.res-switch.has-3 .mode-segmented-btn {
    font-size: clamp(10.5px, 2.95vw, 12.5px);
    white-space: normal;
    padding: 6px 4px;
}
#residues[data-pane="stmt"] #res-pane-rest,
#residues[data-pane="stmt"] #recount-card { display: none !important; }
#residues[data-pane="rest"] #stmt-card,
#residues[data-pane="rest"] #recount-card { display: none !important; }
#residues[data-pane="recount"] #res-pane-rest,
#residues[data-pane="recount"] #stmt-card { display: none !important; }

/* «Пересчёт» (#recount-card) — карточки в стиле «Склада» */
.rec-tab-cnt {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 17px; height: 17px; margin-left: 4px; padding: 0 5px;
    border-radius: 999px; font-size: 10.5px; font-weight: 800;
    background: rgba(245, 158, 11, .2); color: #b45309;
}
[data-theme^="dark"] .rec-tab-cnt { color: #fcd34d; }
.res-switch .mode-segmented-btn.active .rec-tab-cnt {
    background: rgba(255, 255, 255, .24); color: inherit;
}
#recount-card .rec-tools { margin-top: 10px; }
#recount-card .rec-meta-row {
    display: flex; align-items: center; gap: 8px; margin: 0 0 10px;
}
#recount-card .rec-meta-row[hidden] { display: none !important; }
#recount-card .rec-meta {
    flex: 1 1 auto; min-width: 0; padding: 7px 10px; border-radius: 10px;
    background: var(--bg); border: 1px solid var(--border);
    font-size: 12px; font-weight: 600; opacity: .86; line-height: 1.3;
}
#recount-card .rec-clear-inline {
    flex: 0 0 auto; height: 32px; padding: 0 11px; border-radius: 999px;
    border: 1.5px solid rgba(224, 70, 70, .4); background: transparent;
    color: #e04646; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
#recount-card .rec-clear-inline[hidden] { display: none !important; }
#recount-card .rec-items-wrap { display: flex; flex-direction: column; gap: 10px; }

#recount-card .rec-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 12px 12px 10px; border-radius: 18px;
    background: var(--card); border: 1.5px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}
#recount-card .rec-card.is-changed {
    border-color: rgba(245, 158, 11, .68);
    background: linear-gradient(rgba(245, 158, 11, .06), rgba(245, 158, 11, .06)), var(--card);
}
#recount-card .rec-card.is-done {
    border-color: rgba(34, 197, 94, .5);
}
#recount-card .rec-card.is-collapsed > .rec-body { display: none !important; }
#recount-card .rec-card:not(.is-collapsed) .rec-chev svg { transform: rotate(180deg); }

#recount-card .rec-top { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
#recount-card .rec-title-wrap { flex: 1 1 auto; min-width: 0; }
#recount-card .rec-nm {
    color: var(--text); font-size: 15.5px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere;
}
#recount-card .rec-sub { font-size: 11.5px; font-weight: 600; opacity: .58; margin-top: 2px; }
#recount-card .rec-top-right {
    flex: 0 0 auto; display: flex; align-items: center; gap: 5px;
}
#recount-card .rec-total-pill {
    display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px;
    background: rgba(var(--primary-rgb, 37, 99, 235), .12); color: var(--primary, #2563eb);
    font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap;
}
#recount-card .rec-total-pill:empty { display: none; }
#recount-card .rec-badge {
    display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px;
    font-size: 11px; font-weight: 700; font-style: normal; white-space: nowrap;
    background: rgba(127, 127, 127, .12); color: var(--text);
}
#recount-card .rec-badge.minus { background: rgba(239, 68, 68, .14); color: var(--danger, #ef4444); }
#recount-card .rec-badge.plus { background: rgba(34, 197, 94, .14); color: var(--success, #22c55e); }
#recount-card .rec-badge.ok { background: rgba(34, 197, 94, .14); color: var(--success, #22c55e); }
#recount-card .rec-badge.todo { opacity: .68; }
#recount-card .rec-chev {
    flex: 0 0 auto; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px;
    background: transparent; color: var(--text); opacity: .65;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
#recount-card .rec-chev svg { transition: transform .16s ease; }

#recount-card .rec-zone-sum {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
    margin: -2px 0 0; font-size: 12px; opacity: .88; color: var(--primary, #2563eb);
}
#recount-card .rec-zone-sum[hidden] { display: none !important; }
#recount-card .rec-zone-sum span b { font-weight: 800; color: var(--text); }

#recount-card .rec-nums {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
}
#recount-card .rec-num-cell {
    display: flex; flex-direction: column; gap: 1px; min-width: 0;
    padding: 6px 8px; border-radius: 10px;
    background: var(--bg); border: 1px solid var(--border);
}
#recount-card .rec-num-cell span {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .2px; opacity: .58;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#recount-card .rec-num-cell b {
    font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
}
#recount-card .rec-num-cell small { font-size: 11px; font-weight: 700; opacity: .72; }
#recount-card .rec-num-cell small.minus { color: var(--danger, #ef4444); opacity: 1; }
#recount-card .rec-num-cell small.plus { color: var(--success, #22c55e); opacity: 1; }
#recount-card .rec-num-cell small.ok { color: var(--success, #22c55e); opacity: 1; }

#recount-card .rec-reason {
    padding: 6px 9px; border-radius: 10px; font-size: 12px; font-weight: 700; line-height: 1.3;
    background: rgba(245, 158, 11, .14); color: #92400e;
}
[data-theme^="dark"] #recount-card .rec-reason { color: #fcd34d; }
#recount-card .rec-reason.zero { background: rgba(239, 68, 68, .12); color: var(--danger, #ef4444); }

#recount-card .rec-body { display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
#recount-card .rec-inv-hint { font-size: 11.5px; opacity: .68; line-height: 1.3; }
#recount-card .inv-item-fact-head { font-size: 11px; font-weight: 700; opacity: .55; margin: 0 0 -3px 2px; }

#recount-card .rec-places {
    display: flex; flex-direction: column; gap: 0; padding: 2px 6px; border-radius: 14px;
    background: rgba(var(--primary-rgb, 37, 99, 235), .05);
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb, 37, 99, 235), .09);
}
#recount-card .rec-places.solid-layout { flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 6px; }
#recount-card .inv-tare-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr) auto;
    column-gap: 6px; row-gap: 2px; align-items: center; padding: 6px 0;
}
#recount-card .inv-tare-row + .inv-tare-row { border-top: 1px solid rgba(var(--primary-rgb, 37, 99, 235), .1); }
#recount-card .inv-tare-row > .u-part[hidden] { display: none; }
#recount-card .inv-tare-row .inv-zone {
    grid-column: 1 / -1; justify-self: start; max-width: none; height: 22px; padding: 0 2px;
    border: 0 !important; background: transparent !important; justify-content: flex-start;
    font-size: 11.5px; font-weight: 800; color: var(--text); opacity: .65;
    display: inline-flex; align-items: center; gap: 3px; cursor: pointer;
}
#recount-card .inv-tare-row .inv-zone.set { opacity: 1; color: var(--primary, #2563eb); }
#recount-card .inv-place-badge {
    display: inline-flex; align-items: center; gap: 3px; padding: 3px; border-radius: 12px;
    background: var(--card); box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb, 37, 99, 235), .14);
}
#recount-card .inv-place-badge .inv-zone {
    display: inline-flex; align-items: center; gap: 3px; max-width: 62px; height: 30px; padding: 0 5px;
    border-radius: 9px; border: 1.5px dashed rgba(var(--primary-rgb, 37, 99, 235), .35);
    background: transparent; color: var(--text); opacity: .65; font: inherit; font-size: 11px; font-weight: 800;
}
#recount-card .inv-place-badge .inv-zone span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#recount-card .inv-place-badge .inv-zone.set {
    opacity: 1; border-style: solid; color: var(--primary, #2563eb); background: rgba(var(--primary-rgb, 37, 99, 235), .08);
}
#recount-card .inv-tare-row input, #recount-card .inv-place-badge input {
    height: 36px; margin: 0; padding: 0 5px; border: 0; border-radius: 10px;
    background: var(--card); box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb, 37, 99, 235), .16);
    color: var(--text); font: inherit; font-size: 15px; font-weight: 700;
    font-variant-numeric: tabular-nums; text-align: center; outline: none; min-width: 0;
    box-sizing: border-box; -moz-appearance: textfield;
}
#recount-card .inv-tare-row input::-webkit-outer-spin-button,
#recount-card .inv-tare-row input::-webkit-inner-spin-button,
#recount-card .inv-place-badge input::-webkit-outer-spin-button,
#recount-card .inv-place-badge input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
#recount-card .inv-tare-row input::placeholder,
#recount-card .inv-place-badge input::placeholder {
    color: var(--text); opacity: .38; font-size: 12.5px; font-weight: 600;
}
#recount-card .inv-place-badge input { width: 64px; height: 32px; box-shadow: none; background: transparent; }
#recount-card .inv-tare-row input:focus, #recount-card .inv-place-badge input:focus {
    box-shadow: inset 0 0 0 1.5px var(--primary, #2563eb);
}
#recount-card .inv-x { color: var(--text); opacity: .4; font-size: 14px; font-weight: 700; }
#recount-card .u-seg {
    display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px;
    background: rgba(var(--primary-rgb, 37, 99, 235), .1);
}
#recount-card .u-seg-b {
    min-width: 28px; height: 32px; padding: 0 6px; border: 0; border-radius: 8px;
    background: transparent; color: var(--text); opacity: .6; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
}
#recount-card .u-seg-b.on {
    background: var(--card); color: var(--primary, #2563eb); opacity: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
[data-theme^="dark"] #recount-card .u-seg-b.on { background: rgba(var(--primary-rgb, 37, 99, 235), .32); color: #fff; }
#recount-card .inv-fact-del {
    width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent;
    color: var(--text); opacity: .45; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}

#recount-card .rec-footer {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
#recount-card .inv-fact-add {
    display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px 0 8px;
    border: 0; border-radius: 10px; background: rgba(var(--primary-rgb, 37, 99, 235), .11);
    color: var(--primary, #2563eb); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
}
#recount-card .inv-fact-add[hidden],
#recount-card .rec-same-btn[hidden],
#recount-card .rec-push-btn[hidden],
#recount-card .rec-reset-btn[hidden] { display: none !important; }
#recount-card .rec-same-btn,
#recount-card .rec-note-btn,
#recount-card .rec-push-btn,
#recount-card .rec-reset-btn {
    height: 32px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--border);
    background: var(--bg); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
#recount-card .rec-same-btn.active {
    border-color: var(--success, #22c55e); background: rgba(34, 197, 94, .14); color: var(--success, #22c55e);
}
#recount-card .rec-push-btn {
    border-color: rgba(var(--primary-rgb, 37, 99, 235), .45); color: var(--primary, #2563eb);
    background: rgba(var(--primary-rgb, 37, 99, 235), .08);
}
#recount-card .rec-note-btn.active { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); }
#recount-card .rec-reset-btn { padding: 0 9px; font-size: 15px; opacity: .75; }

.rec-note-row input {
    width: 100%; box-sizing: border-box; height: 34px; padding: 0 10px;
    border-radius: 9px; border: 1.5px solid var(--border);
    background: var(--bg); color: var(--text); font: inherit; font-size: 12.5px;
}
.rec-summary { gap: 5px; }
.rec-summary .res-sum-btn { padding: 5px 9px; font-size: 12px; min-height: 30px; }
.rec-summary .res-sum-btn.ok b { color: #d97706; }
.rec-summary .res-sum-btn.ok.active b { color: inherit; }
.rec-tg-box { max-width: 520px; }
.rec-tg-seg { margin: 0 0 10px; }
.rec-tg-seg .mode-segmented-btn { white-space: nowrap; font-size: 12.5px; padding: 8px 6px; }
.rec-tg-ta {
    width: 100%; box-sizing: border-box; min-height: 220px; padding: 10px 12px;
    border-radius: 12px; border: 1.5px solid var(--border);
    background: var(--bg); color: var(--text); font: inherit; font-size: 13px; line-height: 1.45;
    resize: vertical;
}
.rec-tg-actions { display: flex; gap: 8px; }
.rec-tg-actions .btn-main { flex: 1 1 0; justify-content: center; }

/* «Очистить» — убрать ведомость с экрана, в истории она остаётся */
.st-head { position: relative; }
.st-head > b { padding-right: 96px; }
.st-clear { position: absolute; top: -2px; right: 0; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--border); background: transparent; color: var(--text); font-size: 12.5px; font-weight: 700; opacity: .85; cursor: pointer; }
.st-clear:active { background: var(--accent-bg); }
.st-show { margin: 6px auto 0; }
body:not(#mbp).wlp-no-statement-view #residues #stmt-card .st-clear { display: none !important; }
