/* Окна документа (КП, счёт, УПД, корректировочный УПД, договор), «бумага», «КП и счета», окна оплаты, рейса,
   этапа, проигрыша, шага, напоминания, новой сделки и блок сделки (App.dealsUi.block). Владелец: «Сделки», этап Б2-1.
   Префикс dd-* (новая сделка — ddn-*). Цвета — только токены; шрифт не меньше 11 px; числа не переносятся. */

/* ══ Блок сделки ═══════════════════════════════════════════════════════════════ */
.dd-blk { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; line-height: 18px; color: var(--ink); }
.dd-blk [data-num] { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dd-mut { color: var(--mut2); }
.dd-lnk { display: inline; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: none; border-radius: 4px; }
.dd-lnk:hover { color: var(--acc); text-decoration: underline; text-underline-offset: 2px; }
/* r4: тоны zav/ryn — чернилами с глифом (css/signals.css, бл. 12); здесь только «хорошо» */
:is(.dd-blk, .dd-win, .dd-dp) [data-tone="vyg"] { --dd-t: var(--vyg); }
.dd-sub[data-tone], .dd-row[data-tone], .dd-csub[data-tone], .dd-ci-s[data-tone], .dd-chk[data-tone], .dd-iss[data-tone], .dd-blk b[data-tone], .dd-blk span[data-tone], .dd-blk button[data-tone] { color: var(--dd-t); }
.dd-empty { display: flex; align-items: center; gap: 8px; color: var(--mut); font-size: 13px; }

/* позиции: таблица */
.dd-it { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.dd-it th { padding: 0 6px 6px; text-align: left; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--mut2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.dd-it th.r { text-align: right; }
.dd-it td { padding: 8px 6px; vertical-align: top; border-bottom: 1px solid var(--line); }
.dd-it tr.has-sub td { border-bottom: 0; padding-bottom: 2px; }
.dd-it tr.dd-it-x td { padding: 0 6px 8px; border-bottom: 1px solid var(--line); }
.dd-it tr.dd-it-x + tr.dd-it-x td { padding-top: 0; }
.dd-it tr.dd-it-x:not(:last-child):has(+ tr.dd-it-x) td { border-bottom: 0; padding-bottom: 2px; }
.dd-c-q { width: 128px; } .dd-c-p { width: 134px; } .dd-c-s { width: 128px; } .dd-c-m { width: 34px; }
.dd-it-n b { display: block; font-weight: 600; overflow-wrap: anywhere; }
/* название позиции — ссылка на окно позиции (вид прежний, подчёркивание при наведении) */
.dd-it-pl { display: block; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.dd-it-pl:hover b, .dd-it-pl:focus-visible b { text-decoration: underline; text-underline-offset: 2px; }
.dd-it-n em, .dd-it-q em, .dd-it-p em { display: block; margin-top: 1px; font-style: normal; font-size: 12px; line-height: 16px; color: var(--mut2); }
.dd-it-q, .dd-it-p, .dd-it-s { text-align: right; }
.dd-it-q em, .dd-it-p em { white-space: nowrap; }
.dd-it-s { font-weight: 560; }
.dd-it-m { text-align: right; padding-left: 0 !important; padding-right: 0 !important; }
.dd-sub { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 12px; line-height: 17px; color: var(--mut); }
.dd-sub .link { margin: -3px 0; padding: 2px 6px; font-size: 12px; }
.dd-ed { display: inline-flex; align-items: center; gap: 3px; margin: -2px -4px -2px 0; padding: 2px 4px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.dd-ed > svg { flex: 0 0 auto; color: var(--mut2); opacity: 0; transition: opacity .12s; }
.dd-ed:hover { background: var(--l3); }
.dd-ed:hover > svg, .dd-ed:focus-visible > svg { opacity: 1; }
.dd-total { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 10px 6px 0; font-size: 13px; color: var(--mut); }
.dd-total-t > span:first-child { color: var(--ink); font-weight: 650; }
.dd-rule { font-size: 12px; color: var(--mut2); text-decoration: none; }
.dd-rule:hover { color: var(--acc); }
.dd-lock { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 6px 0; font-size: 12.5px; color: var(--mut); }
.dd-lock > svg { color: var(--mut2); }
.dd-lock .link { padding: 2px 6px; margin: -2px 0; }

/* узкий вид позиций (карточка «Входящих») */
.dd-citems { display: flex; flex-direction: column; gap: 8px; }
.dd-ci { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dd-ci-r { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.dd-ci-r b { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.dd-ci-r > span { flex: 0 0 auto; font-weight: 600; }
.dd-ci-s { font-size: 12px; line-height: 17px; color: var(--mut); overflow-wrap: anywhere; }
.dd-ci-more { font-size: 12.5px; color: var(--acc); }
.dd-ci-t { padding-top: 6px; border-top: 1px solid var(--line); font-weight: 600; }

/* деньги: документы и части оплаты */
.dd-money { display: flex; flex-direction: column; }
.dd-doc { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dd-doc:first-child { padding-top: 2px; }
.dd-doc-r { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; min-width: 0; }
.dd-doc-n { padding: 0; border: 0; background: none; font: inherit; font-weight: 640; color: var(--ink); cursor: pointer; white-space: nowrap; }
.dd-doc-n:hover { color: var(--acc); }
.dd-doc-t { min-width: 0; font-size: 12.5px; color: var(--mut); }
.dd-doc-t b { font-weight: 600; }
.dd-doc-r .btn { flex: 0 0 auto; }
.dd-doc-s { padding-left: 14px; font-size: 12.5px; line-height: 18px; color: var(--mut); }
.dd-doc-s > span { margin-left: 2px; }
.dd-doc-s .link { margin: -3px 0; padding: 2px 6px; font-size: 12.5px; }
.dd-sum { padding-top: 8px; font-size: 12.5px; color: var(--mut); }
.dd-cmoney, .dd-cship { display: flex; flex-direction: column; gap: 3px; }
.dd-crow { font-size: 12.5px; line-height: 18px; color: var(--mut); overflow-wrap: anywhere; }
.dd-crow .dd-doc-n, .dd-crow .dd-lnk:first-child { color: var(--ink); font-weight: 600; }
.dd-csub { padding-left: 10px; font-size: 12px; line-height: 17px; color: var(--mut); overflow-wrap: anywhere; }
.dd-csub > span { margin-left: 2px; }
.dd-crow .dd-lnk:not(:first-child), .dd-csub .dd-lnk { color: var(--acc); }

/* металл и отгрузка */
.dd-ship { display: flex; flex-direction: column; gap: 6px; }
.dd-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; font-size: 13px; line-height: 19px; color: var(--ink); }
.dd-row .link { margin: -3px 0; padding: 2px 6px; font-size: 12.5px; }
.dd-row-t { padding-top: 4px; font-weight: 600; }
.dd-tr { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12.5px; margin-top: 4px; }
.dd-tr th { padding: 0 6px 6px; text-align: left; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--mut2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.dd-tr td { padding: 7px 6px; vertical-align: top; border-bottom: 1px solid var(--line); }
.dd-tr tr.has-sub td { border-bottom: 0; padding-bottom: 2px; }
.dd-tr tr.dd-it-x td { padding: 0 6px 7px; border-bottom: 1px solid var(--line); }
.dd-c-no { width: 10%; } .dd-c-w { width: 17%; } .dd-c-v { width: 18%; } .dd-c-d { width: 27%; }
.dd-tr .dd-c-m { width: 32px; }
.dd-tr-no .dd-lnk { font-weight: 600; white-space: nowrap; }
.dd-tr-c span { display: block; overflow-wrap: anywhere; }
.dd-tr-c em { display: block; font-style: normal; font-size: 12px; color: var(--mut2); }
.dd-tr-v, .dd-tr-d { color: var(--mut); overflow-wrap: anywhere; }

/* «Дальше», напоминание, нестыковки */
.dd-next .dd-next-t { font-weight: 560; }
.dd-fu { align-items: center; color: var(--mut); font-size: 12.5px; }
.dd-fu { flex-wrap: nowrap; align-items: flex-start; }
.dd-fu > svg { flex: 0 0 auto; color: var(--mut2); margin-top: 3px; }
.dd-fu > span { flex: 1 1 0; min-width: 0; }
.dd-fu > .link { flex: 0 0 auto; }
.dd-blk.is-compact .dd-fu { flex-wrap: nowrap; }
.dd-fu .link-mut { color: var(--mut); }
.dd-iss { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 7px 10px; border-radius: 10px; background: var(--l2); font-size: 12.5px; line-height: 18px; }
.dd-iss > svg { flex: 0 0 auto; }
.dd-iss > span { flex: 1 1 200px; min-width: 0; }
.dd-iss .btn { flex: 0 0 auto; }
.dd-iss .dd-lnk { color: var(--acc); font-weight: 560; }
.dd-blk.is-compact .dd-iss { padding: 6px 8px; font-size: 12px; }
.dd-h { margin-top: 6px; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--mut2); }
.dd-cnext, .dd-ciss { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.dd-blk.is-compact .dd-row { font-size: 12.5px; line-height: 18px; }

/* правка щелчком — поповер ядра App.ui.editPop (.edp-* в wizard.css, этап 3) */

/* ══ Окна: общие разделы ═══════════════════════════════════════════════════════ */
.dd-win:focus-visible { outline: none; }
.dd-win .form { gap: 14px; }
.dd-sec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dd-sec-h { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--mut2); line-height: 16px; }
.dd-chk { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; line-height: 18px; color: var(--mut); }
.dd-chk > svg { flex: 0 0 auto; margin-top: 2px; }
.dd-chk:not([data-tone]) > svg { color: var(--mut2); }
.dd-chk > span { min-width: 0; }
.dd-chk .link { margin: -3px 0; padding: 2px 6px; font-size: 12.5px; }
.dd-chk-cb { display: block; }
.dd-chk-cb .check { padding: 9px 11px; }
.dd-line { font-size: 13px; line-height: 19px; color: var(--ink); }
.dd-line.dd-mut { color: var(--mut2); font-size: 12.5px; }
.dd-line-b { font-weight: 600; }
.dd-note { font-size: 12px; line-height: 17px; color: var(--mut); }
.dd-chg { padding: 7px 10px; border-radius: 9px; background: var(--l2); font-size: 12.5px; }
.dd-chg b { font-weight: 620; }
.dd-add { margin-top: -4px; }
.dd-add .link { padding: 3px 6px; margin-left: -6px; font-size: 12.5px; }
.dd-where { display: flex; flex-direction: column; gap: 10px; }
.dd-where .ta { min-height: 72px; }
.dd-dsel { padding-bottom: 2px; }
.dd-ferr { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; line-height: 17px; font-weight: 560; color: var(--zav); }
.dd-ferr > svg { flex: 0 0 auto; margin-top: 2px; }
.dd-win .seg { max-width: 100%; }
.dd-win .sf .hint { margin-right: 0; }

/* ══ Окно документа (r4, C1): холст с листом А4 и масштабом · правая колонка «Шаблон · Проверки · Куда и кому» ══ */
.sheet.dd-docw { width: min(1360px, 100%); height: calc(100vh - 48px); max-height: calc(100vh - 48px); }
.dd-docw .sb { display: flex; overflow: hidden; }
.dd-docw .sh { padding-top: 14px; padding-bottom: 12px; }
.dd-docw .sh-title { font-size: 18px; }
.dd-cw { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: minmax(0, 1fr); width: 100%; min-height: 0; min-width: 0; }
.dd-cw-c { min-width: 0; min-height: 0; overflow: auto; padding: 24px; background: var(--l2); }
.dd-cw-pp { display: flex; justify-content: center; align-items: flex-start; min-width: min-content; }
.dd-cw-s { display: flex; flex-direction: column; gap: 18px; min-width: 0; min-height: 0; overflow: auto; padding: 16px 18px 20px; border-left: 1px solid var(--line); background: var(--l1); }
.dd-nw { white-space: nowrap; }
.dd-seg-l .seg { display: flex; }
/* масштаб в шапке: «− 90 % +» */
.dd-zoom { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; height: 32px; margin: 0 8px 0 0; padding: 0 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--l1); }
.dd-zoom-l { min-width: 54px; height: 26px; padding: 0 6px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; white-space: nowrap; }
.dd-zoom-l:hover { background: var(--l3); }
.dd-zoom-l[aria-pressed="true"] { color: var(--mut); }
/* «Шаблон ▾ · Изменить ›» */
.dd-tpl { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 7px 8px 7px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--l3); }
.dd-tpl-b { display: flex; flex-direction: column; align-items: flex-start; gap: 0; flex: 1 1 auto; min-width: 0; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; line-height: 18px; color: var(--ink); text-align: left; cursor: pointer; }
.dd-tpl-b[disabled] { cursor: default; color: var(--ink); }
.dd-tpl-b em { font-style: normal; font-size: 11.5px; line-height: 15px; color: var(--mut2); }
.dd-tpl-b > span { display: flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; }
.dd-tpl-b b { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-tpl-b svg { flex: 0 0 auto; color: var(--mut2); }
.dd-tpl-b:not([disabled]):hover b { color: var(--acc); }
.dd-tpl .link { flex: 0 0 auto; padding: 3px 6px; font-size: 12.5px; white-space: nowrap; }
.dd-tpl.is-ro { padding-right: 12px; }
/* «Сейчас» у отправленного: статус глифом, полоска «получено из» */
.dd-now-st { display: flex; align-items: center; min-height: 20px; }
.dd-paid { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; line-height: 17px; color: var(--mut); }
.dd-paid .sig-bar { width: 100%; height: 4px; margin: 2px 0 0; }
@media (max-width: 1239px) {
  .dd-cw { grid-template-columns: minmax(0, 1fr) 300px; }
  .dd-cw-c { padding: 14px; }
  .dd-cw-s { padding: 14px 14px 18px; gap: 14px; }
  .dd-docw .sh-title { font-size: 16px; }
  .dd-docw .sh-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-height: 640px) {
  .dd-docw .sh { padding-top: 10px; padding-bottom: 8px; }
  .dd-docw .sh-ic { display: none; }
}

/* ══ Лист А4 (r4, C1): App.docPaper.render — окно документа и конструктор шаблона (C2). Префикс dp-*.
   Лист — то, что получит клиент (PDF): белый в обеих темах, свои цвета бумаги заданы здесь же; цвет акцента — компании (--pp-acc). */
.dd-paper.dp-a4 { --pp-bg: #fff; --pp-ink: #1f2733; --pp-mut: #5b6573; --pp-mut2: #8a93a1; --pp-line: #e3e7ee; --pp-line2: #edf0f4;
  --pp-soft: color-mix(in srgb, var(--pp-acc, #5b2fbf) 6%, #f6f7fa);
  flex: 0 0 auto; box-sizing: border-box; width: 794px; min-height: 1123px; margin: 0; padding: 56px 60px 48px; background: var(--pp-bg); color: var(--pp-ink);
  border-radius: 2px; font: 13px/19px var(--pp-font, Inter, 'Segoe UI', Arial, sans-serif); text-align: left;
  box-shadow: 0 1px 2px rgba(30, 43, 67, .08), 0 10px 30px rgba(30, 43, 67, .14); }
[data-theme="dark"] .dd-paper.dp-a4 { box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .45); }
.dp-a4.is-dense { padding: 40px 46px 36px; font-size: 12px; line-height: 17px; }
.dp-a4 b { font-weight: 640; }
.dp-b + .dp-b { margin-top: 16px; }
.dp-a4.is-dense .dp-b + .dp-b { margin-top: 11px; }
/* шапка */
/* qa4 K4-02/K4-03: два ряда — логотип и реквизиты на всю ширину (2–3 строки), ниже заголовок с номером и плашка срока;
   «Логотип справа» — знак у правого края листа, реквизиты слева */
.dp-head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--pp-acc); }
.dp-a4.is-dense .dp-head { gap: 10px; padding-bottom: 10px; }
.dp-head.no-line { border-bottom: 0; padding-bottom: 0; }
.dp-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dp-head.is-r .dp-logo { order: 2; margin-left: auto; }
.dp-co { flex: 1 1 auto; }
.dp-co-l { display: block; }
.dp-seg, .dp-nw { white-space: nowrap; }
.dp-logo { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.dp-logo.is-txt { justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--pp-acc); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.dp-logo.is-demo b { font-size: 14px; line-height: 15px; font-weight: 750; color: var(--pp-acc); letter-spacing: .02em; }
.dp-logo.is-img img { display: block; max-width: 170px; max-height: 48px; object-fit: contain; }
.dp-co { display: flex; flex-direction: column; min-width: 0; font-size: 11.5px; line-height: 16px; color: var(--pp-mut); }
.dp-co b { font-size: 13px; line-height: 18px; color: var(--pp-ink); }
.dp-ttl { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; min-width: 0; }
.dp-ttl-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dp-ttl b { font-size: 20px; line-height: 24px; color: var(--pp-acc); }
.dp-ttl-t > span { font-size: 12px; color: var(--pp-mut); white-space: nowrap; }
.dp-plate { flex: 0 0 auto; padding: 3px 8px; border-radius: 5px; background: color-mix(in srgb, var(--pp-acc) 9%, #fff); color: color-mix(in srgb, var(--pp-acc) 82%, #000); font-size: 11.5px; line-height: 16px; font-weight: 560; }
/* стороны, адресат, основание */
.dp-par { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dp-par > div, .dp-to { display: flex; flex-direction: column; min-width: 0; font-size: 11.5px; line-height: 16px; color: var(--pp-mut); }
.dp-par em, .dp-to em, .dp-pay em { font-style: normal; font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--pp-mut2); margin-bottom: 2px; }
.dp-par b, .dp-to b { font-size: 12.5px; color: var(--pp-ink); }
.dp-par span { overflow-wrap: anywhere; }
.dp-meta { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--pp-mut); }
/* текст, условия, сертификаты, о компании, менеджер */
.dp-txt h5, .dp-cond h5 { margin: 0 0 4px; font-size: 12.5px; font-weight: 650; }
.dp-txt p { margin: 0; }
.dp-ph { padding: 10px 12px; border: 1px dashed var(--pp-line); border-radius: 6px; color: var(--pp-mut2); font-size: 12px; }
.dp-cond ul { margin: 0; padding-left: 16px; list-style: disc; font-size: 12px; line-height: 18px; }
.dp-cond li::marker { color: var(--pp-acc); }
.dp-cert { font-size: 11.5px; color: var(--pp-mut); }
.dp-cert b { color: var(--pp-ink); }
.dp-about { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; font-size: 12px; line-height: 16px; color: #3a4452; }
.dp-about > div { padding-left: 9px; border-left: 2px solid var(--pp-acc); }
.dp-about b { display: block; font-size: 15px; line-height: 20px; color: var(--pp-ink); }
.dp-mgr { display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 17px; }
.dp-mgr i { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--pp-acc) 14%, #fff); font-style: normal; font-weight: 700; color: var(--pp-acc); }
.dp-mgr span { display: block; color: var(--pp-mut); }
.dp-h4 { margin: 12px 0 2px; font-size: 12.5px; font-weight: 650; }
.dp-p { margin: 0; font-size: 12px; line-height: 18px; }
.dp-img img { display: block; max-width: 100%; object-fit: contain; }
.dp-hr { height: 0; margin: 0; border: 0; border-top: 1px solid var(--pp-line); }
.dp-gap { height: 8px; }
/* таблица позиций */
.dp-cap { margin-bottom: 6px; font-size: 12.5px; font-weight: 650; }
.dp-t { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 17px; }
.dp-t th { padding: 7px 6px; text-align: left; font-size: 11px; font-weight: 600; color: var(--pp-mut); background: var(--pp-soft); border-bottom: 1px solid var(--pp-line); white-space: nowrap; }
.dp-t td { padding: 7px 6px; vertical-align: top; border-bottom: 1px solid var(--pp-line2); }
.dp-t .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dp-t .c { width: 24px; text-align: center; }
.dp-t td b { display: block; font-weight: 600; }
.dp-t small { display: block; font-size: 10.5px; line-height: 14px; color: var(--pp-mut2); }
.dp-empty { padding: 16px; text-align: center; color: var(--pp-mut); border: 1px dashed var(--pp-line); border-radius: 8px; }
.dp-tot { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; color: var(--pp-mut); }
.dp-tot > div { display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.dp-tot > div:first-child b { font-size: 18px; line-height: 24px; color: var(--pp-ink); }
.dp-words { margin: 0; font-size: 11.5px; color: var(--pp-mut); }
.dp-words b { color: var(--pp-ink); }
/* реквизиты для оплаты и QR */
.dp-pay { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; padding: 10px 12px; border: 1px solid var(--pp-line); border-radius: 8px; font-size: 11.5px; line-height: 16px; }
.dp-pay.has-qr { grid-template-columns: minmax(0, 1fr) 116px; }
.dp-pay dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 2px 10px; margin: 2px 0 0; }
.dp-pay dt { color: var(--pp-mut2); }
.dp-pay dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.dp-qr { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9.5px; line-height: 12px; color: var(--pp-mut2); text-align: center; }
.dp-qr-i { display: block; }
/* подписи и печать */
.dp-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; font-size: 11px; color: var(--pp-mut); }
.dp-sg { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dp-sg em { font-style: normal; font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--pp-mut2); }
.dp-ln { position: relative; display: block; height: 40px; border-bottom: 1px solid #9aa3af; }
.dp-ln .dp-sig { position: absolute; left: 24px; bottom: 2px; max-height: 40px; }
.dp-ln .dp-stamp { position: absolute; left: 150px; top: -2px; width: 112px; height: 112px; opacity: .88; transform: rotate(-8deg); pointer-events: none; }
.dp-sign:has(.dp-stamp) { padding-bottom: 58px; }
.dp-ln img.dp-stamp { object-fit: contain; }
.dp-mp { position: absolute; left: 150px; bottom: -18px; font-size: 10.5px; color: var(--pp-mut2); }
.dp-sg small { font-size: 11px; color: var(--pp-mut); overflow-wrap: anywhere; }
.dp-foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; border-top: 1px solid var(--pp-line2); font-size: 10.5px; color: var(--pp-mut2); }
/* правка на листе (черновик): пунктир у «Кол-во» и «Цена», «+ Из прайса» — не печатается */
.dp-ed { display: inline; margin: 0 -2px; padding: 0 2px; border: 0; border-bottom: 1px dashed color-mix(in srgb, var(--acc) 60%, transparent); border-radius: 2px; background: none;
  font: inherit; color: inherit; cursor: text; white-space: nowrap; }
.dp-ed:hover, .dp-ed:focus-visible { background: color-mix(in srgb, var(--acc) 10%, #fff); outline: none; }
.dp-a4.is-edit .dp-t tbody tr:hover td { background: #fafbfd; }
.dp-add { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 3px 10px; border: 1px dashed color-mix(in srgb, var(--acc) 50%, transparent); border-radius: 7px;
  background: none; font: inherit; font-size: 12px; color: var(--acc); cursor: pointer; }
.dp-add:hover { background: color-mix(in srgb, var(--acc) 8%, #fff); }
@media print { .dp-np { display: none !important; } }
/* конструктор (C2): поля подсвечены, выделенный блок — рамка и ярлык */
.dp-a4.is-mark .dp-v { padding: 0 2px; border-radius: 3px; background: color-mix(in srgb, var(--pp-acc) 10%, #fff); }
.dp-a4.is-mark .dp-b { position: relative; margin-left: -8px; margin-right: -8px; padding: 4px 8px; border-radius: 4px; cursor: pointer; }
.dp-a4.is-mark .dp-b:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent); }
.dp-a4 .dp-b.is-sel { box-shadow: 0 0 0 2px var(--acc); }
.dp-a4 .dp-b.is-sel::before { content: attr(data-name); position: absolute; top: -10px; left: 8px; padding: 0 6px; border-radius: 5px; background: var(--acc); color: #fff;
  font: 600 10.5px/16px var(--font, Inter, sans-serif); pointer-events: none; }

/* ══ Оплата, рейс, этап, проигрыш, шаг, напоминание ══════════════════════════════ */
.dd-pay-parts .seg, .dd-stages .seg, .dd-rep .seg { display: flex; }
.dd-tolwhy { margin-top: -2px; }
.dd-qk { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.dd-qk .chip { height: 28px; font-size: 12.5px; }
.sheet.dd-shipw { width: min(600px, 100%); }
.dd-ship-t { margin-top: -2px; }
.dd-ship-t .dd-c-sq { width: 128px; } .dd-ship-t .dd-c-sl { width: 104px; }
.dd-qin { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.dd-qin .in { width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.dd-qin i { font-style: normal; color: var(--mut); font-size: 12.5px; min-width: 18px; text-align: left; }
.dd-certs { display: flex; flex-wrap: wrap; gap: 6px; }
.dd-cert { padding: 7px 10px; flex: 1 1 200px; }
.sheet.dd-stage { width: min(560px, 100%); }
.dd-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.dd-reason-r { padding: 8px 10px; }
.dd-reason-r .check-b { border-radius: 999px; }

/* ══ Новая сделка ══════════════════════════════════════════════════════════════ */
.ddn { gap: 14px; }
.ddn-lh { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 17px; }
.ddn-lh .link { margin: -3px -7px -3px 0; padding: 3px 7px; font-size: 12px; }
.ddn-pick { width: 100%; justify-content: flex-start; height: 40px; border-radius: 11px; font-size: 13.5px; }
.ddn-pick > span:not(.av) { flex: 1 1 auto; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ddn-pick > svg:first-child { flex: 0 0 auto; color: var(--mut2); }
.ddn-ph { color: var(--ink-off); font-weight: 450; }
.ddn-cl b { font-weight: 560; }
.ddn-cl em { margin-left: 8px; font-style: normal; font-weight: 450; color: var(--mut2); }
.ddn-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 8px; font-size: 12.5px; line-height: 18px; color: var(--mut); }
.ddn-meta .link { margin: -3px 0 -3px -4px; padding: 3px 5px; }
.ddn-meta-f { margin-top: 10px; }
.ddn-busy { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; font-size: 12.5px; line-height: 18px; color: var(--mut); }
.ddn-busy > svg { flex: 0 0 auto; color: var(--mut2); }
.ddn-busy a { color: var(--acc); font-weight: 600; text-decoration: none; }
.ddn-busy .link { padding: 2px 6px; margin: -2px 0; font-size: 12.5px; }
.ddn-tb { width: 100%; margin-top: 8px; border: 1px solid var(--line-2); border-radius: 11px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.ddn-tb td { padding: 5px 8px; vertical-align: middle; border-top: 1px solid var(--line); }
.ddn-tb tr:first-child td { border-top: 0; }
.ddn-tn { width: 100%; max-width: 0; padding-left: 12px !important; }
.ddn-tn span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ddn-tn em { display: block; font-style: normal; font-size: 12px; color: var(--mut2); }
.ddn-tq .in { width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.ddn-tu { padding-left: 0 !important; white-space: nowrap; color: var(--mut); }
.ddn-tp { white-space: nowrap; text-align: right; color: var(--mut2); font-variant-numeric: tabular-nums; }
.ddn-tx { padding: 0 6px 0 0 !important; }
.ddn-tot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 4px 0; font-size: 12.5px; color: var(--mut); }
.ddn-tot > span:first-child { color: var(--ink); font-weight: 600; }
.ddn-note { padding: 4px 4px 0; font-size: 12px; color: var(--mut2); }
/* «Арматура … — нет в прайсе «Обь-Инокс», убрана · Вернуть»: значок, текст и ссылка с зазором */
.ddn-drop { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ddn-drop > svg { flex: none; align-self: center; }
.ddn-qk { display: inline-flex; align-items: center; gap: 2px; margin: -4px -4px -4px 0; }
.ddn-qk button { height: 24px; padding: 0 8px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--mut); font: inherit; font-size: 12px; cursor: pointer; }
.ddn-qk button:hover { background: var(--l2); color: var(--ink); }
.ddn-qk button[aria-pressed="true"] { background: var(--acc-soft); border-color: var(--acc-soft-brd); color: var(--acc); }

/* ══ «КП и счета» (#/documents) ════════════════════════════════════════════════ */
.dd-dp { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dd-dp-tiles { display: grid; gap: 12px; }
.dd-dp-t1 { grid-template-columns: minmax(0, 360px); } .dd-dp-t2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dd-dp-t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dd-dp-tiles .kpi { padding: 12px 16px; gap: 4px; }
.dd-dp-tiles .kpi-v { font-size: 22px; }
.dd-dp-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.dd-dp-bar > .search { flex: 0 1 226px; min-width: 160px; }   /* с «Оплатами» и «Требуют внимания» отборы — в одну строку на 1440 */
.dd-dp-bar > .sel { width: 180px; flex: 0 0 auto; }
.dd-dp-bar .toggle-l { white-space: nowrap; font-size: 12.5px; }
/* «Требуют внимания N» — число красным, как «Горит» в «Сделках»: то же число, что у «КП и счета» в меню */
.dd-dp-attn em, .dd-dp-attn[aria-pressed="true"] em { font-size: 12px; }   /* число серым, глиф ● — signals.css бл. 11 */
.dd-dp-tw { border: 1px solid var(--line); border-radius: 14px; background: var(--l1); overflow: hidden; }
.dd-dp-tbl { table-layout: fixed; width: 100%; }
.dd-dp-tbl th { white-space: nowrap; cursor: pointer; }
.dd-dp-tbl th > svg { margin-left: 4px; vertical-align: -1px; }
.dd-dp-tbl td { padding-top: 10px; padding-bottom: 10px; vertical-align: top; overflow: hidden; }
.dd-dp-tbl .r { text-align: right; }
.dd-dc-no { width: 150px; } .dd-dc-sum { width: 124px; } .dd-dc-st { width: 190px; } .dd-dc-due { width: 124px; } .dd-dc-a { width: 136px; }
.dd-dp-r { cursor: pointer; }
.dd-dp-r:hover td { background: var(--l3); }
.dd-dp-no, .dd-dp-cl, .dd-dp-st, .dd-dp-due { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dd-dp-no b, .dd-dp-cl b { font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-dp-no em, .dd-dp-cl span, .dd-dp-st em, .dd-dp-due em { font-style: normal; font-size: 12px; line-height: 16px; color: var(--mut2); }
.dd-dp-cl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-dp-st em, .dd-dp-due em, .dd-dp-no em { overflow-wrap: anywhere; }
.dd-dp-st .pill { align-self: flex-start; }
.dd-dp-a { text-align: right; }
.dd-dp [data-num] { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dd-dp-no b { overflow: visible; text-overflow: clip; white-space: normal; }   /* r32: «Bill of lading / №2309» — по словам, а не срезано ячейкой */
/* «от <юрлицо>» под номером — только при двух видимых компаниях (поправка §6.5) */
.dd-dp-no em.dd-dp-org { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
/* кнопка «Напомнить» / «Отозвать» не режется справа: колонка действий своей ширины, текст кнопки в строку */
.dd-dp-a { white-space: nowrap; }
.dd-dp-a .btn { max-width: none; }
/* низкое окно: плитки сумм — плотной строкой «Ждут оплаты 1,2 млн ₽», подпись ниже — таблице остаётся первый экран */
@media (max-height: 700px) {
  .dd-dp { gap: 10px; }
  .dd-dp-tiles .kpi { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 10px; padding: 8px 14px; }
  .dd-dp-tiles .kpi-top { min-height: 0; }
  .dd-dp-tiles .kpi-go { display: none; }
  .dd-dp-tiles .kpi-v { font-size: 17px; line-height: 22px; }
  .dd-dp-tiles .kpi-b { flex: 1 0 100%; min-width: 0; }
  .dd-dp-tbl td { padding-top: 7px; padding-bottom: 7px; }
}
@media (max-width: 1240px) {
  .dd-dc-no { width: 140px; } .dd-dc-sum { width: 108px; } .dd-dc-st { width: 150px; } .dd-dc-due { width: 100px; } .dd-dc-a { width: 112px; }
  .dd-dp-a .btn > svg { display: none; }
  .dd-dp-bar > .search { flex-basis: 200px; }
}

/* «Дальше»: срок и исполнитель — неразрывный хвост строки (сверка Б) */
.dd-next-w { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.dd-next-w > i { font-style: normal; color: var(--mut2); }

/* ══ Смотр 14.10 ═══════════════════════════════════════════════════════════════ */
/* платёж — своей подстрокой под частью счёта */
.dd-doc-s.is-l2 { padding-left: 28px; }
/* «Дальше»: точка-разделитель рисуется ::before и уходит за левый край, если хвост «срок · кто» перенёсся на новую строку */
.dd-row.dd-next { display: block; overflow: hidden; }
.dd-next-in { display: flex; flex-wrap: wrap; align-items: baseline; margin-left: -14px; }
.dd-next-in > .dd-next-t::before, .dd-next-w::before { content: '·'; display: inline-block; width: 14px; text-align: center; font-weight: 400; color: var(--mut2); }
.dd-next-w::before { margin-right: -6px; }
/* нестыковка одной строкой (низкое окно страницы) */
.dd-iss.is-short { padding: 5px 10px; }
.dd-iss.is-short .dd-lnk { color: inherit; font-weight: 560; text-align: left; }
/* «Собрать КП» серым с причиной */
.dd-row .link[disabled] { color: var(--mut2); cursor: default; text-decoration: none; }
.dd-row .link[disabled] + span { font-size: 12.5px; color: var(--mut2); }
/* окно «Рейс» на низком окне — две колонки без прокрутки; план в режиме факта — одной строкой */
.sheet.dd-shipw.is-two { width: min(920px, 100%); }
.dd-ship2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px; align-items: start; }
.dd-ship2-c { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dd-shipw.is-two .sb { padding-top: 12px; padding-bottom: 10px; }
.dd-shipw.is-two .dd-sec { gap: 6px; }
.dd-shipw.is-two .dd-ship-t .dd-c-sq { width: 116px; } .dd-shipw.is-two .dd-ship-t .dd-c-sl { width: 84px; }
.dd-shipw.is-two .dd-it td { padding-top: 5px; padding-bottom: 5px; }
.dd-shipw.is-two .dd-cert { padding: 5px 8px; flex-basis: 150px; }
.dd-plan1 { color: var(--ink); }
.dd-plan1 .link { margin: -3px 0; padding: 2px 6px; font-size: 12.5px; }
.dd-plan { display: flex; flex-direction: column; gap: 10px; }
.dd-plan[hidden] { display: none; }
/* ошибка у поля: красная рамка и текст под полем */
.dd-win .in.is-bad { border-color: var(--zav); box-shadow: 0 0 0 3px var(--zav-soft); }
.dd-ferr-f { margin-top: 4px; font-size: 12px; line-height: 16px; font-weight: 560; color: var(--zav); }
/* «Повторить заказ»: «Добавить позиции в эту сделку» серым с причиной */
.ddn-busy .link[disabled] { color: var(--mut2); cursor: default; }
.ddn-why { font-size: 12px; color: var(--mut2); }
.dd-shipw .form { gap: 12px; }

/* ══ Окно юрлица → «Подпись и печать в документах» (r4, C1; js/screens/org-legal.js) ═══════════════════ */
.le-sig { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.le-sig-h { display: flex; flex-direction: column; gap: 2px; }
.le-sig-h b { font-size: 13.5px; font-weight: 640; }
.le-sig-h span { font-size: 12.5px; color: var(--mut); }
.le-sig-r { display: grid; grid-template-columns: 104px 76px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.le-sig-r:first-child { border-top: 0; }
.le-sig-l { font-size: 13px; font-weight: 560; }
.le-sig-p { display: grid; place-items: center; width: 76px; height: 48px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.le-sig-p.is-stamp { height: 64px; }
.le-sig-p svg, .le-sig-p img { max-width: 70px; max-height: 100%; width: auto; height: auto; }
.le-sig-p .dp-stamp { position: static; width: 60px; height: 60px; transform: none; }
.le-sig-none { font-size: 12px; color: #8a93a1; }
.le-sig-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.le-sig-in { display: flex; gap: 6px; min-width: 0; }
.le-sig-in .in { flex: 1 1 0; min-width: 0; height: 32px; }
.le-sig-hint { font-size: 12px; line-height: 16px; color: var(--mut2); }
.le-sig-a { display: flex; gap: 6px; flex: 0 0 auto; }
@media (max-width: 1239px) { .le-sig-r { grid-template-columns: 90px 70px minmax(0, 1fr); } .le-sig-a { grid-column: 3; } }
.ddn-busy .link[disabled], .dd-row .link[disabled] { color: var(--mut2); font-weight: 500; background: none; }

/* ══ r4-fix C1 (qa4): «КП и счета» — статус и срок в одну строку, подстрока сделки в две строки, кнопки одной ширины ══ */
/* K3-17: «сделка проиграна», «оплачено частично», «1 дн. назад» не переносятся по словам (глиф остаётся при слове) */
.dd-dp-st .sig, .dd-dp-st .sig > span, .dd-dp-due em { white-space: nowrap; overflow-wrap: normal; }
/* K5-С5: «СД-0222 · Арматура Ø10 и Ø16 — 27 т на завод» не режется посреди слова — переносится на вторую строку */
.dd-dp-cl > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow: hidden; text-overflow: clip; }
/* K5-Н8: «Напомнить», «Отозвать», «Отправить» — одной ширины, правый край ровный */
.dd-dp-tbl td.dd-dp-a { padding-left: 6px; }
.dd-dp-a .btn { width: 100%; justify-content: center; }
@media (max-width: 1240px) {
  /* узкое окно: колонке «Клиент и сделка» — больше места, статусу — на «оплачено частично» в строку */
  .dd-dc-no { width: 140px; } .dd-dc-sum { width: 100px; } .dd-dc-st { width: 158px; } .dd-dc-due { width: 96px; } .dd-dc-a { width: 104px; }
  .dd-dp-tbl td, .dd-dp-tbl th { padding-left: 10px; padding-right: 10px; }
  .dd-dp-tbl td.dd-dp-a { padding-left: 4px; }
  .dd-dp-cl .dd-dp-tail { display: none; }   /* K5-С5: хвост названия сделки — в подсказке */
}

/* ══ r16 (24.10, Л): «КП и счета» структурнее — деньги полосой ядра, группы по тому, что делать, «Состояние» одной ячейкой.
   Кирилл: «пока не супер понятны и хорошо выглядят… более структуризировано, более красиво и более понятно» ══ */
/* полоса денег: бледное ядро (core-pale.css) в светлой теме, тёмное — в тёмной; плитки делят ширину поровну */
.dd-dp-band { display: grid; gap: 10px; padding: 12px; border-radius: 18px; }
.dd-dp-b1 { grid-template-columns: minmax(0, 360px); }
.dd-dp-b2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dd-dp-b3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dd-dp-b4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dd-dp-m { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; font: inherit; text-align: left; color: var(--k-ink); appearance: none; }
.dd-dp-m:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--acc-soft); }
.dd-dp-mk { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; line-height: 14px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--k-mut); }
.dd-dp-mk .core-dot { width: 6px; height: 6px; }
.dd-dp-m .core-dot.is-sky { background: var(--k-sky); box-shadow: 0 0 0 3px rgba(125, 211, 252, .18); }
.dd-dp-mv { font-size: 22px; line-height: 27px; font-weight: 650; letter-spacing: -.025em; color: var(--k-hi, var(--k-ink)); white-space: nowrap; }
.dd-dp-m.is-amber .dd-dp-mv { color: var(--k-amber-ink); }
.dd-dp-m.is-mint .dd-dp-mv { color: var(--k-mint-ink); }
.dd-dp-ms { max-width: 100%; font-size: 12px; line-height: 16px; color: var(--k-mut2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* включённый отбор по состоянию — одной фишкой с «×» */
.dd-dp-fchip { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 4px 0 12px; border-radius: 999px; border: 1px solid var(--acc-soft-brd);
  background: var(--acc-row); color: var(--acc); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.dd-dp-fchip button { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.dd-dp-fchip button:hover { background: var(--acc-soft); }

/* колонки: «Документ» со значком вида · «Клиент и сделка» · «Сумма» · «Состояние» (слово и срок) · действие и «⋯» */
.dd-dp-tbl col.dd-dc-no { width: 206px; }
.dd-dp-tbl col.dd-dc-sum { width: 128px; }
.dd-dp-tbl col.dd-dc-st { width: 236px; }
.dd-dp-tbl col.dd-dc-a { width: 168px; }
.dd-dp-tbl td { vertical-align: middle; }
.dd-dp-doc { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dd-dp-doc > .dd-dp-no { flex: 1 1 auto; min-width: 0; }
/* значок вида — контурный, в стеклянном квадрате (как разделы редактора агента) */
.dd-dp-ki { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--acc);
  background: linear-gradient(160deg, var(--l1), var(--acc-row)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }
.dd-dp-sum { font-weight: 620; }
.dd-dp-st > em { font-style: normal; font-size: 12px; line-height: 16px; color: var(--mut2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.dd-dp-st > em.is-late { color: var(--sig-ink, var(--ink)); font-weight: 600; }
/* действие строки — одной ширины у всех, справа «⋯»; «⋯» тихий, пока строку не навели */
.dd-dp-aw { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.dd-dp-a .dd-dp-aw .btn { width: 118px; flex: 0 0 auto; }
.dd-dp-aw > .ib { flex: 0 0 auto; opacity: .5; transition: opacity .15s; }
.dd-dp-r:hover .dd-dp-aw > .ib, .dd-dp-aw > .ib:focus-visible { opacity: 1; }

/* шапка группы — строкой таблицы: щелчок сворачивает и разворачивает */
.dd-dp-tbl tr.dd-dp-gh > td { padding: 0; background: var(--l2); border-top: 1px solid var(--line); }
.dd-dp-tbl tbody tr.dd-dp-gh:first-child > td { border-top: 0; }
.dd-dp-ghb { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 8px 16px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.dd-dp-ghb:hover { background: var(--l3); }
.dd-dp-ghb.is-static { cursor: default; padding-left: 20px; }
.dd-dp-ghb.is-static:hover { background: none; }
.dd-dp-ghb:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--acc-soft-brd); }
.dd-dp-ghb > .sig { flex: 0 0 auto; font-size: 13px; font-weight: 650; }
.dd-dp-gch { display: inline-grid; place-items: center; color: var(--mut2); transition: transform .18s; }
.dd-dp-gh.is-fold .dd-dp-gch { transform: rotate(-90deg); }
.dd-dp-gn { flex: 0 0 auto; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--l1); font-style: normal; font-size: 12px; line-height: 16px; font-weight: 650; color: var(--mut); }
.dd-dp-ght { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 16px; color: var(--mut2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-dp-gm { flex: 0 0 auto; font-size: 12.5px; font-weight: 640; color: var(--ink); white-space: nowrap; }

/* низкое окно: полоса денег плотнее — списку остаётся первый экран */
@media (max-height: 700px) {
  .dd-dp-band { padding: 8px; gap: 8px; }
  .dd-dp-m { padding: 8px 12px; gap: 1px; }
  .dd-dp-mv { font-size: 18px; line-height: 22px; }
  .dd-dp-ghb { min-height: 36px; padding: 6px 14px; }
}
/* узкое окно: подсказка группы прячется (остаются имя, число и деньги), колонки уже */
@media (max-width: 1360px) {
  .dd-dp-tbl col.dd-dc-no { width: 184px; }
  .dd-dp-tbl col.dd-dc-sum { width: 116px; }
  .dd-dp-tbl col.dd-dc-st { width: 214px; }
  .dd-dp-tbl col.dd-dc-a { width: 152px; }
  .dd-dp-a .dd-dp-aw .btn { width: 108px; }
  .dd-dp-a .dd-dp-aw .btn > svg { display: none; }
}
@media (max-width: 1240px) {
  .dd-dp-ght { display: none; }
  .dd-dp-ghb > .dd-dp-gm { margin-left: auto; }
  .dd-dp-tbl col.dd-dc-no { width: 168px; }
  .dd-dp-tbl col.dd-dc-st { width: 196px; }
  .dd-dp-ki { width: 28px; height: 28px; border-radius: 9px; }
}
