/* @ds-v23 (затвор: только токены) — Minta DS v3 · ПОЛОСА E: интеграции и автоматизация (20.11.2026).
 * Экраны: вебхуки, файлы, интеграции, банковские подключения, настройки автоматизации, правила, закрытые периоды.
 * Кнопки, поля, окна, плашки состояния — компоненты DS (ds/ui.js); здесь только то, чего в DS нет: тихие подписи,
 * значок вида файла/кружок интеграции, строка правила, таблица истории. Только токены. */

/* ───────── текст ───────── */
html .ds22 .e-strong{font-weight:600}
html .ds22 .e-muted{color:var(--text-muted)}
html .ds22 .e-warn{color:var(--warning-strong)}
html .ds22 .e-neg{color:var(--negative-strong)}
html .ds22 .e-note{font:var(--type-micro);color:var(--text-muted)}
html .ds22 .e-hint{font:var(--type-caption);color:var(--text-muted)}
html .ds22 .e-meta{font:var(--type-meta);color:var(--text-muted)}
html .ds22 .e-intro{color:var(--text-secondary);line-height:1.6}
html .ds22 .e-group-title{font:var(--type-verdict);font-weight:700;margin-top:0}
html .ds22 .e-tile-title{font:var(--type-body);font-weight:700}
html .ds22 .e-subhead{font:var(--type-body);font-weight:700}
html .ds22 .e-tone--positive{color:var(--positive-strong)}
html .ds22 .e-tone--info{color:var(--information-strong)}
html .ds22 .e-tone--warning{color:var(--warning-strong)}
html .ds22 .e-tone--negative{color:var(--negative-strong)}
html .ds22 .e-tone--neutral{color:var(--text-secondary)}

/* ───────── строки таблиц ───────── */
html .ds22 .e-clickable{cursor:pointer}
html .ds22 tr.e-row--alert td{background:var(--negative-subtle)}
html .ds22 tr.e-row--idle td{background:var(--surface-muted)}
html .ds22 .e-cell{font:var(--type-micro)}
html .ds22 .e-danger{color:var(--negative-strong)}

/* ───────── файлы ───────── */
html .ds22 .e-file-ico{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:38px;height:30px;padding:0 var(--space-2);border-radius:var(--radius-sm);background:var(--ico-bg);color:var(--ico-fg);font:var(--type-micro);font-weight:700}
html .ds22 .e-file-q{display:inline-block;width:auto;max-width:260px;margin-left:var(--space-3)}
html .ds22 .e-dropzone{display:block;padding:var(--space-8);text-align:center;color:var(--text-secondary);cursor:pointer;border:var(--border-width) dashed var(--border-strong);border-radius:var(--radius-lg)}
html .ds22 .e-dropzone:hover{background:var(--row-hover)}

/* ───────── интеграции ───────── */
html .ds22 .e-circle{display:flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;border-radius:var(--radius-pill);background:var(--ico-bg);color:var(--ico-fg);font-weight:700}

/* ───────── настройки автоматизации ───────── */
html .ds22 .e-setting-row{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:var(--space-6);align-items:start;padding:var(--space-6) 0;border-bottom:var(--border-width) solid var(--border)}
html .ds22 .e-setting-row__label{text-transform:none;font-weight:700}
html .ds22 .e-flag{align-items:flex-start;padding:var(--space-2) 0}
html .ds22 .e-flag__box{margin-top:var(--space-1)}
html .ds22 .e-flag--off{cursor:not-allowed;opacity:.6}

/* ───────── банковские подключения: история ───────── */
html .ds22 .e-hist{font:var(--type-micro)}
html .ds22 .e-hist td{padding:var(--space-1) var(--space-4) var(--space-1) 0;vertical-align:top}
html .ds22 td.e-hist-cell{background:var(--surface-muted)}

/* ───────── правила автоматизации ───────── */
html .ds22 .e-rules-list{background:var(--surface)}
html .ds22 .e-rules-head{display:grid;grid-template-columns:57px 1fr;align-items:center;position:sticky;top:0;z-index:5;height:34px;background:var(--surface);border-bottom:var(--border-width) solid var(--border);font:var(--type-micro);letter-spacing:var(--type-micro-tracking);text-transform:uppercase;color:var(--text-muted)}
html .ds22 .e-rule-row{grid-template-columns:57px 1fr;align-items:start;min-height:61px;padding:var(--space-3) 0;cursor:default}
html .ds22 .e-rule-row--click{cursor:pointer}
html .ds22 .e-rule-row--idle{background:var(--surface-muted)}
html .ds22 .e-rule-line{line-height:1.55}
html .ds22 .e-rule-formwrap{cursor:default}
html .ds22 .e-rule-form{padding:var(--space-5) var(--space-6);background:var(--surface-muted);border-radius:var(--radius-lg)}
html .ds22 .e-preview{padding:var(--space-4) var(--space-5);background:var(--surface);border-radius:var(--radius-md)}
