/* VAVA MVP Demo · 样式
   主色 #059669 · 深灰 #1F2937 · 浅灰 #F3F4F6
   克制 · 专业 · 无渐变无粉紫 */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei',
               'Hiragino Sans GB', 'Segoe UI', Roboto, sans-serif;
  color: #1F2937;
  background: #FAFAFA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== Tab 导航 ========== */
.tab-btn {
  position: relative;
  padding: 14px 18px;
  font-size: 14px;
  color: #6B7280;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab-btn:hover { color: #1F2937; }
.tab-btn.tab-active {
  color: #059669;
  border-bottom-color: #059669;
}
.tab-dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #10B981;
  margin-left: 6px; vertical-align: middle;
}

/* ========== 通用卡片 ========== */
.card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 20px;
}

/* ========== KPI ========== */
.kpi-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 18px 20px;
  transition: box-shadow .15s;
}
.kpi-card:hover { box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.kpi-label { font-size: 12px; color: #6B7280; margin-bottom: 6px; }
.kpi-value { font-size: 24px; font-weight: 600; color: #1F2937; font-variant-numeric: tabular-nums; }
.kpi-trend { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; margin-top: 4px; }
.kpi-trend.up { color: #059669; }
.kpi-trend.down { color: #DC2626; }

.progress-bg {
  width: 100%; height: 4px;
  background: #F3F4F6; border-radius: 999px;
  overflow: hidden; margin-top: 6px;
}
.progress-fill {
  height: 100%; background: #059669;
  border-radius: 999px; transition: width .4s ease;
}

.mini-stat {
  background: white; border: 1px solid #E5E7EB;
  border-radius: 6px; padding: 10px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.mini-label { font-size: 11px; color: #6B7280; }
.mini-value { font-size: 16px; font-weight: 600; color: #1F2937; font-variant-numeric: tabular-nums; }
.mini-bd { font-size: 10px; color: #9CA3AF; font-variant-numeric: tabular-nums; margin-top: 2px; }

/* ========== KPI per-store breakdown ========== */
.kpi-trends { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.kpi-breakdown {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #E5E7EB;
  display: flex; flex-direction: column; gap: 4px;
}
.kpi-bd-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.kpi-bd-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.kpi-bd-label { color: #6B7280; font-weight: 500; width: 24px; }
.kpi-bd-value { color: #1F2937; margin-left: auto; font-size: 11px; }

/* 完成率卡专用 · 带迷你进度条的分店行 */
.kpi-bd-mini { flex: 1; display: flex; align-items: center; gap: 8px; }
.kpi-bd-mini-bar { flex: 1; background: #F3F4F6; height: 4px; border-radius: 999px; overflow: hidden; }
.kpi-bd-mini-fill { height: 100%; border-radius: 999px; transition: width .3s; }

/* ========== 老板看板筛选器 ========== */
.dash-filter-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group-label {
  font-size: 11px;
  color: #6B7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.filter-group-items { display: flex; gap: 6px; flex-wrap: wrap; }

.period-switcher {
  display: inline-flex;
  background: #F3F4F6;
  border-radius: 6px;
  padding: 2px;
}
.period-chip {
  padding: 6px 16px;
  font-size: 13px;
  color: #6B7280;
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all .12s;
  font-family: inherit;
}
.period-chip:hover { color: #1F2937; }
.period-chip-active {
  background: white;
  color: #059669;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ========== 每店 × 收款渠道 矩阵 ========== */
.matrix-wrap { overflow-x: auto; }
.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 700px;
}
.matrix-th-store, .matrix-th-channel, .matrix-th-total {
  background: #F9FAFB;
  padding: 8px 10px;
  text-align: right;
  font-weight: 500;
  font-size: 12px;
  color: #4B5563;
  border-bottom: 1px solid #E5E7EB;
}
.matrix-th-store {
  text-align: left;
  background: #F3F4F6;
  color: #6B7280;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.matrix-th-total {
  background: #ECFDF5;
  color: #065F46;
  font-weight: 600;
}
.matrix-td {
  padding: 10px;
  text-align: right;
  border-bottom: 1px solid #F3F4F6;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.matrix-td-store {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #F3F4F6;
}
.matrix-td-filled .matrix-amount { color: #1F2937; font-weight: 500; }
.matrix-td-empty .matrix-amount { color: #D1D5DB; }
.matrix-pct {
  font-size: 10px;
  color: #9CA3AF;
  margin-top: 2px;
}
.matrix-td-total {
  background: #ECFDF5;
  color: #065F46;
  font-weight: 600;
}
.matrix-td-grand {
  background: #059669;
  color: white;
  font-weight: 700;
}
.matrix-row-total .matrix-td-store {
  background: #F3F4F6;
  font-weight: 600;
  color: #1F2937;
}
.matrix-hint {
  font-size: 11px;
  color: #9CA3AF;
  padding: 10px 4px 0;
  line-height: 1.6;
}

/* ========== 3 店设计类汇总卡片 ========== */
.design-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.design-col {
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 12px 14px;
  text-align: center;
  background: #FAFAFA;
}
.design-label { font-size: 12px; color: #6B7280; margin-bottom: 4px; }
.design-value { font-size: 22px; font-weight: 700; color: #065F46; font-variant-numeric: tabular-nums; }
.design-total { font-size: 13px; color: #6B7280; border-top: 1px dashed #E5E7EB; padding-top: 10px; margin-top: 8px; }

/* ========== 员工排行榜 ========== */
.leaderboard { display: flex; flex-direction: column; gap: 6px; }
.leaderboard-row { display: grid; grid-template-columns: 28px 100px 1fr 160px; align-items: center; gap: 10px; font-size: 13px; }
.leaderboard-rank { color: #9CA3AF; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.leaderboard-name { color: #1F2937; font-weight: 500; }
.leaderboard-bar-wrap { background: #F3F4F6; height: 6px; border-radius: 999px; overflow: hidden; }
.leaderboard-bar { background: #059669; height: 100%; }
.leaderboard-value { color: #6B7280; font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }

/* ========== Pills ========== */
.pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 4px;
  font-size: 12px; font-weight: 500; line-height: 1.4;
  white-space: nowrap;
}
.pill-date {
  background: #EFF6FF; color: #1E40AF;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
}

/* ========== 前台录单 entry ========== */
.entry-wrap {
  max-width: 600px; margin: 0 auto;
  background: white; border: 1px solid #E5E7EB; border-radius: 8px;
  padding: 20px;
}
.entry-header { margin-bottom: 16px; }
.entry-section { margin-bottom: 16px; }
.entry-label {
  font-size: 12px; font-weight: 600; color: #4B5563;
  text-transform: uppercase; letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.entry-row { display: flex; gap: 8px; align-items: flex-start; }

.entry-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  color: #1F2937;
  background: white;
  font-family: inherit;
  transition: border-color .15s;
}
.entry-input:focus {
  outline: none; border-color: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .1);
}
select.entry-input { cursor: pointer; }
textarea.entry-input { resize: vertical; }

.btn-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 8px 14px;
  border: 1px solid #E5E7EB;
  background: white;
  border-radius: 6px;
  font-size: 13px;
  color: #4B5563;
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
}
.chip:hover { background: #F9FAFB; border-color: #D1D5DB; }
.chip-active {
  background: #059669; color: white; border-color: #059669;
}
.chip-small { padding: 6px 10px; font-size: 12px; }

/* SKU 快捷按钮网格 */
.sku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.sku-chip {
  position: relative;
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all .12s;
  text-align: left;
}
.sku-chip:hover { background: #ECFDF5; border-color: #10B981; }
.sku-chip-active {
  background: #ECFDF5; border-color: #059669;
  box-shadow: 0 0 0 1px #059669;
}
.sku-chip-title { font-size: 12px; font-weight: 500; color: #1F2937; line-height: 1.3; }
.sku-chip-price { font-size: 11px; color: #059669; font-weight: 600; margin-top: 2px; }
.sku-chip-qty {
  position: absolute; top: 4px; right: 4px;
  background: #059669; color: white;
  font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 10px;
}

/* 购物车 */
.cart-section {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 14px;
}
.cart-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #E5E7EB;
}
.cart-row:last-child { border-bottom: none; }
.cart-name { font-size: 13px; color: #1F2937; font-weight: 500; }
.cart-sub { font-size: 11px; color: #6B7280; margin-top: 2px; }
.cart-qty { display: flex; align-items: center; gap: 4px; }
.qty-btn {
  width: 28px; height: 28px;
  border: 1px solid #E5E7EB;
  background: white; color: #4B5563;
  border-radius: 4px; cursor: pointer;
  font-size: 14px; font-weight: 600;
}
.qty-btn:hover { background: #F3F4F6; }
.qty-btn.remove { color: #DC2626; }
.cart-total {
  display: flex; justify-content: space-between;
  padding-top: 10px; margin-top: 6px;
  border-top: 1px solid #D1D5DB;
  font-size: 14px; font-weight: 600;
}
.cart-total-value { color: #059669; font-variant-numeric: tabular-nums; }

.pay-breakdown {
  font-size: 12px; color: #6B7280;
  padding: 8px 0 0 2px;
}

.return-cust-card {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
}

.entry-submit-wrap { margin-top: 20px; }
.entry-submit {
  width: 100%;
  padding: 14px;
  background: #059669;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s;
  font-family: inherit;
}
.entry-submit:hover { background: #047857; }

/* 成功页 */
.success-card {
  max-width: 520px; margin: 0 auto;
  background: white; border: 1px solid #E5E7EB;
  border-radius: 12px; padding: 40px 30px;
  text-align: center;
}
.success-summary {
  background: #F9FAFB; border-radius: 8px;
  padding: 14px; margin-bottom: 20px;
  text-align: left;
}
.success-row {
  display: flex; justify-content: space-between;
  padding: 6px 0; font-size: 13px;
}
.success-row span:first-child { color: #6B7280; }
.success-row span:last-child { color: #1F2937; font-weight: 500; }

/* ========== 当日现货 ========== */
.stock-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  background: white; border: 1px solid #E5E7EB; border-radius: 8px;
  padding: 10px 14px; margin-bottom: 12px;
  gap: 12px;
}
.stock-actions { display: flex; gap: 6px; }

.transfer-banner {
  display: flex; align-items: center; gap: 12px;
  background: #ECFDF5; border: 1px solid #A7F3D0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.transfer-content { flex: 1; }
.transfer-title { font-size: 13px; color: #065F46; font-weight: 500; }
.transfer-detail { font-size: 11px; color: #4B5563; margin-top: 2px; }

.store-stock-section {
  margin-bottom: 20px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.store-stock-header {
  padding: 12px 16px;
  border-bottom: 1px solid #E5E7EB;
  display: flex; align-items: center; justify-content: space-between;
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 12px;
}
.stock-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 12px;
  transition: all .15s;
}
.stock-card:hover { border-color: #10B981; box-shadow: 0 1px 3px rgba(16,185,129,.1); }
.stock-card-low {
  border-color: #FCA5A5;
  background: #FEF2F2;
}
.stock-card-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px;
}
.stock-card-name { font-size: 13px; font-weight: 500; color: #1F2937; line-height: 1.3; }
.stock-card-remaining {
  font-size: 24px; font-weight: 700; color: #059669;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stock-card-low .stock-card-remaining { color: #DC2626; }

.stock-card-meta {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: #6B7280; flex-wrap: wrap;
  margin-bottom: 10px;
}
.stock-meta-label { color: #9CA3AF; }
.stock-meta-val { color: #4B5563; font-weight: 500; font-variant-numeric: tabular-nums; }
.stock-meta-sep { color: #D1D5DB; }
.stock-meta-transfer { color: #EC4899; font-weight: 500; }

.stock-card-bar-wrap {
  background: #F3F4F6; height: 4px;
  border-radius: 999px; overflow: hidden;
  margin-bottom: 10px;
}
.stock-card-bar { background: #059669; height: 100%; transition: width .3s; }

.stock-card-actions { display: flex; gap: 4px; }
.stock-act-btn {
  flex: 1;
  padding: 5px 8px;
  font-size: 11px;
  border: 1px solid #E5E7EB;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  color: #4B5563;
  transition: all .12s;
}
.stock-act-btn:hover { background: #ECFDF5; border-color: #10B981; color: #065F46; }
.stock-act-secondary { color: #9CA3AF; }

/* ========== 后厨 ========== */
.kitchen-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .kitchen-layout { grid-template-columns: 1fr; }
}

.kitchen-order-list {
  background: white; border: 1px solid #E5E7EB;
  border-radius: 8px; overflow: hidden;
  max-height: 680px; overflow-y: auto;
}
.kitchen-list-header {
  padding: 12px 14px;
  border-bottom: 1px solid #E5E7EB;
  background: #F9FAFB;
}
.kitchen-order-row {
  padding: 12px 14px;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  transition: all .12s;
}
.kitchen-order-row:hover { background: #F9FAFB; }
.kitchen-order-row-active {
  background: #ECFDF5;
  border-left: 3px solid #059669;
  padding-left: 11px;
}
.kitchen-order-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.kitchen-order-time { font-size: 11px; color: #6B7280; }
.kitchen-order-name { font-size: 13px; color: #1F2937; font-weight: 500; line-height: 1.3; }
.kitchen-order-customer { font-size: 11px; color: #6B7280; margin-top: 2px; }
.kitchen-order-progress {
  background: #F3F4F6; height: 3px; border-radius: 999px;
  overflow: hidden; margin-top: 8px;
}
.kitchen-order-progress-fill { background: #059669; height: 100%; }
.kitchen-order-meta { font-size: 11px; color: #9CA3AF; margin-top: 4px; }

.kitchen-task-detail {
  background: white; border: 1px solid #E5E7EB;
  border-radius: 8px; padding: 20px;
  max-height: 680px; overflow-y: auto;
}
.kitchen-detail-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F3F4F6;
}
.kitchen-note {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #92400E;
}
.kitchen-task-section { margin-top: 20px; }
.kitchen-task-section-title {
  font-size: 12px; font-weight: 600; color: #4B5563;
  text-transform: uppercase; letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.kitchen-task-list {
  border: 1px solid #F3F4F6; border-radius: 6px;
  overflow: hidden;
}
.kitchen-task-row {
  display: grid;
  grid-template-columns: 90px 1fr 100px 60px;
  align-items: center; gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #F3F4F6;
  font-size: 13px;
}
.kitchen-task-row:last-child { border-bottom: none; }
.kitchen-task-row:hover { background: #F9FAFB; }
.kitchen-task-status {
  cursor: pointer;
  border: none;
  text-align: center;
  justify-content: center;
}
.kitchen-task-name { color: #1F2937; }
.kitchen-task-assignee { color: #6B7280; font-size: 12px; }
.kitchen-task-time {
  color: #9CA3AF; font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  text-align: right;
}
.kitchen-empty {
  text-align: center; color: #9CA3AF;
  padding: 80px 20px; font-size: 14px;
}

/* ========== Lark 风格表格（订单总表用）========== */
.lark-table-wrap {
  border: 1px solid #E5E7EB;
  border-radius: 8px; background: white;
  overflow: hidden;
}
.view-tab {
  padding: 8px 14px;
  font-size: 13px; color: #6B7280;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.view-tab:hover { color: #1F2937; background: #F9FAFB; }
.view-tab-active { color: #059669; border-bottom-color: #059669; font-weight: 500; }

.lark-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 13px;
}
.lark-th {
  position: sticky; top: 0; z-index: 2;
  background: #F9FAFB;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
  border-right: 1px solid #F3F4F6;
  font-size: 12px;
  color: #4B5563;
  font-weight: 500;
  white-space: nowrap;
}
.lark-th:last-child { border-right: none; }
.lark-td {
  padding: 7px 12px;
  border-bottom: 1px solid #F3F4F6;
  border-right: 1px solid #F3F4F6;
  vertical-align: middle;
  white-space: nowrap;
  background: white;
}
.lark-td:last-child { border-right: none; }
.lark-tr:nth-child(even) .lark-td { background: #FCFCFC; }
.lark-tr:hover .lark-td { background: #F0FDF4 !important; }

.toolbar-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  font-size: 12px; color: #4B5563;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 5px;
  cursor: pointer;
  transition: all .15s;
}
.toolbar-btn:hover { background: #F9FAFB; border-color: #D1D5DB; }

/* ========== 方案总览 / 落地步骤 ========== */
.step-card {
  background: white; border: 1px solid #E5E7EB;
  border-radius: 8px; padding: 14px 16px;
  flex: 1; min-width: 130px;
}
.step-day {
  display: inline-block;
  padding: 2px 8px;
  background: #D1FAE5; color: #065F46;
  font-size: 11px; font-weight: 600;
  border-radius: 4px; margin-bottom: 8px;
}
.step-arrow { color: #D1D5DB; align-self: center; flex-shrink: 0; }

.info-banner {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== 滚动条 ========== */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* ========== 响应式 ========== */
@media (max-width: 640px) {
  .leaderboard-row { grid-template-columns: 28px 80px 1fr; }
  .leaderboard-value { grid-column: 1 / -1; text-align: left; padding-left: 50px; }
  .design-row { grid-template-columns: repeat(2, 1fr); }

  /* Dashboard filter bar 在手机上上下排 */
  .dash-filter-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .filter-group { width: 100%; flex-wrap: wrap; }

  /* Touch targets 到 44px */
  .chip { min-height: 40px; padding: 10px 14px; }
  .period-chip { min-height: 40px; padding: 10px 18px; }
  .view-tab { min-height: 40px; padding: 10px 14px; }

  /* Kitchen layout 手机上纵排已经做了 */
  .kitchen-task-row { grid-template-columns: 80px 1fr 80px; }
  .kitchen-task-row .kitchen-task-time { display: none; }

  /* KPI 卡片内边距稍紧 */
  .kpi-card { padding: 14px 16px; }
  .kpi-value { font-size: 20px; }
}

/* 空状态 */
.empty-hint {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #9CA3AF; margin-top: 8px;
  font-style: italic;
  padding: 20px 0;
  justify-content: center;
}
.empty-hint svg { flex-shrink: 0; }

/* ========== 今日销售三板块 revenue buckets ========== */
.revenue-buckets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .revenue-buckets-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .revenue-buckets-grid { grid-template-columns: 1fr; }
}

.bucket-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 14px 16px;
  position: relative;
}
.bucket-presale { border-left: 3px solid #EC4899; }
.bucket-inventory { border-left: 3px solid #10B981; }
.bucket-balance { border-left: 3px solid #F59E0B; }
.bucket-total {
  background: linear-gradient(to bottom, #ECFDF5, white);
  border-color: #059669;
}

.bucket-header {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 10px;
}
.bucket-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 6px; flex-shrink: 0;
}
.bucket-title {
  font-size: 12px; font-weight: 600;
  color: #1F2937;
  line-height: 1.3;
}
.bucket-owner {
  font-size: 10px; color: #6B7280;
  margin-top: 2px;
}
.bucket-value {
  font-size: 22px; font-weight: 700;
  color: #1F2937;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.bucket-value-emerald { color: #059669; }
.bucket-count {
  font-size: 11px; color: #6B7280;
  margin-top: 4px;
}
.bucket-breakdown {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #E5E7EB;
  display: flex; flex-direction: column; gap: 3px;
}
.bucket-bd-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-variant-numeric: tabular-nums;
}

/* ========== 未上线 tag ========== */
.not-launched-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.mini-stat-inactive {
  opacity: 0.6;
  background: #F9FAFB;
}

.matrix-th-inactive, .matrix-td-inactive {
  background: #F9FAFB !important;
  color: #D1D5DB !important;
}
.matrix-td-inactive .matrix-amount { color: #D1D5DB; font-style: italic; }

/* ========== 数据表一览 ========== */
.tbl-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .tbl-layout { grid-template-columns: 1fr; }
}

.tbl-sidebar {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 10px 6px;
  max-height: 800px;
  overflow-y: auto;
  position: sticky;
  top: 108px;
  align-self: flex-start;
}
.tbl-sidebar-header {
  padding: 8px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #1F2937;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tbl-sidebar-sub {
  padding: 4px 10px;
  font-size: 10px;
  color: #9CA3AF;
  margin-top: 4px;
}
.tbl-sidebar-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all .12s;
  margin-bottom: 2px;
}
.tbl-sidebar-item:hover { background: #F9FAFB; }
.tbl-sidebar-item-active {
  background: #ECFDF5;
  border-left: 3px solid #059669;
  padding-left: 9px;
}
.tbl-side-name {
  font-size: 13px;
  font-weight: 500;
  color: #1F2937;
}
.tbl-side-en {
  font-size: 10px;
  color: #9CA3AF;
  font-family: ui-monospace, SFMono-Regular, monospace;
  margin-top: 1px;
}

.tbl-detail {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 20px 24px;
  overflow: hidden;
}
.tbl-detail-header { margin-bottom: 16px; }
.tbl-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tbl-badge-core { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.tbl-badge-support { background: #F3F4F6; color: #6B7280; border: 1px solid #E5E7EB; }

.tbl-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 20px;
}
@media (max-width: 640px) {
  .tbl-stats-row { grid-template-columns: repeat(2, 1fr); }
}
.tbl-stat {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tbl-stat-label {
  font-size: 11px;
  color: #6B7280;
}
.tbl-stat-val {
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
  font-variant-numeric: tabular-nums;
}

.tbl-schema-card {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
}
.tbl-schema-header {
  padding: 10px 14px;
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  font-size: 12px;
  font-weight: 600;
  color: #4B5563;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tbl-schema-wrap {
  overflow-x: auto;
  max-height: 600px;
  overflow-y: auto;
}
.tbl-schema-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.tbl-schema-table thead th {
  position: sticky;
  top: 0;
  background: #F9FAFB;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
  font-size: 11px;
  color: #6B7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.tbl-schema-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: top;
}
.tbl-schema-table tbody tr:hover td { background: #F0FDF4; }
.tbl-field-idx {
  color: #9CA3AF;
  font-size: 11px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.tbl-field-name { color: #1F2937; }
.tbl-field-name strong { font-weight: 500; }
.tbl-field-note {
  font-size: 10px;
  color: #6B7280;
  font-style: italic;
  margin-top: 2px;
}
.tbl-type-pill,
.tbl-input-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.tbl-sample {
  color: #4B5563;
  font-size: 12px;
  font-family: -apple-system, system-ui, 'PingFang SC', sans-serif;
  max-width: 300px;
  word-break: break-word;
}
.tbl-options {
  color: #9CA3AF;
  font-size: 11px;
  max-width: 280px;
}
.tbl-options-text { line-height: 1.5; }
.tbl-formula {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  background: #FCE7F3;
  color: #9D174D;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  line-height: 1.4;
}

.tbl-samples-section {
  margin-top: 20px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
}
.tbl-samples-title {
  padding: 10px 14px;
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  font-size: 12px;
  font-weight: 600;
  color: #4B5563;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tbl-samples-scroll {
  overflow-x: auto;
}
.tbl-samples-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.tbl-samples-table th {
  background: #F9FAFB;
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
  font-size: 10px;
  color: #6B7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.tbl-samples-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
  white-space: nowrap;
}
.tbl-samples-table tr:hover td { background: #F9FAFB; }
