/* ARS-X 4.0 — продажи */
.deal-sales .sales-lines { display: grid; gap: 2px; }
.sales-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sales-line span { display: grid; min-width: 0; }
.sales-line small { color: var(--muted); font-size: 12px; }
.sales-line.total { border-bottom: 0; font-weight: 600; }
.sales-picker { display: grid; gap: 8px; margin-bottom: 12px; position: relative; }
.sales-found { display: grid; border: 1px solid var(--line); border-radius: var(--radius-sm, 8px); overflow: hidden; }
.sales-found button { display: flex; justify-content: space-between; gap: 12px; text-align: left; padding: 9px 12px; background: var(--surface); border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.sales-found button:hover, .sales-found button:focus-visible { background: var(--surface-2); }
.sales-found small { display: block; color: var(--muted); font-size: 12px; }
table.sales-edit input { width: 100%; min-width: 60px; }
table.sales-edit td:first-child input { min-width: 220px; }
.price-screen .toolbar-row, .sales-report .toolbar-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.price-screen .screen-head, .sales-report .screen-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.price-screen tr.clickable { cursor: pointer; }
.sales-funnel { display: grid; gap: 10px; }
.sales-funnel-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 48px; gap: 4px 12px; align-items: center; }
.sales-funnel-row .bar { height: 14px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.sales-funnel-row .bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; min-width: 2px; }
.sales-funnel-row.won .bar i { background: var(--success); }
.sales-funnel-row.lost .bar i { background: var(--danger); }
.sales-funnel-row b { text-align: right; }
.sales-funnel-row small { grid-column: 2 / -1; }
.danger-text { color: var(--danger) !important; }
@media (max-width: 760px) { .sales-funnel-row { grid-template-columns: 1fr 40px; } .sales-funnel-row .bar { grid-column: 1 / -1; } .sales-funnel-row small { grid-column: 1 / -1; } }

/* 4.1 — документы и ЭДО */
.edo-screen .screen-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.edo-pick { display: grid; gap: 4px; max-height: 60vh; overflow: auto; }
.edo-pick .doc-row b { margin-left: auto; color: var(--brand); font-weight: 600; white-space: nowrap; }
.edo-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.choice.disabled { opacity: .55; }
