/* ===================================================================
   EMAX-B LOGISTICS — YO'LAK
   Zamonaviy panel tili: yumshoq burchak, qatlamli soya, shaffof yopishqoq
   sarlavha, pill navigatsiya, jumla registri (BOSH HARF EMAS), keng havo.
   =================================================================== */

:root {
  /* ================= OQ TEMA (asosiy) ================= */
  --bg:         #F7F8FA;
  --bg-2:       #F1F3F6;
  --paper:      #F7F8FA;
  --paper-2:    #F3F5F8;
  --sheet:      #FFFFFF;
  --sheet-2:    #FAFBFC;

  --ink:        #0D1220;
  --ink-2:      #5A6478;
  --ink-3:      #98A1B3;

  --rule:       #E8EBF0;
  --rule-2:     #DDE1E9;

  --cy:         #2563EB;   /* ko'k    — yo'lda, faol, asosiy */
  --c1:         #2563EB;   /* grafik: 1-toifa (pod klyuch / asosiy qator) */
  --c2:         #D97706;   /* grafik: 2-toifa (perevozka) */
  --lime:       #059669;   /* yashil  — tayyor, to'langan */
  --pink:       #E11D48;   /* qizil   — qarz, kechikish */
  --amb:        #D97706;   /* apelsin — bojxona, kutilmoqda */
  --vio:        var(--amb);

  --navy:       var(--cy);
  --navy-soft:  #EFF4FF;
  --navy-line:  #C7D9FE;
  --amber:      var(--amb);
  --amber-soft: #FEF6E7;
  --amber-line: #F8DBA8;
  --green:      var(--lime);
  --green-soft: #ECFDF5;
  --green-line: #A9E5CB;
  --red:        var(--pink);
  --red-soft:   #FEF2F4;
  --red-line:   #F7C3CE;
  --violet:     var(--vio);
  --violet-soft:var(--amber-soft);

  --sh-1: 0 1px 2px rgba(13,18,32,.05);
  --sh-2: 0 1px 2px rgba(13,18,32,.05), 0 4px 12px rgba(13,18,32,.06);
  --sh-3: 0 8px 28px rgba(13,18,32,.10), 0 2px 6px rgba(13,18,32,.05);
  --sh-4: 0 24px 60px rgba(13,18,32,.18);
  --ring: 0 0 0 3px rgba(37,99,235,.14);

  --map-filter: none;
  --glass: rgba(255,255,255,.78);

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --disp: "Inter Tight", Inter, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter Tight", Inter, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-xs: 6px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --bar-h:  62px;
  --aux-w:  330px;
}

/* ================= QORA TEMA ================= */
:root[data-skin="black"] {
  --bg:         #0A0B0D;
  --bg-2:       #0E1013;
  --paper:      #0A0B0D;
  --paper-2:    #0E1013;
  --sheet:      #14171B;
  --sheet-2:    #1A1E23;

  --ink:        #F2F4F7;
  --ink-2:      #9BA3B0;
  --ink-3:      #6A7383;

  --rule:       #22262C;
  --rule-2:     #2E343C;

  --cy:         #60A5FA;
  --c1:         #3B82F6;   /* grafik: 1-toifa (pod klyuch / asosiy qator) */
  --c2:         #C97A0A;   /* grafik: 2-toifa (perevozka) */
  --lime:       #34D399;
  --pink:       #FB7185;
  --amb:        #FBBF24;

  --navy-soft:  rgba(96,165,250,.13);
  --navy-line:  rgba(96,165,250,.30);
  --amber-soft: rgba(251,191,36,.12);
  --amber-line: rgba(251,191,36,.30);
  --green-soft: rgba(52,211,153,.12);
  --green-line: rgba(52,211,153,.28);
  --red-soft:   rgba(251,113,133,.12);
  --red-line:   rgba(251,113,133,.30);
  --violet-soft:var(--amber-soft);

  --sh-1: 0 1px 2px rgba(0,0,0,.5);
  --sh-2: 0 1px 2px rgba(0,0,0,.5), 0 4px 14px rgba(0,0,0,.4);
  --sh-3: 0 10px 30px rgba(0,0,0,.55);
  --sh-4: 0 24px 60px rgba(0,0,0,.7);
  --ring: 0 0 0 3px rgba(96,165,250,.22);

  --glass: rgba(14,16,19,.75);
  --map-filter: invert(.92) hue-rotate(180deg) saturate(.85) brightness(.95);
}

/* ================= TO'Q KO'K TEMA ================= */
:root[data-skin="navy"] {
  --bg:         #080F24;
  --bg-2:       #0B1530;
  --paper:      #080F24;
  --paper-2:    #0B1530;
  --sheet:      #101C3E;
  --sheet-2:    #16264C;

  --ink:        #EAF0FC;
  --ink-2:      #A2B3D6;
  --ink-3:      #6E82AC;

  --rule:       #1C2C55;
  --rule-2:     #263A68;

  --cy:         #61B3FF;
  --c1:         #4C8DF6;   /* grafik: 1-toifa (pod klyuch / asosiy qator) */
  --c2:         #CC7D0C;   /* grafik: 2-toifa (perevozka) */
  --lime:       #4ADE80;
  --pink:       #FF7BA6;
  --amb:        #FFC94D;

  --navy-soft:  rgba(97,179,255,.14);
  --navy-line:  rgba(97,179,255,.32);
  --amber-soft: rgba(255,201,77,.13);
  --amber-line: rgba(255,201,77,.30);
  --green-soft: rgba(74,222,128,.13);
  --green-line: rgba(74,222,128,.28);
  --red-soft:   rgba(255,123,166,.13);
  --red-line:   rgba(255,123,166,.30);
  --violet-soft:var(--amber-soft);

  --sh-1: 0 1px 2px rgba(0,0,0,.45);
  --sh-2: 0 1px 2px rgba(0,0,0,.45), 0 4px 14px rgba(0,0,0,.35);
  --sh-3: 0 10px 30px rgba(3,8,22,.6);
  --sh-4: 0 24px 60px rgba(3,8,22,.75);
  --ring: 0 0 0 3px rgba(97,179,255,.22);

  --glass: rgba(11,21,48,.76);
  --map-filter: invert(.9) hue-rotate(192deg) saturate(.9) brightness(.95);
}

* { box-sizing: border-box; }
/* hidden atributi har doim ustun turishi kerak —
   .tab{display:flex} kabi qoidalar uni bosib ketmasin */
[hidden] { display: none !important; }
html { height: 100%; scroll-behavior: smooth; }
body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--navy-soft); color: var(--ink); }

/* nozik scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: var(--r-pill); border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-3); background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

/* ===================== UMUMIY ===================== */
.lbl {
  font-size: 12px; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--ink-3);
}
.num { font-variant-numeric: tabular-nums; }

/* ===================== LOGIN ===================== */
.auth { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--bg); }
.auth.gone { display: none; }

