/* AXOR 业务管理系统 全局样式 · Apple 企业级视觉 */
:root {
  --primary: #b45a32;
  --primary-dark: #9c4d28;
  --sidebar-bg: #2b2622;
  --sidebar-hover: #3a342e;
  --sidebar-active: #c96f4a;
  --text: #2b2520;
  --text-muted: #8a8178;
  --border: #e9e2da;
  --bg: #f7f3ef;
  --card-bg: #fffdfb;
  --success: #5d7a4d;
  --warning: #c98a2d;
  --danger: #b53a2e;
  --neutral: #8a8178;
  --radius: 16px;
  --radius-sm: 10px;
  --control-h: 36px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, "SF Pro Text", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; opacity: 0.8; }

/* 布局 */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px;
  min-width: 232px;
  background: var(--sidebar-bg);
  color: #d8d0c7;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.brand-name { font-weight: 600; color: #fff; font-size: 15px; }

.nav { padding: 10px 0; flex: 1; }
.nav-group { margin-bottom: 14px; }
.nav-title {
  padding: 6px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9a9086;
}

.nav-link {
  display: block;
  padding: 9px 16px;
  color: #d8d0c7;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  font-size: 14px;
}

.nav-link:hover {
  background: var(--sidebar-hover);
  color: #fff;
  text-decoration: none;
  opacity: 1;
}

.nav-link.active {
  background: var(--sidebar-hover);
  color: #fff;
  border-left-color: var(--sidebar-active);
}

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.page-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.role-chip {
  background: rgba(180, 90, 50, 0.10);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
}
.user-name { color: var(--text-muted); font-size: 13px; }
.user-info { display: flex; align-items: baseline; gap: 6px; }
.user-company { font-size: 13px; font-weight: 600; color: var(--text); }

.content { padding: 28px 32px; flex: 1; }

/* 卡片 —— 单层纯白容器，无边框 */
.card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.card-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.card-body { padding: 0 24px 24px; }

