/* Commission cars table. */
.sales-desk{margin:18px 0}
.sales-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-bottom:12px}
.sales-filters{display:flex;flex-wrap:wrap;gap:6px}
.sales-filters button{min-height:38px;padding:6px 14px;border:1px solid var(--line);background:transparent;color:var(--ink);font-size:.875rem}
.sales-filters button:hover{border-color:var(--red);background:transparent}
.sales-filters button[aria-pressed=true]{border-color:var(--ink);background:var(--ink);color:var(--white)}
.sales-search{flex:1 1 220px;min-width:0}
.sales-search input{min-height:40px;padding:6px 14px;border-radius:999px}
.sales-stale{display:flex;align-items:center;gap:8px;font-size:.875rem;font-weight:600}
.sales-stale input{width:18px;min-height:18px;height:18px}
.sales-sort{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.8125rem}
.sales-sort select{width:auto;min-height:40px;padding:6px 12px}
.sales-desk .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sales-table td,.sales-table th{padding:10px 12px}
.sales-table tbody tr:hover{background:var(--soft)}
.sales-table tbody tr.is-selected{background:rgba(227,6,19,.08);box-shadow:inset 3px 0 0 var(--red)}
.sales-table .sales-price{font-variant-numeric:tabular-nums}
.sales-row-open{min-height:36px;padding:4px 0;border:0;border-radius:0;background:transparent;color:var(--ink);font-size:.9375rem;font-weight:750;text-align:left}
.sales-row-open:hover{background:transparent;color:var(--red)}
.sales-note{display:block;color:var(--muted);font-size:.75rem}
.sales-empty{padding:26px;color:var(--muted);text-align:center}
.sales-status{border-radius:999px;padding:4px 10px;background:var(--soft);color:var(--muted);font-size:.75rem;font-weight:750;white-space:nowrap}
.sales-status[data-status=published]{background:#eaf7f0;color:var(--green)}
.sales-status[data-status=reserved]{background:#fff4e7;color:#8a4a08}
.sales-status[data-status=preparing]{background:#e8f0ff;color:#1d4ed8}
html[data-theme=dark] .sales-status[data-status=published]{background:#1b3a2b;color:#7fe0ad}
html[data-theme=dark] .sales-status[data-status=reserved]{background:#493524;color:#ffc584}
html[data-theme=dark] .sales-status[data-status=preparing]{background:#1f2a44;color:#9db8ff}
.sale-editor-card{margin-top:16px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--white)}
.sale-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.sale-editor-head h3{margin:0;font-size:1.25rem}
.sale-editor-close{display:grid;place-items:center;width:40px;min-height:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);font-size:1.375rem;line-height:1}
.sale-editor-close:hover{border-color:var(--red);background:transparent}
@media(max-width:700px){.sales-filters button{flex:1 1 auto}.sales-sort{width:100%}.sales-sort select{flex:1}}
/* The table of cars comes first; adding a car and the Avito connection are secondary tasks below it. */
.sale-admin{display:flex;flex-direction:column}
.sale-admin>#salesAdmin{display:contents}
.sale-admin>h2{order:0;margin-bottom:6px}
#salesAdmin>.sales-desk{order:1}
#salesAdmin>[data-sale-editor]{order:2}
.sale-admin>.cmexpert-admin{order:3}
#salesAdmin>:not(.sales-desk):not([data-sale-editor]){order:4}
