/* ==========================================================================
   DSP 货物统计 · 移动端样式
   ========================================================================== */

:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --text: #0b0b0f;
  --sub: #6b7280;
  --sub2: #9ca3af;
  --line: rgba(60, 60, 67, 0.12);
  --line-strong: rgba(60, 60, 67, 0.22);
  --blue: #0a84ff;
  --blue-dark: #0066cc;
  --green: #34c759;
  --green-dark: #248a3d;
  --orange: #ff9500;
  --red: #ff3b30;
  --purple: #af52de;
  --radius: 16px;
  --radius-sm: 12px;
  --tabbar-h: 54px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body { min-height: 100dvh; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--blue); text-decoration: none; }

.app { min-height: 100dvh; }

.view {
  padding: calc(12px + var(--safe-top)) 16px calc(var(--tabbar-h) + var(--safe-bottom) + 28px);
  max-width: 640px;
  margin: 0 auto;
  animation: fade-in 0.18s ease;
}
.view.no-tab { padding-bottom: calc(28px + var(--safe-bottom)); }

@keyframes fade-in { from { opacity: 0.4; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- 顶部标题 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: calc(-12px - var(--safe-top)) -16px 12px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  background: rgba(242, 242, 247, 0.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.topbar .sub { color: var(--sub); font-size: 13px; margin-top: 2px; }
.topbar .grow { flex: 1; min-width: 0; }
.topbar .actions { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; }

.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(120, 120, 128, 0.12);
  color: var(--text);
  transition: transform 0.12s ease, background 0.12s ease;
}
.icon-btn:active { transform: scale(0.92); background: rgba(120, 120, 128, 0.22); }
.icon-btn svg { width: 20px; height: 20px; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(145deg, #5ac8fa, #0a84ff);
  color: #fff; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ------------------------------------------------------------------ 卡片 */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.card.flush { padding: 0; overflow: hidden; }
.card-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; color: var(--sub);
  text-transform: none; letter-spacing: 0.02em;
  margin: 0 2px 10px;
}
.card-title .link { font-weight: 600; color: var(--blue); font-size: 13px; }

.section-title {
  font-size: 13px; font-weight: 700; color: var(--sub);
  margin: 20px 4px 8px;
}

/* ------------------------------------------------------------------ KPI */

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.kpi {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; position: relative; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  border-radius: 4px; background: var(--blue); opacity: 0.9;
}
.kpi.green::after { background: var(--green); }
.kpi.orange::after { background: var(--orange); }
.kpi.purple::after { background: var(--purple); }
.kpi-label { font-size: 12px; color: var(--sub); font-weight: 600; margin-bottom: 4px; }
.kpi-value { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-value small { font-size: 13px; font-weight: 600; color: var(--sub); margin-left: 3px; }
.kpi-sub { font-size: 12px; color: var(--sub2); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- 快捷入口 */

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.quick {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--text);
  transition: transform 0.12s ease;
}
.quick:active { transform: scale(0.95); }
.quick .qi {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 132, 255, 0.1); color: var(--blue);
}
.quick.in .qi { background: rgba(52, 199, 89, 0.12); color: var(--green-dark); }
.quick.out .qi { background: rgba(255, 149, 0, 0.12); color: #c26a00; }
.quick.scan .qi { background: rgba(175, 82, 222, 0.12); color: var(--purple); }
.quick svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ 列表 */

.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  text-align: left; width: 100%;
}
.list-item:last-child { border-bottom: 0; }
.list-item:active { background: #f7f7fa; }
.li-icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #f0f0f5; color: var(--sub);
}
.li-icon svg { width: 18px; height: 18px; }
.li-main { flex: 1; min-width: 0; }
.li-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-sub { font-size: 12px; color: var(--sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-side { text-align: right; flex: none; }
.li-amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.li-chev { color: var(--sub2); flex: none; }
.li-chev svg { width: 16px; height: 16px; display: block; }

/* ---------------------------------------------------------------- 徽标等 */

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: rgba(120, 120, 128, 0.12); color: var(--sub);
  flex: none;
}
.badge.in { background: rgba(52, 199, 89, 0.14); color: var(--green-dark); }
.badge.out { background: rgba(255, 149, 0, 0.16); color: #b26200; }
.badge.void { background: rgba(255, 59, 48, 0.12); color: var(--red); }
.badge.blue { background: rgba(10, 132, 255, 0.12); color: var(--blue-dark); }
.badge.purple { background: rgba(175, 82, 222, 0.12); color: #8e3bbd; }

.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.muted { color: var(--sub); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.strong { font-weight: 700; }
.tnum { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb0 { margin-bottom: 0; }

/* ------------------------------------------------------------------ 表单 */

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: var(--sub); margin: 0 2px 6px; }
.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #f9f9fb;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; font-family: var(--mono); font-size: 15px; }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(10, 132, 255, 0.6);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.12);
}
.input::placeholder, .textarea::placeholder { color: var(--sub2); }
.input:disabled { opacity: 0.55; }

.input-lg { min-height: 56px; font-size: 20px; font-weight: 600; letter-spacing: 0.04em; }

.field-inline { display: flex; gap: 10px; }
.field-inline > * { flex: 1; }

/* ------------------------------------------------------------------ 按钮 */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 18px;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  background: rgba(120, 120, 128, 0.12); color: var(--text);
  transition: transform 0.12s ease, opacity 0.12s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:active { background: var(--blue-dark); }
.btn.green { background: var(--green); color: #fff; }
.btn.orange { background: var(--orange); color: #fff; }
.btn.danger { background: rgba(255, 59, 48, 0.1); color: var(--red); }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.block { width: 100%; }
.btn.lg { min-height: 52px; font-size: 17px; border-radius: 14px; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn svg { width: 18px; height: 18px; }

.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }

/* --------------------------------------------------------------- 分段控件 */

.seg {
  display: flex; gap: 2px; padding: 3px;
  background: rgba(120, 120, 128, 0.12);
  border-radius: 10px;
}
.seg button {
  flex: 1; height: 32px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--sub);
  transition: background 0.15s ease, color 0.15s ease;
}
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 17px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--sub);
}
.chip.on { background: var(--text); border-color: var(--text); color: #fff; }

/* ------------------------------------------------------------------ 空态 */

.empty { padding: 44px 20px; text-align: center; color: var(--sub); }
.empty svg { width: 44px; height: 44px; opacity: 0.35; margin-bottom: 10px; }
.empty .t { font-weight: 600; color: var(--text); margin-bottom: 4px; }

/* --------------------------------------------------------------- 提示条 */

.banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px; margin-bottom: 14px;
  background: rgba(255, 149, 0, 0.12); color: #7a4a00; font-size: 13px;
}
.banner.blue { background: rgba(10, 132, 255, 0.1); color: var(--blue-dark); }
.banner.red { background: rgba(255, 59, 48, 0.1); color: #b3261e; }
.banner .b-main { flex: 1; }
.banner b { font-weight: 700; }

/* ------------------------------------------------------------------ 搜索 */

.search {
  position: relative; margin-bottom: 10px;
}
.search svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--sub2); pointer-events: none;
}
.search .input { padding-left: 40px; background: #fff; }

/* ---------------------------------------------------------------- 底部栏 */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10px; font-weight: 600; color: var(--sub2);
  padding-top: 4px;
}
.tab svg { width: 23px; height: 23px; }
.tab.on { color: var(--blue); }
.tab:active { opacity: 0.6; }

/* ------------------------------------------------------------------ 弹层 */

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.42);
  animation: fade-in 0.18s ease;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 560px;
  max-height: 88dvh;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding-bottom: var(--safe-bottom);
  display: flex; flex-direction: column;
  animation: slide-up 0.24s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes slide-up { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 10px;
}
.sheet-head h2 { font-size: 18px; font-weight: 800; margin: 0; flex: 1; }
.sheet-head .close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(120, 120, 128, 0.14); color: var(--sub);
  display: flex; align-items: center; justify-content: center;
}
.sheet-head .close svg { width: 16px; height: 16px; }
.sheet-body { padding: 4px 18px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-body .card { box-shadow: none; border: 1px solid var(--line); }

/* ------------------------------------------------------------------ Toast */

.toast-root {
  position: fixed; inset: 0;
  z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 0 20px;
  pointer-events: none;
}
.toast {
  max-width: 88%;
  background: rgba(28, 28, 32, 0.94); color: #fff;
  padding: 11px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: toast-in 0.2s ease;
}
.toast.good { background: rgba(36, 138, 61, 0.96); }
.toast.bad { background: rgba(200, 38, 28, 0.96); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.toast.out { opacity: 0; transform: translateY(-6px); transition: all 0.2s ease; }

/* ------------------------------------------------------------------ 扫码 */

.scanner-wrap { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; }
.scanner-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-frame {
  position: absolute; inset: 14% 8%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.scanner-frame::after {
  content: ""; position: absolute; left: 8%; right: 8%; height: 2px;
  background: rgba(52, 199, 89, 0.9); top: 50%;
  animation: scanline 2s ease-in-out infinite;
}
@keyframes scanline { 0%, 100% { top: 12%; } 50% { top: 88%; } }
.scanner-hint { color: var(--sub); text-align: center; font-size: 13px; padding: 12px 0 2px; }

/* ------------------------------------------------------------------ 图表 */

.chart { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding-top: 8px; overflow-x: auto; }
.chart .col { flex: 1; min-width: 26px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; }
.chart .bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.chart .bar { width: 8px; border-radius: 4px 4px 2px 2px; background: var(--green); min-height: 2px; }
.chart .bar.out { background: var(--orange); }
.chart .lab { font-size: 9px; color: var(--sub2); white-space: nowrap; }
.chart-legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--sub); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* ------------------------------------------------------------------ 标签 */

.label-sheet { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.label {
  width: 200px; height: 120px;
  background: #fff; border: 1px dashed #c7c7cc;
  border-radius: 8px; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
  overflow: hidden;
}
.label .lb-model { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label .lb-imei { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.label .lb-date { font-size: 9px; color: var(--sub); }
.label svg { width: 100%; height: 40px; }

/* ------------------------------------------------------------------ 通用 */

.divider { height: 1px; background: var(--line); margin: 12px 0; }
.stack > * + * { margin-top: 10px; }
.hidden { display: none !important; }

.loading { display: flex; justify-content: center; padding: 40px 0; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(120, 120, 128, 0.2);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, #e9e9ee 25%, #f3f3f7 37%, #e9e9ee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------------ 打印 */

@media print {
  body { background: #fff; }
  .topbar, .tabbar, .no-print, .chips, .seg, .btn { display: none !important; }
  .view { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; padding: 0; margin: 0; }
  .label-sheet { gap: 0; justify-content: flex-start; }
  .label { border: 0; border-radius: 0; width: 50mm; height: 30mm; }
  @page { margin: 0; }
}

/* ================================================================ 登录页 */

.login-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 24px calc(40px + env(safe-area-inset-bottom));
  max-width: 420px;
  margin: 0 auto;
}
.login-logo {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(145deg, #5ac8fa, #0a84ff);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; letter-spacing: 0.02em;
  box-shadow: 0 12px 30px -12px rgba(10, 132, 255, 0.7);
}
.login-title { font-size: 30px; font-weight: 800; margin: 18px 0 2px; letter-spacing: -0.03em; }
.login-sub { color: var(--sub); margin: 0 0 26px; font-size: 14px; }
.login-card { padding: 18px; }
.login-foot { color: var(--sub2); font-size: 12px; text-align: center; margin-top: 18px; line-height: 1.7; }

/* ================================================================ 标签尺寸 */

.label-sheet[data-size="50x30"] .label { width: 50mm; height: 30mm; }
.label-sheet[data-size="40x30"] .label { width: 40mm; height: 30mm; }
.label-sheet[data-size="40x30"] .lb-model { font-size: 9px; }
.label-sheet[data-size="40x30"] .lb-imei { font-size: 10px; }
.label-sheet[data-size="40x30"] .lb-date { font-size: 8px; }
.label-sheet[data-size="a4"] {
  display: grid;
  grid-template-columns: repeat(3, 70mm);
  gap: 0;
  justify-content: center;
}
.label-sheet[data-size="a4"] .label {
  width: 70mm; height: 33mm;
  border: 1px dotted #ddd;
  border-radius: 0;
  padding: 6mm 4mm;
}

@media print {
  .label-sheet { display: block; }
  .label-sheet[data-size="50x30"] .label,
  .label-sheet[data-size="40x30"] .label { break-after: page; page-break-after: always; margin: 0; }
  .label-sheet[data-size="50x30"] .label:last-child,
  .label-sheet[data-size="40x30"] .label:last-child { break-after: auto; page-break-after: auto; }
  .label-sheet[data-size="a4"] { display: grid; grid-template-columns: repeat(3, 70mm); }
  .label-sheet[data-size="a4"] .label { border: 0; }
  .label { box-shadow: none; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- 修正 ---------- */
.tabbar[hidden] { display: none !important; }
.li-title, .li-sub { display: block; }
.banner > svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.stack > .btn { width: 100%; }
.view.no-pad { padding: 0; }
.login-page { min-height: 100dvh; }

.list-item { color: var(--text); }
.list-item .li-title { color: var(--text); }

/* ---------------- 导入页 ---------------- */
.card.dragging { outline: 2px dashed var(--blue); outline-offset: -6px; }
.itable { width: 100%; border-collapse: collapse; font-size: 12px; }
.itable th,
.itable td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.itable th { color: var(--sub); font-weight: 600; font-size: 11px; }
.itable tr:last-child td { border-bottom: 0; }
.itable .ok { color: var(--green-dark); }
.itable .bad { color: var(--red); }