/* 工具条 */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.toolbar form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* 表格 —— 去框，仅靠留白与细线分层 */
.table-wrap { overflow: visible; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #eee7df; }
th {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
tbody tr:hover { background: #faf6f1; }
tbody tr:last-child td { border-bottom: none; }
td { font-size: 14px; }

.table-actions { white-space: nowrap; text-align: right; }

/* 紧凑单元格：主值 + 次值 */
.cell-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; }
.cell-strong { font-weight: 600; }

/* 徽章 */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.7;
}
.badge-success { background: rgba(93, 122, 77, 0.14); color: #4d6a3f; }
.badge-warning { background: rgba(201, 138, 45, 0.14); color: #a8701c; }
.badge-danger { background: rgba(181, 58, 46, 0.12); color: #a3322a; }
.badge-neutral { background: rgba(0, 0, 0, 0.06); color: #5a5048; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--control-h);
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  background: var(--primary);
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; opacity: 1; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* 次要按钮 —— 浅灰底 */
.btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
}
.btn-secondary:hover { background: rgba(0, 0, 0, 0.10); }

/* 幽灵按钮 */
.btn-ghost {
  background: transparent;
  color: var(--primary);
}
.btn-ghost:hover { background: rgba(0, 0, 0, 0.05); }

/* 危险按钮 */
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #9c2a22; }

.btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-link {
  background: none;
  color: var(--primary);
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}
.btn-link:hover { text-decoration: none; opacity: 0.7; }

/* 标签页（分段控件） */
.tabs {
  display: inline-flex;
  gap: 2px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  padding: 3px;
}
.tab {
  height: 32px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.tab.active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.hidden { display: none; }

/* 表单 —— 控件统一 36px 高 */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text);
}
.form-control {
  width: 100%;
  height: var(--control-h);
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  color: var(--text);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(180, 90, 50, 0.14);
}
textarea.form-control { height: auto; padding: 10px 12px; }
select.form-control {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.field-error { color: var(--danger); font-size: 12px; margin-top: 4px; }

.form-actions { display: flex; gap: 10px; margin-top: 24px; }

/* 嵌套表单行 —— 以浅灰背景分层，不再使用边框 */
.item-fields,
.order-item-fields,
.contract-item-fields {
  background: #faf6f1;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}
.batch-fields {
  background: #f3eee7;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

/* Flash */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
}
.flash-notice { background: rgba(93, 122, 77, 0.12); color: #4d6a3f; }
.flash-alert { background: rgba(181, 58, 46, 0.10); color: #a3322a; }

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.stat-card .stat-value { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.stat-card .stat-value.accent-danger { color: var(--danger); }
.stat-card .stat-value.accent-success { color: var(--success); }
.stat-card .stat-value.accent-warning { color: var(--warning); }

/* 附件下拉 */
.attach-dropdown { position: relative; display: inline-block; }
.attach-toggle {
  cursor: pointer;
  color: var(--primary);
  font-size: 13px;
  height: 30px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}
.attach-dropdown:hover .attach-toggle { background: rgba(0, 0, 0, 0.10); }
.attach-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 180px;
}
.attach-dropdown:hover .attach-menu { display: block; }
.attach-menu a {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text);
  border-radius: 6px;
  white-space: nowrap;
}
.attach-menu a:hover { background: #f3eee7; text-decoration: none; opacity: 1; }

/* 详情 */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
.detail-item .detail-label { font-size: 12px; color: var(--text-muted); }
.detail-item .detail-value { font-size: 14px; font-weight: 500; }

/* 图片 */
.thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3eee7;
}
.product-img-lg { max-width: 200px; border-radius: var(--radius-sm); }

/* 物流进度 */
.logistics-flow { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0; }
.logistics-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  padding: 8px;
}
.logistics-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e6ded5;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #e6ded5;
}
.logistics-dot.done { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.logistics-dot.in_progress { background: var(--warning); box-shadow: 0 0 0 2px var(--warning); }
.logistics-dot.delayed { background: var(--danger); box-shadow: 0 0 0 2px var(--danger); }
.logistics-node .node-name { font-size: 12px; margin-top: 6px; text-align: center; }
.logistics-node .node-date { font-size: 11px; color: var(--text-muted); }

/* 登录页 */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4a3b32 0%, #8a5a3c 55%, #b96a42 100%);
}
.login-card {
  background: #fff;
  border-radius: 18px;
  padding: 40px;
  width: 380px;
  box-shadow: var(--shadow);
}
.login-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.login-card .login-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.demo-hint {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.empty-state { text-align: center; color: var(--text-muted); padding: 48px; }

/* 操作下拉菜单 */
.action-dropdown { position: relative; display: inline-block; }
.action-toggle {
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  height: 30px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}
.action-dropdown:hover .action-toggle { background: rgba(0, 0, 0, 0.10); }
.action-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 120px;
}
.action-dropdown:hover .action-menu { display: block; }
.action-menu a,
.action-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
}
.action-menu a:hover,
.action-menu button:hover { background: #f3eee7; text-decoration: none; opacity: 1; }
.action-menu form.button_to { margin: 0; }
.action-menu .danger { color: var(--danger); }

/* 订单搜索下拉 */
.order-search-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow-y: auto;
  display: none;
}
.order-search-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}
.order-search-item:hover { background: #f3eee7; }
.order-search-empty {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* 数字等宽（通用工具类） */
.tabular-nums { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--text-muted); }

.workbench-build-time {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: right;
}
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.pull-right { float: right; }

/* ============ 工作台（三视角） ============ */
:root {
  --apple-green: #34C759;
  --apple-blue: #0071E3;
  --apple-gray: #d1d1d6;
}

.view-panel { display: none; }
.view-panel.active { display: block; }

/* 胶囊分段控制器 */
.segmented-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.segmented-control {
  position: relative;
  display: inline-flex;
  background: rgba(118, 118, 128, 0.12);
  border-radius: 999px;
  padding: 3px;
}
.segmented-item {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
}
.segmented-item.active { color: #000; font-weight: 600; }
.segmented-slider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* Bento 指标卡 */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.bento-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.bento-label { font-size: 12px; color: var(--text-muted); }
.bento-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
  color: var(--text);
}
.bento-value.accent-danger { color: var(--danger); }
.bento-value.accent-warning { color: var(--warning); }
.bento-sub { font-size: 12px; color: var(--text-muted); }
.bento-filter {
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s, background 0.18s;
  border: 2px solid transparent;
  user-select: none;
}
.bento-filter:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.bento-filter.active {
  border-color: var(--apple-blue);
  background: #f2f7ff;
}

/* 订单卡片（客户视角） */
.order-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px 26px;
  margin-bottom: 20px;
}
.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.order-card-title { font-size: 16px; font-weight: 600; }
.order-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.item-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.item-row.highlight {
  background: #fff1e8;
  border-radius: 10px;
  padding-left: 10px;
  padding-right: 10px;
  box-shadow: inset 3px 0 0 var(--danger);
}
.item-thumb { flex-shrink: 0; }
.thumb-empty { background: #f0ebe5; }
.item-info { flex: 1; }
.item-name { font-weight: 600; font-size: 14px; }
.item-meta { font-size: 12px; color: var(--text-muted); }
.item-eta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.countdown { font-weight: 600; }

/* 节点进度轨（客户视角） */
.item-progress { padding: 10px 0; border-bottom: 1px solid #f3eee7; }
.item-progress:last-child { border-bottom: none; }
.item-progress-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.node-track {
  display: flex;
  align-items: flex-start;
  padding: 14px 0 6px;
  overflow-x: auto;
}
.node-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 68px;
  flex: 1;
  cursor: default;
}
.node-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--apple-gray);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--apple-gray);
  position: relative;
  z-index: 2;
  transition: transform 0.15s;
}
.node-step:hover .node-dot { transform: scale(1.25); }
.node-step.node-done .node-dot { background: var(--apple-green); box-shadow: 0 0 0 2px var(--apple-green); }
.node-step.node-progress .node-dot { background: var(--apple-blue); box-shadow: 0 0 0 2px var(--apple-blue); animation: applePulse 1.6s infinite; }
.node-step.node-blocked .node-dot { background: var(--danger); box-shadow: 0 0 0 2px var(--danger); }
.node-step::after {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(50% + 10px);
  width: calc(100% - 20px);
  height: 2px;
  background: #e9e9ee;
  z-index: 1;
}
.node-step:last-child::after { display: none; }
.node-step.node-done::after { background: var(--apple-green); }
.node-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
}
.node-step.node-done .node-label { color: var(--text); font-weight: 600; }
.node-step.node-progress .node-label { color: var(--apple-blue); font-weight: 600; }
.node-step.node-blocked .node-label { color: var(--danger); font-weight: 600; }

