:root {
  --primary: #2b6ef6;
  --primary-soft: #eef4ff;
  --success: #10b981;
  --success-soft: #e8f9f1;
  --danger: #ef4444;
  --warn: #f59e0b;
  --text: #0f172a;
  --text-sub: #64748b;
  --text-muted: #94a3b8;
  --line: #eef1f6;
  --bg: #f4f6fb;
  --card: #ffffff;
  --radius: 12px;
  --nav-h: 44px;
  --tab-h: 71px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Helvetica, sans-serif;
}

input, textarea, button { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }

/* ---------- 顶部导航（模拟小程序 navigationBar） ---------- */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav-title {
  position: absolute;
  left: 76px; right: 76px;
  top: env(safe-area-inset-top);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-back {
  position: relative;
  z-index: 1;
  width: 56px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding-left: 14px;
}
.nav-back[hidden] { display: none; }

.nav-back-arrow { font-size: 30px; line-height: 1; color: var(--text); }

.nav-right { margin-left: auto; width: 56px; }

/* ---------- 内容区 ---------- */
.app {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top));
}

.app.has-tab { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }

.page {
  min-height: calc(100vh - var(--nav-h) - env(safe-area-inset-top));
  padding: 12px 14px 20px;
}

.app.has-tab .page { padding-bottom: 20px; }

/* ---------- 底部 tabBar（模拟小程序自定义 tabBar） ---------- */
.tab-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -3px 11px rgba(15, 23, 42, 0.06);
}

.tab-bar[hidden] { display: none; }

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-sub);
}

.tab-dot {
  width: 20px; height: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background .2s ease;
}

.tab-text { font-size: 15px; line-height: 1.2; letter-spacing: .5px; }

.tab-item.active .tab-dot { background: var(--primary); }
.tab-item.active .tab-text { color: var(--primary); font-weight: 700; }

