/* S57 (agent H) pages/deals.css: «Bitimlarim». Mijozlar (B) split ko'rinishi: chapda ro'yxat, o'ngda keng karta.
   Brend: binafsha var(--v), burchak 18, soya yo'q, 180 ms o'tish. Faqat transform / opacity harakatlanadi.
   reduced-motion va <html data-motion="off"> da harakat yo'q. Hamma sinflar .dl- bilan boshlanadi (boshqa sahifaga tegmaydi). */

.dl-page, .dl-form, .dl-card { --dl-d: 180ms; --dl-e: var(--ease, cubic-bezier(.16, 1, .3, 1)); --dl-up: -2px; --dl-st: 40ms; }

.dl-wrap { display: grid; gap: 16px; min-width: 0; }
/* kompyuterda .page ichki bo'shlig'i 0 (rail rejimi): boshqa sahifalar bilan bir xil 28px bo'shliq shu yerda */
@media (min-width: 1024px) { .dl-wrap { padding: calc(var(--pad, 20px) + 8px); } }
.dl-head .phtitle { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dl-count { color: var(--gray, #6e6c78); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.dl-band { display: flex; align-items: center; gap: 10px; margin: 0; }
.dl-band .ic { flex: none; }
.dl-first[hidden] { display: none; }
.dl-first .fitem { transition: transform var(--dl-d) var(--dl-e), border-color var(--dl-d) var(--dl-e), background-color var(--dl-d) var(--dl-e); }
.dl-first .fitem:hover { transform: translateX(2px); }
.dl-first .fitem.on, .dl-first .fitem[aria-pressed="true"] { background: var(--v-t, #f3ecfe); border-color: var(--v, #7703fc); }
.dl-ok { margin: 0; color: var(--green-tx, #0f6b31); font-size: 14px; }

/* ---- split ---- */
.dl-split { display: grid; gap: 18px; align-items: start; min-width: 0; }
@media (min-width: 1024px) {
  .dl-split { grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); }
  .dl-pane { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r, 18px); }
}
.dl-left { display: grid; gap: 10px; min-width: 0; }
.dl-search input { transition: border-color var(--dl-d) var(--dl-e); }
.dl-tools { display: grid; gap: 10px; }
.dl-trow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dl-chips .chip { transition: transform var(--dl-d) var(--dl-e), border-color var(--dl-d) var(--dl-e), background-color var(--dl-d) var(--dl-e), color var(--dl-d) var(--dl-e); }
.dl-chips .chip:hover { transform: translateY(var(--dl-up)); border-color: var(--v-s, #d9c2fe); }
.dl-chips .chip.zero:not([aria-pressed="true"]) { color: var(--gray, #6e6c78); }
.dl-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.dl-sort .caps { margin-right: 4px; }
.dl-sb { display: inline-flex; align-items: center; gap: 2px; min-height: 30px; padding: 2px 10px; border: 1px solid transparent; border-radius: var(--pillr, 999px);
  background: transparent; color: var(--gray, #6e6c78); font: inherit; font-size: 13px; cursor: pointer; transition: color var(--dl-d) var(--dl-e), background-color var(--dl-d) var(--dl-e), border-color var(--dl-d) var(--dl-e); }
.dl-sb:hover { color: var(--v, #7703fc); }
.dl-sb[aria-pressed="true"] { background: var(--v-t, #f3ecfe); color: var(--v, #7703fc); font-weight: 600; }
.dl-sb .ic { width: 14px; height: 14px; }
.dl-sb:focus-visible, .dl-row:focus-visible { outline: 2px solid var(--v, #7703fc); outline-offset: 2px; }

/* ---- ro'yxat qatori ---- */
.dl-list { display: grid; gap: 8px; min-width: 0; }
.dl-li { min-width: 0; }
.dl-row { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; width: 100%; padding: 14px 16px 14px 18px; text-align: left;
  border: 1px solid var(--line, #e8e7ee); border-radius: var(--r, 18px); background: var(--card, #fff); color: var(--ink, #1c1b22); font: inherit; cursor: pointer;
  transition: transform var(--dl-d) var(--dl-e), border-color var(--dl-d) var(--dl-e), background-color var(--dl-d) var(--dl-e); }
.dl-row::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--v, #7703fc);
  transform: scaleY(0); transform-origin: center; transition: transform var(--dl-d) var(--dl-e); }
.dl-row:hover { transform: translateY(var(--dl-up)); border-color: var(--v, #7703fc); }
.dl-row:hover::before, .dl-row.on::before { transform: scaleY(1); }
.dl-row.on { border-color: var(--v, #7703fc); background: var(--v-t, #f3ecfe); }
.dl-row.hot::before { background: var(--red, #e2445c); transform: scaleY(1); }
.dl-row.shut { opacity: .55; }
.dl-row.shut:hover { opacity: .8; }
.dl-ra { display: grid; gap: 2px; min-width: 0; }
.dl-name { font-weight: 600; font-size: 15.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-co { color: var(--gray, #6e6c78); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-rb { display: grid; justify-items: end; gap: 4px; }
.dl-amt { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.dl-rc { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; font-size: 13px; color: var(--gray, #6e6c78); }
.dl-date { display: inline-flex; align-items: center; gap: 5px; }
.dl-date .ic { width: 14px; height: 14px; }
.dl-page .late, .dl-date.late, .dl-fv.late { color: var(--red-tx, #a11a30); font-weight: 600; }
.dl-tk.none { color: var(--amber-tx, #8a4b05); font-weight: 500; }
.dl-page .muted, .dl-form .muted { color: var(--gray, #6e6c78); font-weight: 400; }
.dl-stage { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* skelet */
.dl-sk { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line, #e8e7ee); border-radius: var(--r, 18px); background: var(--card, #fff); }
.dl-sk i, .dl-skl { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--panel, #f4f4f7) 0%, var(--surf, #f8f7fb) 50%, var(--panel, #f4f4f7) 100%);
  background-size: 200% 100%; animation: dl-shim 1.4s linear infinite; }
.dl-sk .w60 { width: 60%; } .dl-sk .w40 { width: 40%; }
.dl-skl { width: 45%; margin-bottom: 10px; } .dl-skl.big { width: 70%; height: 22px; }
@keyframes dl-shim { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* bo'sh holat (H.ui.empty ustiga) */
.dl-empty { padding: 28px 16px; border: 1px dashed var(--line, #e8e7ee); border-radius: var(--r, 18px); background: var(--card, #fff); }
.dl-card .dl-empty { border: 0; background: transparent; }
.dl-empty .eart { animation: dl-float 6s ease-in-out infinite alternate; }
@keyframes dl-float { to { transform: translateY(-4px); } }

/* ---- karta ---- */
.dl-card { display: grid; gap: 20px; min-width: 0; padding: 22px 24px 26px; border: 1px solid var(--line, #e8e7ee); border-radius: var(--r, 18px); background: var(--card, #fff);
  animation: dl-in var(--dl-d) var(--dl-e) both; }
.dl-card.in-sheet { padding: 0; border: 0; background: transparent; animation: none; }
.dl-card[data-pick] { min-height: 240px; place-content: center; }
.dl-cvh { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; }
.dl-cvt { display: grid; gap: 8px; min-width: 0; }
.dl-cvn { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; overflow-wrap: anywhere; }
.dl-cvs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dl-add { flex: none; }
.dl-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dl-fact { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--r2, 14px); background: var(--surf, #f8f7fb); min-width: 0;
  transition: transform var(--dl-d) var(--dl-e); }
.dl-fact:hover { transform: translateY(var(--dl-up)); }
.dl-fv { font-weight: 600; overflow-wrap: anywhere; }
.dl-fv.big { font-size: 20px; font-weight: 700; color: var(--v, #7703fc); letter-spacing: -.01em; }
.dl-fv.big.muted { font-size: 15px; color: var(--gray, #6e6c78); }
.dl-block { display: grid; gap: 10px; }
.dl-bh { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 650; }
.dl-bh .cnt { min-width: 22px; padding: 1px 8px; border-radius: var(--pillr, 999px); background: var(--v-t, #f3ecfe); color: var(--v, #7703fc); font-size: 12px; text-align: center; }

/* tasklar */
.dl-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl-task { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 14px; border: 1px solid var(--line, #e8e7ee);
  border-left: 3px solid var(--v-s, #d9c2fe); border-radius: var(--r2, 14px); background: var(--card, #fff);
  transition: transform var(--dl-d) var(--dl-e), border-color var(--dl-d) var(--dl-e); }
.dl-task:hover { transform: translateY(var(--dl-up)); border-color: var(--v, #7703fc); }
.dl-task.late { border-left-color: var(--red, #e2445c); }
.dl-tmain { display: grid; gap: 3px; min-width: 0; flex: 1 1 220px; }
.dl-ttl { font-weight: 600; overflow-wrap: anywhere; }
.dl-tdue { display: inline-flex; align-items: center; gap: 5px; color: var(--gray, #6e6c78); font-size: 13px; }
.dl-tdue .ic { width: 14px; height: 14px; }
.dl-tacts { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-other { display: inline-flex; align-items: center; gap: 6px; color: var(--gray, #6e6c78); font-size: 13px; }
.dl-other .ic { width: 16px; height: 16px; }
.dl-tempty { display: grid; justify-items: start; gap: 8px; padding: 14px 16px; border: 1px dashed var(--line, #e8e7ee); border-radius: var(--r2, 14px); }
.dl-tet { margin: 0; font-weight: 600; }
.dl-tempty .enext { display: grid; gap: 2px; margin: 0; padding: 10px 14px; border-radius: var(--ri, 12px); background: var(--v-t, #f3ecfe); }

/* tarix: vertikal chiziq, ketma-ket kirish */
.dl-tl { position: relative; list-style: none; margin: 0; padding: 0 0 0 22px; display: grid; gap: 14px; }
.dl-tl::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; border-radius: 1px; background: var(--line, #e8e7ee); }
.dl-tli { position: relative; display: grid; gap: 2px; animation: dl-in var(--dl-d) var(--dl-e) both; }
.dl-tli:nth-child(2) { animation-delay: calc(var(--dl-st) * 1); } .dl-tli:nth-child(3) { animation-delay: calc(var(--dl-st) * 2); }
.dl-tli:nth-child(4) { animation-delay: calc(var(--dl-st) * 3); } .dl-tli:nth-child(5) { animation-delay: calc(var(--dl-st) * 4); }
.dl-tli:nth-child(6) { animation-delay: calc(var(--dl-st) * 5); } .dl-tli:nth-child(n+7) { animation-delay: calc(var(--dl-st) * 6); }
.dl-dot { position: absolute; left: -21px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--card, #fff); background: var(--gray3, #b4b1bf); }
.dl-tli.v .dl-dot { background: var(--v, #7703fc); } .dl-tli.r .dl-dot { background: var(--red, #e2445c); }
.dl-tli.g .dl-dot { background: var(--green, #16a34a); } .dl-tli.b .dl-dot { background: var(--blue, #3894f7); }
.dl-tli.fut .dl-dot { background: var(--card, #fff); border-color: var(--v, #7703fc); }
.dl-tm, .dl-fv.num, .dl-amt, .dl-date, .dl-count { font-variant-numeric: tabular-nums; }
.dl-tm { color: var(--gray, #6e6c78); font-size: 12.5px; }
.dl-tt { font-weight: 500; overflow-wrap: anywhere; }
.dl-tli.r .dl-tt { color: var(--red-tx, #a11a30); }
.dl-tx { color: var(--gray, #6e6c78); font-size: 13px; overflow-wrap: anywhere; }

/* forma */
.dl-for { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--ri, 12px); background: var(--v-t, #f3ecfe); color: var(--ink, #1c1b22); font-weight: 600; }
.dl-for .ic { width: 18px; height: 18px; color: var(--v, #7703fc); }

@keyframes dl-in { from { opacity: 0; transform: translateY(8px); } }

/* telefon */
@media (max-width: 1023.98px) {
  .dl-pane { display: none; }
  .dl-facts { gap: 8px; }
  .dl-cvh .dl-add { width: 100%; }
}
@media (max-width: 520px) {
  .dl-hs { display: none; }
  .dl-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dl-fact { padding: 10px 12px; }
  .dl-row { padding: 12px 14px 12px 16px; }
  .dl-stage { max-width: 130px; }
}

/* harakatsiz rejim */
@media (prefers-reduced-motion: reduce) {
  .dl-page, .dl-form, .dl-card { --dl-d: 1ms; --dl-up: 0px; --dl-st: 0ms; }
  .dl-page *, .dl-page *::before, .dl-card, .dl-card * { animation: none !important; }
  .dl-first .fitem:hover { transform: none; }
}
html[data-motion="off"] .dl-page, html[data-motion="off"] .dl-form, html[data-motion="off"] .dl-card { --dl-d: 1ms; --dl-up: 0px; --dl-st: 0ms; }
html[data-motion="off"] .dl-page *, html[data-motion="off"] .dl-page *::before, html[data-motion="off"] .dl-card, html[data-motion="off"] .dl-card * { animation: none !important; }
html[data-motion="off"] .dl-first .fitem:hover { transform: none; }
html[data-motion="lite"] .dl-page { --dl-st: 0ms; }
html[data-motion="lite"] .dl-empty .eart { animation: none; }