.auth-art { position: relative; overflow: hidden; background: #060A14; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(.6) contrast(1.05); }
.auth-art::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 620px at 12% 86%, rgba(37,99,235,.28), transparent 62%),
    linear-gradient(105deg, rgba(6,10,20,.94) 0%, rgba(6,10,20,.6) 58%, rgba(6,10,20,.26) 100%);
}
.auth-cap { position: absolute; z-index: 2; left: 60px; right: 60px; bottom: 60px; color: #fff; }
.auth-cap h1 {
  font-family: var(--disp); font-weight: 700; font-size: 44px; line-height: 1.08;
  letter-spacing: -.035em; text-transform: none; margin: 0 0 18px; max-width: 15em;
}
.auth-cap h1 em { font-style: normal; color: #93B4FD; }
.auth-cap p { margin: 0; max-width: 34em; color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.62; }
.auth-meta { position: absolute; z-index: 2; top: 44px; left: 60px; display: flex; gap: 10px; }
.auth-meta div {
  color: rgba(255,255,255,.55); padding: 11px 16px; border-radius: var(--r);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px); font-size: 12px;
}
.auth-meta b { display: block; font-size: 17px; font-weight: 600; color: #fff; margin-top: 3px; font-variant-numeric: tabular-nums; }

.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 34px; background: var(--sheet); }
.auth-box { width: 100%; max-width: 340px; }
.auth-box img.mark { height: 32px; margin-bottom: 34px; }
.auth-box h2 { font-family: var(--disp); font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin: 0 0 6px; text-transform: none; }
.auth-box h2::after { display: none; }
.auth-box .sub { color: var(--ink-3); font-size: 14px; margin: 0 0 26px; }

/* ===================== MAYDONLAR / TUGMALAR ===================== */
.f { margin-bottom: 16px; }
.f > label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.f input, .f select, .f textarea {
  width: 100%; height: 40px; padding: 0 13px;
  background: var(--sheet); color: var(--ink);
  border: 1px solid var(--rule-2); border-radius: var(--r-sm);
  font: inherit; font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.f textarea { height: auto; min-height: 76px; padding: 10px 13px; resize: vertical; line-height: 1.5; }
.f input::placeholder, .filters input::placeholder { color: var(--ink-3); }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--cy); box-shadow: var(--ring); }
.f .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border: 1px solid var(--rule-2); border-radius: var(--r-sm);
  background: var(--sheet); color: var(--ink);
  font-family: var(--text); font-size: 13.5px; font-weight: 550; letter-spacing: -.01em; text-transform: none;
  cursor: pointer; box-shadow: var(--sh-1);
  transition: background .15s, border-color .15s, color .15s, box-shadow .18s, transform .12s;
}
.btn:hover { background: var(--sheet-2); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(1px); box-shadow: var(--sh-1); }
.btn.wide { width: 100%; height: 44px; font-size: 14.5px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); box-shadow: none; }
.btn.ghost:hover { background: var(--bg-2); color: var(--ink); box-shadow: none; }
.btn.nav {
  background: var(--cy); border-color: transparent; color: #fff;
  box-shadow: 0 1px 2px rgba(13,18,32,.14), 0 2px 8px rgba(37,99,235,.24);
}
.btn.nav:hover { filter: brightness(1.06); box-shadow: 0 2px 4px rgba(13,18,32,.16), 0 6px 18px rgba(37,99,235,.3); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

.err {
  display: none; border: 1px solid var(--red-line); background: var(--red-soft); color: var(--pink);
  padding: 11px 13px; font-size: 13px; margin-bottom: 16px; border-radius: var(--r-sm);
}
.err.on { display: block; }

/* ===================== TOP BAR ===================== */
.top {
  position: sticky; top: 0; z-index: 40;
  background: var(--glass); backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid var(--rule);
}
.top-1 { height: var(--bar-h); display: flex; align-items: center; padding: 0 20px; gap: 6px; }
.top-1 img.mark { height: 25px; }
.brand-div { width: 1px; height: 22px; background: var(--rule-2); margin: 0 14px 0 16px; }

.tabs { display: flex; align-items: center; gap: 2px; }
.tab {
  position: relative; display: flex; align-items: center; height: 34px; padding: 0 13px;
  border-radius: var(--r-sm); cursor: pointer; user-select: none;
  font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; text-transform: none;
  color: var(--ink-2); transition: background .15s, color .15s;
}
.tab:hover { background: var(--bg-2); color: var(--ink); }
.tab.on { background: var(--navy-soft); color: var(--cy); font-weight: 600; }
.tab .badge-n { margin-left: 7px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.kbd { display: inline-flex; gap: 3px; }
.kbd span {
  font-size: 11px; border: 1px solid var(--rule-2); background: var(--sheet);
  padding: 1px 5px; color: var(--ink-3); border-radius: var(--r-xs); line-height: 16px;
}
.searchbtn {
  display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 12px;
  border-radius: var(--r-sm); border: 1px solid var(--rule-2); background: var(--sheet);
  color: var(--ink-3); font-family: var(--text); font-size: 13.5px; cursor: pointer; min-width: 236px;
  box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .18s, color .15s;
}
.searchbtn:hover { border-color: var(--rule-2); color: var(--ink-2); box-shadow: var(--sh-2); }

.skins { display: flex; gap: 3px; padding: 3px; border-radius: var(--r-pill); background: var(--bg-2); }
.skins button {
  width: 22px; height: 22px; border-radius: var(--r-pill); border: 1px solid var(--rule-2);
  cursor: pointer; padding: 0; transition: box-shadow .18s, transform .15s;
}
.skins button[data-sk="light"] { background: #F7F8FA; }
.skins button[data-sk="black"] { background: #17191D; }
.skins button[data-sk="navy"]  { background: #0E1B3C; }
.skins button:hover { transform: scale(1.1); }
.skins button.on { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--cy); }

.who { display: flex; align-items: center; gap: 10px; padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--rule); }
.who .nm { font-size: 13.5px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.who .rl { font-size: 12px; color: var(--ink-3); }
.ava {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  background: linear-gradient(145deg, var(--cy), #7C3AED); color: #fff;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
  background-size: cover; background-position: center; cursor: pointer; position: relative;
  box-shadow: var(--sh-1); transition: transform .18s, box-shadow .18s;
}
.ava:hover { transform: scale(1.06); box-shadow: var(--sh-2); }
.ava.has { color: transparent; }
.iconbtn {
  width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid transparent;
  background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer;
  transition: background .15s, color .15s;
}
.iconbtn:hover { background: var(--bg-2); color: var(--ink); }
.iconbtn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ===================== JOYLASHUV ===================== */
.shell {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--aux-w);
  align-items: start; min-height: calc(100vh - var(--bar-h));
}
.main { min-width: 0; }

.view { display: none; }
.view.on { display: block; animation: vin .3s cubic-bezier(.16,.84,.24,1) both; }
@keyframes vin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- yuqoridagi raqamlar ---------- */
.strip { display: flex; align-items: stretch; gap: 10px; padding: 18px 24px 0; }
.strip .cell {
  flex: 0 1 auto; min-width: 128px; padding: 12px 16px;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 3px;
  animation: vin .4s cubic-bezier(.16,.84,.24,1) both;
}
.strip .cell:nth-child(2){animation-delay:.04s} .strip .cell:nth-child(3){animation-delay:.08s}
.strip .cell:nth-child(4){animation-delay:.12s} .strip .cell:nth-child(5){animation-delay:.16s}
.strip .cell b {
  font-size: 23px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.strip .cell .v { display: flex; align-items: baseline; gap: 5px; }
.strip .cell .u { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.strip .grow { flex: 1 1 auto; }
.strip .spark {
  align-self: stretch; padding: 14px 16px; background: var(--sheet);
  border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--sh-1);
  height: 74px; align-items: flex-end; min-width: 150px;
}

/* ===================== YO'LAK ===================== */
.roadwrap { padding: 22px 24px 46px; }

#roadTitle {
  font-family: var(--disp); font-size: 28px; font-weight: 700;
  letter-spacing: -.035em; text-transform: none; margin: 0 0 26px;
  line-height: 1.15; color: var(--ink);
}
#roadTitle i { font-style: normal; color: var(--ink-3); margin: 0 6px; font-weight: 400; }
#roadTitle em {
  display: inline-block; font-style: normal; font-size: 13px; font-weight: 550;
  letter-spacing: -.01em; text-transform: none; color: var(--cy);
  background: var(--navy-soft); border: 1px solid var(--navy-line);
  padding: 4px 11px; border-radius: var(--r-pill); margin-left: 14px; vertical-align: 7px;
}

.road { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 14px; }
.road::before {
  content: ''; position: absolute; z-index: 0;
  left: calc(50% / var(--n, 5)); right: calc(50% / var(--n, 5)); top: 23px; height: 2px;
  background-image: linear-gradient(90deg, var(--ink-3) 0 8px, transparent 8px 18px);
  opacity: .5;
  background-size: 18px 2px;
  animation: flow 2.6s linear infinite;
}
@keyframes flow { to { background-position: 18px 0; } }

.st { position: relative; z-index: 1; animation: stin .5s cubic-bezier(.16,.84,.24,1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes stin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.st-dot {
  width: 48px; height: 48px; margin: 0 auto 13px; border-radius: var(--r-pill);
  background: var(--sheet); border: 1px solid var(--rule-2); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  font-size: 16px; font-weight: 650; letter-spacing: -.02em; line-height: 1;
  font-variant-numeric: tabular-nums; box-shadow: var(--sh-1);
  transition: transform .2s cubic-bezier(.16,.84,.24,1), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.st-dot:hover { transform: translateY(-2px) scale(1.04); box-shadow: var(--sh-2); }
.st.k-bojxona .st-dot { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amb); }
.st.k-yakuniy .st-dot { background: var(--green-soft); border-color: var(--green-line); color: var(--lime); }
.st.on .st-dot { background: var(--cy); border-color: transparent; color: #fff; box-shadow: var(--ring), var(--sh-2); }
.st.k-bojxona .st-dot { animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: var(--sh-1), 0 0 0 0 rgba(217,119,6,.26); }
  50%      { box-shadow: var(--sh-1), 0 0 0 9px rgba(217,119,6,0); }
}

.st-nm {
  text-align: center; font-size: 14px; font-weight: 600; letter-spacing: -.015em;
  line-height: 1.25; color: var(--ink);
}
.st-kg { text-align: center; font-size: 12.5px; color: var(--ink-3); margin: 3px 0 14px; font-variant-numeric: tabular-nums; }
.st-list { display: flex; flex-direction: column; gap: 8px; }
.st-empty {
  text-align: center; color: var(--ink-3); font-size: 13px; padding: 18px 0;
  border: 1px dashed var(--rule-2); border-radius: var(--r);
}

.p {
  --ac: var(--cy);
  position: relative; overflow: hidden;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 12px 14px; cursor: pointer; box-shadow: var(--sh-1);
  transition: transform .18s cubic-bezier(.16,.84,.24,1), box-shadow .2s, border-color .2s;
  animation: pin .42s cubic-bezier(.16,.84,.24,1) both;
  animation-delay: calc(var(--i, 0) * 70ms + var(--j, 0) * 45ms + 120ms);
}
@keyframes pin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.p::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ac); }
.p:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--rule-2); }
.p.o { --ac: var(--amb); }
.p.g { --ac: var(--lime); }
.p.r { --ac: var(--pink); }
.p.x { --ac: var(--ink-3); opacity: .68; }
.p-no { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.p-cl { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.p-w { font-size: 12.5px; color: var(--ink-3); margin-top: 7px; font-variant-numeric: tabular-nums; }
.p-w em { font-style: normal; font-weight: 600; color: var(--pink); }
.p.late { border-color: var(--red-line); background: var(--red-soft); }
.p.late .p-no::after {
  content: 'Kechikdi'; float: right; font-family: var(--text); font-size: 11px;
  font-weight: 600; letter-spacing: -.01em; color: var(--pink); line-height: 17px;
}

/* --------- CHIP --------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill);
  font-family: var(--text); font-size: 12px; font-weight: 550; letter-spacing: -.01em;
  text-transform: none; padding: 3px 10px 3px 8px; border: 1px solid transparent; white-space: nowrap;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: var(--r-pill); background: currentColor; }
.chip.navy, .chip.cyan, .chip.blue { color: var(--cy);   background: var(--navy-soft);  border-color: var(--navy-line); }
.chip.amber  { color: var(--amb);  background: var(--amber-soft); border-color: var(--amber-line); }
.chip.green  { color: var(--lime); background: var(--green-soft); border-color: var(--green-line); }
.chip.red    { color: var(--pink); background: var(--red-soft);   border-color: var(--red-line); }
.chip.violet { color: var(--vio);  background: var(--violet-soft);border-color: var(--amber-line); }
.chip.gray   { color: var(--ink-2); background: var(--bg-2); border-color: var(--rule-2); }

/* ---------- O'NG PANEL ---------- */
.aux {
  position: sticky; top: var(--bar-h); align-self: start;
  height: calc(100vh - var(--bar-h)); overflow-y: auto;
  padding: 18px 20px 26px 6px; display: flex; flex-direction: column; gap: 10px;
}
.aux-h {
  display: flex; align-items: center; gap: 8px; padding: 0 2px 2px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em;
}
.aux-h .lbl { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.aux-h .lbl + .lbl { margin-left: auto; font-weight: 500; color: var(--ink-3); }
.aux-h .iconbtn { width: 26px; height: 26px; margin-left: auto; }
.aux-h .iconbtn svg { width: 13px; height: 13px; }

/* xarita */
.map {
  height: 200px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--sheet); overflow: hidden; box-shadow: var(--sh-1);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: var(--map-filter); }
.map.sm { height: 180px; }
.map-cap { padding: 2px 2px 8px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.map-cap .mono { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* furalar */
.trips {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: var(--sh-1); padding: 4px 14px; margin-bottom: 4px;
}
.trip { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.trip:last-child { border-bottom: 0; }
.trip-1 { display: flex; align-items: baseline; gap: 8px; }
.trip-1 .code { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.trip-1 .pct { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--cy); font-variant-numeric: tabular-nums; }
.trip-2 { margin-top: 7px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.trip-2 .mono { font-variant-numeric: tabular-nums; }
.track { position: relative; height: 6px; margin-top: 8px; background: var(--bg-2); border-radius: var(--r-pill); overflow: hidden; }
.track i {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--cy), color-mix(in srgb, var(--cy) 70%, #fff));
  transform-origin: left; animation: grow .85s cubic-bezier(.16,.84,.24,1) both .2s;
  transition: width .45s ease;
}
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.track u { display: none; }

/* diqqat */
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alert {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--rule); background: var(--sheet); border-radius: var(--r); box-shadow: var(--sh-1);
}
.alert b { font-size: 19px; font-weight: 650; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.alert span { font-size: 13px; color: var(--ink-2); }
.alert.red     { background: var(--red-soft);   border-color: var(--red-line); }
.alert.red b   { color: var(--pink); }
.alert.amber   { background: var(--amber-soft); border-color: var(--amber-line); }
.alert.amber b { color: var(--amb); }
.alert.navy    { background: var(--navy-soft);  border-color: var(--navy-line); }
.alert.navy b  { color: var(--cy); }
.alert.ok      { background: var(--green-soft); border-color: var(--green-line); }
.alert.ok b    { color: var(--lime); }

/* raqamlar */
.auxk {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: var(--sh-1); padding: 4px 14px;
}
.auxk-r { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }
.auxk-r:last-child { border-bottom: 0; }
.auxk-r b { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* --------- SPARK / KATAKLAR --------- */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.spark i {
  flex: 1; min-width: 3px; min-height: 3px; border-radius: 2px;
  background: var(--navy-line); transform-origin: bottom;
  animation: grow-y .55s cubic-bezier(.16,.84,.24,1) both;
}
@keyframes grow-y { from { transform: scaleY(0); } to { transform: none; } }
.spark i:nth-child(3n) { animation-delay: .05s } .spark i:nth-child(3n+1) { animation-delay: .1s }
.spark i:last-child { background: var(--cy); }

.cellmap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; max-width: 560px; }
.cellmap div {
  aspect-ratio: 1.4; border-radius: var(--r-xs); border: 1px solid var(--rule); background: var(--sheet);
  font-family: var(--mono); font-size: 9px; color: var(--ink-3); display: grid; place-items: center;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cellmap div:hover { border-color: var(--cy); transform: scale(1.12); box-shadow: var(--sh-2); z-index: 2; }
.cellmap div.u1 { background: var(--navy-soft); border-color: var(--navy-line); color: var(--cy); }
.cellmap div.old { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amb); }

/* --------- REGISTR JADVALI --------- */
.pane { padding: 22px 24px 32px; }
.pane-h { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.pane-h h2 { font-family: var(--disp); font-size: 26px; font-weight: 700; letter-spacing: -.035em; text-transform: none; margin: 0; color: var(--ink); line-height: 1.2; }
.pane-h .n { font-size: 13.5px; color: var(--ink-3); }
.pane-h .grow { margin-left: auto; display: flex; gap: 8px; }

.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 0 14px; }
.filters input, .filters select {
  height: 36px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--rule-2);
  background: var(--sheet); color: var(--ink); font: inherit; font-size: 13.5px; outline: none;
  box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s;
}
.filters input:focus, .filters select:focus { border-color: var(--cy); box-shadow: var(--ring); }
.fchip {
  font-family: var(--text); font-size: 13px; font-weight: 500; letter-spacing: -.01em; text-transform: none;
  padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--rule-2); background: var(--sheet);
  cursor: pointer; color: var(--ink-2); box-shadow: var(--sh-1);
  transition: border-color .15s, color .15s, background .15s, box-shadow .18s;
}
.fchip:hover { color: var(--ink); box-shadow: var(--sh-2); }
.fchip.on { background: var(--cy); border-color: transparent; color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.26); }

.ledger {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: var(--sh-1);
}
.ledger thead th:first-child { border-top-left-radius: var(--r); }
.ledger thead th:last-child  { border-top-right-radius: var(--r); }
.ledger tfoot td:first-child { border-bottom-left-radius: var(--r); }
.ledger tfoot td:last-child  { border-bottom-right-radius: var(--r); }
.ledger tbody tr:last-child td:first-child { border-bottom-left-radius: var(--r); }
.ledger tbody tr:last-child td:last-child  { border-bottom-right-radius: var(--r); }
.ledger:has(tfoot td) tbody tr:last-child td { border-radius: 0; }
.ledger thead th {
  text-align: left; padding: 11px 14px; background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
  font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: -.005em;
  text-transform: none; color: var(--ink-3);
  position: sticky; top: var(--bar-h); z-index: 2; white-space: nowrap;
}
.ledger tbody td { padding: 12px 14px; border-bottom: 1px solid var(--rule); font-size: 13.5px; vertical-align: middle; }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger tbody tr { transition: background .12s; }
.ledger tbody tr:hover td { background: var(--bg-2); }
.ledger tbody tr.click { cursor: pointer; }
.ledger td.rn { font-size: 12.5px; color: var(--ink-3); width: 46px; font-variant-numeric: tabular-nums; }
.ledger td.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ledger td.r { text-align: right; font-variant-numeric: tabular-nums; }
.ledger .sub { font-size: 12px; color: var(--ink-3); }
.ledger tfoot td { padding: 12px 14px; border-top: 1px solid var(--rule-2); font-size: 13.5px; font-weight: 600; background: var(--bg-2); color: var(--ink); font-variant-numeric: tabular-nums; }
.empty { padding: 42px 16px; text-align: center; color: var(--ink-3); font-size: 13.5px; }

/* --------- DRAWER --------- */
.scrim { position: fixed; inset: 0; background: rgba(9,13,24,.42); backdrop-filter: blur(2px); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .24s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(600px, 94vw); z-index: 61;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--sh-4);
  transform: translateX(calc(100% + 16px)); transition: transform .34s cubic-bezier(.16,.84,.24,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.drawer.on { transform: none; }
.drawer-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 16px; border-bottom: 1px solid var(--rule); }
.drawer-h h3 { font-family: var(--mono); font-size: 19px; font-weight: 600; letter-spacing: -.03em; margin: 2px 0 0; color: var(--ink); }
.drawer-h .x { margin-left: auto; }
.drawer-b { flex: 1; overflow: auto; padding: 18px 20px 30px; }
.drawer-f { padding: 14px 20px; border-top: 1px solid var(--rule); background: var(--bg-2); display: flex; gap: 8px; }

.kv { border-top: 1px solid var(--rule); }
.kv-r { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.kv-r .k { flex: 0 0 158px; color: var(--ink-3); }
.kv-r .v { flex: 1; font-weight: 550; }
.kv-r .v.mono { font-family: var(--mono); font-size: 13px; letter-spacing: -.02em; }

.sect {
  font-family: var(--text); font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  text-transform: none; color: var(--ink); margin: 26px 0 8px; padding-bottom: 0; border-bottom: 0;
}
.sect:first-child { margin-top: 0; }

/* timeline */
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 8px; width: 2px; background: var(--rule); border-radius: 2px; }
.tl-i { position: relative; padding: 0 0 16px; }
.tl-i::before {
  content: ''; position: absolute; left: -22px; top: 4px; width: 12px; height: 12px;
  border-radius: var(--r-pill); background: var(--sheet); border: 2px solid var(--rule-2);
}
.tl-i.now::before { background: var(--amb); border-color: var(--amb); box-shadow: 0 0 0 4px var(--amber-soft); }
.tl-i .t { font-size: 13.5px; font-weight: 550; }
.tl-i .d { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.drop {
  border: 1.5px dashed var(--rule-2); border-radius: var(--r); background: var(--bg-2); padding: 20px;
  text-align: center; cursor: pointer; font-size: 13.5px; color: var(--ink-3);
  transition: border-color .15s, color .15s, background .15s;
}
.drop:hover { border-color: var(--cy); color: var(--cy); background: var(--navy-soft); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs a {
  width: 58px; height: 58px; border-radius: var(--r-sm); border: 1px solid var(--rule-2);
  background: var(--bg-2) center/cover no-repeat; display: grid; place-items: center;
  font-family: var(--mono); font-size: 9px; color: var(--ink-3); text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}
.thumbs a:hover { transform: scale(1.06); box-shadow: var(--sh-2); }

/* --------- KOMANDA PALITRASI --------- */
.pal { position: fixed; inset: 0; z-index: 70; display: none; }
.pal.on { display: block; }
.pal-bg { position: absolute; inset: 0; background: rgba(9,13,24,.45); backdrop-filter: blur(4px); animation: fade .18s ease both; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.pal-box {
  position: relative; width: min(640px, 92vw); margin: 92px auto 0; border-radius: var(--r-lg);
  background: var(--sheet); border: 1px solid var(--rule); box-shadow: var(--sh-4); overflow: hidden;
  animation: palin .26s cubic-bezier(.16,.84,.24,1) both;
}
@keyframes palin { from { opacity: 0; transform: translateY(-14px) scale(.98) } to { opacity: 1; transform: none } }
.pal-box input {
  width: 100%; height: 56px; padding: 0 20px; border: 0; border-bottom: 1px solid var(--rule);
  background: transparent; color: var(--ink); font-family: var(--text); font-size: 16px; outline: none;
}
.pal-list { max-height: 54vh; overflow: auto; padding: 6px; }
.pal-i {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-sm);
  cursor: pointer; font-size: 13.5px; transition: background .12s;
}
.pal-i:hover, .pal-i.sel { background: var(--bg-2); }
.pal-i .mono { font-family: var(--mono); font-weight: 600; letter-spacing: -.02em; color: var(--cy); }
.pal-i .g { margin-left: auto; }

/* --------- TOAST --------- */
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--sheet); color: var(--ink); padding: 13px 18px; font-size: 13.5px;
  border: 1px solid var(--rule); border-radius: var(--r-pill); box-shadow: var(--sh-3);
  animation: tin .3s cubic-bezier(.16,.84,.24,1) both; max-width: 78vw;
  display: flex; align-items: center; gap: 10px;
}
.toast::before { content: ''; width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--lime); flex: 0 0 auto; }
.toast.err::before { background: var(--pink); }
@keyframes tin { from { opacity: 0; transform: translateY(14px) scale(.96) } to { opacity: 1; transform: none } }

/* --------- MOSLASHUV --------- */
@media (max-width: 1500px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .aux { display: none; }
}
@media (max-width: 1100px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .road { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .road::before { display: none; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  #roadTitle { font-size: 23px; }
  .strip { flex-wrap: wrap; }
  .drawer { top: 0; right: 0; bottom: 0; border-radius: 0; border: 0; }
}
@media (max-width: 640px) {
  .road { grid-template-columns: 1fr; }
  .top-1 { padding: 0 12px; }
  .searchbtn { min-width: 0; }
  .searchbtn span:not(.kbd) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* logotip to'q temalarda oq */
:root[data-skin="black"] .top-1 img.mark, :root[data-skin="black"] .auth-box img.mark,
:root[data-skin="navy"]  .top-1 img.mark, :root[data-skin="navy"]  .auth-box img.mark {
  filter: brightness(0) invert(1);
}


/* ===================================================================
   ROL EKRANLARI — mini raqamlar, navbat, xabarlar, shaxsiy kabinet
   =================================================================== */

/* mini ko'rsatkich kartalari */
.minis { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.mini {
  flex: 1 1 140px; min-width: 130px; padding: 12px 15px;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 3px;
  animation: vin .36s cubic-bezier(.16,.84,.24,1) both;
}
.mini span { font-size: 12px; color: var(--ink-3); }
.mini b { font-size: 21px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mini.b b { color: var(--cy); } .mini.g b { color: var(--lime); }
.mini.r b { color: var(--pink); } .mini.a b { color: var(--amb); }

.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 1200px) { .cols2 { grid-template-columns: 1fr; } }

/* hisoblash navbati */
.qrow {
  background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--cy);
  border-radius: var(--r); padding: 13px 15px; margin-bottom: 9px; cursor: pointer;
  box-shadow: var(--sh-1); transition: transform .16s, box-shadow .2s;
  animation: vin .36s cubic-bezier(.16,.84,.24,1) both;
}
.qrow:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.qrow.hot { border-left-color: var(--amb); background: var(--amber-soft); }
.q1 { display: flex; align-items: baseline; gap: 10px; }
.q-no { font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.q-w { margin-left: auto; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.qrow.hot .q-w { color: var(--amb); font-weight: 600; }
.q2 { font-size: 13.5px; font-weight: 550; margin-top: 3px; }
.q3 { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.5; }
.q4 { display: flex; align-items: center; gap: 10px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-3); }
.q4 .btn { margin-left: auto; }

/* yuqoridagi tugmalar */
.iconbtn.spin svg { animation: sp .6s linear; }
@keyframes sp { to { transform: rotate(360deg); } }
.iconbtn.offline { color: var(--amb); }
.iconbtn.bell { position: relative; }
.iconbtn.bell .dot {
  position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: var(--r-pill);
  background: var(--pink); box-shadow: 0 0 0 2px var(--sheet);
}

/* pastdagi jonli xabar tasmasi */
.feed {
  position: fixed; right: 18px; bottom: 18px; z-index: 78;
  display: flex; flex-direction: column-reverse; gap: 8px; max-width: 340px;
}
.fd {
  background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--cy);
  border-radius: var(--r); padding: 11px 14px; box-shadow: var(--sh-3);
  animation: fdin .3s cubic-bezier(.16,.84,.24,1) both;
}
.fd.go { animation: fdout .35s ease both; }
@keyframes fdin  { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes fdout { to { opacity: 0; transform: translateX(24px); } }
.fd.b { border-left-color: var(--cy); } .fd.g { border-left-color: var(--lime); }
.fd.r { border-left-color: var(--pink); }
.fd b { display: block; font-size: 13.5px; font-weight: 600; }
.fd span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.fd i { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

/* xabarlar oynasi */
.sheetwrap { position: fixed; inset: 0; z-index: 75; display: none; }
.sheetwrap.on { display: block; }
.sheet-bg { position: absolute; inset: 0; background: rgba(9,13,24,.34); backdrop-filter: blur(2px); animation: fade .18s ease both; }
.sheet {
  position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(420px, 94vw);
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--sh-4); display: flex; flex-direction: column; overflow: hidden;
  animation: shin .3s cubic-bezier(.16,.84,.24,1) both;
}
@keyframes shin { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.sheet-h b { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.sheet-h .btn { margin-left: auto; }
.sheet-b { flex: 1; overflow: auto; padding: 10px; }

.ib { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-sm); cursor: pointer; transition: background .12s; }
.ib:hover { background: var(--bg-2); }
.ib.new { background: var(--navy-soft); }
.ib-i {
  flex: 0 0 30px; height: 30px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--bg-2); color: var(--ink-2); font-size: 14px; font-weight: 600;
}
.ib.k-calc_request .ib-i { background: var(--navy-soft); color: var(--cy); }
.ib.k-calc_done .ib-i    { background: var(--amber-soft); color: var(--amb); }
.ib.k-sold .ib-i         { background: var(--green-soft); color: var(--lime); }
.ib.k-lost .ib-i         { background: var(--red-soft); color: var(--pink); }
.ib-t { font-size: 13.5px; font-weight: 600; }
.ib-s { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.ib-d { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* to'liq emas ogohlantirishi */
.warn {
  background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amb);
  padding: 12px 14px; border-radius: var(--r); font-size: 13.5px; font-weight: 550;
}
.misl { margin: 14px 0 0; padding-left: 20px; }
.misl li { padding: 5px 0; font-size: 13.5px; }

/* shaxsiy kabinet */
.prof { display: flex; align-items: center; gap: 16px; }
.ava.big { width: 64px; height: 64px; font-size: 22px; }
.prof-n { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.prof-r { font-size: 13.5px; color: var(--cy); margin: 2px 0 4px; }

.btn.ok { border-color: var(--green-line); color: var(--lime); background: var(--green-soft); }
.btn.ok:hover { background: var(--green-soft); filter: brightness(.97); }
.ledger td.click { cursor: pointer; color: var(--cy); font-weight: 600; }


/* --------- buyurtma / mijoz formasi --------- */
.codein { font-family: var(--mono); font-size: 16px; font-weight: 600; letter-spacing: .02em; }

.nobox {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 18px; border-radius: var(--r);
  background: var(--navy-soft); border: 1px solid var(--navy-line);
}
.nobox span { font-size: 12.5px; color: var(--ink-2); }
.nobox b { font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--cy); }
.nobox i { flex: 1 0 100%; font-style: normal; font-size: 12px; color: var(--ink-3); }

.prog { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.prog-b { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--bg-2); overflow: hidden; }
.prog-b i { display: block; height: 100%; width: 0; border-radius: var(--r-pill); background: var(--amb); transition: width .25s ease, background .25s; }
.prog-b i.ok { background: var(--lime); }
.prog span { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }

.setrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.setrow label { flex: 0 0 180px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.setrow input {
  flex: 1; height: 34px; padding: 0 11px; border-radius: var(--r-sm);
  border: 1px solid var(--rule-2); background: var(--sheet); color: var(--ink); font: inherit; font-size: 13px; outline: none;
}
.setrow input:focus { border-color: var(--cy); box-shadow: var(--ring); }

/* ======================= SOTUV ANALITIKASI ======================= */
.ana-act { margin-left: auto; display: flex; gap: 8px; }
.lnk { border: 0; background: none; color: var(--cy); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.lnk:hover { background: var(--navy-soft); }

.verdict { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--r);
  border: 1px solid var(--green-line); background: var(--green-soft); margin: 2px 0 14px; }
.verdict .vi { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--lime); }
.verdict b { display: block; font-size: 14.5px; font-weight: 650; letter-spacing: -.015em; color: var(--ink); }
.verdict span { font-size: 13px; color: var(--ink-2); }
.verdict.mid { border-color: var(--amber-line); background: var(--amber-soft); }
.verdict.mid .vi { background: var(--amb); }
.verdict.bad { border-color: var(--red-line); background: var(--red-soft); }
.verdict.bad .vi { background: var(--pink); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--sh-1);
  padding: 13px 15px; display: flex; flex-direction: column; gap: 4px; animation: vin .36s cubic-bezier(.16,.84,.24,1) both; }
.kpi-t { font-size: 12.5px; color: var(--ink-3); }
.kpi b { font-size: 24px; font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--ink); }
.kpi b small { font-size: 13px; font-weight: 550; color: var(--ink-3); letter-spacing: 0; }
.kpi-f { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.kpi-s { font-size: 12px; color: var(--ink-3); }
.dl { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; }
.dl.up { color: var(--lime); } .dl.dn { color: var(--pink); }

.plan-b { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 12px; padding: 14px 16px;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--sh-1); }
.plan-b.none { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 900px) { .plan-b { grid-template-columns: 1fr; } }
.pl-t { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); }
.pl-t > b { color: var(--ink); font-weight: 600; }
.pl-t .gd { color: var(--lime); } .pl-t .bd { color: var(--amb); }
.pl-bar { position: relative; height: 10px; margin: 8px 0 6px; background: var(--bg-2); border-radius: 999px; }
.pl-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c1); border-radius: 999px; transition: width .5s cubic-bezier(.16,.84,.24,1); }
.pl-bar u { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 2px; text-decoration: none; }
.pl-s { font-size: 12px; color: var(--ink-3); }
.pl-k { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.pl-k i { display: inline-block; width: 2px; height: 12px; background: var(--ink); border-radius: 2px; }

.ana-cols { margin-top: 14px; }
.card-a { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--sh-1); padding: 14px 16px; min-width: 0; }
.ca-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ca-h b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ca-h .lnk { margin-left: auto; }
.lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.lg .sw + .sw, .lg .sw { margin-left: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.sw.c1 { background: var(--c1); } .sw.c2 { background: var(--c2); }
.sw.ln { height: 0; width: 14px; border-top: 2px dashed var(--ink-2); border-radius: 0; vertical-align: 3px; }

.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gl { stroke: var(--rule); stroke-width: 1; }
.chart .gl.base { stroke: var(--rule-2); }
.chart .ax { font-size: 11px; fill: var(--ink-3); font-family: var(--text); font-variant-numeric: tabular-nums; }
.chart .ax.now { fill: var(--ink); font-weight: 600; }
.chart .vl { font-size: 11.5px; font-weight: 650; fill: var(--ink); font-family: var(--text); }
.chart .bar { fill: var(--c1); transition: opacity .15s; }
.chart .bar.cur { opacity: .55; }
.chart .bar.hov { opacity: 1; filter: brightness(1.08); }
.chart .plan { stroke: var(--ink-2); stroke-width: 2; stroke-dasharray: 4 3; stroke-linecap: round; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover { fill: var(--ink); fill-opacity: .035; }
.ch-note { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 9px 11px;
  background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 10px; box-shadow: var(--sh-3); font-size: 12.5px; color: var(--ink-2); }
.tip b { display: block; color: var(--ink); font-size: 12.5px; margin-bottom: 4px; }
.tip div { display: flex; align-items: center; gap: 2px; line-height: 1.7; }
.tip div span { margin-left: auto; padding-left: 14px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.sv-r { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.sv-n { font-size: 13px; color: var(--ink-2); }
.sv-e { font-size: 13px; color: var(--ink-3); }
.sv-bar { display: flex; gap: 2px; height: 22px; }
.sv-bar i { display: block; height: 100%; border-radius: 4px; min-width: 4px; transition: width .5s; }
.sv-bar i.c1 { background: var(--c1); } .sv-bar i.c2 { background: var(--c2); }
.sv-v { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-2); }
.sv-v b { color: var(--ink); }
.sv-x { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; line-height: 1.5; }

.ledger.sl td { vertical-align: middle; }
.sbar { position: relative; height: 8px; background: var(--bg-2); border-radius: 999px; margin: 3px 0 4px; }
.sbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c1); border-radius: 999px; }
.sbar u { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 2px; }
.pl-in { width: 96px; height: 32px; text-align: right; padding: 0 8px; border: 1px solid var(--rule-2); border-radius: 8px;
  background: var(--sheet); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; }
.pl-in:focus { outline: none; border-color: var(--cy); box-shadow: 0 0 0 3px var(--navy-soft); }
.ana-hint { margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }

/* yuqori panel: tablar ko'p bo'lsa sig'maydi — siqiladi, kerak bo'lsa suriladi */
.tabs { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; white-space: nowrap; }
.top-r { flex: none; }
.who > div { white-space: nowrap; }
@media (max-width: 1640px) {
  .searchbtn { min-width: 0; }
  .searchbtn > span:not(.kbd) { display: none; }
}
@media (max-width: 1380px) { .searchbtn .kbd { display: none; } .who > div { display: none; } }

/* ===================== NARX HISOBLASH JARAYONI ===================== */
.fd.a { border-left-color: var(--amb); }
.fsel { height: 34px; padding: 0 10px; border: 1px solid var(--rule-2); border-radius: var(--r-sm); background: var(--sheet);
  color: var(--ink); font: inherit; font-size: 13px; box-shadow: var(--sh-1); }
.fsel:focus { outline: none; border-color: var(--cy); box-shadow: 0 0 0 3px var(--navy-soft); }
input.fsel { width: 200px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--r-sm); }
.seg span { padding: 5px 12px; font-size: 13px; border-radius: 7px; cursor: pointer; color: var(--ink-2); user-select: none; }
.seg span.on { background: var(--sheet); color: var(--ink); font-weight: 600; box-shadow: var(--sh-1); }
.mini .mini-s { font-style: normal; font-size: 11.5px; color: var(--ink-3); }

.funnel { display: flex; align-items: stretch; gap: 6px; margin: 4px 0 2px; }
.fn { flex: 1 1 0; min-width: 0; padding: 12px 14px; background: var(--sheet); border: 1px solid var(--rule);
  border-top: 3px solid var(--rule-2); border-radius: var(--r); box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 2px; }
.fn.pending { border-top-color: var(--cy); } .fn.calculated { border-top-color: var(--amb); }
.fn.sold { border-top-color: var(--lime); } .fn.lost { border-top-color: var(--pink); }
.fn-t { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.fn b { font-size: 26px; font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--ink); }
.fn-s { font-size: 12px; color: var(--ink-3); }
.fn-s em { font-style: normal; color: var(--pink); font-weight: 600; }
.fn-ar { align-self: center; color: var(--ink-3); font-size: 18px; }
@media (max-width: 1000px) { .funnel { flex-wrap: wrap; } .fn { flex-basis: 30%; } .fn-ar { display: none; } }

.late { background: var(--sheet); border: 1px solid var(--red-line); border-radius: var(--r); box-shadow: var(--sh-1); overflow: hidden; }
.late-r { display: grid; grid-template-columns: 96px 118px minmax(120px, 1fr) minmax(0, 2fr) auto; gap: 12px; align-items: center;
  padding: 9px 14px; border-bottom: 1px solid var(--rule); font-size: 13px; cursor: pointer; }
.late-r:last-child { border-bottom: 0; }
.late-r:hover { background: var(--sheet-2); }
.late-r .chip { justify-self: start; }
.late-w { color: var(--ink-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.late-ok { padding: 12px 14px; border: 1px solid var(--green-line); background: var(--green-soft); color: var(--lime);
  border-radius: var(--r); font-size: 13.5px; font-weight: 550; margin-top: 18px; }

.kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.kb { background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--r); min-width: 0; display: flex; flex-direction: column; }
.kb header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 12px 8px;
  border-top: 3px solid var(--rule-2); border-radius: var(--r) var(--r) 0 0; }
.kb.pending header { border-top-color: var(--cy); } .kb.calculated header { border-top-color: var(--amb); }
.kb.sold header { border-top-color: var(--lime); } .kb.lost header { border-top-color: var(--pink); }
.kb header b { font-size: 13.5px; } .kb header span { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.kb-l { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 8px; max-height: 560px; overflow-y: auto; }
.kb-e { font-size: 12.5px; color: var(--ink-3); text-align: center; padding: 16px 4px; }
.kc { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 11px; box-shadow: var(--sh-1);
  cursor: pointer; transition: box-shadow .15s, transform .15s; }
.kc:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.kc.is-late { border-color: var(--red-line); box-shadow: inset 3px 0 0 var(--pink), var(--sh-1); }
.kc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.kc-h b { font-size: 12.5px; }
.kc-t { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kc-t.late { color: var(--pink); font-weight: 650; }
.kc-c { font-size: 13.5px; font-weight: 600; margin-top: 4px; color: var(--ink); }
.kc-m { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.kc-f { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 11.5px; color: var(--ink-3); margin-top: 7px; }
.kc-f b { margin-left: auto; color: var(--ink); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.kc-w { font-size: 11.5px; color: var(--amb); margin-top: 6px; line-height: 1.4; }

.steps { position: relative; padding: 4px 0 0; }
.pst { position: relative; display: flex; gap: 12px; padding: 0 0 16px; }
.pst:not(:last-child)::before { content: ''; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--rule); }
.pst.done:not(:last-child)::before { background: var(--lime); }
.pst > i { flex: 0 0 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--rule-2); background: var(--sheet); }
.pst.done > i { background: var(--lime); border-color: var(--lime); }
.pst.bad > i { background: var(--pink); border-color: var(--pink); }
.pst.wait > i { border-color: var(--cy); box-shadow: 0 0 0 4px var(--navy-soft); }
.pst.wait.late > i { border-color: var(--pink); box-shadow: 0 0 0 4px var(--red-soft); }
.pst b { display: block; font-size: 13.5px; font-weight: 600; }
.pst span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.pst.wait.late span { color: var(--pink); font-weight: 550; }
.pst em { display: inline-block; margin-top: 3px; font-style: normal; font-size: 11.5px; color: var(--ink-3);
  background: var(--bg-2); border-radius: 6px; padding: 1px 6px; font-variant-numeric: tabular-nums; }

/* =============================== KPI =============================== */
.drawer.wide { width: min(1180px, 96vw); }
.chk { display: flex; align-items: center; gap: 8px; height: 40px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--cy); }
.kp-hero { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.kp-hero > div { flex: 1 1 220px; padding: 16px 18px; background: var(--sheet); border: 1px solid var(--rule);
  border-radius: var(--r); box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 3px; }
.kp-hero > div:first-child { flex: 2 1 300px; border-color: var(--navy-line, var(--rule)); background: linear-gradient(135deg, var(--navy-soft), var(--sheet) 70%); }
.kp-hero span { font-size: 12.5px; color: var(--ink-2); }
.kp-hero b { font-size: 30px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.kp-hero > div:first-child b { font-size: 38px; color: var(--cy); }
.kp-hero i { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.kp-g { padding: 14px 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--sh-1); }
.kp-g.ok { border-color: var(--green-line); }
.kp-g.ok .pl-bar i { background: var(--lime); }
.kp-gt { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.kp-gt span { color: var(--ink-2); font-size: 13px; }
.kp-g.ok .kp-gt span { color: var(--lime); font-weight: 600; }
@media (max-width: 1100px) { .kpis[style*="repeat(6"] { grid-template-columns: repeat(3, minmax(0,1fr)) !important; } }
.kp-rules { margin-top: 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 16px; }
.kp-rules summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.kp-rg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.kp-rg > div > b { display: block; font-size: 13px; margin-bottom: 6px; }
@media (max-width: 1000px) { .kp-rg { grid-template-columns: 1fr; } }

/* ========================== OMBOR SIG'IMI ========================== */
.wh-cap { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--sh-1); padding: 16px; }
.wh-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.wh-dn { position: relative; width: 168px; height: 168px; flex: none; }
.wh-dn svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dn-bg { fill: none; stroke: var(--bg-2); stroke-width: 22; }
.dn { fill: none; stroke-width: 22; transition: opacity .15s; }
.dn.g { stroke: var(--lime); } .dn.a { stroke: var(--amb); } .dn.r { stroke: var(--pink); } .dn.f { stroke: var(--ink-3); opacity: .28; }
.dn.dim { opacity: .25; }
.wh-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wh-c b { font-size: 34px; font-weight: 700; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.wh-c span { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.wh-lg { flex: 1 1 220px; min-width: 0; }
.wh-st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid; margin-bottom: 8px; }
.wh-st i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wh-st.g { color: var(--lime); background: var(--green-soft); border-color: var(--green-line); }
.wh-st.a { color: var(--amb); background: var(--amber-soft); border-color: var(--amber-line); }
.wh-st.r { color: var(--pink); background: var(--red-soft); border-color: var(--red-line); }
.wh-big { font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.wh-big b { color: var(--ink); font-variant-numeric: tabular-nums; }
.wh-r { display: grid; grid-template-columns: 16px 1fr auto 64px; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--rule); font-size: 13px; cursor: default; }
.wh-r b { font-variant-numeric: tabular-nums; }
.wh-r em { font-style: normal; font-size: 12px; color: var(--ink-3); text-align: right; }
.sw.g { background: var(--lime); } .sw.a { background: var(--amb); } .sw.r { background: var(--pink); } .sw.f { background: var(--ink-3); opacity: .45; }
.sw.capk { height: 0; width: 14px; border-top: 2px dashed var(--ink); border-radius: 0; vertical-align: 3px; }
.wh-fc { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.wh-warn { font-size: 12.5px; font-weight: 600; color: var(--pink); background: var(--red-soft); border: 1px solid var(--red-line); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.chart .fb.c1 { fill: var(--c1); } .chart .fb.c2 { fill: var(--c2); }
.chart .cap { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 4; }
.chart .capt { font-size: 11px; font-weight: 600; fill: var(--ink); font-family: var(--text); }

/* ========================= YUK QAYERDA / MEDIA ========================= */
.sect-row { display: flex; align-items: center; gap: 8px; }
.sect-row .n { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.where { background: var(--sheet-2); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px; }
.where-h { display: flex; gap: 10px; align-items: flex-start; }
.where-h b { display: block; font-size: 14.5px; font-weight: 650; letter-spacing: -.015em; color: var(--ink); }
.where-h span { font-size: 12.5px; color: var(--ink-3); }
.where-dot { flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--cy); box-shadow: 0 0 0 4px var(--navy-soft); animation: breathe 3.6s ease-in-out infinite; }
.where-dot.done { background: var(--lime); box-shadow: 0 0 0 4px var(--green-soft); animation: none; }
.route { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin: 16px 0 12px; }
.rt { position: relative; text-align: center; padding-top: 18px; min-width: 0; }
.rt::before { content: ''; position: absolute; top: 6px; left: -50%; right: 50%; height: 3px; background: var(--rule-2); border-radius: 2px; }
.rt:first-child::before { display: none; }
.rt.done::before, .rt.now::before { background: var(--cy); }
.rt > i { position: absolute; top: 0; left: 50%; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: var(--sheet); border: 3px solid var(--rule-2); z-index: 1; }
.rt.done > i { background: var(--cy); border-color: var(--cy); }
.rt.now > i { background: var(--sheet); border-color: var(--cy); box-shadow: 0 0 0 4px var(--navy-soft); }
.rt b { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.rt.now b { color: var(--cy); }
.rt span { display: block; font-size: 10.5px; color: var(--ink-3); }
.map-seg { margin: 4px 0 8px; }
.yk-map { height: 230px; border-radius: 10px; overflow: hidden; }
.map-cap a { color: var(--cy); font-weight: 550; text-decoration: none; }
.where-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.where-mini:hover { color: var(--cy); }
.wd { width: 8px; height: 8px; border-radius: 50%; background: var(--cy); }
.wd.s0 { background: var(--ink-3); } .wd.s4, .wd.s5 { background: var(--lime); } .wd.s6 { background: var(--ink-3); }
.wd.s2, .wd.s3 { background: var(--amb); }

.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.md { position: relative; aspect-ratio: 1; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; padding: 0;
  background: var(--bg-2); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .15s, box-shadow .15s; }
.md:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.md img, .md video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.md .play { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: rgba(13,18,32,.6); color: #fff;
  display: grid; place-items: center; font-size: 13px; padding-left: 3px; }
.md .dn-ic { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.md em { position: absolute; left: 0; right: 0; bottom: 0; font-style: normal; font-size: 10.5px; color: #fff; padding: 12px 6px 4px;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.md.doc em { color: var(--ink-2); background: none; }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(5,8,15,.86); display: none; align-items: center; justify-content: center; }
.lb.on { display: flex; }
.lb-in { max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lb-in img, .lb-in video { max-width: 92vw; max-height: 80vh; border-radius: 10px; background: #000; }
.lb-cap { color: #cfd6e4; font-size: 13px; }
.lb-x, .lb-p, .lb-n { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.lb-x { top: 18px; right: 18px; } .lb-p { left: 18px; top: 50%; } .lb-n { right: 18px; top: 50%; }
.lb-x:hover, .lb-p:hover, .lb-n:hover { background: rgba(255,255,255,.22); }

/* ==================== IMPORT (mijozlarni ko'chirish) ==================== */
.imp-steps { display: flex; gap: 6px; margin: 16px 0 18px; flex-wrap: wrap; }
.imp-st { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
  border: 1px solid var(--rule); border-radius: var(--r-pill); background: var(--sheet);
  font-size: 13px; color: var(--ink-3); }
.imp-st i { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); color: var(--ink-3); font-style: normal; font-size: 11.5px; font-weight: 700; }
.imp-st b { font-weight: 550; }
.imp-st.on { border-color: var(--navy-line); background: var(--navy-soft); color: var(--cy); }
.imp-st.on i { background: var(--cy); color: #fff; }
.imp-st.done { color: var(--lime); border-color: var(--green-line); background: var(--green-soft); }
.imp-st.done i { background: var(--lime); color: #fff; }

.imp-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 52px 20px; border: 2px dashed var(--rule-2); border-radius: var(--r-lg);
  background: var(--sheet); cursor: pointer; transition: border-color .16s, background .16s; text-align: center; }
.imp-drop:hover, .imp-drop.hot { border-color: var(--cy); background: var(--navy-soft); }
.imp-drop b { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.imp-drop span { font-size: 13px; color: var(--ink-3); }

.imp-help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 1100px) { .imp-help { grid-template-columns: 1fr; } }
.imp-p { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.imp-p .mono { font-family: var(--mono); font-size: 12px; }

.imp-file { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.imp-file em { font-style: normal; color: var(--amb); }

.imp-map { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 4px; }
.imp-row { display: grid; grid-template-columns: 1fr 28px 230px; gap: 10px; align-items: center;
  padding: 9px 12px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); }
@media (max-width: 760px) { .imp-row { grid-template-columns: 1fr; } .imp-arr { display: none; } }
.imp-col { min-width: 0; }
.imp-col b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-col span { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-arr { text-align: center; color: var(--ink-3); }
.imp-sel { width: 100%; }

.imp-opts { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0 4px; }
.imp-o { display: flex; flex-direction: column; gap: 5px; }
.imp-o > span { font-size: 12.5px; color: var(--ink-3); }

.imp-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.imp-foot .btn { margin-left: auto; }
.imp-foot .btn + .btn { margin-left: 0; }
.imp-warn { font-size: 12.5px; color: var(--ink-3); }

/* ======================= AI YORDAMCHISI ======================= */
.ai { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: var(--sh-1); padding: 13px 15px; margin: 14px 0 18px; }
.ai.off { opacity: .85; }
.ai-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ai-h svg { color: var(--cy); flex: none; }
.ai-h b { font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; }
.ai-h span { font-size: 12.5px; color: var(--ink-3); }
.ai-in { display: flex; gap: 8px; }
.ai-in input { flex: 1; min-width: 0; height: 38px; padding: 0 13px; font: inherit; font-size: 13.5px;
  color: var(--ink); background: var(--bg-2); border: 1px solid var(--rule-2); border-radius: 10px; }
.ai-in input:focus { outline: none; border-color: var(--cy); box-shadow: var(--ring); }
.ai-in input:disabled { opacity: .55; }
.ai-in .btn { height: 38px; flex: none; }
.ai-tip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ai-t { border: 1px solid var(--rule-2); background: transparent; color: var(--ink-2);
  font: inherit; font-size: 12px; padding: 5px 11px; border-radius: var(--r-pill); cursor: pointer;
  transition: border-color .15s, color .15s; }
.ai-t:hover:not(:disabled) { border-color: var(--cy); color: var(--cy); }
.ai-t:disabled { opacity: .45; cursor: not-allowed; }

.ai-a { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--rule); }
.ai-q { font-size: 12.5px; color: var(--ink-3); margin-bottom: 7px; }
.ai-q::before { content: '— '; }
.ai-txt { font-size: 14px; line-height: 1.62; color: var(--ink); }
.ai-err { margin-top: 13px; padding: 11px 13px; border-radius: 10px; font-size: 13px;
  background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--ink); }
.ai-err span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }

.ai-wait { display: flex; gap: 5px; padding: 16px 2px; }
.ai-wait i { width: 7px; height: 7px; border-radius: 50%; background: var(--cy); opacity: .3;
  animation: aipulse 1.1s ease-in-out infinite; }
.ai-wait i:nth-child(2) { animation-delay: .16s } .ai-wait i:nth-child(3) { animation-delay: .32s }
@keyframes aipulse { 0%, 100% { opacity: .25; transform: scale(.85) } 50% { opacity: 1; transform: scale(1) } }

.ai-src { margin-top: 11px; }
.ai-src summary { font-size: 12.5px; color: var(--ink-3); cursor: pointer; list-style: none; }
.ai-src summary::-webkit-details-marker { display: none; }
.ai-src summary::before { content: '▸ '; }
.ai-src[open] summary::before { content: '▾ '; }
.ai-src summary:hover { color: var(--cy); }
.ai-s { margin-top: 9px; padding: 9px 11px; background: var(--bg-2); border-radius: 9px; }
.ai-s > b { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); margin-bottom: 6px; }
.ai-sub { font-size: 11.5px; color: var(--ink-3); margin: 8px 0 4px; }
.ai-kv { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; }
.ai-kv > div { display: flex; gap: 6px; }
.ai-kv span { color: var(--ink-3); }
.ai-kv b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ai-tb { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 2px; }
.ai-tb th { text-align: left; padding: 4px 8px 4px 0; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.ai-tb td { padding: 3px 8px 3px 0; border-top: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.ai-nil { color: var(--ink-3); }
.ai-more { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }

/* ------------------------------------------------------- amoCRM bloki */
.amo { font-size: 12.5px; }
.amo-yuk, .amo-ogoh { padding: 9px 11px; background: var(--bg-2); border-radius: 9px;
  color: var(--ink-3); font-size: 12.5px; }
.amo-ogoh { color: var(--ink-2); }
.amo-tugma { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.amo-tugma .btn { text-decoration: none; display: inline-flex; align-items: center; }

.amo-qidir { display: flex; gap: 8px; }
.amo-qidir input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; font: inherit; font-size: 12.5px;
  border: 1px solid var(--rule-2); border-radius: 8px; background: var(--sheet); color: var(--ink); }
.amo-qidir input:focus { outline: none; border-color: var(--cy); }
.amo-natija:not(:empty) { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.amo-r { display: flex; gap: 10px; align-items: center; padding: 9px 11px;
  background: var(--bg-2); border-radius: 9px; }
.amo-r-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.amo-r-m b { font-size: 12.5px; font-weight: 600; }
.amo-r .lbl { white-space: nowrap; }

.amo-jurnal { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.amo-j { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--ink-3); }
.amo-j > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }

/* ================================================== HISOB-FAKTURA */
#hfOyna{position:fixed;inset:0;z-index:9000;display:none}
#hfOyna.on{display:block}
#hfOyna .hf-fon{position:absolute;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(2px)}
#hfOyna .hf-quti{position:relative;margin:4vh auto;max-height:92vh;display:flex;flex-direction:column;
  background:var(--surface,#15171b);border:1px solid var(--line,#2a2e35);border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);overflow:hidden}
.hf-h{display:flex;align-items:flex-start;gap:12px;padding:16px 18px 12px;border-bottom:1px solid var(--line,#2a2e35)}
.hf-t{font-size:17px;font-weight:600}
.hf-sub{font-size:12px;opacity:.65;margin-top:3px}
.hf-yop{margin-left:auto;background:none;border:0;color:inherit;font-size:22px;line-height:1;
  cursor:pointer;opacity:.6;padding:0 4px}
.hf-yop:hover{opacity:1}
.hf-b{padding:16px 18px;overflow:auto;flex:1}
.hf-f{display:flex;gap:10px;justify-content:flex-end;padding:13px 18px;border-top:1px solid var(--line,#2a2e35)}
.hf-ogoh{background:rgba(214,154,74,.13);border-left:3px solid #D69A4A;border-radius:6px;
  padding:9px 12px;font-size:12.5px;margin-bottom:12px}
.hf-tbl{width:100%;border-collapse:collapse;font-size:13px}
.hf-tbl th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.04em;
  opacity:.6;padding:5px 6px;font-weight:600}
.hf-tbl th.num,.hf-tbl td.num{text-align:right}
.hf-tbl td{padding:3px 6px}
.hf-tbl input{width:100%;background:var(--sunk,#1b1e24);border:1px solid var(--line,#2a2e35);
  border-radius:6px;padding:6px 8px;color:inherit;font:inherit}
.hf-tbl input.num{text-align:right}
.hf-x{background:none;border:0;color:inherit;opacity:.45;cursor:pointer;font-size:17px;padding:0 5px}
.hf-x:hover{opacity:1;color:#C0304F}
.hf-pas{display:flex;gap:16px;flex-wrap:wrap;margin:16px 0 4px}
.hf-pas label{display:flex;flex-direction:column;gap:4px;font-size:11.5px;opacity:.8}
.hf-pas input,.hf-pas select{background:var(--sunk,#1b1e24);border:1px solid var(--line,#2a2e35);
  border-radius:6px;padding:6px 9px;color:inherit;font:inherit;min-width:110px}
.hf-jami{margin-top:14px;padding-top:12px;border-top:1px solid var(--line,#2a2e35);
  display:flex;flex-direction:column;gap:5px;align-items:flex-end;font-size:13px}
.hf-jami div{display:flex;gap:22px;min-width:240px;justify-content:space-between}
.hf-jami span{opacity:.6}
.hf-jami b{font-variant-numeric:tabular-nums}
.hf-jami .big{font-size:16px;font-weight:600;padding-top:5px}

/* ---- chop etiladigan varaq ---- */
.hf-varaq{background:#fff;color:#111;padding:26px 30px;border-radius:8px;font-size:12.5px;line-height:1.45}
.hf-sarlavha{border-bottom:2px solid #111;padding-bottom:10px;margin-bottom:14px}
.hf-nom{font-size:16px;font-weight:700}
.hf-rek{display:grid;grid-template-columns:1fr 1fr;gap:1px 20px;margin-top:6px;font-size:11px}
.hf-rek span{opacity:.55;margin-right:5px}
.hf-unvon{font-size:16px;font-weight:700;text-align:center;margin:12px 0 16px}
.hf-unvon span{font-weight:400;opacity:.6;font-size:13px}
.hf-taraf{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:14px}
.hf-taraf>div{border:1px solid #d6d6d6;border-radius:6px;padding:8px 11px}
.hf-taraf span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.05em;opacity:.55}
.hf-taraf b{display:block;margin-top:2px}
.hf-taraf em{display:block;font-style:normal;font-size:11px;opacity:.75}
.hf-chop{width:100%;border-collapse:collapse;font-size:11.5px}
.hf-chop th,.hf-chop td{border:1px solid #c9c9c9;padding:5px 7px}
.hf-chop th{background:#f1f3f6;font-size:10px;text-transform:uppercase;letter-spacing:.04em}
.hf-chop .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.hf-chop tfoot td{background:#fafafa}
.hf-chop tfoot td:first-child{text-align:right;opacity:.7}
.hf-chop tfoot .jami td{font-weight:700;background:#f1f3f6}
.hf-soz{margin-top:9px;font-size:12px}
.hf-soz b::first-letter{text-transform:uppercase}
.hf-soz em{font-style:normal;opacity:.6;font-size:11px}
.hf-muddat{margin-top:4px;font-size:12px}
.hf-imzo{display:grid;grid-template-columns:1fr 1fr 110px;gap:22px;margin-top:34px;align-items:end}
.hf-imzo span{display:block;font-size:10.5px;opacity:.6}
.hf-imzo i{display:block;border-bottom:1px solid #111;height:20px;margin-top:2px}
.hf-imzo em{display:block;font-style:normal;font-size:10px;opacity:.55;margin-top:3px}
.hf-imzo .muhr{text-align:center;opacity:.5}

@media print{
  html,body{background:#fff!important;color:#111!important;height:auto!important}
  body>*{display:none!important}
  #hfOyna,#hfOyna.on{display:block!important;position:static;inset:auto;background:#fff!important}
  #hfOyna .hf-fon,.noprint{display:none!important}
  #hfOyna .hf-quti{margin:0;max-width:none!important;max-height:none;height:auto;
    border:0;box-shadow:none;background:#fff!important;display:block;overflow:visible}
  .hf-b{padding:0;overflow:visible;background:#fff!important}
  .hf-varaq{padding:0;border-radius:0;background:#fff!important;color:#111!important}
  .hf-soz b::first-letter{text-transform:uppercase}
  @page{size:A4;margin:14mm}
}

/* ======================= KALKULYATSIYA (kalk.js) =======================
   Deklarant tannarxni bosqichlarga bo'lib kiritadigan jadval. */
.kl-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 6px; }
.kl-m {
  flex: 1 1 110px; min-width: 0; background: var(--bg-2); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 7px 10px; display: flex; flex-direction: column; gap: 2px;
}
.kl-m.on { border-color: var(--cy, var(--amb)); background: var(--sheet); }
.kl-m span { font-size: 11px; color: var(--ink-3); }
.kl-m b { font-size: 13px; font-variant-numeric: tabular-nums; }

.kl-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.kl-tbl th {
  text-align: left; font-size: 11px; font-weight: 600; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .04em; padding: 0 6px 5px; border-bottom: 1px solid var(--rule);
}
.kl-tbl th.r, .kl-tbl td.r { text-align: right; }
.kl-tbl td { padding: 5px 6px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.kl-tbl select {
  width: 100%; height: 28px; border: 1px solid var(--rule-2); border-radius: 5px;
  background: var(--sheet); color: var(--ink); font: inherit; font-size: 12px; padding: 0 4px;
}
.kl-in {
  width: 100%; height: 28px; border: 1px solid var(--rule-2); border-radius: 5px;
  background: var(--sheet); color: var(--ink); font: inherit; font-size: 12px; padding: 0 6px;
  font-variant-numeric: tabular-nums;
}
.kl-in[readonly], .kl-in:disabled { background: var(--bg-2); color: var(--ink-3); }
.kl-mini { margin-top: 4px; height: 24px; font-size: 11.5px; }
.kl-x {
  width: 24px; height: 24px; border: 1px solid var(--rule-2); border-radius: 5px;
  background: var(--sheet); color: var(--ink-3); cursor: pointer; font-size: 15px; line-height: 1;
}
.kl-x:hover { border-color: var(--pink); color: var(--pink); }
.kl-tbl tfoot td { border-bottom: 0; padding-top: 7px; font-size: 13px; }

.kl-nat { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.kl-n {
  flex: 1 1 110px; min-width: 0; border: 1px solid var(--rule); border-radius: var(--r);
  padding: 7px 10px; display: flex; flex-direction: column; gap: 2px; background: var(--sheet);
}
.kl-n span { font-size: 11px; color: var(--ink-3); }
.kl-n b { font-size: 14px; font-variant-numeric: tabular-nums; }
.kl-n.bad { border-color: var(--pink); } .kl-n.bad b { color: var(--pink); }
.kl-n.warnk { border-color: var(--amb); } .kl-n.warnk b { color: var(--amb); }
.ledger tr.kl-tot td { border-top: 1px solid var(--rule-2); }

@media (max-width: 560px) {
  .kl-tbl { font-size: 12px; }
  .kl-tbl th:nth-child(2), .kl-tbl td:nth-child(2) { display: none; }
}

/* ===================== OMBORGA QABUL QILISH (updater.js) ===================== */
.u-tbl td { vertical-align: top; }
.u-tbl .sub { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.u-seg { margin-left: auto; }

/* Shartnoma va haqiqat farqi */
.u-farq {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 10px;
  font-size: 11px; background: var(--bg-2); color: var(--ink-3); border: 1px solid var(--rule);
}
.u-farq.ogoh { background: rgba(217, 119, 6, .12); color: var(--amb); border-color: transparent; }

.u-farqbox { margin: 8px 0 2px; }
.u-farqrow {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 11px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--bg-2); font-size: 12.5px;
}
.u-farqrow span { color: var(--ink-3); }
.u-farqrow b { font-variant-numeric: tabular-nums; }
.u-farqrow.ogoh { border-color: var(--amb); }
.u-farqrow.ogoh b { color: var(--amb); }

.ok-box {
  padding: 9px 11px; border: 1px solid var(--rule); border-left: 3px solid var(--lime);
  border-radius: var(--r); background: var(--bg-2); font-size: 12.5px; color: var(--ink-2, var(--ink));
}
.past { color: var(--pink); }
.u-tbl .sub.past { color: var(--pink); }