/* ---------- 通用组件 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, .05);
}
.card + .card { margin-top: 12px; }

.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--text-muted); font-size: 12px; }
.sub { color: var(--text-sub); font-size: 13px; }
.title { font-size: 16px; font-weight: 600; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 23px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.btn:disabled { opacity: .5; }
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2b6ef6);
  color: #fff;
  box-shadow: 0 6px 12px rgba(43, 110, 246, .25);
}
.btn-ghost { background: var(--primary-soft); color: var(--primary); }
.btn-plain { background: #fff; color: var(--text-sub); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.6;
  white-space: nowrap;
}
.tag-primary { background: var(--primary-soft); color: var(--primary); }
.tag-success { background: var(--success-soft); color: #059669; }
.tag-warn { background: #fef3c7; color: #b45309; }
.tag-muted { background: #f1f5f9; color: var(--text-muted); }

.empty { padding: 60px 0; text-align: center; color: var(--text-muted); font-size: 13px; }
.ph { color: #cbd5e1; }

.error-card { margin-top: 12px; border: 1px solid #fecaca; background: #fff7f7; }
.error-title { font-size: 15px; font-weight: 700; color: var(--danger); margin-bottom: 4px; }
.error-card .muted { margin-top: 6px; word-break: break-all; }
.error-card .empty-btn { background: var(--danger); }

.add-btn {
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.deny { text-align: center; padding: 40px 20px; }
.deny-icon { font-size: 36px; }
.deny .title { margin-top: 10px; }
.deny-sub { margin-top: 8px; line-height: 1.7; }

/* ---------- 遮罩 / 弹窗 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .45);
}
.overlay-dark { background: rgba(0, 0, 0, .55); }

.modal-body {
  width: 100%;
  max-width: 330px;
  padding: 20px 18px 13px;
  border-radius: 14px;
  background: #fff;
  max-height: 86vh;
  overflow-y: auto;
}
.modal-wide { max-width: 360px; }
.modal-title { font-size: 16px; font-weight: 700; text-align: center; }
.modal-sub { margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--text-muted); }
.modal-desc { margin-top: 6px; font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.6; }
.modal-btn { margin-top: 16px; width: 100%; }
.modal-cancel { margin-top: 9px; text-align: center; font-size: 13px; color: var(--text-muted); padding: 5px 0; }

.field { margin-top: 12px; }
.field-row { display: flex; gap: 10px; }
.field.half { flex: 1; min-width: 0; }
.field-label { font-size: 12px; color: var(--text-sub); margin-bottom: 5px; }
.field-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: #f6f8fc;
  font-size: 15px;
  outline: none;
}
.field-input:focus { box-shadow: 0 0 0 2px var(--primary-soft); }
.field-input::placeholder, .remark-input::placeholder { color: #cbd5e1; }

.confirm-box {
  width: 100%;
  max-width: 300px;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.confirm-title { font-size: 16px; font-weight: 700; }
.confirm-content { margin-top: 8px; font-size: 13px; color: var(--text-sub); line-height: 1.6; }
.confirm-btns { display: flex; gap: 10px; margin-top: 20px; }
.confirm-btn {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 20px;
  background: #f6f8fc;
  color: var(--text-sub);
  font-size: 14px;
}
.confirm-ok { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

.bc-toast {
  position: fixed;
  left: 50%; top: 50%;
  z-index: 2000;
  transform: translate(-50%, -50%) scale(.95);
  max-width: 76vw;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .88);
  color: #fff;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.bc-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.pull-indicator {
  height: 0;
  overflow: hidden;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  transition: height .2s ease;
}

/* ---------- 首页待办审批 ---------- */
.todo-card { margin-bottom: 12px; border: 1px solid #bfdbfe; background: #f5f9ff; }
.todo-title { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.todo-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #e2ecff;
}
.todo-label { flex: 1; font-size: 14px; color: var(--text); }
.todo-count { font-size: 12px; font-weight: 600; color: var(--primary); }
.todo-arrow { color: #93a8c8; font-size: 16px; }

/* ---------- 报餐页 ---------- */
.bind-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.bind-tip-main { min-width: 0; }
.bind-tip-title { font-size: 14px; font-weight: 600; color: #92400e; }
.bind-tip .sub { color: #b45309; margin-top: 3px; }
.bind-tip-btn {
  flex-shrink: 0;
  margin-left: 10px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--warn);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.notice-card {
  margin-top: 12px;
  margin-bottom: 2px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .25);
  box-shadow: none;
}
.notice-head { display: flex; align-items: center; justify-content: space-between; }
.notice-title { font-size: 13px; font-weight: 600; color: #fbbf24; margin-bottom: 5px; }
.notice-edit-btn { font-size: 11px; color: #60a5fa; }
.notice-text { font-size: 12px; color: #60a5fa; line-height: 1.7; white-space: pre-line; word-break: break-word; }

.days { display: flex; gap: 8px; padding: 10px; margin-top: 12px; }
.day {
  flex: 1;
  padding: 9px 0;
  text-align: center;
  border-radius: 9px;
  background: #f6f8fc;
  color: var(--text-sub);
}
.day.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.day-label { font-size: 14px; }
.day-week { margin-top: 2px; font-size: 11px; opacity: .75; }

.meal-tabs { display: flex; gap: 8px; margin-top: 12px; }
.meal-tab {
  flex: 1;
  position: relative;
  padding: 11px 0;
  text-align: center;
  border-radius: 10px;
  background: #fff;
  color: var(--text-sub);
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, .05);
}
.meal-tab.active { background: var(--primary); color: #fff; font-weight: 600; }
.meal-pub { margin-top: 2px; font-size: 10px; opacity: .75; }

.menu-card { margin-top: 12px; }
.dish {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.dish:last-of-type { border-bottom: none; }
.dish:active { background: #fafbff; }
.dish-disabled { opacity: .45; }
.dish-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  color: transparent;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dish-check.on { border-color: var(--primary); background: var(--primary); color: #fff; }
.dish-name { flex: 1; font-size: 15px; }
.dish-left { font-size: 11px; color: var(--text-muted); }
.dish-hint { margin-top: 8px; text-align: right; }
.menu-pending { padding: 15px 0 5px; }
.remark { margin-top: 10px; }
.remark-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: #f6f8fc;
  font-size: 13px;
  outline: none;
}

.booked-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px 14px;
  gap: 10px;
}
.booked-bar-text { margin-left: 8px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booked-bar-link { color: var(--primary); font-size: 12px; font-weight: 600; flex-shrink: 0; }
.submit { margin-top: 14px; }

.notice-modal-body {
  width: 100%;
  max-width: 330px;
  padding: 16px;
  border-radius: 10px;
  background: #1e293b;
}
.notice-modal-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: #fff; }
.notice-modal-input {
  box-sizing: border-box;
  width: 100%;
  height: 120px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  font-size: 13px;
  color: #e2e8f0;
  outline: none;
  resize: none;
}
.notice-modal-btns { display: flex; gap: 10px; margin-top: 12px; }
.notice-modal-btns .btn { flex: 1; height: 40px; }
.notice-modal-btns .btn-plain { color: #e2e8f0; background: rgba(255, 255, 255, .08); border-color: rgba(255,255,255,.1); }

/* ---------- 我的报餐 ---------- */
.date-group + .date-group { margin-top: 10px; }
.date-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.date-group-head .date-icon { margin-bottom: 0; font-size: 20px; flex-shrink: 0; }
.date-meta { flex-shrink: 0; }
.date-meals {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 12px;
  color: var(--text-sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.group-arrow { color: #94a3b8; font-size: 16px; flex-shrink: 0; }
.group-item { margin-top: 8px; }

.item { margin-bottom: 12px; }
.item:active { background: #fafbff; }
.date-block {
  margin-right: 10px;
  margin-left: -6px;
  padding: 2px 6px;
  border-radius: 8px;
  cursor: pointer;
}
.date-block:active { background: #eef4ff; }
.date-icon { font-size: 14px; color: var(--primary); margin-bottom: 2px; }
.date-day { font-size: 15px; font-weight: 700; }
.date-week { font-size: 11px; color: var(--text-muted); }
.meal-name { font-size: 15px; font-weight: 600; }
.item-dishes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dish-tag { padding: 3px 9px; border-radius: 999px; background: #f6f8fc; color: var(--text-sub); font-size: 12px; }
.item-foot { margin-top: 9px; }
.item-link { color: var(--primary); font-size: 12px; font-weight: 600; }
.empty-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- 取餐码详情 ---------- */
.qr-card { text-align: center; }
.qr-head { display: flex; align-items: center; justify-content: space-between; text-align: left; }
.qr-wrap {
  margin: 15px auto 0;
  width: 200px; height: 200px;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}
.qr-dim { opacity: .25; filter: grayscale(1); }
.qr-img { width: 100%; height: 100%; display: block; object-fit: contain; }
.qr-download { display: block; width: 100%; height: 100%; }
.qr-code { margin-top: 12px; font-size: 26px; font-weight: 700; letter-spacing: 4px; }
.qr-tip { margin-top: 5px; }
.detail-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0 0;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  gap: 12px;
}
.detail-row:first-of-type { margin-top: 12px; }
.cancel { margin-top: 14px; color: var(--danger); border-color: #fecaca; }

/* ---------- 核销台 ---------- */
.scan-card {
  padding: 18px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .22);
}
.scan-title { font-size: 17px; font-weight: 700; }
.scan-date-row { display: flex; align-items: center; gap: 8px; }
.scan-date { font-size: 12px; opacity: .85; }
.scan-back { font-size: 11px; color: #60a5fa; }
.scan-tip { margin-top: 5px; font-size: 11px; }
.scan-btn {
  margin-top: 14px;
  height: 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, #3b82f6, #2b6ef6);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.scan-manual { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.manual-input {
  flex: 1; min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 15px;
  letter-spacing: 2px;
  text-align: center;
  outline: none;
}
.manual-input.ph, .manual-input::placeholder { color: rgba(255, 255, 255, .45); letter-spacing: 0; }
.manual-btn {
  flex-shrink: 0;
  padding: 0 17px;
  height: 42px;
  line-height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
  font-size: 13px;
}
.stats { margin-top: 12px; }
.stat-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.stat-row:last-child { border-bottom: none; }
.stat-meal { font-size: 14px; font-weight: 600; }
.stat-nums { display: flex; margin-top: 7px; }
.stat-num { flex: 1; text-align: center; }
.stat-val { font-size: 20px; font-weight: 700; color: var(--primary); }
.stat-val.taken { color: var(--success); }
.stat-label { margin-top: 2px; font-size: 11px; color: var(--text-muted); }
.stat-items, .dish-chip-wrap { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.dish-chip { padding: 3px 8px; border-radius: 999px; background: #f6f8fc; color: var(--text-sub); font-size: 11px; }
.dish-chip.small { font-size: 10px; }
.pending { padding: 11px 0; border-bottom: 1px solid var(--line); }
.pending:last-child { border-bottom: none; }
.pending-main { display: flex; align-items: center; gap: 8px; }
.pending-name { font-size: 14px; font-weight: 600; }
.pending-dishes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.pending-empty { padding: 15px 0 5px; text-align: center; }

.pv-emp { margin-top: 14px; text-align: center; }
.pv-name { font-size: 22px; font-weight: 700; }
.pv-row { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; font-size: 14px; }
.pv-code { font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.pv-dishes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.pv-reason { margin-top: 13px; text-align: center; color: var(--danger); font-size: 14px; line-height: 1.7; }

.scan-video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 60vh;
  margin: 14px auto 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}
.scan-video-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame {
  position: absolute;
  left: 10%; right: 10%; top: 32%; height: 26%;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .25);
}
.scan-hint { margin-top: 10px; text-align: center; font-size: 12px; color: var(--text-sub); }

/* ---------- 采购清单 ---------- */
.total-tag {
  margin-left: auto;
  margin-right: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef3e2;
  color: #d97706;
  font-size: 12px;
  font-weight: 600;
}
.demand { margin-top: 10px; }
.demand-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.demand-row:last-child { border-bottom: none; }
.demand-meal {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
}
.demand-name { flex: 1; font-size: 14px; }
.demand-qty { font-size: 14px; font-weight: 600; color: var(--primary); }
.p-item {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.p-item:last-of-type { border-bottom: none; }
.p-done { opacity: .5; }
.p-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  color: transparent;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.p-check.on { border-color: var(--success); background: var(--success); color: #fff; }
.p-main { flex: 1; min-width: 0; }
.p-name { font-size: 15px; }
.p-qty { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--primary); }
.p-remark { margin-top: 3px; font-size: 11px; color: var(--text-muted); }
.p-del { flex-shrink: 0; color: var(--danger); font-size: 12px; }
.p-amount { flex-shrink: 0; margin-right: 9px; font-size: 13px; font-weight: 700; color: #d97706; }
.p-empty { padding: 15px 0 5px; text-align: center; }

/* ---------- 库存管理 ---------- */
.head-row { margin-bottom: 10px; }
.page-title { font-size: 17px; font-weight: 700; }
.s-item { padding: 13px 14px; }
.s-main { display: flex; align-items: center; justify-content: space-between; }
.s-name { font-size: 16px; font-weight: 600; }
.s-num { font-size: 20px; font-weight: 700; color: var(--primary); }
.s-unit { margin-left: 3px; font-size: 12px; color: var(--text-muted); }
.s-ops { display: flex; gap: 7px; margin-top: 10px; }
.op { flex: 1; text-align: center; padding: 6px 0; border-radius: 6px; font-size: 12px; font-weight: 600; }
.op-in { background: var(--primary-soft); color: var(--primary); }
.op-out { background: #fef3e2; color: #d97706; }
.op-log { background: #f1f5f9; color: var(--text-sub); }
.op-del { background: #fee2e2; color: var(--danger); }
.logs-scroll { max-height: 280px; margin-top: 10px; overflow-y: auto; }
.log-row { display: flex; align-items: flex-start; gap: 8px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.log-row:last-child { border-bottom: none; }
.log-tag { flex-shrink: 0; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.tag-in { background: #dcfce7; color: #16a34a; }
.tag-out { background: #fef3c7; color: #d97706; }
.log-main { flex: 1; min-width: 0; }
.log-line { display: flex; gap: 7px; align-items: baseline; }
.log-qty { font-size: 14px; font-weight: 600; }
.log-op { font-size: 11px; color: var(--text-muted); }
.log-remark { margin-top: 2px; font-size: 11px; color: var(--text-sub); }
.log-time { flex-shrink: 0; font-size: 11px; color: #94a3b8; }
.log-empty { text-align: center; padding: 15px 0; }

/* ---------- 我的 ---------- */
.profile {
  display: flex; align-items: center; gap: 11px;
  padding: 20px 16px;
  border-radius: 15px;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .22);
}
.avatar {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  flex-shrink: 0;
}
.avatar-text { font-size: 22px; font-weight: 700; }
.profile-main { flex: 1; min-width: 0; }
.profile-name { font-size: 17px; font-weight: 700; }
.profile-role { margin-top: 4px; font-size: 12px; opacity: .75; }
.role-warn { color: #fbbf24; opacity: 1; }
.profile-refresh { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 11px; flex-shrink: 0; }

.today-card {
  margin-top: 12px;
  padding: 13px 14px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(15, 23, 42, .05);
}
.today-title { font-size: 14px; font-weight: 700; position: relative; }
.today-pick { margin-left: 6px; font-size: 11px; font-weight: 400; color: #60a5fa; }
.today-link { color: var(--primary); font-size: 12px; font-weight: 600; white-space: nowrap; }
.date-inline {
  border: none;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  padding: 0;
  max-width: 120px;
}
.today-nums { display: flex; margin-top: 10px; }
.tn { flex: 1; text-align: center; }
.tn-val { font-size: 20px; font-weight: 700; color: var(--primary); }
.tn-val.ok { color: var(--success); }
.tn-label { margin-top: 2px; font-size: 11px; color: var(--text-muted); }
.today-meals { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tm-chip { padding: 3px 9px; border-radius: 999px; background: #f6f8fc; color: var(--text-sub); font-size: 11px; }

.stat-card {
  display: flex; align-items: center;
  margin-top: 12px; padding: 15px 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(15, 23, 42, .05);
}
.stat { flex: 1; text-align: center; }
.stat-num { font-size: 18px; font-weight: 700; color: var(--primary); }
.stat-label { margin-top: 3px; font-size: 11px; color: var(--text-muted); }
.stat-line { width: 1px; height: 30px; background: #f1f5f9; }

.menu {
  margin-top: 12px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 23, 42, .05);
}
.menu-item {
  display: flex; align-items: center; gap: 9px;
  padding: 15px 14px;
  border-bottom: 1px solid #f6f8fc;
}
.menu-item:last-child { border-bottom: none; }
.menu-icon { font-size: 15px; width: 22px; text-align: center; }
.menu-text { flex: 1; font-size: 14px; }
.menu-extra { font-size: 11px; color: var(--text-muted); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-arrow { color: #cbd5e1; font-size: 16px; }

.about { margin-top: 12px; padding: 14px; background: #fff; border-radius: var(--radius); }
.about-version { margin-top: 8px; font-size: 11px; color: #cbd5e1; text-align: center; }
.addr-box {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f6f8fc;
}
.addr-label { font-size: 12px; color: #93c5fd; flex-shrink: 0; }
.addr-value { font-size: 12px; color: var(--text-sub); word-break: break-word; }
.addr-copy { margin-left: auto; font-size: 11px; color: #60a5fa; flex-shrink: 0; }

/* ---------- 页面底部信息 ---------- */
.app-footer {
  padding: 18px 14px 26px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.8;
}
.app-footer a { color: var(--text-muted); text-decoration: none; }

/* ---------- 需求单 / 采购单 / 出库单 ---------- */
.flow-item + .flow-item { margin-top: 12px; }
.flow-items { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.flow-item .op { margin-top: 9px; }
.dyn-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dyn-row .field-input { height: 38px; padding: 0 8px; font-size: 14px; }
.dyn-row .dyn-name { flex: 1.4; min-width: 0; }
.dyn-row .dyn-qty { flex: .7; min-width: 0; }
.dyn-row .dyn-price { flex: .7; min-width: 0; }
.dyn-row .dyn-unit { flex: .6; min-width: 0; }
.dyn-label { flex: 1; font-size: 13px; }
.dyn-del { width: 24px; flex-shrink: 0; text-align: center; color: var(--danger); font-size: 18px; }
.flow-item .row .op { margin-top: 0; padding: 4px 8px; }
