@import url("/assets/font.css?v=ukij1");

:root {
  --red: #FE0027;
  --pink: #F40264;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e8edf3;
  --bg: #f0f3f8;
  --card: #ffffff;
  --ok: #10b981;
  --side: #ffffff;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 14px 36px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --g-blue: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  --g-amber: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --g-violet: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  --g-rose: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
  --g-teal: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
  --g-indigo: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  --g-brand: linear-gradient(135deg, #FE0027 0%, #F40264 100%);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "UKIJ Tor", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  direction: rtl;
  line-height: 1.55;
}
input, textarea, select, button, a, table, th, td, label, h1, h2, h3, p, span, div, nav {
  font-family: "UKIJ Tor", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
}
a { color: #e11d48; text-decoration: none; }
button { cursor: pointer; }

/* —— كىرىش —— */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 420px at 90% 10%, rgba(244, 2, 100, 0.18), transparent 55%),
    radial-gradient(700px 360px at 10% 90%, rgba(59, 130, 246, 0.14), transparent 50%),
    linear-gradient(160deg, #1e1b4b 0%, #FE0027 48%, #F40264 100%);
}
.login-card {
  width: 420px;
  max-width: 100%;
  background: #fff;
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.login-card .logo-word {
  font-size: 34px;
  font-weight: 900;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 6px;
}
.login-card h1 { margin: 0 0 4px; font-size: 22px; }
.login-card .sub { margin: 0 0 20px; color: var(--muted); font-weight: 700; }
.login-card label { font-weight: 800; display: block; margin: 0 0 6px; }
.login-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 14px;
}

/* —— ئومۇمىي جايلاشتۇرۇش —— */
.layout { display: flex; min-height: 100vh; }
.side {
  width: 236px;
  flex-shrink: 0;
  background: #fff;
  color: var(--ink);
  padding: 18px 12px 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  border-left: 1px solid var(--line);
  box-shadow: -4px 0 24px rgba(15, 23, 42, 0.04);
  overflow-y: auto;
}
.brand {
  padding: 8px 12px 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.brand-word {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 700;
}
.nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4b5563;
  padding: 11px 14px;
  border-radius: 12px;
  margin-bottom: 3px;
  font-weight: 700;
  font-size: 14px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav a:hover {
  background: #f8fafc;
  color: var(--ink);
}
.nav a.on {
  background: var(--g-brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(244, 2, 100, 0.28);
}
.nav .dot {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: var(--pink);
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav a.on .dot {
  background: rgba(255, 255, 255, 0.95);
  color: #e11d48;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 20px 24px 48px;
}
.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.top h2 { margin: 0; font-size: 20px; font-weight: 900; }
.top .desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.top-actions { display: flex; align-items: center; gap: 8px; }
.user-chip {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  font-size: 14px;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-red {
  background: var(--g-brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(244, 2, 100, 0.22);
}
.btn-dark { background: #111827; color: #fff; }
.btn-line {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-blue { background: var(--g-blue); color: #fff; }
.btn-amber { background: var(--g-amber); color: #fff; }
.btn-ship-white {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* —— ئاق كارتا —— */
.stat, .card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.stat { position: relative; overflow: hidden; }
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 5px;
  background: var(--g-brand);
}
.stat-blue::before { background: var(--g-blue); }
.stat-green::before { background: var(--g-teal); }
.stat-gold::before { background: var(--g-amber); }
.stat-pink::before { background: var(--g-rose); }
.stat-blue .n { color: #2563eb; }
.stat-green .n { color: #0d9488; }
.stat-gold .n { color: #d97706; }
.stat-pink .n { color: #e11d48; }
.stat .n { font-size: 28px; font-weight: 900; color: var(--pink); letter-spacing: -0.02em; }
.stat .l { color: var(--muted); margin-top: 4px; font-weight: 700; font-size: 13px; }
.stat .s { margin-top: 6px; font-size: 12px; color: #9ca3af; font-weight: 700; }
.card { margin-top: 14px; }
.grid2 > .card, .grid3 > .card, .grid4 > .card { margin-top: 0; }
.card h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: -4px 0 12px;
}

/* —— رەڭلىك چوڭ كارتا (باش ئۈستەل) —— */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px 18px 16px;
  color: #fff;
  min-height: 128px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  left: -28px;
  bottom: -40px;
  pointer-events: none;
}
.hero-card.hc-blue { background: var(--g-blue); }
.hero-card.hc-amber { background: var(--g-amber); }
.hero-card.hc-violet { background: var(--g-violet); }
.hero-card.hc-rose { background: var(--g-rose); }
.hero-card.hc-teal { background: var(--g-teal); }
.hero-card.hc-indigo { background: var(--g-indigo); }
.hero-card.hc-brand { background: var(--g-brand); }
.hero-card .hc-title {
  font-size: 14px;
  font-weight: 800;
  opacity: 0.95;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}
.hero-card .hc-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.hero-card .hc-num {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.hero-card .hc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  opacity: 0.95;
  text-align: left;
}
.hero-card .hc-list li {
  white-space: nowrap;
}
.hero-card .hc-list b {
  font-weight: 900;
  margin-right: 4px;
}

/* —— تېز كىرىش كارتىلىرى —— */
.map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.map a {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  color: inherit;
  border: 1px solid #eef2f7;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.map a::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--g-brand);
}
.map a:nth-child(4n+1)::before { background: var(--g-blue); }
.map a:nth-child(4n+2)::before { background: var(--g-teal); }
.map a:nth-child(4n+3)::before { background: var(--g-amber); }
.map a:nth-child(4n)::before { background: var(--g-rose); }
.map a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.map b { display: block; font-size: 15px; font-weight: 900; }
.map span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-top: 14px;
}
.panel-grid .card { margin-top: 0; }

.mode-card {
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.mode-card.is-on {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 55%);
}
.mode-card.is-off {
  border-color: #fecdd3;
  background: linear-gradient(180deg, #fff1f2 0%, #fff 55%);
}
.mode-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 900; }
.mode-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tabs a {
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}
.tabs a.on {
  background: var(--g-brand);
  color: #fff;
  border-color: transparent;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 12px 8px;
  text-align: right;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  background: #f8fafc;
}
td { font-size: 14px; }
tr:hover td { background: #fafbfc; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.b-ship { background: #fff7ed; color: #c2410c; }
.b-done { background: #ecfdf5; color: #047857; }
.b-back { background: #fff1f2; color: #be123c; }
.b-gold { background: #fffbeb; color: #b45309; }
.b-silver { background: #f1f5f9; color: #475569; }
.b-ord { background: #f3f4f6; color: #6b7280; }
.b-on { background: #ecfdf5; color: #047857; }
.b-off { background: #f3f4f6; color: #9ca3af; }
.b-wait { background: #fff1f2; color: #be123c; }

.form { display: grid; gap: 12px; }
.form-wide { max-width: 720px; }
label { font-weight: 800; display: block; margin-bottom: 6px; font-size: 13px; }
.help { color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 4px; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.flash {
  background: #ecfdf5;
  color: #047857;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid #a7f3d0;
}
.flash.flash-warn {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
.err {
  background: #fff1f2;
  color: #be123c;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid #fecdd3;
}
.thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
  background: #f8fafc;
}
.empty {
  color: var(--muted);
  padding: 28px 12px;
  text-align: center;
  font-weight: 700;
}

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi-box {
  background: #fff7fa;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #f4d5e0;
}
.kpi-box .k { color: var(--muted); font-size: 12px; font-weight: 800; }
.kpi-box .v { font-size: 22px; font-weight: 900; color: var(--pink); margin-top: 4px; }
.kpi-box .u { color: #b08998; font-size: 12px; font-weight: 700; margin-top: 4px; }
.kpi-box.keep { background: #f8fafc; border-color: #e2e8f0; }
.kpi-box.keep .v { color: var(--ink); }
.kpi-box.ok { background: #ecfdf5; border-color: #a7f3d0; }
.kpi-box.ok .v { color: #047857; }
.kpi-box.warn { background: #fff7ed; border-color: #fed7aa; }
.kpi-box.warn .v { color: #c2410c; }

.split-row {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 10px;
  align-items: end;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.split-row:last-child { border-bottom: 0; }
.split-row .amt { font-weight: 900; color: var(--pink); font-size: 16px; }
.split-row .sub { color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 4px; }

.bar {
  height: 12px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  direction: ltr;
}
.bar span { display: block; height: 100%; }
.bar .co { background: #94a3b8; }
.bar .si { background: #cbd5e1; }
.bar .go { background: #F40264; }
.bar .lf { background: #fbbf24; }

.live-note { font-weight: 800; font-size: 13px; margin-top: 8px; }
.live-note.ok { color: #047857; }
.live-note.wait { color: #c2410c; }

.sub { color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 3px; }
.muted { color: var(--muted); font-weight: 700; }
.addr-cell { max-width: 280px; line-height: 1.45; }

.mini-trend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.mini-trend .mt-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid #eef2f7;
}
.mini-trend .mt-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  margin: 0 0 8px;
}
.mini-trend .mt-val {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 10px;
}
.mini-trend .mt-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
  direction: ltr;
}
.mini-trend .mt-bars i {
  flex: 1;
  display: block;
  border-radius: 4px 4px 2px 2px;
  min-height: 6px;
  opacity: 0.9;
}
.mt-blue .mt-val { color: #2563eb; }
.mt-blue .mt-bars i { background: var(--g-blue); }
.mt-amber .mt-val { color: #d97706; }
.mt-amber .mt-bars i { background: var(--g-amber); }
.mt-violet .mt-val { color: #7c3aed; }
.mt-violet .mt-bars i { background: var(--g-violet); }
.mt-rose .mt-val { color: #e11d48; }
.mt-rose .mt-bars i { background: var(--g-rose); }

html.is-phone, html.is-phone body {
  -webkit-text-size-adjust: none;
  touch-action: pan-x pan-y pinch-zoom;
}
html.is-phone .layout {
  min-width: 1200px;
  width: 1200px;
  max-width: none;
}
html.is-phone .side {
  width: 236px;
  min-width: 236px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
html.is-phone .main {
  flex: 1;
  min-width: 0;
  padding: 20px 24px 48px;
}
html.is-phone .grid4,
html.is-phone .map,
html.is-phone .hero-grid,
html.is-phone .mini-trend {
  grid-template-columns: repeat(4, 1fr);
}
html.is-phone .grid2,
html.is-phone .panel-grid {
  grid-template-columns: 1.15fr .85fr;
}
html.is-phone .grid3 { grid-template-columns: repeat(3, 1fr); }
html.is-phone .kpi-row { grid-template-columns: repeat(3, 1fr); }
html.is-phone .split-row { grid-template-columns: 1.1fr .9fr .9fr; }
html.is-phone .row2 { grid-template-columns: 1fr 1fr; }
html.is-phone .row3 { grid-template-columns: 1fr 1fr 1fr; }

@media (min-width: 1101px) {
  .layout { min-width: 0; width: auto; }
}

/* تېلېفوندا كومپيۇتېر كۆرۈنۈشى ساقلىنىدۇ — تار ئېكران media نى ئۆچۈرۈش */
@media (max-width: 1100px) {
  html:not(.is-phone) .hero-grid { grid-template-columns: repeat(2, 1fr); }
  html:not(.is-phone) .mini-trend { grid-template-columns: repeat(2, 1fr); }
  html:not(.is-phone) .map { grid-template-columns: repeat(2, 1fr); }
  html:not(.is-phone) .panel-grid { grid-template-columns: 1fr; }
}

.file-pick {
  display: block;
  position: relative;
  cursor: pointer;
  margin: 0;
}
.file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.01;
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
}
.file-pick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px dashed #F40264;
  background: #fff7fa;
  color: #C2185B;
  font-weight: 900;
  font-size: 16px;
  text-align: center;
  pointer-events: none;
}
.file-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  max-width: 420px;
}
input[type="file"] {
  font-size: 16px;
  max-width: 100%;
}
