:root {
  --bg: #f3f2ec;
  --bg-2: #eeede5;
  --surface: #ffffff;
  --surface-2: #faf9f4;
  --ink: #1b1d1a;
  --ink-2: #444a43;
  --muted: #858a80;
  --muted-2: #a6aaa1;
  --line: #e6e3d8;
  --line-2: #d8d4c7;
  --dark: #17211b;
  --dark-2: #223028;
  --accent: #d97757;
  --accent-2: #bd5e40;
  --accent-soft: #fbede7;
  --olive: #6f8158;
  --olive-soft: #eef2e7;
  --sky: #5d84a8;
  --sky-soft: #eaf1f7;
  --amber: #a9792c;
  --amber-soft: #fbf2df;
  --red: #b64b43;
  --red-soft: #f9eae8;
  --violet: #77638b;
  --shadow-sm: 0 1px 2px rgba(24, 33, 27, .04);
  --shadow-md: 0 14px 40px rgba(24, 33, 27, .09);
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --num: "SF Pro Display", "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: #dedbd1;
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.mono { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.red { color: var(--red); }
.green { color: var(--olive); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }

/* ------------------------------------------------------------------ desktop shell */
.desktop-mode { display: grid; place-items: center; min-height: 100vh; padding: 22px; }
.clean.desktop-mode { padding: 0; background: var(--bg); display: block; }

.desktop {
  width: 1440px;
  height: 900px;
  display: flex;
  overflow: hidden;
  position: relative;
  background: var(--bg);
  border-radius: 14px;
  box-shadow: 0 36px 90px rgba(22, 31, 25, .22);
}
.clean .desktop { border-radius: 0; box-shadow: none; }

.sidebar {
  width: 232px;
  flex: 0 0 232px;
  background: var(--dark);
  color: #fff;
  padding: 20px 14px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.sidebar::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -120px;
  bottom: 90px;
  border-radius: 50%;
  background: rgba(217, 119, 87, .055);
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 22px; }
.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.brand-name { font-size: 14px; font-weight: 600; letter-spacing: .03em; }
.side-label {
  font-size: 9.5px;
  color: #68766d;
  letter-spacing: .18em;
  margin: 15px 10px 8px;
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  height: 41px;
  padding: 0 11px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a4afa7;
  font-size: 12.5px;
  position: relative;
  transition: background .15s, color .15s;
}
.nav-item svg { color: #839087; }
.nav-item:hover { background: rgba(255,255,255,.045); color: #fff; }
.nav-item.active { background: rgba(217, 119, 87, .15); color: #fff; }
.nav-item.active svg { color: #efa88e; }
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -14px;
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.09);
  color: #cfd7d1;
  font-size: 9.5px;
  font-family: var(--num);
}
.nav-badge.hot { background: rgba(217, 119, 87, .26); color: #ffd8ca; }
.sidebar-bottom { margin-top: auto; position: relative; z-index: 1; }
.connection {
  margin: 0 4px 12px;
  padding: 10px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.035);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aab5ad;
  font-size: 10.5px;
}
.connection .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fa874;
  box-shadow: 0 0 0 3px rgba(143, 168, 116, .13);
  flex: 0 0 auto;
}
.connection .spacer { flex: 1; }
.side-user {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 7px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.avatar {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d9d5c8;
  color: #354038;
  font-size: 11.5px;
  font-weight: 600;
}
.avatar.dark { background: #2d3b33; color: #d7ded8; }
.side-user .name { color: #eef2ee; font-size: 11.5px; font-weight: 500; }
.side-user .role { color: #7f8c83; font-size: 9.5px; margin-top: 2px; }
.side-user .dots { margin-left: auto; color: #68766d; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.topbar {
  height: 64px;
  flex: 0 0 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(252,251,247,.86);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 30;
  overflow: visible;
}
.crumb { color: var(--muted); font-size: 11.5px; display: flex; align-items: center; gap: 8px; }
.crumb b { color: var(--ink-2); font-weight: 500; }
.crumb .sep { color: #c2c0b6; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.sync-pill {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  color: var(--muted);
  font-size: 10.5px;
}
.sync-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
.icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  background: transparent;
  color: #6e756c;
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
}
.icon-btn:hover { background: #fff; border-color: var(--line); }
.icon-btn .notif {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px #fcfbf7;
}
.user-chip { display: flex; align-items: center; gap: 8px; margin-left: 6px; padding-left: 8px; }
.user-chip .avatar { width: 29px; height: 29px; flex-basis: 29px; font-size: 10.5px; background: var(--dark); color: #e7ede8; }
.user-chip .name { font-size: 11.5px; color: var(--ink-2); }
.user-chip .role { font-size: 9.5px; color: var(--muted); margin-top: 1px; }

.content { padding: 22px 28px 14px; flex: 1; overflow: hidden; }
.route-skeleton { flex: 0 0 auto; }
.route-skeleton i { display: block; height: 10px; border-radius: 5px; background: #ede9e2; }
.skeleton-filters { display: flex; gap: 10px; margin-bottom: 12px; }
.skeleton-filters i { width: min(18%, 140px); height: 34px; }
.skeleton-filters i:first-child { width: min(28%, 240px); }
.skeleton-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.skeleton-metrics i { height: 68px; border: 1px solid #e5dfd5; border-radius: 8px; background: #f1eee9; }
.skeleton-panel { border: 1px solid #e5dfd5; border-radius: 8px; background: #fff; overflow: hidden; }
.skeleton-line { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 8%; padding: 17px; }
.skeleton-line + .skeleton-line { border-top: 1px solid #f0ede8; }
.skeleton-line:first-child { background: #f6f3ee; }
.skeleton-line i:last-child { width: 65%; }
.route-error { text-align: center; padding-bottom: 20px; }

/* ------------------------------------------------------------------ headings */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.page-head h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.025em;
}
.page-sub { margin: 6px 0 0; color: var(--muted); font-size: 11.5px; }
.page-sub .strong { color: var(--ink-2); font-weight: 500; }
.head-actions { display: flex; align-items: center; gap: 8px; padding-top: 2px; }
.back-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 7px;
}
.back-line:hover { color: var(--ink); }

.btn {
  height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color .15s, background .15s, transform .15s;
}
.btn:hover { border-color: #c2bfb3; background: #fdfcf8; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 5px 12px rgba(217,119,87,.18); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn.dark:hover { background: #26382e; border-color: #26382e; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.sm { height: 28px; padding: 0 9px; font-size: 10.5px; border-radius: 6px; }
.btn.danger { color: var(--red); border-color: #ead0cc; background: #fffafa; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-icon-only { width: 32px; padding: 0; }

/* ------------------------------------------------------------------ kpi */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi {
  min-height: 100px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.kpi.is-alert { background: #fdf7f4; border-color: #ecd7ce; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-label { color: var(--muted); font-size: 10.5px; }
.kpi-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #777d72;
}
.kpi.is-alert .kpi-icon { background: var(--accent-soft); border-color: #f1d8ce; color: var(--accent-2); }
.kpi-value {
  margin-top: 9px;
  font-family: var(--num);
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.03em;
  font-weight: 590;
  color: var(--ink);
}
.kpi-value .unit { font-family: var(--font); font-size: 10.5px; color: var(--muted); margin-left: 4px; font-weight: 400; letter-spacing: 0; }
.kpi-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9.5px; }
.kpi-body { min-width: 0; }
.kpi-line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.kpi-line b { font-family: var(--num); font-size: 27px; line-height: 1; font-weight: 590; }
.kpi-line .unit { font-size: 12px; color: var(--muted); }
.kpi-extra { color: var(--muted); font-size: 12px; }
.sync-stats { padding: 4px 16px 14px; }
.sync-stats div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; border-bottom: 1px solid #f2f0e8; font-size: 14px; }
.trend { display: inline-flex; align-items: center; gap: 2px; font-family: var(--num); font-size: 9.5px; font-weight: 600; padding: 2px 5px; border-radius: 4px; }
.trend.up { background: var(--olive-soft); color: #5d7148; }
.trend.down { background: var(--red-soft); color: var(--red); }
.trend.flat { background: var(--surface-2); color: var(--muted); }
.kpi-foot .link { color: var(--accent-2); font-weight: 500; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card-head {
  min-height: 54px;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #efede5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-head h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 9.5px; }
.card-link { color: var(--muted); font-size: 10px; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.card-link:hover { color: var(--accent-2); }
.card-body { padding: 14px 16px; }
.card-body.tight { padding: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 21px;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 9.5px;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid transparent;
}
.chip i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip.green { background: var(--olive-soft); color: #5b7046; border-color: #e0e8d5; }
.chip.amber { background: var(--amber-soft); color: #916526; border-color: #f1e2c5; }
.chip.red { background: var(--red-soft); color: #aa443b; border-color: #f0d6d2; }
.chip.blue { background: var(--sky-soft); color: #4d7294; border-color: #dce8f1; }
.chip.clay { background: var(--accent-soft); color: #b45e41; border-color: #f2d9cf; }
.chip.gray { background: #f5f4ee; color: #777c72; border-color: #e9e6dc; }
.chip.violet { background: #f1edf5; color: #6d5b80; border-color: #e5deec; }
.chip.no-dot i { display: none; }

.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #efdccf;
  background: #fdf6f2;
  color: #8f533c;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 10.5px;
  line-height: 1.5;
}
.alert.info { border-color: #dce7ef; background: #f4f8fb; color: #52718b; }
.alert .spacer { flex: 1; }
.alert b { font-weight: 600; }

/* ------------------------------------------------------------------ dashboard */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.chart-card { height: 290px; display: flex; flex-direction: column; }
.chart-card .card-body { padding: 8px 12px 10px; flex: 1; min-height: 0; }
.chart-card svg { width: 100%; height: 100%; overflow: visible; }
.chart-legend { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 9.5px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.chart-legend i.olive { background: var(--olive); }
.seg {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}
.seg button { border: 0; background: transparent; color: var(--muted); font-size: 9.5px; padding: 3px 7px; border-radius: 4px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.05); }

.donut-wrap { display: flex; align-items: center; gap: 16px; padding: 3px 2px 4px; }
.donut { width: 136px; height: 136px; flex: 0 0 136px; position: relative; }
.donut svg { width: 136px; height: 136px; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center strong { font-family: var(--num); font-size: 20px; font-weight: 590; letter-spacing: -.03em; }
.donut-center span { color: var(--muted); font-size: 8.5px; margin-top: 2px; }
.donut-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.legend-row { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.legend-row .dot { width: 6px; height: 6px; border-radius: 2px; flex: 0 0 auto; }
.legend-row .name { color: var(--ink-2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-row .val { color: var(--muted); font-family: var(--num); font-size: 9.5px; }
.donut-note { border-top: 1px solid #f0eee6; margin-top: 8px; padding-top: 9px; display: flex; justify-content: space-between; color: var(--muted); font-size: 9.5px; }
.donut-note b { color: var(--ink-2); font-weight: 500; }

.todo-list { padding: 5px 0; }
.todo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f2f0e8;
}
.todo-row:last-child { border-bottom: 0; }
.todo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  flex: 0 0 auto;
}
.todo-icon.warn { background: var(--amber-soft); color: var(--amber); }
.todo-icon.danger { background: var(--red-soft); color: var(--red); }
.todo-icon.info { background: var(--sky-soft); color: var(--sky); }
.todo-main { flex: 1; min-width: 0; }
.todo-main strong { display: block; font-size: 11px; font-weight: 500; color: var(--ink-2); }
.todo-main span { display: block; color: var(--muted); font-size: 9.5px; margin-top: 2px; }
.todo-num { font-family: var(--num); font-size: 15px; font-weight: 590; }
.todo-arrow { color: #b8b9b0; }

/* ------------------------------------------------------------------ tables */
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: max-content; min-width: 100%; border-collapse: collapse; table-layout: auto; }
.data-table th.num, .data-table td.num, .data-table th.right, .data-table td.right { text-align: right; }
.data-table th {
  height: 35px;
  padding: 0 11px;
  text-align: left;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--muted);
  background: #faf9f4;
  border-bottom: 1px solid var(--line);
  white-space: normal;
}
.data-table td {
  height: 48px;
  padding: 6px 11px;
  border-bottom: 1px solid #f1efe8;
  color: var(--ink-2);
  font-size: 10.5px;
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fcfbf7; }
.data-table .primary { color: var(--ink); font-weight: 500; font-size: 11px; }
.data-table tr.subtotal td { font-weight: 650; background: #f7f4ec; }
.data-table .small { font-size: 9.5px; color: var(--muted); }
.cell-stack { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cell-stack > .chip { align-self: flex-start; }
.cell-stack .top { display: flex; align-items: center; gap: 5px; min-width: 0; }
.cell-stack .top .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-inline { display: flex; align-items: center; gap: 6px; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn { border: 0; background: transparent; color: var(--accent-2); padding: 0; font-size: 10.5px; white-space: nowrap; }
.link-btn:hover { text-decoration: underline; }
.row-actions { display: flex; align-items: center; gap: 9px; }
.row-actions .sep { width: 1px; height: 10px; background: var(--line-2); }
.tag-stack { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow: hidden; }
.supplier-mini { font-size: 10px; color: var(--ink-2); }
.supplier-mini + .supplier-mini::before { content: "·"; margin-right: 4px; color: #b8b9b0; }
.table-foot {
  height: 41px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0eee7;
  color: var(--muted);
  font-size: 9.5px;
}
.pagination { display: flex; align-items: center; gap: 3px; }
.page-btn { width: 23px; height: 23px; border: 1px solid transparent; background: transparent; border-radius: 5px; display: grid; place-items: center; color: var(--muted); font-family: var(--num); font-size: 9.5px; }
.page-btn:hover { background: var(--surface-2); }
.page-btn.on { background: var(--dark); color: #fff; }

/* ------------------------------------------------------------------ filters / tabs */
.filter-bar {
  border: 1px solid #D1CFC5;
  background: #fff;
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 12px;
  box-shadow: none;
}
.filter-fields { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-bar.is-collapsed .filter-fields { flex-wrap: nowrap; overflow: hidden; }
.filter-bar.is-collapsed .field.is-filter-more { display: none; }
.filter-bar.is-expanded .filter-fields { flex-wrap: wrap; overflow: visible; }
.filter-bar .field.check { flex: 0 0 auto; }
.filter-bar .field.check label { height: 32px; display: flex; align-items: center; gap: 6px; font-size: 14px; color: #3D3D3A; white-space: nowrap; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field-label { color: #87867F; font-size: 12px; line-height: 1.2; }
.input-shell {
  height: 32px;
  min-width: 0;
  border: 1px solid #D1CFC5;
  background: #fff;
  border-radius: 4px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #87867F;
  font-size: 14px;
}
.input-shell:focus-within { border-color: #2C84DB; box-shadow: 0 0 0 2px rgba(44, 132, 219, 0.2); }
.input-shell input { border: 0 !important; background: transparent; outline: 0; box-shadow: none !important; min-width: 0; width: 100%; height: 100%; color: #141413; font-size: 14px; padding: 0; }
.input-shell input::placeholder { color: #87867F; }
.input-shell .chev { color: #87867F; }
.filter-actions { flex: 0 0 auto; margin-left: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.filter-bar .field { flex: 0 0 156px; width: 156px; max-width: 180px; }
.filter-bar .field.search { flex: 1 1 260px; width: auto; min-width: 220px; max-width: 420px; }
.filter-bar .field > input { width: 100%; padding: 0 10px; }
.filter-bar .field > input::placeholder { color: #87867F; }
.filter-bar select.is-placeholder { color: #87867F; }
.filter-bar .date-field { position: relative; }
.filter-bar .date-field > input { color: #141413; }
.filter-bar .date-field:not(.has-value) > input:not(:focus)::-webkit-datetime-edit { color: transparent; }
.filter-bar .date-field:not(.has-value):not(:focus-within)::after {
  content: attr(data-placeholder);
  position: absolute;
  left: 10px;
  right: 24px;
  top: 0;
  height: 32px;
  display: flex;
  align-items: center;
  color: #87867F;
  font-size: 14px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}
.filter-bar .field.search { grid-column: auto; width: auto; }
.filter-bar .field.oe-g--2 { grid-column: span 2; }
.filter-bar .field.w150,
.filter-bar .field.w120,
.filter-bar .field.w100 { width: auto; }
.filter-bar select,
.field select,
.sync-plan-row select {
  appearance: none;
  height: 32px;
  width: 100%;
  border: 1px solid #D1CFC5;
  border-radius: 4px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2387867F' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding: 0 28px 0 10px;
  color: #141413;
  font-size: 14px;
  outline: 0;
}
.filter-bar select:focus,
.field select:focus,
.sync-plan-row select:focus { border-color: #2C84DB; box-shadow: 0 0 0 2px rgba(44, 132, 219, 0.2); }
.filter-actions .btn { height: 32px; border-radius: 4px; font-size: 14px; box-shadow: none; }
.filter-actions .btn.primary { background: #C6613F; border-color: #C6613F; }
.filter-actions .btn.primary:hover { background: #C46849; border-color: #C46849; }
.filter-actions a.btn { background: transparent; color: #5E5D59; border-color: #D1CFC5; }

.tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.tabs { display: flex; align-items: center; gap: 3px; border-bottom: 1px solid var(--line); flex: 1; }
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  height: 33px;
  padding: 0 10px;
  font-size: 10.5px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tab .count { font-family: var(--num); font-size: 9px; color: #a9aca3; }
.tab.on { color: var(--ink); font-weight: 500; }
.tab.on::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.tab.on .count { color: var(--accent-2); }
.tab-actions { display: flex; gap: 7px; padding-bottom: 6px; }

/* ------------------------------------------------------------------ order detail */
.order-hero { padding: 15px 17px; display: flex; gap: 18px; align-items: stretch; }
.order-hero .hero-main { flex: 1; min-width: 0; }
.hero-title-row { display: flex; align-items: center; gap: 8px; }
.hero-title-row .mono { font-size: 15px; font-weight: 590; letter-spacing: .01em; }
.hero-sub { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1.6fr .9fr .9fr; gap: 16px; margin-top: 13px; }
.hero-item .label { color: var(--muted); font-size: 9px; margin-bottom: 4px; }
.hero-item .value { color: var(--ink-2); font-size: 10.5px; line-height: 1.55; }
.hero-item .value strong { color: var(--ink); font-weight: 500; }
.hero-side { width: 198px; flex: 0 0 198px; border-left: 1px solid var(--line); padding-left: 17px; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.hero-amount { font-family: var(--num); font-size: 21px; font-weight: 590; letter-spacing: -.02em; }
.hero-amount-label { color: var(--muted); font-size: 9px; }
.hero-actions { display: flex; gap: 6px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(286px, 1fr); gap: 12px; margin-top: 12px; }
.supplier-panel { overflow: hidden; }
.supplier-panel + .supplier-panel { margin-top: 10px; }
.sp-head {
  height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fcfbf7;
  border-bottom: 1px solid #efede5;
}
.supplier-badge {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: var(--olive-soft);
  color: var(--olive);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.supplier-badge.b { background: var(--amber-soft); color: var(--amber); }
.sp-name { font-size: 11.5px; font-weight: 500; }
.sp-meta { color: var(--muted); font-size: 9.5px; margin-left: 2px; }
.sp-amount { margin-left: auto; font-family: var(--num); font-size: 12px; font-weight: 590; }
.compact-table th { height: 30px; background: #fff; }
.compact-table td { height: 44px; }
.compact-table td, .compact-table th { padding-left: 14px; padding-right: 14px; }
.product-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.produce {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.035);
}
.produce svg { width: 26px; height: 26px; }
.produce.sm { width: 26px; height: 26px; flex-basis: 26px; border-radius: 6px; }
.produce.sm svg { width: 20px; height: 20px; }
.produce.lg { width: 52px; height: 52px; flex-basis: 52px; border-radius: 10px; }
.produce.lg svg { width: 38px; height: 38px; }
.product-thumb, .goods-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: #f3f1ea; border: 1px solid #e8e6dc; display: block; }
.product-thumb.is-empty, .goods-thumb.is-empty { flex: 0 0 40px; }
body.app-desktop .data-table td.product-thumb-cell { width: 64px; overflow: visible; }
body.app-h5 .goods-thumb, body.app-h5 .goods-thumb.is-empty { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px; border: 0; }
.product-sub { font-size: 9px; color: var(--muted); margin-top: 2px; }
.avail { font-family: var(--num); font-size: 10.5px; }
.avail b { font-weight: 590; color: var(--ink); }
.avail span { color: var(--muted); }

.return-list { padding: 2px 0; }
.return-item { padding: 12px 15px; border-bottom: 1px solid #f1efe8; }
.return-item:last-child { border-bottom: 0; }
.ri-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ri-top .mono { font-size: 10px; color: var(--ink-2); }
.ri-meta { margin-top: 6px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9.5px; }
.ri-amount { margin-top: 7px; display: flex; align-items: baseline; gap: 8px; }
.ri-amount strong { font-family: var(--num); font-size: 15px; font-weight: 590; }
.ri-amount span { color: var(--muted); font-size: 9.5px; }
.empty-note { padding: 24px 16px; color: var(--muted); font-size: 10px; text-align: center; }

.timeline { padding: 9px 15px 11px; }
.timeline-item { position: relative; padding: 0 0 9px 19px; border-left: 1px solid #e5e2d8; margin-left: 4px; }
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5c2b7;
  box-shadow: 0 0 0 3px #fff;
}
.timeline-item.done::before { background: var(--olive); }
.timeline-item.current::before { background: var(--accent); }
.timeline-item .tl-title { color: var(--ink-2); font-size: 10.5px; line-height: 1.45; }
.timeline-item .tl-time { color: var(--muted); font-size: 9px; margin-top: 3px; }
.timeline-item .tl-note { color: var(--muted); font-size: 9px; margin-top: 4px; line-height: 1.5; }

/* ------------------------------------------------------------------ return detail */
.summary-strip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr .9fr;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.summary-cell .label { color: var(--muted); font-size: 9px; margin-bottom: 5px; }
.summary-cell .value { color: var(--ink-2); font-size: 10.5px; line-height: 1.5; }
.summary-cell .value strong { color: var(--ink); font-weight: 500; }
.summary-cell .value.money { font-family: var(--num); font-size: 18px; font-weight: 590; letter-spacing: -.02em; }

.item-remark { color: var(--muted); font-size: 9.5px; line-height: 1.45; max-width: 170px; }
.evidence-row { display: flex; align-items: center; gap: 4px; }
.evidence {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,0,0,.06);
  flex: 0 0 28px;
}
.evidence .produce { width: 28px; height: 28px; border: 0; border-radius: 0; flex-basis: 28px; }
.evidence .produce svg { width: 21px; height: 21px; }
.evidence .ev-count { position: absolute; right: 0; bottom: 0; background: rgba(23,33,27,.68); color: #fff; font-size: 7px; line-height: 1.4; padding: 0 2px; }
.ev-more { color: var(--muted); font-size: 9px; margin-left: 2px; }
.erp-card { padding: 10px 14px; border-bottom: 1px solid #f1efe8; }
.erp-card:last-child { border-bottom: 0; }
.erp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.erp-num { font-family: var(--num); font-size: 10.5px; color: var(--ink); font-weight: 500; }
.erp-supplier { color: var(--muted); font-size: 9.5px; margin-top: 4px; }
.erp-meta { display: flex; gap: 12px; margin-top: 8px; color: var(--muted); font-size: 9px; }
.erp-meta b { color: var(--ink-2); font-weight: 500; font-family: var(--num); }

/* ------------------------------------------------------------------ accounts / modal */
.tab-cards { display: flex; gap: 8px; margin-bottom: 12px; }
.tab-card {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
}
.tab-card.on { border-color: #e7c7b9; background: #fffaf7; box-shadow: 0 0 0 2px rgba(217,119,87,.06); }
.tab-card .tc-icon { width: 28px; height: 28px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.tab-card.on .tc-icon { background: var(--accent-soft); color: var(--accent-2); }
.tab-card .tc-label { color: var(--muted); font-size: 9.5px; }
.tab-card .tc-value { color: var(--ink); font-family: var(--num); font-size: 16px; font-weight: 590; margin-top: 1px; }

.modal-layer {
  position: absolute;
  inset: 0;
  background: rgba(23, 33, 27, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  backdrop-filter: blur(1px);
}
.modal {
  width: 458px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 26px 70px rgba(20,28,23,.26);
  overflow: hidden;
}
.modal-head { padding: 18px 20px 13px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid #f0eee7; }
.modal-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.modal-close { width: 28px; height: 28px; border: 0; background: var(--surface-2); color: var(--muted); border-radius: 7px; display: grid; place-items: center; }
.modal-body { padding: 16px 20px 6px; }
.form-row { display: flex; gap: 10px; }
.form-row .field { flex: 1; margin-bottom: 12px; }
.form-row .field.full { flex-basis: 100%; }
.form-label { color: var(--ink-2); font-size: 10px; margin-bottom: 5px; display: flex; align-items: center; gap: 4px; }
.form-label .req { color: var(--accent); }
.form-input, .form-select {
  height: 32px;
  width: 100%;
  border: 1px solid #D1CFC5;
  border-radius: 4px;
  background: #fff;
  padding: 0 10px;
  color: #141413;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.form-input:focus-within, .form-input.focus { border-color: #2C84DB; background: #fff; box-shadow: 0 0 0 2px rgba(44, 132, 219, 0.2); }
.form-help { color: var(--muted); font-size: 9px; margin-top: 4px; line-height: 1.5; }
.form-note { background: #faf8f2; border: 1px solid #eee9dc; border-radius: 7px; padding: 8px 10px; color: #7e8177; font-size: 9px; line-height: 1.55; margin: 2px 0 12px; }
.modal-foot { padding: 12px 20px 17px; display: flex; justify-content: flex-end; gap: 8px; }
.password-wrap { position: relative; }
.password-wrap .eye { position: absolute; right: 9px; top: 9px; color: var(--muted); }

/* ------------------------------------------------------------------ reports */
.report-filter { display: flex; align-items: center; gap: 8px; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 12px; margin-top: 12px; }
.report-bottom { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .85fr); gap: 12px; margin-top: 12px; }
.report-chart { height: 287px; display: flex; flex-direction: column; }
.report-chart .card-body { padding: 4px 10px 8px; flex: 1; min-height: 0; }
.ranking { padding: 5px 15px 9px; }
.rank-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid #f2f0e8; }
.rank-row:last-child { border-bottom: 0; }
.rank-idx { width: 17px; height: 17px; border-radius: 5px; background: var(--surface-2); color: var(--muted); font-family: var(--num); font-size: 8.5px; display: grid; place-items: center; flex: 0 0 auto; }
.rank-idx.top { background: var(--accent-soft); color: var(--accent-2); }
.rank-main { flex: 1; min-width: 0; }
.rank-name { font-size: 10px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 6px; }
.rank-name b { font-family: var(--num); font-weight: 590; color: var(--ink); }
.rank-sub { color: var(--muted); font-size: 8.5px; margin-top: 3px; }
.bar-track { height: 4px; border-radius: 4px; background: #f0eee6; margin-top: 5px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--olive); }
.bar-fill.clay { background: var(--accent); }
.bar-fill.sky { background: var(--sky); }
.bar-fill.amber { background: #c39a4d; }
.share-cell { display: flex; align-items: center; gap: 8px; }
.share-cell .bar-track { flex: 1; margin: 0; width: 74px; }
.share-cell span { color: var(--muted); font-size: 9px; font-family: var(--num); width: 30px; }

/* ------------------------------------------------------------------ prototype chrome */
.proto-toggle {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 100;
  height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: #1b2720;
  color: #eef3ef;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  box-shadow: 0 12px 30px rgba(20,28,23,.24);
}
.h5-mode .proto-toggle { bottom: 92px; }
.proto-panel {
  position: fixed;
  right: 18px;
  bottom: 68px;
  width: 292px;
  max-height: 70vh;
  overflow: auto;
  background: #18241d;
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  box-shadow: 0 22px 60px rgba(18,25,20,.32);
  z-index: 101;
  padding: 12px;
  display: none;
}
.h5-mode .proto-panel { bottom: 140px; }
.proto-panel.open { display: block; }
.proto-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 9px; }
.proto-head strong { font-size: 11.5px; font-weight: 500; }
.proto-head span { color: #89978d; font-size: 9px; }
.proto-group { margin-top: 8px; }
.proto-group-title { color: #7f8d82; font-size: 9px; letter-spacing: .12em; margin: 8px 3px 5px; }
.proto-link { display: flex; align-items: center; gap: 7px; width: 100%; border: 0; background: transparent; color: #c9d2ca; text-align: left; padding: 7px 8px; border-radius: 6px; font-size: 10.5px; }
.proto-link:hover { background: rgba(255,255,255,.06); }
.proto-link.on { background: rgba(217,119,87,.18); color: #fff; }
.proto-link .num { margin-left: auto; color: #718075; font-family: var(--num); font-size: 8.5px; }
.proto-tip { margin: 9px 3px 2px; color: #718075; font-size: 9px; line-height: 1.5; border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px; }

/* ------------------------------------------------------------------ H5 */
.h5-mode { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: #d8d5ca; }
.clean.h5-mode { display: block; padding: 0; background: var(--bg); }
.phone {
  width: 410px;
  height: 864px;
  padding: 10px;
  border-radius: 48px;
  background: #101713;
  box-shadow: 0 40px 100px rgba(17,24,19,.3);
}
.clean .phone { width: 390px; height: 844px; padding: 0; border-radius: 0; box-shadow: none; background: transparent; }
.h5-screen {
  width: 100%;
  height: 100%;
  border-radius: 39px;
  overflow: hidden;
  background: #f5f4ee;
  display: flex;
  flex-direction: column;
  position: relative;
}
.clean .h5-screen { border-radius: 0; }
.statusbar {
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #171b16;
  background: transparent;
  position: relative;
  z-index: 3;
}
.status-right { display: flex; align-items: center; gap: 5px; }
.status-right svg { width: 14px; height: 14px; }
.h5-nav {
  height: 54px;
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 8px;
}
.h5-nav h1 { margin: 0; font-size: 21px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; }
.h5-nav h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.h5-nav .nav-side { width: 32px; height: 32px; display: grid; place-items: center; }
.h5-nav .h5-avatar { width: 33px; height: 33px; flex-basis: 33px; border-radius: 50%; background: var(--dark); color: #e9efe9; display: grid; place-items: center; font-size: 11px; font-weight: 500; }
.h5-nav.detail { justify-content: flex-start; position: relative; }
.h5-nav.detail h2 { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.h5-nav.detail .nav-right { margin-left: auto; }
.h5-back {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.h5-back:hover { background: rgba(0,0,0,.04); }
.h5-fixed { flex: 0 0 auto; min-width: 0; padding: 0 16px; }
.h5-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 0 16px; scrollbar-width: none; }
.h5-body::-webkit-scrollbar { display: none; }
.h5-body.no-pad { padding: 0; }
.h5-tab {
  height: 68px;
  flex: 0 0 68px;
  border-top: 1px solid #e8e5da;
  background: rgba(255,255,255,.94);
  display: flex;
  padding: 7px 9px 10px;
  gap: 3px;
}
.tab-item {
  flex: 1;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #9a9e94;
  font-size: 9px;
  border-radius: 8px;
}
.tab-item.active { color: var(--accent-2); }
.tab-item.active svg { stroke-width: 2; }
.h5-bottom {
  flex: 0 0 auto;
  background: rgba(255,255,255,.98);
  border-top: 1px solid #e9e6dc;
  padding: 11px 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 4;
}
.h5-bottom .total { flex: 1; min-width: 0; }
.h5-bottom .total .t-label { color: var(--muted); font-size: 9px; }
.h5-bottom .total .t-value { font-family: var(--num); font-size: 17px; font-weight: 590; margin-top: 2px; letter-spacing: -.02em; }
.h5-bottom .total .t-value small { font-family: var(--font); font-size: 9px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.h5-btn {
  height: 45px;
  padding: 0 19px;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 7px 16px rgba(217,119,87,.22);
  white-space: nowrap;
}
.h5-btn:active { transform: translateY(1px); }
.h5-btn.dark { background: var(--dark); box-shadow: none; }
.h5-btn.block { width: 100%; }
.h5-btn.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); box-shadow: none; }

.h5-topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 2px 0 13px; }
.h5-topline .eyebrow { color: var(--muted); font-size: 9.5px; letter-spacing: .01em; }
.h5-topline h1 { margin: 4px 0 0; font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -.035em; }
.h5-summary { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9.5px; margin: 0 2px 11px; }
.h5-summary b { color: var(--ink-2); font-weight: 500; }
.h5-summary .sep { width: 1px; height: 9px; background: #d5d2c8; }
.segmented {
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  background: #ecebe3;
  border-radius: 10px;
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}
.segmented button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 7px;
  color: #858a80;
  font-size: 10.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.segmented button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.06); font-weight: 500; }
.segmented .n { font-family: var(--num); font-size: 9px; color: var(--muted); }
.segmented button.on .n { color: var(--accent-2); }

.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(24,33,27,.03);
}
.order-card:active { background: #fdfcf8; }
.oc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.oc-top .mono { font-size: 9.5px; color: var(--muted); }
.oc-title { margin: 7px 0 0; font-size: 14.5px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.oc-addr { margin: 5px 0 0; display: flex; align-items: flex-start; gap: 4px; color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.oc-addr svg { flex: 0 0 auto; margin-top: 1px; }
.oc-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 9px; }
.oc-meta .sep { width: 1px; height: 8px; background: #d8d5ca; }
.oc-foot { margin-top: 10px; padding-top: 9px; border-top: 1px solid #f1efe8; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.oc-suppliers { display: flex; gap: 4px; align-items: center; overflow: hidden; }
.supplier-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; background: #f4f3ec; color: #6d736a; font-size: 8.5px; white-space: nowrap; }
.supplier-tag.more { background: var(--accent-soft); color: var(--accent-2); }
.oc-link { display: inline-flex; align-items: center; gap: 1px; color: var(--accent-2); font-size: 9.5px; font-weight: 500; white-space: nowrap; }

.h5-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; }
.h5-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.h5-card-head .h { font-size: 10.5px; color: var(--muted); }
.h5-card-head .strong { font-size: 11px; font-weight: 500; color: var(--ink); }
.h5-order-hero { background: var(--dark); color: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; position: relative; overflow: hidden; }
.h5-order-hero::after { content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; right: -44px; top: -52px; border: 1px solid rgba(255,255,255,.08); }
.h5-order-hero .mono { color: #9eaaa1; font-size: 9.5px; }
.h5-order-hero h2 { margin: 7px 0 0; font-size: 17px; line-height: 1.3; font-weight: 600; }
.h5-order-hero .addr { margin: 6px 0 0; display: flex; gap: 5px; align-items: flex-start; color: #b7c0b8; font-size: 9.5px; line-height: 1.5; }
.h5-order-hero .hero-meta { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); display: flex; gap: 14px; color: #9eaaa1; font-size: 9px; }
.h5-order-hero .hero-meta b { display: block; color: #eef2ed; font-weight: 500; font-size: 10px; margin-top: 2px; }
.h5-section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 3px 2px 8px; }
.h5-section-title h3 { margin: 0; font-size: 12.5px; font-weight: 600; }
.h5-section-title span { color: var(--muted); font-size: 9px; }
.supplier-group { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 10px; }
.sg-head { display: flex; align-items: center; gap: 7px; padding: 10px 12px; background: #fbfaf6; border-bottom: 1px solid #f0eee6; }
.sg-logo { width: 22px; height: 22px; border-radius: 6px; background: var(--olive-soft); color: var(--olive); display: grid; place-items: center; flex: 0 0 auto; }
.sg-logo.b { background: var(--amber-soft); color: var(--amber); }
.sg-name { font-size: 10.5px; font-weight: 500; }
.sg-count { color: var(--muted); font-size: 8.5px; margin-left: auto; }
.item-row { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid #f3f1e9; }
.item-row:last-child { border-bottom: 0; }
.item-check { position: relative; display: block; width: 18px; height: 18px; flex: 0 0 18px; }
.item-check input { position: absolute; opacity: 0; }
.item-check span { display: block; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #c9c6bb; background: #fff; position: relative; }
.item-check input:checked + span { background: var(--accent); border-color: var(--accent); }
.item-check input:checked + span::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.item-main { flex: 1; min-width: 0; }
.item-name { font-size: 11px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { color: var(--muted); font-size: 8.5px; margin-top: 3px; }
.item-right { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 4px; }
.item-price { font-family: var(--num); font-size: 10.5px; font-weight: 590; }
.item-avail { color: var(--muted); font-size: 8.5px; margin-top: 3px; }
.item-avail b { color: var(--olive); font-weight: 600; }
.supplier-note { padding: 8px 12px; background: #fbfaf6; color: var(--muted); font-size: 8.5px; line-height: 1.5; border-top: 1px solid #f0eee6; }
.h5-sticky {
  flex: 0 0 auto;
  background: rgba(255,255,255,.98);
  border-top: 1px solid #e9e6dc;
  padding: 10px 16px 19px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.h5-sticky .selection { flex: 1; min-width: 0; }
.h5-sticky .selection .s1 { font-size: 11px; font-weight: 500; color: var(--ink); }
.h5-sticky .selection .s2 { margin-top: 2px; color: var(--muted); font-size: 9px; }

.form-note-h5 { display: flex; align-items: flex-start; gap: 7px; padding: 9px 11px; background: #fbf3e5; border: 1px solid #f0e2c7; color: #87672f; border-radius: 9px; font-size: 9px; line-height: 1.5; margin: 2px 0 10px; }
.return-form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px; margin-bottom: 10px; }
.rf-head { display: flex; align-items: center; gap: 9px; }
.rf-main { flex: 1; min-width: 0; }
.rf-name { font-size: 12px; font-weight: 600; }
.rf-sub { color: var(--muted); font-size: 8.5px; margin-top: 3px; }
.rf-avail { text-align: right; color: var(--muted); font-size: 8.5px; }
.rf-avail b { display: block; font-family: var(--num); color: var(--ink); font-size: 11px; margin-bottom: 2px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #f1efe8; }
.qty-label { font-size: 9.5px; color: var(--muted); }
.qty-label b { color: var(--ink-2); font-weight: 500; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; height: 29px; background: #fdfcf9; }
.stepper button { width: 27px; height: 100%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.stepper .num { min-width: 42px; text-align: center; font-family: var(--num); font-size: 11px; font-weight: 500; }
.stepper .unit { color: var(--muted); font-family: var(--font); font-size: 8px; font-weight: 400; margin-left: 2px; }
.photo-label { display: flex; align-items: center; justify-content: space-between; margin: 11px 0 6px; color: var(--muted); font-size: 8.5px; }
.photo-label .req { color: var(--accent); }
.photo-row { display: flex; gap: 6px; }
.photo-thumb { width: 51px; height: 51px; border-radius: 8px; overflow: hidden; position: relative; flex: 0 0 51px; border: 1px solid var(--line); }
.photo-thumb .produce { width: 51px; height: 51px; flex-basis: 51px; border-radius: 0; border: 0; }
.photo-thumb .produce svg { width: 39px; height: 39px; }
.photo-thumb .del { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: rgba(20,26,22,.62); color: #fff; display: grid; place-items: center; font-size: 8px; }
.upload-tile { width: 51px; height: 51px; border: 1px dashed #d4d0c4; border-radius: 8px; background: #fbfaf6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #9b9e94; font-size: 7.5px; flex: 0 0 51px; }
.remark-box { margin-top: 10px; min-height: 34px; border: 1px solid var(--line); border-radius: 7px; background: #fdfcf9; padding: 7px 9px; color: #747a70; font-size: 9.5px; line-height: 1.45; }
.remark-box.empty { color: #b0b2aa; }
.collapse-row { display: flex; align-items: center; gap: 9px; background: #f3f1e9; border: 1px solid #e5e1d5; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; color: #747a70; font-size: 9.5px; }
.collapse-row .plus-stack { width: 23px; height: 23px; border-radius: 6px; background: #fff; display: grid; place-items: center; color: var(--muted); }
.collapse-row .more { margin-left: auto; color: var(--accent-2); font-size: 9px; }

.success-wrap { padding: 17px 16px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.success-icon { width: 62px; height: 62px; border-radius: 50%; background: var(--olive-soft); color: var(--olive); display: grid; place-items: center; margin: 7px 0 13px; position: relative; }
.success-icon::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid #dfe8d2; }
.success-title { font-size: 20px; font-weight: 600; letter-spacing: -.03em; margin: 0; }
.success-sub { margin: 7px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.55; max-width: 280px; }
.success-no { margin-top: 14px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; }
.success-no .label { color: var(--muted); font-size: 8.5px; }
.success-no .mono { font-size: 10.5px; font-weight: 500; margin-top: 3px; }
.success-card { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-top: 9px; padding: 11px 13px; text-align: left; }
.success-card h4 { margin: 0 0 7px; font-size: 9px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.success-erp { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f2f0e8; }
.success-erp:last-child { border-bottom: 0; padding-bottom: 0; }
.success-erp .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--olive); flex: 0 0 auto; }
.success-erp .name { flex: 1; color: var(--ink-2); font-size: 9px; }
.success-erp .num { color: var(--muted); font-family: var(--num); font-size: 8.5px; }
.success-actions { width: 100%; margin-top: 13px; display: flex; flex-direction: column; gap: 8px; }

.history-date { color: var(--muted); font-size: 9px; margin: 2px 2px 6px; }
.history-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; }
.hc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hc-top .mono { font-size: 8.5px; color: var(--muted); }
.hc-main { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.hc-main .name { font-size: 11px; font-weight: 500; }
.hc-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 8.5px; margin-top: 5px; }
.hc-amount { margin-left: auto; font-family: var(--num); font-size: 11.5px; font-weight: 590; }
.hc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; padding-top: 7px; border-top: 1px solid #f2f0e8; color: var(--muted); font-size: 8.5px; }

.h5-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.mini-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.mini-kpi .label { color: var(--muted); font-size: 8.5px; }
.mini-kpi .value { font-family: var(--num); font-size: 20px; font-weight: 590; margin-top: 5px; letter-spacing: -.03em; }
.mini-kpi .value small { font-family: var(--font); font-size: 8px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.mini-kpi .foot { color: var(--muted); font-size: 8px; margin-top: 3px; }
.month-select { display: inline-flex; align-items: center; gap: 6px; height: 31px; padding: 0 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); font-size: 10px; }
.mini-chart { display: flex; align-items: flex-end; gap: 12px; height: 116px; padding: 4px 4px 0; }
.mc-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.mc-bar { width: 100%; max-width: 31px; border-radius: 5px 5px 2px 2px; background: #e8d6cc; position: relative; }
.mc-bar.on { background: var(--accent); }
.mc-bar .v { position: absolute; top: -14px; left: 0; right: 0; text-align: center; color: var(--muted); font-family: var(--num); font-size: 7.5px; white-space: nowrap; }
.mc-label { color: var(--muted); font-size: 8px; }
.supplier-bars { padding: 2px 0 1px; }
.sb-row { margin-bottom: 10px; }
.sb-row:last-child { margin-bottom: 0; }
.sb-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 9.5px; }
.sb-top .n { color: var(--ink-2); }
.sb-top .a { color: var(--muted); font-family: var(--num); font-size: 8.5px; }
.sb-track { height: 6px; background: #f0eee6; border-radius: 4px; margin-top: 5px; overflow: hidden; }
.sb-fill { height: 100%; border-radius: 4px; background: var(--olive); }
.sb-fill.clay { background: var(--accent); }
.sb-fill.sky { background: var(--sky); }
.h5-table { width: 100%; border-collapse: collapse; }
.h5-table th { text-align: left; color: var(--muted); font-size: 8px; font-weight: 400; padding: 0 0 7px; border-bottom: 1px solid #f0eee6; }
.h5-table td { padding: 8px 0; border-bottom: 1px solid #f4f2eb; font-size: 9px; color: var(--ink-2); }
.h5-table tr:last-child td { border-bottom: 0; }
.h5-table .num { font-family: var(--num); text-align: right; }
.h5-table th.num { text-align: right; }

.profile-hero { background: var(--dark); color: #fff; border-radius: 16px; padding: 18px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.profile-hero .avatar { width: 48px; height: 48px; flex-basis: 48px; background: #34453a; color: #fff; font-size: 16px; }
.driver-avatar-button { border: 0; padding: 0; background: none; color: inherit; display: inline-flex; flex: none; }
.profile-avatar-link { margin-top: 5px; font-size: 11px; text-decoration: underline; }
.profile-hero h2 { margin: 0; font-size: 16px; font-weight: 600; }
.profile-hero p { margin: 4px 0 0; color: #9eaaa1; font-size: 9px; }
.profile-stats { display: flex; padding: 12px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.profile-stat { flex: 1; text-align: center; border-right: 1px solid #f0eee6; }
.profile-stat:last-child { border-right: 0; }
.profile-stat .v { font-family: var(--num); font-size: 16px; font-weight: 590; }
.profile-stat .l { color: var(--muted); font-size: 8px; margin-top: 2px; }
.menu-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-bottom: 1px solid #f2f0e8; color: var(--ink-2); font-size: 10.5px; }
.menu-row:last-child { border-bottom: 0; }
.menu-row .ico { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; }
.menu-row .chev { margin-left: auto; color: #b7b9b0; }

/* small helpers */
.hr { height: 1px; background: #f0eee6; margin: 10px 0; }
.mt6 { margin-top: 6px; }
.mt10 { margin-top: 10px; }
.mt12 { margin-top: 12px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap6 { gap: 6px; }
.gap8 { gap: 8px; }
.gap10 { gap: 10px; }
.grow { flex: 1; min-width: 0; }
.w100 { width: 100%; }

/* ------------------------------------------------------------------ v2 additions */
.return-item.compact { padding: 9px 15px; background: #fcfbf7; }
.return-item.compact .ri-amount { margin-top: 5px; }
.return-item.compact .ri-amount strong { font-size: 13px; }
.return-item.compact .ri-meta { margin-top: 4px; }

.modal.wide { width: 540px; }
.check-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 3px; }
.check-pill { display: inline-flex; align-items: center; cursor: pointer; }
.check-pill input { position: absolute; opacity: 0; pointer-events: none; }
.check-pill span { height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line-2); background: #fdfcf9; color: #6f756b; font-size: 10px; display: inline-flex; align-items: center; gap: 5px; }
.check-pill span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; border: 1px solid #c9c6bb; background: #fff; }
.check-pill input:checked + span { border-color: #e3b8a7; background: #fff8f4; color: var(--accent-2); }
.check-pill input:checked + span::before { content: "✓"; border-color: var(--accent); background: var(--accent); color: #fff; font-size: 7px; line-height: 9px; text-align: center; }
.coverage-preview { border: 1px solid #eee9dc; background: #faf9f4; border-radius: 9px; padding: 9px 12px; }
.cp-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 5px 0; border-bottom: 1px solid #eeeae0; font-size: 9.5px; }
.cp-row:last-child { border-bottom: 0; }
.cp-row span { color: var(--muted); }
.cp-row b { color: var(--ink-2); font-weight: 500; text-align: right; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 7px; }
.pay-method { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: #fdfcf9; display: flex; flex-direction: column; gap: 2px; cursor: pointer; position: relative; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method span { color: var(--ink-2); font-size: 10.5px; }
.pay-method small { color: var(--muted); font-size: 8.5px; }
.pay-method:has(input:checked) { border-color: #e3b8a7; background: #fff8f4; box-shadow: 0 0 0 2px rgba(217,119,87,.06); }
.pay-method:has(input:checked) span { color: var(--accent-2); font-weight: 500; }

.tight-table td { height: 40px; }
.tight-table th { height: 31px; }
.compact-return .erp-card { padding: 8px 14px; }
.compact-return .timeline { padding: 7px 15px 8px; }
.compact-return .timeline-item { padding-bottom: 7px; }

.compact-supplier .card-head { min-height: 48px; padding: 10px 14px 8px; }
.compact-supplier .erp-card { padding: 8px 14px; }
.compact-supplier .timeline-item { padding-bottom: 6px; }
.compact-supplier .timeline { padding: 7px 15px 8px; }
.compact-supplier.detail-grid { margin-top: 7px !important; }

/* ---------------- real app additions ---------------- */
body.app-desktop { background: var(--bg); }
body.app-desktop .desktop { width: 100vw; height: 100vh; border-radius: 0; box-shadow: none; margin: 0; }
body.app-h5 { background: #e7e2d6; }
.login-page {
  --login-brand: #d97757;
  --login-accent: #a64b34;
  --login-ink: #261d18;
  --login-muted: #71645d;
  min-height: 100svh;
  color: var(--login-ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  display: grid;
  place-items: center;
  padding: 42px 32px;
  background: #f3eeea;
}
.login-layout {
  width: min(100%, 1120px);
}
.login-window {
  display: grid;
  grid-template-columns: 57.5% minmax(0, 1fr);
  min-height: clamp(426px, 47vw, 535px);
  border: 1px solid #4328120c;
  border-radius: 18px;
  overflow: hidden;
  background: #fcfaf7;
  box-shadow: 0 24px 65px -24px #5b372b4a, 0 5px 16px #55382109;
}
.login-hero {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--login-brand);
}
.login-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .35s ease;
}
.login-slide.is-current { opacity: 1; }
.login-carousel-controls {
  position: absolute;
  z-index: 1;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 5px;
  border: 1px solid #fff5eb52;
  border-radius: 40px;
  background: #48271ec9;
  color: #fff3ea;
}
.login-carousel-controls button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.login-carousel-controls button:focus-visible { outline: 2px solid currentColor; }
.login-carousel-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 6px;
  background: #fff3ea87;
  transition: width .2s ease;
}
.login-carousel-dot[aria-pressed="true"]::before { width: 17px; background: #fff3ea; }
.login-carousel-controls .login-playback { border-left: 1px solid #fff3ea40; border-radius: 0; margin-left: 3px; padding-left: 3px; }
.login-playback svg { width: 13px; height: 13px; }
.login-playback .login-play-icon { display: none; }
.login-playback.is-paused .login-play-icon { display: block; }
.login-playback.is-paused .login-pause-icon { display: none; }
.login-credits {
  margin: 25px 0 0;
  text-align: center;
  color: #726259;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .015em;
}
.login-panel {
  padding: 48px clamp(33px, 4vw, 62px);
  display: grid;
  align-items: center;
  justify-items: center;
}
.login-form-wrap { width: min(100%, 382px); }
.login-form-wrap h1 { font-size: 37px; line-height: 1.2; letter-spacing: -.055em; font-weight: 650; margin: 0; }
.login-form-wrap p { margin: 13px 0 31px; color: var(--login-muted); font-size: 14px; line-height: 1.65; }
.login-field { display: grid; gap: 9px; margin-bottom: 19px; }
.login-field label { font-size: 13px; font-weight: 600; }
.login-input { position: relative; }
.login-field input {
  width: 100%; height: 51px; border: 1px solid #ddd3cc; border-radius: 9px;
  padding: 0 15px; background: #fffdfb; color: var(--login-ink); font-size: 14px;
}
.login-field input::placeholder { color: #82746c; }
.login-field input:focus-visible { outline: 2px solid var(--login-accent); outline-offset: 2px; }
.login-input #login-password { padding-right: 52px; }
.login-reveal {
  display: grid; place-items: center; position: absolute; top: 0; right: 5px;
  width: 41px; height: 51px; padding: 0; border: 0; border-radius: 7px;
  color: var(--login-muted); background: transparent; cursor: pointer;
}
.login-reveal svg { width: 18px; height: 18px; }
.login-submit {
  display: flex; justify-content: center; align-items: center; position: relative;
  margin-top: 7px; width: 100%; height: 52px; border: 0; border-radius: 9px;
  color: #fff; background: var(--login-accent); font-size: 15px; font-weight: 650;
  cursor: pointer; letter-spacing: .12em;
}
.login-submit:disabled { opacity: .6; cursor: wait; }
.login-submit:enabled:hover { background: #8d3e2a; }
.login-submit svg { position: absolute; right: 17px; width: 18px; height: 18px; }
@media (max-width: 780px) {
  .login-page { padding: 24px 18px; }
  .login-layout { max-width: 480px; }
  .login-window { grid-template-columns: minmax(0, 1fr); border-radius: 15px; }
  .login-hero { aspect-ratio: 1.65; }
  .login-slide:first-child { object-position: center 86%; }
  .login-carousel-controls { bottom: 6px; }
  .login-carousel-controls button { height: 26px; }
  .login-panel { padding: 29px 25px 31px; }
  .login-field input, .login-reveal { height: 49px; }
  .login-field input { font-size: 16px; }
  .login-submit { height: 50px; }
  .login-form-wrap h1 { font-size: 28px; }
  .login-form-wrap p { margin-bottom: 23px; }
  .login-credits { margin-top: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-slide, .login-carousel-dot::before { transition: none; }
}
.login-error {
  color: var(--red);
  background: var(--red-soft);
  border-radius: 7px;
  padding: 9px 12px;
  margin-bottom: 16px;
  font-size: 13px;
}

/* 专用司机入口的非司机提示 */
.mobile-gate { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); }
.mobile-gate-card { width: min(100%, 410px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 60px rgba(24,33,27,.1); padding: 34px 32px 28px; }
.mobile-gate-card h2 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.mobile-gate-card .sub { color: var(--muted); font-size: 12px; margin: 7px 0 22px; line-height: 1.65; }
.gate-link, .gate-secondary { width: 100%; height: 45px; border-radius: 7px; font-size: 13px; font-weight: 500; }
.gate-link { display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; margin-top: 5px; }
.gate-secondary { margin-top: 10px; background: #fff; color: var(--ink-2); border: 1px solid var(--line-2); }
.login-hint { border-top: 1px solid #f0eee7; margin-top: 18px; padding-top: 13px; color: var(--muted); font-size: 10.5px; line-height: 1.75; }

.empty-state { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.7; }
.empty-state strong { display: block; color: var(--ink-2); font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px); background: #1b2720; color: #fff; border-radius: 8px; padding: 10px 16px; font-size: 11px; z-index: 1000; opacity: 0; pointer-events: none; transition: .2s; max-width: 70vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }
.alert.warn { background: #fbf3e5; border-color: #f0e2c7; color: #87672f; }
.alert.warn b { color: #6d5125; }
.warn-dot { width: 6px; height: 6px; border-radius: 50%; background: #c39a4d; display: inline-block; }
.status-tag { display:inline-flex; align-items:center; gap:4px; min-height:21px; padding:1px 7px; border-radius:5px; font-size:9.5px; background:#f5f4ee; color:#777c72; border:1px solid #e9e6dc; }
.status-tag.ok { background: var(--olive-soft); color: #5b7046; border-color: #e0e8d5; }
.status-tag.warn { background: var(--amber-soft); color: #916526; border-color: #f1e2c5; }
.status-tag.danger { background: var(--red-soft); color: #aa443b; border-color: #f0d6d2; }
.mini-progress { width: 90px; height: 5px; border-radius: 4px; background: #f0eee6; overflow: hidden; display: inline-block; vertical-align: middle; }
.mini-progress i { display:block; height:100%; background: var(--accent); }
.table-link { color: var(--accent-2); cursor: pointer; text-decoration: none; }
.table-link:hover { text-decoration: underline; }
.btn-row { display:flex; gap:6px; align-items:center; }
.section-gap { margin-top: 12px; }
.form-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-grid-2 .full { grid-column:1/-1; }
.field input, .field select { height:32px; border:1px solid #D1CFC5; border-radius:4px; background:#fff; padding:0 10px; color:#141413; font-size:14px; outline:0; }
.field input:focus, .field select:focus { border-color:#2C84DB; background:#fff; box-shadow:0 0 0 2px rgba(44,132,219,.2); }
.modal .form-input, .modal .form-select { cursor:default; }
.modal .form-input input { width:100%; border:0; background:transparent; outline:0; font:inherit; color:var(--ink-2); }
.driver-account-modal {
  display: flex;
  flex-direction: column;
  width: min(540px, calc(100% - 32px));
  max-height: calc(100% - 32px);
}
.driver-account-modal > form { display: flex; flex-direction: column; min-height: 0; }
.driver-account-modal .modal-head, .driver-account-modal .modal-foot { flex: 0 0 auto; }
.driver-account-modal .modal-head { padding: 12px 20px 10px; }
.driver-account-modal .modal-close { flex-shrink: 0; margin-left: 8px; }
.driver-account-modal .modal-body { overflow-y: auto; overscroll-behavior: contain; padding: 10px 20px; }
.driver-account-modal .modal-foot { border-top: 1px solid var(--line); padding: 8px 20px; }
.driver-account-modal .form-row .field { gap: 2px; margin-bottom: 10px; }
.driver-account-modal .form-help { margin-top: 8px; }
.warehouse-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 112px), 1fr));
  gap: 6px;
}
.warehouse-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #fdfcf9;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.warehouse-options label:has(input:checked) { border-color: #e3b8a7; background: #fff8f4; }
.warehouse-options span { min-width: 0; overflow-wrap: anywhere; }
.warehouse-options input { flex: 0 0 auto; width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.driver-phone { width: 390px; min-height: 760px; margin: 0 auto; background: var(--bg); border-radius: 28px; overflow:hidden; box-shadow: 0 22px 60px rgba(20,28,23,.16); }
.driver-top { background: var(--dark); color: #fff; padding: 18px 18px 16px; }
.driver-top .back { color:#c9d2ca; font-size:10px; text-decoration:none; }
.driver-top h1 { margin: 9px 0 3px; font-size: 21px; letter-spacing: -.03em; }
.driver-top p { margin:0; color:#a7b1a9; font-size:9px; }
.driver-body { padding:14px 16px 22px; }
.driver-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 13px; margin-bottom:9px; }
.driver-card h3 { margin:0; font-size:12px; }
.driver-card p { margin:5px 0 0; color:var(--muted); font-size:9px; line-height:1.5; }
.driver-tabs { display:flex; gap:4px; background:#ecebe3; border:1px solid var(--line); border-radius:9px; padding:3px; margin-bottom:11px; }
.driver-tabs a, .driver-tabs button { flex:1; text-align:center; border:0; background:transparent; color:var(--muted); border-radius:6px; padding:6px 4px; font-size:9.5px; text-decoration:none; }
.driver-tabs .on { background:#fff; color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.05); }
.driver-bottom { display:flex; gap:8px; margin-top:12px; }
.photo-input { display:none; }
.photo-add { width:48px; height:48px; border:1px dashed #d4d0c4; border-radius:7px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--muted); font-size:7px; cursor:pointer; background:#fbfaf6; flex:0 0 48px; }
.return-photo { width:48px; height:48px; object-fit:cover; border-radius:7px; border:1px solid var(--line); }
.driver-item-qty { width:64px; height:29px; border:1px solid var(--line-2); border-radius:6px; padding:0 7px; font-size:10px; background:#fdfcf9; }
.driver-check-line { display:flex; gap:8px; align-items:flex-start; }
.driver-check-line input[type=checkbox] { margin-top:3px; accent-color:var(--accent); }
.driver-item { border-bottom:1px solid #f2f0e8; padding:9px 0; }
.driver-item:last-child { border-bottom:0; }
.driver-item .nm { font-size:10.5px; color:var(--ink); }
.driver-item .meta { color:var(--muted); font-size:8.5px; margin-top:2px; }
.driver-item .right { text-align:right; }
.driver-form-row { display:flex; gap:8px; align-items:center; justify-content:space-between; margin-top:8px; }
.driver-form-row label { color:var(--muted); font-size:9px; }
.driver-form-row input[type=text] { flex:1; height:30px; border:1px solid var(--line-2); border-radius:6px; padding:0 8px; background:#fdfcf9; font-size:9.5px; }
.driver-note { color:var(--muted); font-size:8.5px; line-height:1.55; margin-top:6px; }
body.app-desktop .content { overflow-y: auto; }
body.app-desktop .content::-webkit-scrollbar { width: 8px; }
body.app-desktop .content::-webkit-scrollbar-thumb { background: #d7d3c7; border-radius: 8px; }
.driver-date-form { display:flex; align-items:center; gap:5px; margin:0 0 10px; }
input[type="date"], input[type="month"], input[type="time"] { accent-color: #d97757; }
.driver-date-form input { flex:1; min-width:0; height:29px; border:1px solid var(--line-2); border-radius:6px; background:#fdfcf9; padding:0 6px; font-size:9px; color:var(--ink-2); accent-color: #d97757; }
.driver-date-form span { color:var(--muted); font-size:8px; }
.driver-date-form button { height:29px; border:0; border-radius:6px; background:var(--accent); color:#fff; padding:0 10px; font-size:9px; }
.segmented a { flex:1; display:flex; align-items:center; justify-content:center; gap:5px; border-radius:7px; color:#858a80; font-size:10.5px; text-decoration:none; }
.segmented a.on { background:#fff; color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.06); font-weight:500; }

/* ---------------- readability pass ---------------- */
body.app-desktop { font-size: 15px; }
body.app-desktop .desktop { font-size: 15px; }
body.app-desktop .main { margin-left: 0; }
body.app-desktop .brand { padding: 8px 12px 18px; }
body.app-desktop .brand-mark { display: none; }
body.app-desktop .brand-name { font-size: 18px; }
body.app-desktop .side-label { font-size: 12px; margin: 8px 12px 8px; letter-spacing: .12em; }
body.app-desktop .nav { padding: 0 6px; gap: 2px; }
body.app-desktop .nav-item { font-size: 15px; height: 40px; padding: 0 10px; gap: 8px; border-radius: 7px; }
body.app-desktop .nav-item svg { width: 16px; height: 16px; }
body.app-desktop .sidebar-bottom { padding: 10px 8px 12px; }
body.app-desktop .connection { font-size: 12px; }
body.app-desktop .side-user .name { font-size: 13px; }
body.app-desktop .side-user .role { font-size: 12px; }
body.app-desktop .topbar { height: 60px; padding: 0 24px; }
body.app-desktop .crumb { font-size: 14px; }
body.app-desktop .sync-pill { font-size: 13px; padding: 6px 10px; }
body.app-desktop .user-chip .name { font-size: 14px; }
body.app-desktop .user-chip .role { font-size: 12px; }
body.app-desktop .content { padding: 22px 28px 32px; }
body.app-desktop .page-head { margin-bottom: 18px; }
body.app-desktop .page-head h1 { font-size: 28px; }
body.app-desktop .page-sub { font-size: 15px; line-height: 1.55; }
body.app-desktop .btn { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 6px; }
body.app-desktop .btn.sm { height: 32px; font-size: 13px; }
body.app-desktop .icon-btn { width: 32px; height: 32px; }
body.app-desktop .kpi { min-height: 128px; padding: 15px 17px 13px; }
body.app-desktop .kpi-label { font-size: 14px; }
body.app-desktop .kpi-value { font-size: 32px; margin: 9px 0 5px; }
body.app-desktop .kpi-value .unit { font-size: 13px; }
body.app-desktop .kpi-foot { font-size: 13px; }
body.app-desktop .kpi-icon { width: 27px; height: 27px; }
body.app-desktop .alert { font-size: 14px; padding: 10px 12px; line-height: 1.6; }
body.app-desktop .card-head { padding: 15px 17px 12px; }
body.app-desktop .card-head h2 { font-size: 16px; }
body.app-desktop .card-head p { font-size: 13px; }
body.app-desktop .card-link { font-size: 13px; }
body.app-desktop .data-table th { height: 42px; font-size: 14px; }
body.app-desktop .data-table td { height: 52px; font-size: 15px; }
body.app-desktop .data-table .small { font-size: 13px; }
body.app-desktop .data-table .num { font-size: 15px; }
body.app-desktop .data-table .primary { font-size: 15px; }
body.app-desktop .product-name { font-size: 15px; }
body.app-desktop .product-sub { font-size: 13px; margin-top: 3px; }
body.app-desktop .supplier-mini { font-size: 13px; }
body.app-desktop .cell-stack { gap: 3px; }
body.app-desktop .table-foot { font-size: 13px; padding: 10px 16px; }
body.app-desktop .pagination .page-btn { min-width: 30px; height: 30px; font-size: 13px; }
body.app-desktop .filter-bar { padding: 12px 16px; gap: 8px 10px; }
body.app-desktop .field-label { font-size: 12px; }
body.app-desktop .input-shell { height: 32px; font-size: 14px; border-radius: 4px; }
body.app-desktop .input-shell input,
body.app-desktop .filter-bar select,
body.app-desktop .page-size,
body.app-desktop .page-jump,
body.app-desktop .page-jump input { font-size: 14px !important; }
body.app-desktop .filter-actions .btn { height: 32px; border-radius: 4px; }
body.app-desktop .tabs-row { margin-top: 14px; }
body.app-desktop .tabs .tab { font-size: 15px; }
body.app-desktop .chip { font-size: 12px; min-height: 24px; }
body.app-desktop .status-tag { font-size: 12px; min-height: 24px; }
body.app-desktop .summary-strip { min-height: 104px; }
body.app-desktop .summary-cell { padding: 13px 16px; }
body.app-desktop .summary-cell .label { font-size: 13px; }
body.app-desktop .summary-cell .value { font-size: 15px; margin-top: 8px; }
body.app-desktop .summary-cell .value.money { font-size: 22px; }
body.app-desktop .form-label, body.app-desktop .form-help, body.app-desktop .form-note { font-size: 13px; }
body.app-desktop .form-input { height: 32px; font-size: 14px; border-radius: 4px; }
body.app-desktop .form-input input { font-size: 14px; }
body.app-desktop .modal h2 { font-size: 18px; }
body.app-desktop .modal p { font-size: 14px; }
body.app-desktop .modal-body { font-size: 14px; }
body.app-desktop .config-status { padding: 6px 16px 12px; }
body.app-desktop .config-status > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid #f0eee7; font-size: 11px; }
body.app-desktop .config-status > div:last-child { border-bottom: 0; }
body.app-desktop .config-status span { color: var(--muted); flex: 0 0 78px; }
body.app-desktop .config-status b { font-weight: 500; color: var(--ink-2); text-align: right; word-break: break-all; }
body.app-desktop .detail-grid { gap: 14px; }
body.app-desktop .back-line { font-size: 14px; }
body.app-desktop .card { border-radius: 10px; }
body.app-desktop .form-label { font-size: 13px; }
body.app-desktop .form-help, body.app-desktop .form-note { font-size: 13px; }
body.app-desktop .config-status > div { font-size: 14px; }
body.app-desktop .data-table td { font-size: 15px; }
body.app-desktop .data-table th { font-size: 14px; }
body.app-desktop .account-pop button { font-size: 14px; }
body.app-desktop .toast { font-size: 14px; }
button.user-chip { border: 0; background: transparent; cursor: pointer; text-align: left; font: inherit; }
.account-box { position: relative; z-index: 40; }
.account-pop { display: none; position: absolute; right: 0; top: 100%; padding-top: 8px; z-index: 40; }
.account-box:hover .account-pop, .account-box:focus-within .account-pop { display: block; }
.account-menu { min-width: 112px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm); display: grid; }
.account-pop button { border: 0; background: transparent; text-align: left; padding: 7px 10px; border-radius: 6px; cursor: pointer; color: var(--ink-2); font-size: 12px; }
.account-pop button:hover { background: var(--surface-2); }
.page-btn { width: auto; min-width: 27px; padding: 0 6px; }
.page-btn:disabled { opacity: .35; }
.page-size, .page-jump input { height: 27px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink-2); font-size: 11px; }
.page-jump { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: var(--muted); }
.page-jump input { width: 42px; text-align: center; }
.page-gap { padding: 0 3px; color: var(--muted); }
#password-dialog { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; width: min(420px, calc(100vw - 32px)); }
#password-dialog::backdrop { background: rgba(20, 24, 20, .28); }
#password-dialog h2 { margin: 0 0 4px; font-size: 16px; }
#password-dialog p, #password-dialog label { display: grid; gap: 4px; margin: 8px 0; font-size: 12px; color: var(--muted); }
#password-dialog input { height: 34px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.data-table th.mid-pin-number, .data-table td.mid-pin-number, .data-table th.col-check, .data-table td.col-check { width: 46px; padding: 8px 4px; text-align: center; }
.mid-col-gear { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #3f3a36; cursor: pointer; }
.mid-col-gear:hover, .mid-col-gear:focus-visible { background: #f6efe6; outline: none; }
.mid-col-gear-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mid-col-dialog { position: fixed; top: 52px; right: auto; bottom: auto; width: min(280px, calc(100vw - 160px)); max-height: calc(100vh - 68px); margin: 0; padding: 0; border: 0; border-radius: 0 10px 10px 0; box-shadow: 8px 12px 32px rgba(40, 24, 8, 0.16); accent-color: #c6613f; color: #3d3d3a; }
.mid-col-dialog::backdrop { background: rgba(28, 20, 12, 0.28); }
.mid-col-dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 68px); }
.mid-col-dialog header { padding: 16px 18px 8px; }
.mid-col-dialog h2 { margin: 0; font-size: 16px; color: #141413; }
.mid-col-dialog header p { margin: 6px 0 0; color: #7a6858; font-size: 12px; }
.mid-col-dialog .mid-col-list { overflow: auto; margin: 0; padding: 4px 12px 8px; list-style: none; }
.mid-col-dialog li { display: grid; grid-template-columns: 22px 28px 28px 1fr; gap: 4px; align-items: center; min-height: 36px; padding: 2px 4px; border-radius: 6px; }
.mid-col-dialog li.is-locked { grid-template-columns: 22px 1fr 18px; color: #6d5c4d; }
.mid-col-dialog li:hover { background: #faf7f3; }
.mid-col-dialog .grip { color: #b3a394; cursor: grab; text-align: center; letter-spacing: -1px; }
.mid-col-dialog button { height: 26px; border: 1px solid #e6ddd3; border-radius: 4px; background: #fff; color: #6d5c4d; cursor: pointer; }
.mid-col-dialog label { display: flex; gap: 8px; align-items: center; min-width: 0; margin: 0; color: #3d3d3a; font-size: 13px; }
.mid-col-dialog input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: #c6613f; }
.mid-col-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid #f0e8df; }
.mid-col-dialog footer button { min-width: 64px; height: 32px; padding: 0 12px; }
.mid-col-dialog footer .is-primary { border-color: #c6613f; background: #c6613f; color: #fff; }
.list-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 12px; border-top: 1px solid #e6ddd3; background: #fff; position: static; flex: 0 0 auto; }
.mid-managed-table { border-collapse: separate; border-spacing: 0; }
.mid-managed-table.mid-table-sized { table-layout: fixed; width: max-content; }
.mid-table-sized :is(th, td) { overflow: hidden; text-overflow: ellipsis; }
.mid-managed-table thead th { position: relative; }
.mid-col-grip { position: absolute; inset: 0 0 0 auto; width: 10px; cursor: col-resize; touch-action: none; }
.mid-col-grip:hover::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 3px; background: #c6613f; }
.list-footer-left { display: flex; align-items: center; gap: 8px; }
.list-all { display: inline-flex; align-items: center; gap: 4px; color: #3d3d3a; font-size: 13px; }
.list-selected { color: #87867f; font-size: 13px; }
.list-footer .mid-pager { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.list-footer .mid-pager-total, .list-footer .mid-pager-jump { white-space: nowrap; color: #3d3d3a; font-size: 13px; }
.list-footer .mid-pager button, .list-footer .mid-pager select, .list-footer .mid-pager-jump input { height: 28px; border: 1px solid #e6ddd3; border-radius: 4px; background: #fff; color: #3d3d3a; font: inherit; }
.list-footer .mid-pager button { min-width: 28px; padding: 0 6px; cursor: pointer; }
.list-footer .mid-pager button.is-current { background: #c6613f; color: #fff; border-color: #c6613f; }
.list-footer .mid-pager button:disabled { color: #b3a394; cursor: default; }
.list-footer .mid-pager select { padding: 0 8px; }
.list-footer .mid-pager-jump input { width: 48px; margin: 0 6px; text-align: center; }
.data-table .row-check, .data-table .row-all, .list-all input { accent-color: #c6613f; }

/* 电脑后台对齐 OrderEZ 风格标准：墨黑侧栏、暖灰画布、14px 业务字、4px 控件 */
body.app-desktop {
  --bg: #FAF9F5;
  --surface: #FFFFFF;
  --surface-2: #F5F4ED;
  --ink: #141413;
  --ink-2: #3D3D3A;
  --muted: #87867F;
  --line: #D1CFC5;
  --line-2: #D1CFC5;
  --dark: #141413;
  --accent: #C6613F;
  --accent-2: #C46849;
  --olive: #788C5D;
  --radius: 4px;
  background: #FAF9F5;
  color: #141413;
  font-size: 14px;
  line-height: 1.5;
}
body.app-desktop .desktop { width: 100%; height: 100vh; border-radius: 0; box-shadow: none; background: #FAF9F5; font-size: 14px; }
body.app-desktop .sidebar { flex: 0 0 160px; width: 160px; background: #141413; padding: 16px 10px 12px; }
body.app-desktop .sidebar::after { display: none; }
body.app-desktop .brand-name { font-size: 16px; font-weight: 600; color: #FAF9F5; letter-spacing: 0; }
body.app-desktop .side-label { color: #87867F; font-size: 12px; letter-spacing: .08em; }
body.app-desktop .nav-item { height: 36px; border-radius: 4px; color: #FAF9F5; font-size: 14px; }
body.app-desktop .nav-item svg { color: #B0AEA5; }
body.app-desktop .nav-item:hover { background: #1F1E1D; color: #FAF9F5; }
body.app-desktop .nav-item.active { background: rgba(217, 119, 87, .16); color: #D97757; }
body.app-desktop .nav-item.active svg { color: #D97757; }
body.app-desktop .nav-item.active::before { background: #D97757; left: -10px; }
body.app-desktop .connection { border-color: #30302E; background: #1F1E1D; color: #B0AEA5; border-radius: 4px; font-size: 12px; }
body.app-desktop .side-user { border-top-color: #30302E; }
body.app-desktop .side-user .name { color: #FAF9F5; font-size: 13px; }
body.app-desktop .side-user .role { color: #87867F; font-size: 12px; }
body.app-desktop .main { background: #FAF9F5; }
body.app-desktop .topbar { height: 48px; padding: 0 20px; background: #fff; border-bottom: 1px solid #E8E6DC; }
body.app-desktop .crumb, body.app-desktop .crumb b { font-size: 14px; font-weight: 400; color: #87867F; }
body.app-desktop .crumb b { color: #3D3D3A; }
body.app-desktop .content { padding: 16px 20px 24px; }
body.app-desktop .page-head { margin-bottom: 12px; align-items: center; }
body.app-desktop .page-head h1 { font-size: 20px; font-weight: 600; letter-spacing: 0; color: #141413; }
body.app-desktop .page-sub { font-size: 14px; color: #87867F; margin-top: 4px; }
body.app-desktop .btn { height: 32px; padding: 0 12px; border-radius: 4px; font-size: 14px; font-weight: 500; background: #E8E6DC; border-color: #D1CFC5; color: #3D3D3A; box-shadow: none; }
body.app-desktop .btn:hover { background: #F5F4ED; border-color: #D1CFC5; color: #141413; }
body.app-desktop .btn.primary { background: #C6613F; border-color: #C6613F; color: #fff; }
body.app-desktop .btn.primary:hover { background: #C46849; border-color: #C46849; }
body.app-desktop .btn.dark { background: #141413; border-color: #141413; color: #fff; }
body.app-desktop .btn.ghost, body.app-desktop .filter-actions a.btn { background: transparent; border-color: #D1CFC5; color: #5E5D59; }
body.app-desktop .card, body.app-desktop .kpi, body.app-desktop .filter-bar { border: 1px solid #D1CFC5; border-radius: 4px; background: #fff; box-shadow: none; }
body.app-desktop .card-head h2 { font-size: 14px; }
body.app-desktop .card-head p { font-size: 13px; }
body.app-desktop .page-title { display: flex; align-items: center; gap: 8px; }
body.app-desktop .help-tip { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #2C84DB; color: #2C84DB; font-size: 12px; line-height: 16px; text-align: center; cursor: help; flex: 0 0 auto; }
body.app-desktop .help-pop { display: none; position: absolute; left: 0; top: 24px; width: 360px; padding: 10px 12px; background: #fff; border: 1px solid #D1CFC5; border-radius: 6px; color: #3D3D3A; font-size: 14px; line-height: 1.6; text-align: left; box-shadow: 0 8px 24px rgba(20,20,19,.08); z-index: 5; }
body.app-desktop .help-tip:hover .help-pop, body.app-desktop .help-tip:focus .help-pop { display: block; }
body.app-desktop .kpi-grid { display: flex; flex-wrap: wrap; gap: 8px; }
body.app-desktop .kpi { min-height: 0; flex: 1 1 240px; flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
body.app-desktop .kpi-body { min-width: 0; flex: 1; }
body.app-desktop .kpi-label { font-size: 14px; color: #5E5D59; }
body.app-desktop .kpi-icon { width: 32px; height: 32px; border-radius: 8px; border: 0; }
body.app-desktop .kpi-orders .kpi-icon { background: #E7F1FB; color: #2C84DB; }
body.app-desktop .kpi-returns .kpi-icon { background: #EEF2E7; color: #5B7046; }
body.app-desktop .kpi-money .kpi-icon { background: #F8EFE4; color: #9A6B2E; }
body.app-desktop .kpi-alert .kpi-icon { background: #FDECE7; color: #C6613F; }
body.app-desktop .kpi-line { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
body.app-desktop .kpi-line { margin-top: 2px; flex-wrap: nowrap; }
body.app-desktop .kpi-line b { font-size: 22px; line-height: 1.1; font-weight: 600; }
body.app-desktop .kpi-orders .kpi-line b { color: #2C84DB; }
body.app-desktop .kpi-returns .kpi-line b { color: #5B7046; }
body.app-desktop .kpi-money .kpi-line b { color: #9A6B2E; }
body.app-desktop .kpi-alert .kpi-line b { color: #C6613F; }
body.app-desktop .kpi-line .unit { font-size: 14px; color: #5E5D59; }
body.app-desktop .kpi-extra { margin-left: 8px; font-size: 14px; line-height: 1; color: #3D3D3A; white-space: nowrap; }
body.app-desktop .sync-stats { padding: 4px 16px 14px; }
body.app-desktop .sync-stats div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; border-bottom: 1px solid #E8E6DC; font-size: 14px; }
body.app-desktop .sync-stats span { color: #5E5D59; }
body.app-desktop .sync-stats b { font-weight: 500; color: #141413; }
body.app-desktop .summary-strip { display: flex; align-items: center; gap: 20px; min-height: 0; padding: 8px 14px; margin-top: 0; }
body.app-desktop .summary-cell { display: flex; align-items: baseline; gap: 8px; padding: 0; min-width: 0; }
body.app-desktop .summary-cell .label { margin: 0; font-size: 13px; white-space: nowrap; }
body.app-desktop .summary-cell .value,
body.app-desktop .summary-cell .value.money { margin: 0; font-size: 16px; line-height: 1.2; }
body.app-desktop .filter-bar { align-items: flex-start; gap: 8px; padding: 10px 12px; margin-bottom: 12px; overflow: visible; }
body.app-desktop .filter-actions { margin-left: 0; flex: 0 0 auto; position: static; }
body.app-desktop .field-label { font-size: 12px; color: #87867F; }
body.app-desktop .input-shell,
body.app-desktop .field > input,
body.app-desktop .field > select,
body.app-desktop .filter-bar select,
body.app-desktop .form-input,
body.app-desktop input[type="date"],
body.app-desktop input[type="time"],
body.app-desktop input[type="month"] {
  height: 32px;
  border: 1px solid #D1CFC5;
  border-radius: 4px;
  background: #fff;
  color: #141413;
  font-size: 14px;
  box-shadow: none;
}
body.app-desktop .input-shell { overflow: hidden; }
body.app-desktop .input-shell input,
body.app-desktop .form-input input {
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0;
}
body.app-desktop .input-shell:focus-within,
body.app-desktop .field > input:focus,
body.app-desktop .field > select:focus,
body.app-desktop .form-input:focus-within {
  border-color: #2C84DB;
  box-shadow: 0 0 0 2px rgba(44, 132, 219, .2);
  outline: 0;
}
body.app-desktop input[type="date"]:focus,
body.app-desktop input[type="month"]:focus,
body.app-desktop input[type="time"]:focus {
  border-color: #d97757;
  box-shadow: 0 0 0 2px rgba(217, 119, 87, .2);
  outline: 0;
}
body.app-desktop input[type="date"] { width: 100%; padding: 0 8px; font-family: inherit; }
body.app-desktop input[type="date"]::-webkit-datetime-edit { padding: 0; line-height: 30px; }
body.app-desktop input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
body.app-desktop .data-table th { height: 40px; padding: 0 12px; font-size: 14px; font-weight: 500; color: #3D3D3A; background: #F5F4ED; border-bottom: 1px solid #E8E6DC; }
body.app-desktop .data-table td { height: 44px; padding: 8px 12px; font-size: 14px; color: #141413; border-bottom: 1px solid #E8E6DC; }
body.app-desktop .data-table tbody tr:nth-child(even) td { background: #F5F4ED; }
body.app-desktop .data-table tbody tr:hover td { background: #F0EEE6; }
body.app-desktop .data-table .small, body.app-desktop .data-table .primary, body.app-desktop .data-table .num, body.app-desktop .product-name { font-size: 14px; }
body.app-desktop .product-sub, body.app-desktop .supplier-mini { font-size: 13px; }
body.app-desktop .table-link { color: #C6613F; }
body.app-desktop .tabs .tab { font-size: 14px; height: 36px; color: #87867F; }
body.app-desktop .tab.on { color: #141413; }
body.app-desktop .tab.on::after { background: #D97757; }
body.app-desktop .chip, body.app-desktop .status-tag { border-radius: 4px; font-size: 12px; }
body.app-desktop .sync-pill { border-radius: 4px; height: 32px; font-size: 13px; border-color: #D1CFC5; color: #5E5D59; }
body.app-desktop .modal { border-radius: 8px; }
body.app-desktop .table-foot, body.app-desktop .pagination .page-btn { font-size: 13px; }
body.app-desktop .page-btn.on { background: #141413; }
body.app-desktop .table-wrap { overflow: auto; }
.goods-line { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.goods-thumb { width: 36px; height: 36px; flex: 0 0 36px; object-fit: cover; border-radius: 4px; background: #F5F4ED; border: 1px solid #E8E6DC; }
.goods-thumb.is-empty { display: inline-block; }
body.app-desktop .data-table .cell-stack { flex-direction: row; align-items: center; gap: 8px; white-space: nowrap; }
body.app-desktop .data-table td { white-space: nowrap; }
body.app-desktop .data-table .small { font-size: 13px; color: #87867F; }
body.app-desktop .hero-title-row .mono { font-size: 16px; }
body.app-desktop .hero-sub { font-size: 14px; }
body.app-desktop .hero-item .label { font-size: 13px; }
body.app-desktop .hero-item .value { font-size: 14px; }
body.app-desktop .hero-amount { font-size: 24px; }
body.app-desktop .hero-amount-label { font-size: 13px; }
body.app-desktop .sp-meta, body.app-desktop .sp-name, body.app-desktop .ri-meta, body.app-desktop .ri-amount { font-size: 14px; }
body.app-desktop .card-head p,
body.app-desktop .empty-state,
body.app-desktop .empty-state strong { font-size: 14px; }
body.app-desktop .content { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding-bottom: 16px; }
body.app-desktop .content > .card:has(.list-footer) { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
body.app-desktop .card:has(.list-footer) > .table-wrap { flex: 1; min-height: 0; overflow: auto; }
body.app-desktop .list-footer { background: #fff; box-shadow: 0 -1px 0 #e6ddd3; }
body.app-desktop .data-table th,
body.app-desktop .data-table td { overflow: hidden; text-overflow: ellipsis; }
/* 表头固定：表格在 .table-wrap 内滚动时，表头始终停在顶部 */
body.app-desktop .data-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #faf9f4;
  box-shadow: inset 0 -1px 0 var(--line);
}
body.app-desktop .data-table.mid-managed-table thead :is(.mid-pin-check, .mid-pin-number, .mid-pin-actions) { top: 0; }
body.app-desktop .data-table.mid-managed-table { border-collapse: separate; border-spacing: 0; }
body.app-desktop .data-table.mid-managed-table :is(.mid-pin-check, .mid-pin-number, .mid-pin-actions) {
  position: sticky;
  z-index: 2;
  background: #fff;
}
body.app-desktop .data-table.mid-managed-table thead :is(.mid-pin-check, .mid-pin-number, .mid-pin-actions) {
  z-index: 4;
  background: #F5F4ED;
}
body.app-desktop .data-table.mid-managed-table tbody tr:nth-child(even) :is(.mid-pin-check, .mid-pin-number, .mid-pin-actions) { background: #F5F4ED; }
body.app-desktop .data-table.mid-managed-table tbody tr:hover :is(.mid-pin-check, .mid-pin-number, .mid-pin-actions) { background: #F0EEE6; }
body.app-desktop .data-table.mid-managed-table .mid-pin-check { left: 0; }
body.app-desktop .data-table.mid-managed-table .mid-pin-number { left: var(--mid-number-offset, 46px); box-shadow: 1px 0 #E8E6DC; }
body.app-desktop .data-table.mid-managed-table .mid-pin-actions { right: 0; box-shadow: -1px 0 #E8E6DC; background-clip: padding-box; }
.order-document { padding: 16px; }
.detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.detail-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.detail-head h2 { margin: 0; font-size: 18px; }
.detail-field-settings { position: relative; }
.detail-field-settings summary {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #e0dbd1;
  border-radius: 6px;
  color: #645f57;
  cursor: pointer;
  list-style: none;
}
.detail-field-settings summary::-webkit-details-marker { display: none; }
.detail-field-settings summary:hover, .detail-field-settings[open] summary { background: #f7eee7; color: #9e4c33; }
.detail-field-settings fieldset {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 7px 15px;
  margin: 4px 0 0;
  padding: 10px 13px 13px;
  border: 1px solid #e0dbd1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px #33231926;
}
.detail-field-settings legend { padding: 1px 6px; background: #fff; font-weight: 600; }
.detail-field-settings label { display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.detail-summary [hidden] { display: none; }
.detail-actions, .detail-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.detail-actions .btn:disabled { opacity: .45; }
.detail-summary, .detail-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; margin: 14px 0; }
.detail-summary div, .detail-totals div { min-width: 0; }
.detail-summary dt, .detail-totals dt { color: #87867F; font-size: 12px; }
.detail-summary dd, .detail-totals dd { margin: 2px 0 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.detail-tabs { display: flex; gap: 4px; border-bottom: 1px solid #E8E6DC; margin-bottom: 12px; }
.detail-tabs button { height: 36px; padding: 0 12px; border: 0; background: transparent; color: #87867F; cursor: pointer; }
.detail-tabs button[aria-pressed="true"] { color: #C6613F; box-shadow: inset 0 -2px 0 #C6613F; }
.order-document .card { border: 0; box-shadow: none; margin-top: 0; }

.workbench { display: grid; gap: 18px; }
.workbench-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.workbench-head h1 { margin: 0; font-size: 25px; font-weight: 650; }
.workbench-head time { color: #645f57; font-size: 13px; font-variant-numeric: tabular-nums; }
.workbench-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.workbench-metrics a {
  --metric-ink: #934825;
  --metric-tint: #fae6db;
  --metric-background: #fdf7f3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 9px;
  padding: 12px 15px;
  border: 1px solid #e0dbd1;
  border-radius: 10px;
  color: #24221f;
  background: var(--metric-background);
}
.workbench-metrics [data-metric="chart"] { --metric-ink: #35614f; --metric-tint: #dfefe6; --metric-background: #f4f9f6; }
.workbench-metrics [data-metric="home"] { --metric-ink: #385879; --metric-tint: #e1ebf5; --metric-background: #f5f8fc; }
.workbench-metrics [data-metric="tag"] { --metric-ink: #80602d; --metric-tint: #f5e9cf; --metric-background: #fcf9f1; }
.workbench-metrics a:hover { border-color: var(--metric-ink); }
.workbench-metrics .metric-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--metric-tint); }
.workbench-metrics .metric-label { color: #584e45; font-size: 13px; }
.workbench-metrics a > strong { grid-column: 1 / -1; line-height: 1.15; font-size: clamp(18px, 2vw, 29px); font-variant-numeric: tabular-nums; }
.workbench-metrics small { margin-left: 5px; font-size: 12px; font-weight: 500; }
.workbench-metrics svg { color: var(--metric-ink); }
.workbench-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 12px; }
.workbench-chart, .workbench-status { padding: 19px 20px; border-radius: 12px; }
.workbench-chart { color: #fff8f2; background: linear-gradient(135deg, #402a24, #573227); }
.workbench h2 { margin: 0; font-size: 15px; }
.workbench-series { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; font-variant-numeric: tabular-nums; }
.workbench-series::before { content: ""; width: 12px; height: 8px; border-radius: 2px; background: #f9a67f; }
.workbench-series-amount { color: #ffe6ac; }
.workbench-series-amount::before { height: 2px; background: #ffe6ac; }
.workbench-amount-plot, .workbench-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.workbench-legend { display: flex; flex-wrap: wrap; gap: 0 24px; }
.workbench-combined-plot { position: relative; margin-top: 18px; --plot-height: 200px; }
.workbench-amount-plot { position: absolute; inset: 0 0 auto; height: var(--plot-height); color: #ffe6ac; pointer-events: none; }
.workbench-amount-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.5; }
.workbench-amount-point { position: relative; }
.workbench-amount-point::after { content: ""; position: absolute; top: var(--amount-y); left: 50%; width: 6px; height: 6px; transform: translate(-50%, -50%); border-radius: 50%; background: currentColor; }
.workbench-amount-value { position: absolute; top: var(--amount-y); left: 50%; transform: translate(-50%, calc(-100% - 5px)); white-space: nowrap; font-size: clamp(9px, 0.95vw, 12px); font-variant-numeric: tabular-nums; }
.workbench-bars { margin-top: 0; }
.workbench-day { display: grid; gap: 9px; text-align: center; }
.workbench-day time { font-size: 12px; color: #f5d5c7; }
.workbench-bar-area {
  display: flex;
  align-items: end;
  justify-content: center;
  height: var(--plot-height);
  border-bottom: 1px solid #ffffff38;
  background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), #ffffff16 calc(25% - 1px) 25%);
}
.workbench-bar { position: relative; height: max(2px, var(--bar-height)); width: min(42px, 64%); border-radius: 5px 5px 0 0; background: #a9715b; }
.workbench-day.today .workbench-bar { background: #f9a67f; }
.workbench-bar b { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 12px; font-variant-numeric: tabular-nums; }
.workbench-bar-area[style]:not([style="--bar-height:0%"]) .workbench-bar b { bottom: auto; top: 6px; }
.workbench-amount-value { padding: 1px 4px; border-radius: 3px; background: #4c2e25; }
.workbench-status { background: #fff; border: 1px solid #e0dbd1; }
.workbench-status dl { margin: 7px 0 0; }
.workbench-status dl div { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; font-size: 13px; }
.workbench-status dl div + div { border-top: 1px solid #f0ebe5; }
.workbench-status dt { color: #645f57; }
.workbench-status dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
body.app-desktop .workbench > .card { margin: 0; border-radius: 10px; border-color: #e0dbd1; }
body.app-desktop .workbench .empty-state { padding: 25px 12px; }

.filter-bar[data-form="return-filter"].is-expanded .filter-fields::after { content: ""; flex-basis: 100%; order: 1; height: 0; }
.filter-bar[data-form="return-filter"] .filter-extra { order: 2; }

.picklist-overview { flex-wrap: wrap; gap: 8px 16px; }
body.app-desktop .summary-strip.picklist-overview { gap: 8px 16px; padding: 8px 12px; }
.picklist-totals { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.picklist-totals .value { white-space: nowrap; }
body.app-desktop .picklist-totals .summary-cell { gap: 4px; }
body.app-desktop .picklist-totals .summary-cell .label { font-size: 11px; }
body.app-desktop .picklist-totals .summary-cell .value { font-size: 14px; }
.picklist-filters { display: flex; flex: 1 1 720px; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
.picklist-search-group { display: flex; flex: 1 1 337px; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.picklist-audit-filter { display: flex; flex-wrap: wrap; gap: 4px; }
.picklist-audit-filter label { position: relative; cursor: pointer; }
.picklist-audit-filter input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.picklist-audit-filter label > .btn { gap: 4px; min-height: 32px; padding: 0 8px; font-size: 12px; white-space: nowrap; }
.picklist-audit-filter input:checked + .btn { border-color: var(--accent); background: var(--accent); color: #fff; }
.picklist-audit-filter input:checked + .btn:hover { border-color: var(--accent-2); background: var(--accent-2); }
.picklist-audit-filter input:focus-visible + .btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.picklist-filters .input-shell { flex: 1 1 116px; gap: 6px; min-width: 0; }
.picklist-filters .input-shell input { min-width: 0; }
body.app-desktop .picklist-filters > input[type="date"] { width: 131px; padding: 0 6px; }
.picklist-filters > select { height: 32px; padding: 0 6px; border: 1px solid #d1cfc5; border-radius: 4px; background: #fff; color: #141413; font: inherit; }
.picklist-filters > select[name="clientType"] { max-width: 155px; }
.picklist-filters > button { min-height: 32px; }
.picklist-regions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-top: 8px; padding: 8px 12px; border: 1px solid #e0dbd1; border-radius: 4px; background: #fff; }
.picklist-regions h2 { margin: 0; font-size: 13px; }
.picklist-regions ul { display: flex; flex-wrap: wrap; gap: 5px 8px; padding: 0; margin: 0; list-style: none; }
.picklist-regions li { display: flex; gap: 7px; align-items: center; padding: 3px 8px; background: #f7f4ed; border-radius: 4px; font-size: 12px; }
.picklist-regions li span:last-child { color: #645f57; }
.picklist-regions-empty { color: #645f57; font-size: 12px; }
.picklist-warehouse-section {
  margin-top: 8px;
  padding: 8px 10px 6px;
  border: 1px solid #e0dbd1;
  border-radius: 4px;
  background: #fff;
}
.picklist-warehouse-heading { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.picklist-warehouse-heading::-webkit-details-marker { display: none; }
.picklist-warehouse-heading:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.picklist-warehouse-heading > strong { font-size: 13px; }
.picklist-warehouse-count { color: #645f57; font-size: 12px; }
.picklist-chart-toggle {
  display: inline-flex; align-items: center; gap: 5px; min-height: 28px; margin-left: auto; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink-2); font-size: 12px;
}
.picklist-warehouse-heading:hover .picklist-chart-toggle { background: #f7f4ed; }
.picklist-warehouse-section:not([open]) .picklist-chart-collapse,
.picklist-warehouse-section[open] .picklist-chart-expand { display: none; }
.picklist-warehouse-section[open] .picklist-chart-toggle svg { transform: rotate(180deg); }
.picklist-combo-chart {
  --metric-line-height: 12px;
  --label-space: calc(11px + 4 * var(--metric-line-height));
  --plot-height: 128px;
  --qty-line: #85578c;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 6px;
}
.picklist-chart-axis {
  display: grid;
  grid-template-rows: var(--label-space) var(--plot-height) auto;
  min-width: 64px;
  color: #4e6a85;
  font-size: 11px;
  text-align: end;
}
.picklist-chart-axis.is-qty { min-width: 53px; color: var(--qty-line); text-align: start; }
.picklist-chart-axis > b { grid-row: 3; align-self: start; margin-top: 6px; line-height: 13px; white-space: nowrap; }
.picklist-chart-axis > ul {
  display: grid;
  grid-row: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}
.picklist-chart-axis li { position: relative; grid-area: 1 / 1; align-self: start; top: var(--tick-position); transform: translateY(-50%); }
.picklist-chart-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #c9c0b4 transparent; }
.picklist-warehouses {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  min-width: calc(var(--warehouse-count) * max(48px, var(--metric-chars) * 1ch + 6px));
  font-size: 11px;
}
.picklist-warehouses::before {
  content: "";
  position: absolute;
  inset: var(--label-space) 0 auto;
  height: var(--plot-height);
  border-bottom: 1px solid #d9d7cf;
  background: repeating-linear-gradient(to bottom, #eeebe5 0 1px, transparent 1px 25%);
  pointer-events: none;
}
.picklist-warehouse {
  display: grid;
  grid-template-rows: var(--label-space) var(--plot-height) auto;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 3px;
  color: #24221f;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
.picklist-warehouse:hover, .picklist-warehouse:focus-visible { background: #607c9610; }
.picklist-warehouse:focus-visible, .picklist-chart-scroll:focus-visible { outline: 2px solid #52739a; outline-offset: -2px; }
.picklist-column-plot {
  --order-label-bottom: calc(var(--extent) + 5px);
  --qty-label-bottom: calc(100% - var(--qty-y) + 5px);
  position: relative;
  grid-area: 2 / 1;
}
.picklist-bar { position: absolute; inset: 0; width: 28px; margin-inline: auto; }
.picklist-bar::before, .picklist-bar::after { position: absolute; inset-inline: 0; }
.picklist-bar::before { content: ""; bottom: 0; height: var(--stable); border-radius: 3px 3px 0 0; background: #617e9c; }
.picklist-bar:is(.is-increase, .is-decrease)::before { border-radius: 0; }
.picklist-bar:is(.is-increase, .is-decrease)::after {
  content: "";
  bottom: var(--stable);
  height: calc(var(--extent) - var(--stable));
  border-radius: 3px 3px 0 0;
}
.picklist-bar.is-increase::after { background: #458460; }
.picklist-bar.is-decrease::after { background: repeating-linear-gradient(135deg, #b36d4e 0 2px, #efd6c9 2px 4px); }
.picklist-trend-segment {
  position: absolute;
  inset: 0 auto 0 -50%;
  z-index: 1;
  width: 100%;
  background: var(--qty-line);
  clip-path: polygon(0 calc(var(--previous-qty-y) - 1px), 100% calc(var(--qty-y) - 1px), 100% calc(var(--qty-y) + 1px), 0 calc(var(--previous-qty-y) + 1px));
  pointer-events: none;
}
.picklist-trend-point {
  position: absolute;
  z-index: 2;
  top: var(--qty-y);
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--qty-line);
}
.picklist-column-value, .picklist-trend-value {
  position: absolute;
  z-index: 3;
  left: 50%;
  display: grid;
  width: max-content;
  transform: translateX(-50%);
  padding: 1px 2px;
  border-radius: 3px;
  background: #fffffff0;
  line-height: var(--metric-line-height);
  white-space: nowrap;
}
.picklist-column-value { bottom: var(--order-label-bottom); }
.picklist-trend-value { bottom: var(--qty-label-bottom); color: #704476; }
.picklist-column-plot.is-order-higher .picklist-column-value {
  bottom: max(var(--order-label-bottom), calc(var(--qty-label-bottom) + var(--qty-label-lines) * var(--metric-line-height) + 4px));
}
.picklist-column-plot:not(.is-order-higher) .picklist-trend-value {
  bottom: max(var(--qty-label-bottom), calc(var(--order-label-bottom) + var(--order-label-lines) * var(--metric-line-height) + 4px));
}
.picklist-column-delta { color: #286746; font-size: 10px; font-weight: 600; }
.picklist-column-delta.is-decrease { color: #92482e; }
.picklist-column-name { grid-area: 3 / 1; align-self: start; justify-self: center; max-width: 100%; margin-top: 5px; padding: 1px 2px; line-height: 13px; overflow-wrap: anywhere; }
.picklist-warehouse.is-current .picklist-column-name { border-radius: 3px; background: #f8e8e0; color: #914127; }
.picklist-chart-transfers { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding-top: 5px; border-top: 1px solid #eeebe5; font-size: 11px; }
.picklist-chart-transfers > span { flex: none; color: #645f57; }
.picklist-chart-transfers ul { display: flex; gap: 6px; margin: 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: thin; }
.picklist-chart-transfers li { display: flex; gap: 8px; align-items: baseline; padding: 3px 7px; border-radius: 3px; background: #f7f4ed; white-space: nowrap; }
.picklist-tabs { margin-top: 8px; }
.picklist-page, .picklist-scroll { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.picklist-fixed { flex: 0 0 auto; max-height: 65%; overflow: auto; }
.picklist-scroll { overflow: auto; scrollbar-width: thin; scrollbar-color: #d7d3c7 transparent; }
.picklist-scroll > :is(.picklist-warehouse-section, .picklist-tabs) { flex-shrink: 0; }
.picklist-scroll > .card { display: flex; flex-direction: column; flex: 1 0 320px; overflow: hidden; }
.picklist-scroll > .picklist-detail-table { flex-basis: 272px; }
.picklist-detail-table > .table-wrap { flex: 1; min-height: 0; }
.picklist-detail > .list-footer { flex-wrap: wrap; border: 1px solid #d1cfc5; border-radius: 4px; box-shadow: none; }
.picklist-detail .list-footer-left { flex-wrap: wrap; column-gap: 10px; }
.picklist-detail .mid-pager { flex-wrap: wrap; justify-content: flex-end; }
.picklist-selection-total { color: #655e55; white-space: nowrap; font-variant-numeric: tabular-nums; }
.picklist-selection-total b { color: #332820; }
.picklist-selection-qty { margin-left: 5px; padding-left: 8px; border-left: 1px solid #dfd8ce; }
.picklist-route-note { color: #8e402b; }
.picklist-route-dialog {
  width: min(496px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid #e0d8cd;
  border-radius: 12px;
  background: #fff;
  color: #24221f;
  box-shadow: 0 18px 52px #36251926;
  color-scheme: light;
}
.picklist-route-dialog::backdrop { background: #32271c36; }
.picklist-route-dialog form { display: flex; flex-direction: column; gap: 12px; max-height: calc(100dvh - 30px); padding: 18px; }
.picklist-route-dialog h2 { margin: 0; font-size: 18px; }
.picklist-route-dialog header p { max-height: 4.5em; overflow: auto; margin: 4px 0 0; color: #635a50; font-size: 13px; overflow-wrap: anywhere; }
.picklist-route-search { display: grid; gap: 5px; }
.picklist-route-search label { font-size: 13px; font-weight: 600; }
.picklist-route-search .input-shell { min-height: 36px; gap: 7px; border: 1px solid #d9d1c6; border-radius: 6px; color: #73675a; }
.picklist-route-search .input-shell:focus-within { border-color: #ab624b; outline: 2px solid #f3ded3; }
.picklist-route-picker { display: flex; min-height: 0; border: 1px solid #e5ded4; border-radius: 8px; overflow: hidden; }
.picklist-route-list {
  width: 100%;
  min-height: 0;
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-padding-top: 29px;
  scrollbar-width: thin;
  scrollbar-color: #c9c0b4 #fbf8f4;
  scrollbar-gutter: stable;
}
.picklist-route-columns, .picklist-route-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 72px 78px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.picklist-route-columns { position: sticky; top: 0; z-index: 1; min-height: 29px; background: #f6f3ee; color: #655e55; font-size: 12px; }
.picklist-route-columns span:first-child { grid-column: 2; }
.picklist-route-columns span:not(:first-child), .picklist-route-option span { text-align: right; }
.picklist-route-option { min-height: 40px; border-top: 1px solid #f0ebe4; cursor: pointer; font-size: 13px; font-variant-numeric: tabular-nums; }
.picklist-route-option strong { overflow-wrap: anywhere; font-weight: 600; }
.picklist-route-option input { width: 15px; height: 15px; margin: 0; accent-color: #ae5338; }
.picklist-route-option:hover, .picklist-route-option:focus-within { background: #faf5ef; }
.picklist-route-option:has(input:checked) { background: #faebe2; color: #88422c; }
.picklist-route-option[hidden] { display: none; }
.picklist-route-empty { margin: 0; padding: 19px 10px; color: #655e55; text-align: center; }
.picklist-route-dialog footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.picklist-route-dialog footer > span { flex: 1 1 100px; color: #655e55; font-size: 13px; overflow-wrap: anywhere; }

.settlement-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.settlement-stat { display: grid; gap: 3px; padding: 7px 12px; border: 1px solid #d1cfc5; border-radius: 4px; background: #fff; }
.settlement-stat > span { color: #5e5d59; font-size: 13px; }
.settlement-stat > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-height: 23px; font-variant-numeric: tabular-nums; }
.settlement-stat strong { font-size: 17px; line-height: 1.15; }
.settlement-stat small { font-size: 12px; font-weight: 500; }
.settlement-stat b { font-size: 14px; line-height: 1.15; }

#order-print-dialog { width: min(920px, 94vw); max-height: 92vh; padding: 0; border: 1px solid #d1cfc5; border-radius: 10px; background: #f5f3ed; color: #24221f; }
#order-print-dialog::backdrop { background: #22181480; }
.print-toolbar { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; padding: 10px 16px; background: #fff; border-bottom: 1px solid #e4dfd7; }
.print-toolbar h2 { flex: 1; margin: 0; font-size: 15px; }
#order-print-preview { margin: 16px; padding: 24px; background: #fff; }
#order-print-preview h2, .print-order-number { margin: 0; text-align: center; }
.print-order-number { margin-top: 4px; font-size: 13px; }
.print-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 14px; margin: 18px 0; font-size: 12px; }
.print-meta dt { color: #56514a; }
.print-meta dd { margin: 2px 0 0; overflow-wrap: anywhere; }
#order-print-preview table { width: 100%; border-collapse: collapse; font-size: 12px; }
#order-print-preview :is(th, td) { border: 1px solid #c4bfb6; padding: 6px; text-align: left; overflow-wrap: anywhere; }
#order-print-preview tr { break-inside: avoid; }
.print-total { margin: 14px 0 0; text-align: right; }

@media (max-width: 1000px) {
  .workbench-metrics, .settlement-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .workbench-grid { grid-template-columns: 1fr; }
}
@media print {
  body:has(#order-print-dialog[open]) { display: block; overflow: visible; margin: 0; background: #fff; }
  body:has(#order-print-dialog[open]) > :not(#order-print-dialog), #order-print-dialog .print-toolbar { display: none !important; }
  #order-print-dialog[open] { position: static; inset: auto; width: auto; max-width: none; height: auto; max-height: none; overflow: visible; margin: 0; padding: 0; border: 0; color: #000; }
  #order-print-dialog::backdrop { display: none; }
  #order-print-preview { margin: 0; padding: 0; }
}

/* ------------------------------------------------------------------ 外框（参照鸟屋&鸟醺） */
:root {
  --sidebar-bg: #141413;
  --clay: #d97757;
  --clay-hover: #c6613f;
  --gray-050: #faf9f5;
  --gray-200: #e8e6dc;
  --gray-300: #d1cfc5;
  --gray-400: #b0aea5;
  --dark-line: 1px solid rgba(255, 255, 255, .08);
}
body.app-desktop .desktop { display: flex; height: 100vh; overflow: hidden; }
body.app-desktop .sidebar {
  flex: 0 0 136px; width: 136px; height: 100vh; position: sticky; top: 0;
  padding: 0; background: var(--sidebar-bg); color: var(--gray-050);
  display: flex; flex-direction: column; overflow: hidden;
}
body.app-desktop .sidebar::after { display: none; }
body.app-desktop .brand {
  display: block; height: 46px; flex: 0 0 46px; line-height: 46px; padding: 0 10px 0 17px;
  border-bottom: var(--dark-line); color: var(--gray-050);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.app-desktop .brand-name { display: inline; font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--gray-050); }
body.app-desktop .sidebar .nav { display: flex; flex-direction: column; gap: 0; padding: 8px 0; overflow-y: auto; min-height: 0; }
body.app-desktop .sidebar .nav-item {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 14px;
  border-radius: 0; color: var(--gray-050); font-size: 15px; white-space: nowrap;
}
body.app-desktop .sidebar .nav-item span { overflow: hidden; text-overflow: ellipsis; }
body.app-desktop .sidebar .nav-item svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--gray-400); }
body.app-desktop .sidebar .nav-item:hover { background: rgba(255, 255, 255, .06); color: var(--gray-050); }
body.app-desktop .sidebar .nav-item.active { background: rgba(217, 119, 87, .12); color: var(--clay); }
body.app-desktop .sidebar .nav-item.active svg { color: var(--clay); }
body.app-desktop .sidebar .nav-item.active::before { display: none; }
body.app-desktop .side-info { margin-top: auto; padding: 12px 8px 12px 17px; border-top: var(--dark-line); }
body.app-desktop .si-tel { color: var(--gray-200); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .3px; white-space: nowrap; }
body.app-desktop .sidebar .nav-foot { flex: 0 0 auto; padding: 0 0 8px; border-top: var(--dark-line); overflow: visible; }

body.app-desktop .main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; background: var(--gray-050); }
body.app-desktop .topbar {
  height: 46px; flex: 0 0 46px; padding: 0 16px 0 20px; gap: 12px;
  background: var(--sidebar-bg); border-bottom: var(--dark-line);
  position: sticky; top: 0; z-index: 20;
}
body.app-desktop .crumb { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 13px; color: var(--gray-400); white-space: nowrap; }
body.app-desktop .crumb .sep { color: var(--gray-400); }
body.app-desktop .crumb b.crumb-page { font-size: 14px; font-weight: 600; color: #fff; }
body.app-desktop .top-actions { display: flex; align-items: center; gap: 14px; }
.top-order-sound {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  color: var(--gray-300);
  cursor: pointer;
}
.top-order-sound[aria-checked="true"] { color: #fff; }
.top-order-sound:hover { background: rgb(255 255 255 / 22%); }
.top-order-sound:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
body.app-desktop .top-clock { font-size: 13px; color: var(--gray-300); font-variant-numeric: tabular-nums; white-space: nowrap; }
.page-tabs {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #64635d transparent;
}
.page-tab {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  min-height: 29px;
  border: 1px solid #42413c;
  border-radius: 5px;
  background: #1f1f1d;
  color: var(--gray-300);
  font-size: 13px;
  white-space: nowrap;
}
.page-tab.is-current {
  border-color: var(--clay);
  background: #302019;
  color: #f49a7b;
}
.page-tab a, .page-tab button { display: flex; align-items: center; color: inherit; }
.page-tab a { padding: 0 4px 0 9px; }
.page-tab button {
  justify-content: center;
  width: 23px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.page-tab a:hover, .page-tab button:hover { background: rgb(255 255 255 / 8%); color: #fff; }
.page-tab :is(a, button):focus-visible { outline: 1px solid var(--clay); outline-offset: -2px; }
@media (max-width: 1000px) {
  body.app-desktop .topbar .top-clock { display: none; }
}
@media (max-width: 620px) {
  body.app-desktop .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 45px auto;
    gap: 0 8px;
    height: auto;
    flex-basis: auto;
    padding: 0 8px 5px;
  }
  .page-tabs { grid-row: 2; grid-column: 1 / -1; min-height: 29px; }
  .page-tabs:empty { display: none; }
  body.app-desktop .top-actions { gap: 6px; }
  .topbar .crumb :is(.crumb-group, .sep) { display: none; }
  .topbar .crumb-page { overflow: hidden; text-overflow: ellipsis; }
  .topbar .ub-name { max-width: min(70px, 11vw); }
}
body.app-desktop .content { flex: 1; min-width: 0; background: var(--gray-050); }

body.app-desktop .content:has(> .product-list) { overflow-y: auto; }
.product-list {
  flex: 1;
  min-height: 400px;
  display: grid;
  grid-template-columns: clamp(160px, 16vw, 220px) minmax(0, 1fr);
  gap: 16px;
}
.product-categories {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
  border: 1px solid #e6e3d8;
  border-radius: 8px;
  background: #efede4;
}
.product-categories h2 { margin: 0 6px 6px; padding: 0 4px 12px; border-bottom: 1px solid #dedbd0; font-size: 16px; }
.product-category-options { min-height: 0; overflow: auto; }
.product-category-options button {
  position: relative;
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #3d3d3a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.product-category-options button:hover { background: #f8f7f2; }
.product-category-options button[aria-pressed="true"] { background: #fff; color: var(--clay-hover); font-weight: 600; }
.product-category-options button[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  inset: 9px auto 9px 0;
  width: 3px;
  border-radius: 4px;
  background: var(--clay);
}
.product-category-options button:focus-visible { outline: 2px solid var(--clay-hover); outline-offset: -2px; }
.product-category-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-category-count { color: #6d6c64; font-size: 13px; font-variant-numeric: tabular-nums; }
.product-list-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.product-list-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f5f4ed;
}
.product-list-filters .field { flex: 1 1 114px; max-width: 190px; }
.product-list-filters .field.search { flex: 2 1 245px; max-width: 440px; }
.product-list-filters .field > span:first-child { color: #3d3d3a; }
.product-list-sync { padding: 6px 2px; text-align: right; font-size: 13px; }
.product-list-main > .card { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.product-list-filters + .card { margin-top: 10px; }
.product-list-main .list-footer, .product-list-main .mid-pager { flex-wrap: wrap; }

@media (max-width: 800px) {
  .product-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(380px, 1fr); gap: 10px; }
  .product-category-options { display: flex; gap: 2px; }
  .product-category-options button { flex: 0 0 auto; width: auto; max-width: min(220px, 75%); }
}
@media (max-width: 620px) {
  .product-list { grid-template-rows: auto minmax(480px, 1fr); }
}

/* 认证状态胶囊 */
.vpill {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 12px 0 9px; border-radius: 13px;
  font-size: 13px; font-weight: 600; letter-spacing: .5px; white-space: nowrap; color: #fff;
  border: 1px solid transparent; transition: filter .15s, box-shadow .15s;
}
.vpill svg { width: 15px; height: 15px; }
a.vpill:hover { color: #fff; filter: brightness(1.08); }
.vpill.v-none { background: linear-gradient(180deg, #e5574c, #c9382e); border-color: #f07a70; box-shadow: 0 0 0 3px rgba(229, 87, 76, .22); }
.vpill.v-pending { background: linear-gradient(180deg, #eba53b, #d08519); border-color: #f5c06e; box-shadow: 0 0 0 3px rgba(235, 165, 59, .22); }
.vpill.v-approved { background: linear-gradient(180deg, #23b47e, #128a5c); border-color: #5fd3a5; box-shadow: 0 0 0 3px rgba(35, 180, 126, .24); }

/* 用户按钮 + 下拉 */
.user-box { position: relative; }
.ub {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 3px; border: 0; border-radius: 16px;
  background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 14px; cursor: pointer;
}
.ub:hover, .ub[aria-expanded="true"] { background: rgba(255, 255, 255, .22); }
.ub-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--clay); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
  text-transform: uppercase; overflow: hidden;
}
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-lg { width: 64px; height: 64px; flex: 0 0 64px; font-size: 26px; }
.um {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 232px; padding: 6px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; box-shadow: 0 8px 24px rgba(20, 20, 19, .16);
  color: #3d3d3a; font-size: 14px;
}
.um[hidden] { display: none; }
.um-head { display: flex; gap: 10px; align-items: center; padding: 8px 8px 10px; border-bottom: 1px solid var(--gray-200); margin-bottom: 4px; }
.um-head .av { width: 34px; height: 34px; flex-basis: 34px; font-size: 15px; }
.um-who { min-width: 0; }
.um-name { font-weight: 600; color: #141413; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-role { font-size: 12px; color: #87867f; }
.um-valid { padding: 6px 8px 8px; }
.um-valid-k { font-size: 12px; color: #87867f; }
.um-valid-v { font-size: 13px; color: #141413; font-variant-numeric: tabular-nums; white-space: nowrap; }
.um-sep { height: 1px; background: var(--gray-200); margin: 4px 0; }
.um-item {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 8px; border: 0; border-radius: 4px;
  background: none; font: inherit; color: #3d3d3a; text-align: left; cursor: pointer;
}
.um-item:hover { background: #f0eee6; color: #141413; }
.um-item svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* 头像和名称弹窗 */
#profile-dialog { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; width: min(420px, calc(100vw - 32px)); }
#profile-dialog::backdrop { background: rgba(20, 24, 20, .28); }
#profile-dialog h2 { margin: 0 0 4px; font-size: 16px; }
#profile-dialog > form > label { display: grid; gap: 4px; margin: 8px 0 2px; font-size: 13px; color: var(--muted); }
#profile-dialog input[name="displayName"] { height: 34px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 8px; }
#profile-dialog .pf { display: flex; align-items: center; gap: 16px; margin: 14px 0 16px; }
#profile-dialog .pf-ops { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
#profile-dialog .pf-ops .btn { cursor: pointer; display: inline-flex; align-items: center; }
#profile-dialog .link-btn { font-size: 13px; color: #87867f; }
#profile-dialog .pf-hint, #profile-dialog .pf-help { flex: 1 1 100%; margin: 0; font-size: 12px; color: var(--muted); }
#profile-msg { margin: 6px 0 0; min-height: 18px; font-size: 13px; color: var(--red); }

/* 系统设置 Tab */
.settings-tabs { display: flex; flex-wrap: wrap; gap: 0 32px; margin: 0 0 14px; border-bottom: 1px solid var(--gray-200); }
.settings-tabs a { position: relative; padding: 10px 0; font-size: 16px; color: #5e5d59; }
.settings-tabs a:hover, .settings-tabs a.on { color: var(--clay-hover); }
.settings-tabs a.on { font-weight: 600; }
.settings-tabs a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--clay-hover); }

body.app-desktop .content:has(> .system-settings) { overflow: auto; padding: 16px 24px; }
body.app-desktop .content:has(> .system-settings) > .page-head { margin-bottom: 6px; }
body.app-desktop .content:has(> .system-settings) > .page-head h1 { font-size: 22px; }
.system-settings { display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: #3d3d3a; }
.system-settings .muted { color: #68675f; }
body.app-desktop .system-settings .btn { height: 36px; padding-inline: 16px; font-size: 15px; border-radius: 6px; white-space: nowrap; }
body.app-desktop .system-settings .btn.sm { height: 32px; padding-inline: 12px; font-size: 14px; }
body.app-desktop .system-settings .btn.primary:disabled { background: #e3b4a3; border-color: #e3b4a3; color: #fff; cursor: not-allowed; }
.system-settings input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--clay-hover); }
.st-input {
  height: 40px; min-width: 0; padding: 0 12px; border: 1px solid #d1cfc5; border-radius: 6px; background: #fff;
  font: inherit; font-size: 15px; color: #141413;
}
.st-input::placeholder { color: #b0aea5; }
.st-input:focus { outline: none; border-color: #2c84db; box-shadow: 0 0 0 2px rgba(44, 132, 219, .2); }

body.app-desktop .system-settings :is(.st-card, .system-section, .system-logs-grid > .card) {
  background: #f5f4ed; border: 0; border-radius: 16px; padding: 16px 20px; box-shadow: none; min-width: 0;
}
body.app-desktop .system-settings .system-section .card { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
body.app-desktop .system-settings :is(.st-card h2, .system-section-head h2, .system-logs-grid .card-head h2) { margin: 0; font-size: 17px; font-weight: 600; color: #141413; }

/* 基础配置 · 系统昵称一行 */
.st-names { display: grid; grid-template-columns: auto repeat(2, minmax(0, 1fr)) auto; align-items: center; gap: 12px 24px; }
.st-names h2 { white-space: nowrap; }
.st-field { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.st-field > span { flex: 0 0 auto; white-space: nowrap; color: #3d3d3a; }
.st-field i { font-style: normal; font-size: 14px; color: #68675f; }
.st-field .st-input { flex: 1; width: 0; }
.st-names .st-btn { min-width: 88px; }

/* 基础配置 · 实名认证 */
.vf { display: flex; flex-direction: column; gap: 16px; }
.vf-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-bottom: 12px; border-bottom: 1px solid #e8e6dc; }
.vf-title .muted { font-size: 15px; }
.vbadge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 14px; border: 1px solid #d1cfc5; color: #5e5d59; background: #faf9f5; }
.vbadge.v-pending { border-color: #e3a64c; color: #b97813; background: #fdf6ea; }
.vbadge.v-approved { border-color: #3fb58f; color: #1f9a72; background: #eefaf5; }
.vf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; padding-inline: 12px; }
.vf-item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vf-label { display: flex; align-items: center; min-height: 34px; font-size: 16px; color: #141413; }
.vf-opt { margin-left: 10px; font-size: 14px; color: #68675f; }
.vf-label .req { color: #bf4d43; font-style: normal; margin-left: 2px; }
.vf-type { margin-left: auto; display: inline-flex; border: 1px solid #d1cfc5; border-radius: 6px; overflow: hidden; }
.vf-type button { height: 32px; padding: 0 14px; border: 0; background: #fff; font: inherit; font-size: 15px; color: #3d3d3a; cursor: pointer; }
.vf-type button + button { border-left: 1px solid #d1cfc5; }
.vf-type button.on { background: var(--clay-hover); color: #fff; }
.vf-box {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 160px;
  border: 1.5px dashed #c9c7bd; border-radius: 12px; background: #fff; overflow: hidden; cursor: pointer; transition: border-color .15s;
}
.vf-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vf-box:focus-within { outline: 2px solid #2c84db; outline-offset: 2px; }
.vf-box:hover { border-color: var(--clay); }
.vf-box.has-img { border-style: solid; border-color: #e8e6dc; background: #fff; }
.vf-box.is-locked { cursor: default; }
.vf-box.is-locked:hover { border-color: #e8e6dc; }
.vf-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vf-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 16px; color: #3d3d3a; }
.vf-empty svg { color: #87867f; margin-bottom: 4px; }
.vf-hint { font-size: 14px; color: #68675f; }
.vf-mask { position: absolute; inset: auto 0 0 0; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(20, 20, 19, .55); color: #fff; font-size: 14px; opacity: 0; transition: opacity .15s; }
.vf-box:hover .vf-mask, .vf-box:focus-within .vf-mask { opacity: 1; }
.vf-box.is-busy::after { content: "上传中…"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20, 20, 19, .55); color: #fff; font-size: 15px; }
.vf-no { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #3d3d3a; }
.vf-no > :first-child { flex: 0 0 auto; }
.vf-no .st-input { flex: 1; width: 0; }
.vf-no-v { flex: 1; font-size: 15px; color: #141413; overflow-wrap: anywhere; }
.vf-link { flex: 0 0 auto; border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: #68675f; cursor: pointer; }
.vf-link:hover { color: var(--clay-hover); text-decoration: underline; }
.vf-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 12px 0; border-top: 1px solid #e8e6dc; }
.vf-why { flex: 1 1 460px; display: flex; flex-direction: column; gap: 3px; font-size: 15px; line-height: 1.55; }
.vf-act .st-btn { min-width: 120px; }
.vf-tip { font-size: 15px; color: #b97813; }
.vf-tip.ok { color: #1f9a72; }

/* 系统连接与同步 */
.st-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.system-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.system-settings .status-tag { font-size: 13px; min-height: 24px; padding: 0 8px; border-radius: 12px; }
.system-settings .system-settings-form { display: flex; flex-direction: column; gap: 10px; }
.system-settings-field, .system-settings-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.system-settings-field strong { font-weight: 600; color: #141413; }
.system-settings-actions { justify-content: space-between; }
.system-settings-actions label, .sync-window label { display: inline-flex; align-items: center; gap: 7px; }
.system-settings-actions label { cursor: pointer; }
.system-settings .btn-row { display: flex; align-items: center; gap: 10px; }
.unit-settings-description, .sync-description { margin: 0; font-size: 14px; line-height: 1.5; color: #68675f; }
.sync-description { flex: 1 1 500px; }
.sync-plan { padding: 0 14px; background: #fff; border-radius: 10px; }
.sync-plan-row {
  display: grid; grid-template-columns: 54px 132px 100px minmax(0, 1fr) auto; align-items: center;
  gap: 6px 12px; min-height: 44px; padding: 5px 0; border-bottom: 1px solid #e8e6dc;
}
.sync-plan-row > b { font-weight: 600; color: #141413; }
.sync-plan-row select, .sync-plan-row input[type="time"] {
  height: 33px; min-width: 0; border: 1px solid #d1cfc5; border-radius: 6px; background-color: #fff; font-size: 15px;
}
.sync-plan-row input[type="time"] { width: 100%; padding: 0 7px; }
.sync-plan-row input[type="time"]:focus { border-color: #2c84db; outline: 0; box-shadow: 0 0 0 2px rgba(44, 132, 219, .2); }
.sync-plan-timing, .sync-window { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.sync-plan-timing { min-width: 0; }
.sync-plan-timing :is([data-sync-next], .muted), .sync-window label { font-size: 14px; }
.sync-plan-timing [data-sync-next] { color: #68675f; }
.sync-plan-timing [data-sync-next]:empty { display: none; }
.sync-window input[type="time"] { width: 100px; }
.sync-plan-footer { display: flex; flex-wrap: wrap; justify-content: space-between; border-bottom: 0; }
body.app-desktop .system-settings .alert { align-items: flex-start; gap: 9px; padding: 10px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.system-settings .alert svg { flex: 0 0 auto; }
.system-settings .alert span > span { display: inline-block; margin-right: 16px; }

/* 操作日志 */
.system-logs-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 14px; }
body.app-desktop .system-logs-grid .card-head { min-height: 0; padding: 0 0 12px; margin: 0; border: 0; background: none; }
.system-logs-grid .card-head > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
body.app-desktop .system-logs-grid .card-head p { margin: 0; font-size: 14px; color: #68675f; }
.system-logs-grid .table-wrap { background: #fff; border-radius: 10px; }
.settings-log-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.settings-log-table :is(th, td) { height: 44px; padding: 4px 10px; border-bottom: 1px solid #efede6; text-align: left; white-space: nowrap; }
.settings-log-table th { height: 38px; font-size: 14px; font-weight: 600; background: #eeece3; }
.settings-log-table tr:last-child td { border-bottom: 0; }
.settings-log-table tbody tr:hover { background: #faf9f6; }
.settings-log-table th:first-child { width: 150px; }
.settings-log-table th:nth-child(3), .settings-log-table th:last-child { width: 64px; }
.sync-log-card .settings-log-table th:nth-child(2) { width: 82px; }
.sync-log-card .settings-log-table th:last-child { width: auto; }
.settings-log-table .system-log-message { white-space: normal; overflow-wrap: anywhere; }
.system-log-detail {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; line-height: 1.18;
  text-align: left; cursor: pointer;
}
.system-log-detail:hover { color: var(--clay-hover); text-decoration: underline; }
.system-log-account, .system-log-account .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.system-log-account { display: block; line-height: 1.18; }
.system-log-account .muted { display: block; font-size: 13px; }
.system-logs-grid .empty-state { padding: 36px 12px; }
.settings-log-dialog { width: min(520px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.settings-log-dialog::backdrop { background: rgba(20, 24, 20, .28); }
.settings-log-dialog h2 { margin: 0; font-size: 18px; }
.settings-log-dialog p { margin: 12px 0 20px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.settings-log-dialog form { display: flex; justify-content: flex-end; }

@media (max-width: 1100px) {
  .st-names { gap: 10px 14px; }
  .st-field i { display: none; }
  .sync-plan-row { gap: 5px 9px; grid-template-columns: 48px 118px 92px minmax(0, 1fr) auto; }
  .settings-log-table :is(th, td) { padding-inline: 7px; }
  .settings-log-table th:first-child { width: 139px; }
  .settings-log-table th:nth-child(3), .settings-log-table th:last-child { width: 55px; }
}
@media (max-width: 920px) {
  body.app-desktop .content:has(> .system-settings) { padding-inline: 16px; }
  .st-names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-names h2 { grid-column: 1 / -1; }
  .st-names .st-btn { grid-column: 2; justify-self: end; }
  .st-row, .system-logs-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-log-table { min-width: 340px; }
}
@media (max-width: 680px) {
  .st-names, .vf-grid { grid-template-columns: minmax(0, 1fr); }
  .st-names .st-btn { grid-column: 1; }
  .vf-grid, .vf-bottom { padding-inline: 0; }
  .sync-plan-row:not(.sync-plan-footer) { grid-template-columns: minmax(48px, 1fr) minmax(92px, 1.5fr) minmax(82px, 1fr); }
  .sync-plan-timing { grid-column: 1 / -1; }
  .sync-plan-timing:has([data-sync-next]:empty):not(:has(.sync-window)) { display: none; }
  .sync-plan-row > .btn { grid-column: 1 / -1; justify-self: end; }
}

/* 司机 H5：对齐移动端 UI 风格标准 */
body.app-h5 #app { width: 100%; min-width: 0; }
body.app-h5 {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  overflow: hidden;
  background: #e7e2d6;
  color: #3d3d3a;
  font-size: 14px;
  line-height: 1.5;
}
body.app-h5 .phone {
  width: 390px;
  height: min(844px, 100dvh);
  padding: 0;
  border: 1px solid #e8e6dc;
  border-radius: 28px;
  background: #faf9f5;
  box-shadow: 0 18px 50px rgba(26, 23, 20, .16);
}
body.app-h5 .h5-screen {
  border-radius: 28px;
  background: #faf9f5;
  color: #3d3d3a;
}
body.app-h5 .h5-nav,
body.app-h5 .h5-fixed,
body.app-h5 .create-tools {
  flex: 0 0 auto;
  background: #faf9f5;
  z-index: 3;
}
body.app-h5 .h5-nav {
  height: auto;
  min-height: 52px;
  padding: 10px 16px 6px;
}
body.app-h5 .h5-nav h1 { font-size: 20px; font-weight: 700; letter-spacing: 0; color: #141413; }
body.app-h5 .h5-nav .av {
  width: 36px; height: 36px; flex-basis: 36px; font-size: 15px;
  background: #2c2722; color: #f5efe4;
}
body.app-h5 .h5-nav.detail { min-height: 48px; height: 48px; padding: 0 4px 0 2px; }
body.app-h5 .h5-nav.detail h2 { font-size: 16px; font-weight: 650; letter-spacing: 0; color: #141413; }
body.app-h5 .h5-back, body.app-h5 .nav-side { width: 44px; height: 44px; }
body.app-h5 .h5-fixed, body.app-h5 .h5-body { padding-left: 16px; padding-right: 16px; }
body.app-h5 .h5-body { padding-bottom: 16px; }
body.app-h5 .driver-search { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
body.app-h5 .driver-search-field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 44px;
  padding: 0 12px; border: 1px solid #d1cfc5; border-radius: 8px; background: #fff; color: #a9a49a;
}
body.app-h5 .driver-search-field:focus-within { border-color: #d97757; color: #d97757; }
body.app-h5 .driver-search-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0;
  color: #141413; font-size: 14px; outline: none;
}
body.app-h5 .driver-search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
body.app-h5 .driver-search button {
  height: 44px; border: 0; border-radius: 8px; background: #d97757; color: #fff;
  padding: 0 14px; font-size: 14px; font-weight: 600;
}
body.app-h5 .driver-search button:active { background: #c6613f; }
body.app-h5 .driver-search button[data-action="scan-barcode"] {
  width: 44px; padding: 0; background: #fff; color: #3d3d3a; border: 1px solid #d1cfc5;
}
body.app-h5 .h5-summary { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 10px; gap: 2px; font-size: 13px; color: #87867f; }
body.app-h5 .h5-summary b { color: #141413; font-weight: 600; }
body.app-h5 .h5-summary .sep { display: none; }
body.app-h5 .segmented {
  height: 40px; width: 100%; margin-bottom: 10px; padding: 3px; gap: 2px;
  border: 1px solid #e8e6dc; border-radius: 10px; background: #f3f1ea;
}
body.app-h5 .segmented a {
  border-radius: 8px; color: #87867f; font-size: 14px; font-weight: 400; text-decoration: none; white-space: nowrap;
}
body.app-h5 .segmented a.on { background: #fff; color: #d97757; font-weight: 600; box-shadow: 0 1px 2px rgba(20, 20, 19, .06); }
body.app-h5 .driver-date-form { gap: 8px; margin: 0 0 12px; }
body.app-h5 .driver-date-form input,
body.app-h5 .driver-date-form button { height: 44px; border-radius: 8px; font-size: 14px; }
body.app-h5 .driver-date-form input {
  border: 1px solid #d1cfc5; background: #fff; color: #141413; padding: 0 8px; accent-color: #d97757;
}
body.app-h5 .driver-date-form input:focus {
  border-color: #d97757; outline: none; box-shadow: 0 0 0 2px rgba(217, 119, 87, .2);
}
body.app-h5 .driver-date-form span { font-size: 13px; color: #87867f; }
body.app-h5 .driver-date-form button {
  border: 0; background: #d97757; color: #fff; padding: 0 14px; font-weight: 600;
}
body.app-h5 .driver-date-form button:active { background: #c6613f; }
body.app-h5 a.order-card, body.app-h5 a.history-card { display: block; color: inherit; }
body.app-h5 .order-card, body.app-h5 .history-card, body.app-h5 .h5-card, body.app-h5 .supplier-group, body.app-h5 .return-form-card, body.app-h5 .menu-list {
  background: #fff; border: 1px solid #e8e6dc; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20, 20, 19, .04);
  transition: background-color .12s ease-out;
}
body.app-h5 .order-card, body.app-h5 .history-card { padding: 14px; margin-bottom: 12px; }
body.app-h5 .order-card:active, body.app-h5 .history-card:active, body.app-h5 .menu-row:active { background: #faf8f3; }
body.app-h5 .oc-top .mono { font-size: 18px; font-weight: 650; line-height: 1.3; color: var(--accent); letter-spacing: 0; }
body.app-h5 .hc-top .mono { font-size: 12px; color: #87867f; }
body.app-h5 .oc-name { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; }
body.app-h5 .oc-name-link { flex: 1; min-width: 0; color: #141413; font-size: 16px; font-weight: 400; line-height: 1.35; text-decoration: none; }
body.app-h5 .oc-dial { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-top: -4px; color: #c6613f; text-decoration: none; }
body.app-h5 .hero-name { display: flex; align-items: flex-start; gap: 8px; }
body.app-h5 .hero-name > span { flex: 1; min-width: 0; }
body.app-h5 .h5-order-hero .oc-dial { color: #f6d2c4; }
body.app-h5 .oc-addr, body.app-h5 .oc-meta, body.app-h5 .hc-meta, body.app-h5 .hc-foot { font-size: 13px; color: #87867f; }
body.app-h5 .oc-addr { margin-top: 6px; gap: 6px; line-height: 1.45; }
body.app-h5 .oc-meta { margin-top: 8px; flex-wrap: nowrap; min-width: 0; }
body.app-h5 .order-card .oc-meta .oc-link { margin-left: auto; white-space: nowrap; flex: none; }
body.app-h5 .oc-foot, body.app-h5 .hc-foot { margin-top: 10px; padding-top: 10px; border-top-color: #e8e6dc; }
body.app-h5 .order-card .oc-foot { justify-content: flex-end; }
body.app-h5 .supplier-tag { height: 24px; padding: 0 8px; border-radius: 6px; background: #faf8f3; color: #3d3d3a; font-size: 12px; }
body.app-h5 .supplier-tag.more { background: #fbeee7; color: #c6613f; }
body.app-h5 .oc-link { gap: 2px; color: #d97757; font-size: 13px; font-weight: 600; }
body.app-h5 .oc-link.is-wait { color: #a9792c; font-weight: 500; }
body.app-h5 .hc-main { margin-top: 8px; }
body.app-h5 .hc-main .name { font-size: 15px; font-weight: 600; color: #141413; }
body.app-h5 .hc-amount { font-size: 16px; font-weight: 650; color: #141413; }
body.app-h5 .hc-meta { margin-top: 6px; }
body.app-h5 .status-tag, body.app-h5 .chip {
  min-height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500;
}
body.app-h5 .h5-tab {
  height: calc(56px + env(safe-area-inset-bottom));
  flex-basis: calc(56px + env(safe-area-inset-bottom));
  padding: 0 2px env(safe-area-inset-bottom);
  gap: 0;
  border-top: 1px solid #e8e6dc;
  background: #fff;
  box-shadow: 0 -4px 16px rgba(20, 20, 19, .04);
}
body.app-h5 .tab-item {
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  padding-top: 4px;
  border-radius: 0;
  color: #a19b91;
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: .15px;
  text-decoration: none;
}
body.app-h5 .tab-ico {
  position: relative;
  width: 48px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; color: #a9a49a;
}
body.app-h5 .tab-ico::before {
  content: "";
  position: absolute; inset: 0; border-radius: 10px;
  background: #fbeee7; opacity: 0; transform: scale(.92);
}
body.app-h5 .h5-tab.is-ready .tab-ico,
body.app-h5 .h5-tab.is-ready .tab-label,
body.app-h5 .h5-tab.is-ready .tab-ico::before {
  transition: color .18s ease-out, opacity .18s ease-out, transform .18s ease-out, font-weight .18s ease-out;
}
body.app-h5 .tab-item.active .tab-ico { color: #d97757; }
body.app-h5 .tab-item.active .tab-ico::before { opacity: 1; transform: scale(1); }
body.app-h5 .tab-item svg { position: relative; z-index: 1; width: 28px; height: 28px; stroke-width: 1.5; }
body.app-h5 .tab-item svg { fill: color-mix(in srgb, currentColor 7%, transparent); }
body.app-h5 .tab-item.active svg { fill: color-mix(in srgb, currentColor 18%, transparent); }
body.app-h5 .tab-item.active .tab-label { color: #d97757; font-weight: 600; }
body.app-h5 .h5-order-hero, body.app-h5 .profile-hero {
  background: linear-gradient(160deg, #2c2722 0%, #1a1714 100%);
  color: #f5efe4;
  border: 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}
body.app-h5 .h5-order-hero::before, body.app-h5 .profile-hero::before {
  content: "";
  position: absolute; right: -70px; top: -80px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 87, .16), transparent 70%);
  pointer-events: none;
}
body.app-h5 .h5-fixed .h5-order-hero { margin-bottom: 8px; }
body.app-h5 .h5-order-hero { border-radius: 18px; padding: 14px 14px 12px; margin: 4px 0 12px; }
body.app-h5 .h5-order-hero .mono { color: rgba(245, 239, 228, .62); font-size: 12px; }
body.app-h5 .h5-order-hero h2 { margin-top: 8px; font-size: 18px; font-weight: 650; line-height: 1.35; color: #f5efe4; }
body.app-h5 .h5-order-hero .addr { margin-top: 6px; color: rgba(245, 239, 228, .72); font-size: 13px; line-height: 1.45; }
body.app-h5 .h5-order-hero .hero-meta { margin-top: 12px; padding-top: 10px; border-top-color: rgba(245, 239, 228, .12); color: rgba(245, 239, 228, .62); font-size: 12px; gap: 16px; }
body.app-h5 .h5-order-hero .hero-meta b { color: #f5efe4; font-size: 13px; font-weight: 600; margin-top: 4px; }
body.app-h5 .h5-section-title { margin: 4px 0 8px; }
body.app-h5 .h5-section-title h3 { font-size: 15px; font-weight: 650; color: #141413; }
body.app-h5 .h5-section-title span { font-size: 12px; color: #87867f; }
body.app-h5 .supplier-group { margin-bottom: 12px; overflow: hidden; }
body.app-h5 .sg-head { padding: 12px; background: #faf8f3; border-bottom: 1px solid #e8e6dc; }
body.app-h5 .sg-logo { width: 28px; height: 28px; border-radius: 8px; }
body.app-h5 .sg-name { font-size: 14px; font-weight: 600; color: #141413; }
body.app-h5 .sg-count { font-size: 12px; }
body.app-h5 .item-row { padding: 12px; gap: 10px; border-bottom-color: #e8e6dc; }
body.app-h5 .item-name { font-size: 14px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
body.app-h5 .item-sub, body.app-h5 .item-avail { font-size: 12px; margin-top: 4px; }
body.app-h5 .item-price { font-size: 14px; font-weight: 600; color: #141413; }
body.app-h5 .h5-sticky {
  gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #e8e6dc; background: #fff;
}
body.app-h5 .h5-sticky .s1 { font-size: 15px; font-weight: 650; color: #141413; }
body.app-h5 .h5-sticky .s2 { margin-top: 2px; font-size: 12px; color: #87867f; }
body.app-h5 .h5-btn {
  height: 44px; padding: 0 16px; border-radius: 8px; background: #d97757; color: #fff;
  font-size: 14px; font-weight: 600; box-shadow: none;
}
body.app-h5 .h5-btn:active { background: #c6613f; transform: none; }
body.app-h5 .h5-btn:disabled { background: #e8e6dc; color: #87867f; }
body.app-h5 .alert, body.app-h5 .form-note-h5 { align-items: flex-start; margin-bottom: 12px; font-size: 13px; line-height: 1.5; border-radius: 12px; }
body.app-h5 .form-note-h5 { padding: 12px; }
body.app-h5 .return-form-card, body.app-h5 .h5-card { padding: 14px; margin-bottom: 12px; }
body.app-h5 .rf-name { font-size: 15px; font-weight: 650; color: #141413; }
body.app-h5 .rf-sub, body.app-h5 .rf-avail, body.app-h5 .qty-label, body.app-h5 .photo-label { font-size: 12px; }
body.app-h5 .rf-avail b { font-size: 16px; }
body.app-h5 .stepper, body.app-h5 .driver-item-qty { height: 44px; border-radius: 8px; }
body.app-h5 .driver-item-qty { width: 96px; border: 1px solid #d1cfc5; background: #fff; font-size: 16px; text-align: center; color: #141413; }
body.app-h5 .photo-row { flex-wrap: wrap; gap: 8px; }
body.app-h5 .photo-thumb, body.app-h5 .photo-add, body.app-h5 .return-photo, body.app-h5 .upload-tile {
  width: 72px; height: 72px; flex-basis: 72px; border-radius: 8px;
}
body.app-h5 .photo-thumb, body.app-h5 .return-photo { border: 0; }
body.app-h5 .photo-add { font-size: 12px; gap: 2px; border-color: #d1cfc5; background: #faf8f3; }
body.app-h5 .photo-thumb .del { width: 22px; height: 22px; font-size: 14px; }
body.app-h5 .remark-box {
  display: flex; align-items: center; min-height: 44px; margin-top: 10px; padding: 0 12px;
  border: 1px solid #d1cfc5; border-radius: 8px; background: #fff;
}
body.app-h5 .remark-box input {
  width: 100%; height: 42px; border: 0; outline: 0; background: transparent; font-size: 14px; color: #141413;
}
body.app-h5 .order-remark { margin-bottom: 8px; }
body.app-h5 .return-hero-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 10px; }
body.app-h5 .return-amount { font-size: 17px; font-weight: 700; color: #141413; }
body.app-h5 .return-item-card .photo-row, body.app-h5 .item-remark { margin-top: 8px; }
body.app-h5 .item-remark { color: #3d3d3a; font-size: 13px; line-height: 1.45; background: #faf8f3; border-radius: 8px; padding: 8px 10px; }
body.app-h5 .h5-card-head .strong { font-size: 15px; font-weight: 650; color: #141413; }
body.app-h5 .h5-card-head .h { font-size: 12px; }
body.app-h5 .success-erp .name, body.app-h5 .success-erp .num, body.app-h5 .driver-note { font-size: 13px; }
body.app-h5 .report-range { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 12px; }
body.app-h5 .month-select { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; color: #3d3d3a; }
body.app-h5 .h5-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
body.app-h5 .mini-kpi { border-radius: 12px; padding: 10px 8px; background: #fff; min-width: 0; }
body.app-h5 .mini-kpi.wide { grid-column: auto; }
body.app-h5 .mini-kpi .label, body.app-h5 .mini-kpi .foot { font-size: 12px; }
body.app-h5 .mini-kpi .value { margin-top: 2px; font-size: 16px; font-weight: 650; color: #141413; white-space: nowrap; }
body.app-h5 .mini-kpi .value small { font-size: 12px; }
body.app-h5 .supplier-bars { margin-top: 12px; }
body.app-h5 .sb-top { font-size: 14px; }
body.app-h5 .sb-top .n { color: #141413; }
body.app-h5 .sb-top .a { font-size: 12px; }
body.app-h5 .sb-fill { background: #d97757; }
body.app-h5 .h5-table { table-layout: fixed; }
body.app-h5 .h5-table th { font-size: 12px; color: #87867f; font-weight: 500; white-space: nowrap; }
body.app-h5 .h5-table th:first-child { width: 46%; }
body.app-h5 .h5-table td { font-size: 14px; color: #141413; padding: 10px 0; }
body.app-h5 .report-product .goods-thumb { width: 32px; height: 32px; flex-basis: 32px; }
body.app-h5 .report-product span { overflow-wrap: anywhere; }
body.app-h5 .return-exception { color: #ad4c2c; font-size: 12px; white-space: nowrap; }
body.app-h5 .profile-hero { border-radius: 16px; padding: 14px; gap: 13px; margin-bottom: 4px; align-items: center; }
body.app-h5 .profile-avatar { position: relative; flex: none; }
body.app-h5 .profile-hero .av { width: 54px; height: 54px; flex-basis: 54px; font-size: 22px; background: #3a332c; color: #f5efe4; }
body.app-h5 .avatar-badge {
  position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: #d97757; color: #fff; pointer-events: none;
}
body.app-h5 .profile-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.app-h5 .profile-hero h2 { font-size: 18px; font-weight: 650; color: #f5efe4; }
body.app-h5 .role-tag { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 6px; background: rgba(217, 119, 87, .22); color: #f6d2c4; font-size: 11px; font-weight: 600; }
body.app-h5 .profile-hero p { margin-top: 6px; color: rgba(245, 239, 228, .72); font-size: 13px; }
body.app-h5 .menu-group { margin: 20px 0 8px 4px; color: #87867f; font-size: 13px; font-weight: 500; }
body.app-h5 .menu-list { overflow: hidden; }
body.app-h5 .menu-row {
  width: 100%; min-height: 48px; padding: 0 16px; gap: 14px; border: 0; background: transparent;
  color: #141413; font-size: 15.5px; text-align: left;
}
body.app-h5 .menu-row + .menu-row { border-top: 1px solid #e8e6dc; }
body.app-h5 .menu-row .ico { width: 26px; height: 26px; border-radius: 0; background: transparent; color: #7a7469; }
body.app-h5 .menu-label { flex: 1; }
body.app-h5 .menu-value { min-width: 0; max-width: 58%; margin-left: auto; overflow: hidden; color: #87867f; font-size: 14px; text-align: right; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
body.app-h5 .warehouse-row .menu-label { flex: none; }
body.app-h5 .warehouse-row .menu-value { flex: 1; max-width: none; margin-left: 8px; text-align: left; white-space: normal; overflow: visible; text-overflow: unset; }
body.app-h5 .menu-row .chev { margin-left: 0; color: #b7b3aa; }
body.app-h5 .menu-danger { margin-top: 12px; }
body.app-h5 .menu-danger .menu-row, body.app-h5 .menu-danger .ico { color: #bf4d43; }
body.app-h5 .empty-state { padding: 48px 16px; font-size: 13px; }
body.app-h5 .empty-state strong { font-size: 15px; color: #141413; }
body.app-h5 .h5-top {
  position: absolute; right: 8px; z-index: 5;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #d97757;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity .18s ease-out, transform .18s ease-out;
}
body.app-h5 .h5-top svg { transform: rotate(-90deg); }
body.app-h5 .h5-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
body.app-h5 .h5-screen:has(.h5-tab) .h5-top { bottom: calc(64px + env(safe-area-inset-bottom)); }
body.app-h5 .h5-screen:has(.h5-sticky) .h5-top { bottom: calc(92px + env(safe-area-inset-bottom)); }
body.app-h5 .toast, body.app-h5 ~ .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
body.app-h5 #password-dialog {
  width: min(390px, 100%);
  max-height: none;
  margin: auto auto 0;
  border: 0;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
body.app-h5 #password-dialog::backdrop { background: rgba(20, 20, 19, .45); }
body.app-h5 #password-dialog h2 { font-size: 17px; font-weight: 700; color: #141413; }
body.app-h5 #password-dialog label { font-size: 13px; font-weight: 600; color: #3d3d3a; }
body.app-h5 #password-dialog input { height: 44px; border: 1px solid #d1cfc5; border-radius: 8px; font-size: 16px; color: #141413; }
body.app-h5 #password-dialog .dialog-actions button { height: 44px; border-radius: 8px; font-size: 14px; font-weight: 600; }
body.app-h5 #password-dialog .dialog-actions button[type="submit"] { background: #d97757; border-color: #d97757; color: #fff; }
@media (max-width: 520px) {
  body.app-h5 { display: block; background: #faf9f5; }
  body.app-h5 .phone { width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  body.app-h5 .h5-screen { border-radius: 0; }
  body.app-h5 #password-dialog { width: 100%; }
}
body.app-h5 .order-card-main { display: block; color: inherit; text-decoration: none; }
body.app-h5 .oc-top { align-items: flex-start; }
body.app-h5 .oc-tools, body.app-h5 .oc-actions, body.app-h5 .hero-call { display: flex; align-items: center; gap: 8px; }
body.app-h5 .oc-actions, body.app-h5 .hero-call { margin-top: 8px; }
body.app-h5 .oc-copy, body.app-h5 .oc-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 36px; padding: 0 10px; border: 1px solid #e8e6dc; border-radius: 8px;
  background: #fff; color: #c6613f; font-size: 13px; font-weight: 600; text-decoration: none;
}
body.app-h5 .hero-call .oc-call { border-color: rgba(245, 239, 228, .28); background: transparent; color: #f6d2c4; }
body.app-h5 .h5-chip-row { display: flex; gap: 8px; margin: 0 0 10px; overflow-x: auto; }
body.app-h5 .h5-chip-row a {
  flex: none; height: 32px; padding: 0 12px; border: 1px solid #e8e6dc; border-radius: 999px;
  background: #fff; color: #3d3d3a; font-size: 13px; line-height: 32px; text-decoration: none;
}
body.app-h5 .h5-chip-row a.on { background: #d97757; border-color: #d97757; color: #fff; }
body.app-h5 .driver-search-field input,
body.app-h5 .driver-date-form input,
body.app-h5 .remark-box input { font-size: 16px; }
body.app-h5 .qty-row { flex-wrap: wrap; }
body.app-h5 .qty-tools { display: flex; align-items: center; gap: 8px; }
body.app-h5 .stepper button { width: 40px; border: 0; background: transparent; color: #3d3d3a; font-size: 22px; }
body.app-h5 .qty-all {
  height: 44px; padding: 0 12px; border: 1px solid #d1cfc5; border-radius: 8px;
  background: #fff; color: #c6613f; font-size: 14px; font-weight: 600;
}
body.app-h5 .photo-thumb { position: relative; }
body.app-h5 .photo-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; }
body.app-h5 .photo-thumb .return-photo, body.app-h5 .photo-thumb .photo-open { width: 100%; height: 100%; flex-basis: auto; }
body.app-h5 .photo-state {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; background: rgba(20, 20, 19, .55);
  color: #fff; font-size: 11px; text-align: center;
}
body.app-h5 .photo-hold { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #f3f1ea; color: #87867f; font-size: 12px; }
body.app-h5 .photo-viewer {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: rgba(12, 10, 8, .92); padding: 24px;
}
body.app-h5 .photo-viewer[hidden] { display: none !important; }
body.app-h5 .photo-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
body.app-h5 .photo-viewer-close {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px;
  width: 44px; height: 44px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .16); color: #fff;
}
body.app-h5 .h5-text-link { display: inline-flex; margin-top: 10px; color: #c6613f; font-size: 14px; font-weight: 600; text-decoration: none; }
body.app-h5 .h5-retry { margin-top: 16px; }
body.app-h5 .h5-table td { overflow-wrap: anywhere; }
body.app-h5 .h5-sticky .h5-btn { flex: none; max-width: 52%; white-space: normal; line-height: 1.25; text-align: center; }
body.app-h5 .h5-tab { overflow: visible; }
body.app-h5 .tab-item.is-create .tab-ico {
  width: 46px; height: 46px; margin-top: -18px; border-radius: 23px;
  background: #d97757; color: #fff; box-shadow: 0 6px 16px rgba(217, 119, 87, .35);
}
body.app-h5 .tab-item.is-create .tab-ico::before { display: none; }
body.app-h5 .tab-item.is-create svg { width: 24px; height: 24px; color: #fff; stroke: #fff; fill: none; stroke-width: 2.2; }
body.app-h5 .tab-item.is-create .tab-label { color: #d97757; font-weight: 600; }
body.app-h5 .create-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
body.app-h5 .create-tools { padding: 0 16px; }
body.app-h5 .create-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
body.app-h5 .create-store-btn {
  flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; gap: 6px;
  padding: 0 10px; border: 1px solid #d1cfc5; border-radius: 8px; background: #fff;
  color: #141413; font-size: 15px; font-weight: 650; text-align: left;
}
body.app-h5 .create-store-btn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.app-h5 .create-store-btn.is-empty { color: #87867f; font-weight: 500; }
body.app-h5 .create-scan {
  flex: none; height: 44px; display: inline-flex; align-items: center; gap: 4px;
  padding: 0 12px; border: 1px solid #d1cfc5; border-radius: 8px; background: #fff;
  color: #141413; font-size: 15px; font-weight: 650;
}
body.app-h5 .create-cart-wrap { flex: none; max-height: 38%; overflow: auto; padding: 0 16px; }
body.app-h5 .create-catalog { flex: 1; min-height: 0; display: flex; border-top: 1px solid #e8e6dc; background: #fff; }
body.app-h5 .create-cats { width: 92px; flex: none; overflow: auto; background: #f3f1ea; }
body.app-h5 .create-cats button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  padding: 12px 8px; border: 0; border-left: 3px solid transparent; background: transparent;
  color: #3d3d3a; font-size: 13px; font-weight: 650; line-height: 1.35; text-align: left;
}
body.app-h5 .create-cats button span { color: #87867f; font-size: 11px; font-weight: 400; }
body.app-h5 .create-cats button[aria-pressed="true"] { background: #fff; border-left-color: #d97757; color: #c6613f; font-weight: 650; }
body.app-h5 .create-goods { flex: 1; min-width: 0; overflow: auto; }
body.app-h5 .create-cat-block h3 {
  margin: 0; padding: 8px 12px; background: #faf8f3; color: #87867f; font-size: 12px; font-weight: 600;
}
body.app-h5 .create-good {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  border: 0; border-bottom: 1px solid #f0eee6; background: #fff; color: inherit; text-align: left;
}
body.app-h5 .create-good.is-in { background: #fbf6f2; }
body.app-h5 .create-good .goods-thumb,
body.app-h5 .create-good .goods-thumb.is-empty,
body.app-h5 .create-cart-wrap .goods-thumb,
body.app-h5 .create-cart-wrap .goods-thumb.is-empty { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 8px; }
body.app-h5 .create-good-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
body.app-h5 .create-good-name { color: #141413; font-size: 14px; font-weight: 400; line-height: 1.35; }
body.app-h5 .create-good-qty { color: #c6613f; font-size: 12px; font-weight: 600; }
body.app-h5 .create-good-qty.is-ordered { color: #3d6b4f; }
body.app-h5 .create-good-qty.is-new { color: #c6613f; }
body.app-h5 .create-good-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
body.app-h5 .create-good-price { color: #141413; font-size: 13px; font-weight: 650; line-height: 1.2; white-space: nowrap; }
body.app-h5 .create-good-price .unit { color: #87867f; font-size: 11px; font-weight: 550; }
body.app-h5 .create-order-note {
  margin: 0; padding: 8px 12px; background: #fbf6f2; color: #8a4b32; font-size: 12px; line-height: 1.45;
}
body.app-h5 .review-card { padding: 10px 12px; margin-bottom: 8px; }
body.app-h5 .review-card .goods-thumb,
body.app-h5 .review-card .goods-thumb.is-empty { width: 44px; height: 44px; flex: 0 0 44px; }
body.app-h5 .review-card .rf-head { align-items: flex-start; }
body.app-h5 .review-card .rf-name { font-weight: 400; overflow-wrap: anywhere; }
body.app-h5 .review-card .rf-sub,
body.app-h5 .review-card .review-amount span,
body.app-h5 .review-card .photo-label { color: var(--muted); font-size: 12px; font-weight: 400; }
body.app-h5 .review-status {
  flex: none; max-width: 96px; margin: 2px 0 0 auto; color: #3d6b4f;
  font-size: 12px; font-weight: 650; line-height: 1.35; text-align: right;
}
body.app-h5 .review-status.is-new { color: #c6613f; }
body.app-h5 .review-status[hidden] { display: none; }
body.app-h5 .review-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
body.app-h5 .review-stepper,
body.app-h5 .review-stepper .driver-item-qty { height: 32px; }
body.app-h5 .review-stepper button { width: 32px; font-size: 18px; }
body.app-h5 .review-stepper .driver-item-qty {
  width: 44px; border: 0; border-left: 1px solid #e8e6dc; border-right: 1px solid #e8e6dc;
  border-radius: 0; font-size: 15px;
}
body.app-h5 .review-amount { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
body.app-h5 .review-amount b { color: #c6613f; font-size: 16px; font-weight: 700; }
body.app-h5 .review-card .photo-label { margin: 8px 0 4px; }
body.app-h5 .review-card .photo-thumb,
body.app-h5 .review-card .photo-add,
body.app-h5 .review-card .return-photo { width: 56px; height: 56px; flex-basis: 56px; }
body.app-h5 .review-card .item-sub { margin-top: 6px; }
body.app-h5 .create-stepper { height: 32px; border-radius: 8px; }
body.app-h5 .create-stepper button { width: 28px; font-size: 18px; }
body.app-h5 .create-stepper .catalog-qty {
  width: 42px; height: 32px; border: 0; border-left: 1px solid #e8e6dc; border-right: 1px solid #e8e6dc;
  background: #fff; text-align: center; font-size: 15px; color: #141413; padding: 0; border-radius: 0;
}
body.app-h5 .h5-nav .create-scan { height: 36px; padding: 0 10px; font-size: 14px; }
body.app-h5 .scan-sheet {
  position: absolute; inset: 0; z-index: 36; background: rgba(20, 20, 19, .45);
  display: flex; align-items: flex-end;
}
body.app-h5 .scan-sheet-card {
  width: 100%; max-height: 88%; overflow: auto; background: #faf9f5;
  border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
body.app-h5 .scan-sheet .qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; }
body.app-h5 .scan-sheet-confirm { width: 100%; margin-top: 14px; }
body.app-h5 .scan-code {
  width: 100%; height: 44px; margin-top: 12px; padding: 0 12px;
  border: 1px solid #d1cfc5; border-radius: 8px; background: #fff; font-size: 16px; color: #141413;
}
body.app-h5 .scan-prompt-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; }
body.app-h5 .scan-prompt-actions .h5-btn { width: auto; min-width: 96px; margin: 0; }
body.app-h5 .create-cart-wrap .rf-head { align-items: flex-start; }
body.app-h5 .store-name-list { display: flex; flex-direction: column; }
body.app-h5 .store-name-pick {
  width: 100%; min-height: 48px; padding: 14px 2px; border: 0; border-bottom: 1px solid #e8e6dc;
  background: transparent; color: #141413; font-size: 16px; text-align: left;
}
body.app-h5 .store-name-pick:active { background: #faf8f3; }
body.app-h5 .store-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
body.app-h5 .store-pick, body.app-h5 .product-pick {
  display: block; width: 100%; text-align: left; border: 1px solid #e8e6dc; background: #fff;
  border-radius: 14px; padding: 12px 14px; margin: 0 0 8px; color: inherit;
}
body.app-h5 .store-row .store-pick { flex: 1; margin: 0; }
body.app-h5 .text-btn { border: 0; background: transparent; color: #c6613f; font-size: 14px; font-weight: 600; padding: 8px; }
body.app-h5 .create-store { margin-bottom: 10px; }
body.app-h5 .scan-layer { position: absolute; inset: 0; z-index: 40; background: #000; display: flex; flex-direction: column; }
body.app-h5 .scan-layer video { width: 100%; flex: 1; min-height: 0; object-fit: cover; background: #000; }
body.app-h5 .scan-hint { margin: 0; padding: 10px 16px 0; color: #fff; font-size: 14px; text-align: center; }
body.app-h5 .scan-layer button { margin: 12px 16px calc(12px + env(safe-area-inset-bottom)); height: 44px; border: 0; border-radius: 10px; background: #fff; font-size: 16px; }
body.app-h5 .success-erp { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
body.app-desktop .return-overview { flex-wrap: wrap; gap: 8px 20px; }
.return-parties { display: flex; align-items: baseline; gap: 20px; min-width: 0; }
.return-sync summary, .return-sync-empty { padding: 8px 14px; }
.return-sync summary { cursor: pointer; }
.return-sync-list { margin: 0; padding: 0 14px; max-height: 64px; overflow: auto; border-top: 1px solid var(--line); }
.return-sync-list li { display: flex; align-items: center; gap: 10px; min-height: 31px; width: max-content; white-space: nowrap; }
.return-sync-error { color: var(--red); }
.return-product { min-width: 130px; }
.return-product .goods-thumb { display: block; }
@media (prefers-reduced-motion: reduce) {
  body.app-h5 .h5-tab.is-ready .tab-ico,
  body.app-h5 .h5-tab.is-ready .tab-label,
  body.app-h5 .h5-tab.is-ready .tab-ico::before,
  body.app-h5 .order-card, body.app-h5 .history-card, body.app-h5 .h5-top { transition: none; }
}