/* 批次进度（客户视角：分批次的合同） */
.batch-progress { padding: 0 0 10px 2px; }
.batch-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.batch-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--apple-gray); flex-shrink: 0; }
.batch-dot.shipped { background: var(--warning); }
.batch-dot.delivered { background: var(--success); }
.batch-no { font-weight: 600; }
.batch-meta { color: var(--text-muted); font-size: 12px; }

@keyframes applePulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(0, 113, 227, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); }
}

/* 操作工作台 */
.ops-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.pill:hover { background: rgba(0, 0, 0, 0.09); }
.pill.active { background: var(--apple-blue); color: #fff; }
.spotlight {
  width: 300px;
  max-width: 100%;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.spotlight:focus { background: rgba(0, 0, 0, 0.08); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15); }
.ops-table-wrap {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.ops-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.ops-table th {
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.ops-table td { padding: 14px 18px; border-bottom: 1px solid #f3eee7; vertical-align: middle; }
.ops-table tbody tr:last-child td { border-bottom: none; }
.ops-table tbody tr:hover { background: #faf6f1; }
.ops-order { font-weight: 600; font-size: 14px; }
.ops-sku { font-size: 12px; color: var(--text-muted); }
.ops-customer { font-size: 11px; color: var(--text-muted); }
.ops-batch { display: inline-block; font-size: 11px; font-weight: 600; color: var(--primary); background: rgba(180, 90, 50, 0.10); padding: 1px 8px; border-radius: 10px; margin-top: 4px; }
.ops-eta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.ops-progress { display: flex; align-items: center; width: 100%; }
.ops-node {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--apple-gray);
  background: #fff;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0;
  flex-shrink: 0;
}
.ops-node:hover { transform: scale(1.18); }
.ops-node::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 28, 30, 0.92);
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 60;
}
.ops-node:hover::after { opacity: 1; }
.ops-node.done { background: var(--apple-green); border-color: var(--apple-green); color: #fff; }
.ops-node.progress {
  background: var(--apple-blue);
  border-color: var(--apple-blue);
  color: #fff;
  width: 30px;
  height: 30px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16);
  animation: applePulse 1.6s infinite;
}
.ops-node.blocked { background: var(--danger); border-color: var(--danger); color: #fff; }
.ops-node.pending { background: #fff; border-color: var(--apple-gray); color: var(--text-muted); }
.ops-line {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #e5e5ea;
  min-width: 6px;
  transition: background 0.2s;
}
.ops-line.done { background: var(--apple-green); }

/* 毛玻璃抽屉 */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 60;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 440px;
  max-width: 92vw;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.14);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 61;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.drawer-title { font-size: 18px; font-weight: 600; }
.drawer-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.drawer-close {
  border: none;
  background: rgba(0, 0, 0, 0.05);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
}
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-description {
  background: rgba(180, 90, 50, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.drawer-description-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.drawer-description-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}
.drawer-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.drawer-data-row span { color: var(--text-muted); }
.drawer-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.btn-primary { background: var(--apple-blue); }
.btn-primary:hover { background: #0062c4; }

/* 财务看板 */
.finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* 批量选择复选框列 */
.col-check { width: 36px; text-align: center; }
.col-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}
