* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

/* Login Page */
.login-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-box {
  width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.login-header {
  text-align: center;
  margin-bottom: 30px;
}
.login-header h1 {
  font-size: 28px;
  color: #ff4500;
  margin-bottom: 8px;
}
.login-header p {
  color: #999;
  font-size: 14px;
}
.login-form .el-button {
  font-size: 16px;
  letter-spacing: 4px;
}
.login-tip {
  text-align: center;
  color: #ccc;
  font-size: 12px;
  margin-top: 16px;
}

/* Layout */
.sidebar {
  background: #001529;
  transition: width 0.3s;
  overflow-x: hidden;
}
.sidebar .logo {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  border-bottom: 1px solid #1f1f3a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 12px;
}
.sidebar .logo .collapse-btn {
  font-size: 18px;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
}
.sidebar .logo .collapse-btn:hover { color: #fff; }
.sidebar .el-menu-item,
.sidebar .el-sub-menu__title {
  height: 44px !important;
  line-height: 44px !important;
  font-size: 13px !important;
}
.sidebar .el-menu-item .el-icon,
.sidebar .el-sub-menu__title .el-icon {
  margin-right: 10px;
  font-size: 18px !important;
  color: #b0b8c1;
  vertical-align: middle;
  transition: color 0.2s;
}
.sidebar .el-menu-item.is-active .el-icon,
.sidebar .el-sub-menu.is-active > .el-sub-menu__title .el-icon {
  color: #fff;
}
.sidebar .el-menu-item:hover .el-icon {
  color: #fff;
}
.sidebar .el-sub-menu .el-menu-item {
  height: 40px !important;
  line-height: 40px !important;
  padding-left: 44px !important;
  font-size: 13px !important;
}
.el-menu {
  border-right: none !important;
}
.header {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  height: 30px;
  line-height: 30px;
  flex: none;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-right .user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.user-name {
  font-size: 13px;
  color: #333;
}
/* 门店切换器（多租户数据隔离）：顶栏右侧，切换后全站数据按门店过滤 */
.header-right .store-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  transition: border-color .2s;
}
.header-right .store-switch:hover {
  border-color: #409eff;
}
.store-switch-name {
  font-size: 13px;
  color: #333;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 下拉列表中当前所选门店高亮 */
.store-current {
  font-weight: 700;
  color: #409eff;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.collapse-btn {
  font-size: 18px;
  cursor: pointer;
  color: #666;
}
.main-content {
  background: #f0f2f5;
  padding: 6px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
/* 每个功能页固定在一个屏幕高度内，内容超出时内部滚动，分页/筛选常驻可视区 */
/* v2026083024：page wrapper 显式声明 flex 列布局，否则内部 .erp-table-card 的 flex:1 不会生效 */
.main-content > div:not(.erp-tabs) {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  display: flex;
  flex-direction: column;
}
/* 筛选栏置顶常驻 */
.main-content .erp-filter-card { position: sticky; top: 0; z-index: 20; }
/* 分页条置底常驻 */
.main-content .el-pagination,
.main-content .erp-pager { position: sticky; bottom: 0; z-index: 20; background: #fff; margin-top: 12px; padding: 8px 10px; border-radius: 4px; box-shadow: 0 -2px 6px rgba(0,0,0,0.04); }

/* v2026083021：inner el-container 作为 #ext-pages 绝对定位的参照系 */
.content-host { position: relative; }

/* v2026083021：拆分页面容器（置于 inner el-container 首位子节点，规避 Vue in-DOM 编译器丢弃尾随纯 div）。
   由 v-show="isExtPage" 控制显隐：显示时绝对定位于主内容区（覆盖 el-main），隐藏时 display:none 不影响常规页面。 */
#ext-pages {
  position: absolute;
  top: 30px;            /* 与 .header 高度一致 */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  overflow: hidden;
  background: #f0f2f5;
  padding: 6px 16px;
  display: flex;
  flex-direction: column;
}
#ext-pages > div { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }

/* ========== v2026083020 全局分页条统一规范 ========== */
/* 容器：横向三栏，左=已选/清空，中=分页按钮，右=共 X/条 每页 */
.erp-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.erp-pager-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 200px;
}
.erp-pager-mid { flex: 1; display: flex; justify-content: center; }
.erp-pager-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  min-width: 200px;
  justify-content: flex-end;
}
.erp-pager-sel { color: #606266; font-size: 13px; }
.erp-pager-clear {
  border: none;
  background: none;
  padding: 0;
  font-size: 13px;
  color: #409eff;
  cursor: pointer;
}
.erp-pager-clear:hover { text-decoration: underline; }

/* Total → 共：EP 2.4 渲染文本节点为 Total，纯 CSS 替换 */
.el-pagination__total { font-size: 13px; color: #606266; }
.el-pagination__total:empty::before,
.el-pagination__total::before {
  /* Total is a separate text node in EP, so we render "共" via ::before
     and hide the original text by font-size/color override */
}
/* 隐藏 Total 字样（在 ::before 后覆盖原内容）：EP 把 'Total' 作为子文本节点 */
.el-pagination__total {
  position: relative;
}
.el-pagination__total {
  text-indent: -9999px;
  overflow: hidden;
  position: relative;
}
.el-pagination__total::before {
  content: '共';
  position: absolute;
  left: 0;
  top: 0;
  text-indent: 0;
  color: #606266;
  font-size: 13px;
}

/* ep selector 重置：底部 pagination 上的按钮/选择器加 13px 字号 */
.erp-pager-bar .el-pagination,
.erp-pager-bar .el-pagination-editor,
.erp-pager-bar .el-select,
.erp-pager-bar .el-input { font-size: 13px; }

/* ===== 标签页系统 ===== */
.erp-tabs {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  /* v2026083026：上移为 content-host 子节点后，左/右内边距与 .main-content(16px) 对齐，使标签栏与下方内容区左缘一致 */
  padding: 5px 16px 0;
  margin-bottom: -1px;
  overflow-x: auto;
}
.erp-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 6px;
  font-size: 12px;
  color: #606266;
  background: #f5f7fa;
  border: 1px solid #e4e7ed;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
  max-width: 200px;
  transition: background .15s, color .15s, border-color .15s;
  position: relative;
}
.erp-tab:hover {
  color: #303133;
  background: #eef1f6;
}
.erp-tab-group {
  font-size: 12px;
  color: #909399;
  padding: 0 6px 0 14px;
  border-left: 2px solid #dcdfe6;
  margin-left: 6px;
  user-select: none;
  cursor: default;
  height: 36px;
  line-height: 36px;
  font-weight: 500;
}
.erp-tab-group:first-child {
  border-left: none;
  margin-left: 0;
  padding-left: 0;
}
.erp-tab.active {
  background: #fff;
  color: #409eff;
  font-weight: 600;
  z-index: 2;
  margin-bottom: -1px;
  padding-bottom: 7px;
}
.erp-tab.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #409eff;
  border-radius: 6px 6px 0 0;
}
.erp-tab-title { overflow: hidden; text-overflow: ellipsis; }
.erp-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  color: #a8abb2;
  flex: none;
  transition: all .15s;
}
.erp-tab-close:hover { background: #f56c6c; color: #fff; }

/* 通用空状态 */
.erp-empty {
  margin: 20px 0;
  padding: 50px 0;
  text-align: center;
  color: #999;
  background: #fff;
  border-radius: 4px;
  border: 1px dashed #ddd;
  font-size: 14px;
}

/* 订单号链接 */
.order-no-link { color: #409eff; cursor: pointer; }
.order-no-link:hover { text-decoration: underline; }

/* Dashboard */
.stat-cards .el-card { margin-bottom: 0; }
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.stat-label {
  font-size: 13px;
  color: #999;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}
.todo-list { padding: 8px 0; }
.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.todo-item:last-child { border-bottom: none; }
.todo-item .badge { margin-left: auto; }

/* Page Toolbar */
.page-toolbar {
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.page-toolbar .el-form { margin: 0; }

/* Decoration Editor */
.decoration-editor {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.deco-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.deco-container {
  display: flex;
  gap: 16px;
  flex: 1;
  overflow: hidden;
}
.deco-left {
  width: 220px;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  overflow-y: auto;
}
.deco-section-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}
.deco-component-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.deco-component-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  cursor: grab;
  transition: all 0.2s;
  font-size: 13px;
}
.deco-component-item:hover {
  border-color: #ff4500;
  background: #fff8f5;
}
.deco-comp-icon {
  font-size: 18px;
}

.deco-center {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  padding: 16px;
}
.phone-frame {
  width: 375px;
  background: #f5f5f5;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  border: 8px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  max-height: 700px;
}
.phone-header {
  background: #fff;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 4px 16px;
  font-size: 12px;
  color: #333;
}
.phone-title {
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.phone-body {
  flex: 1;
  overflow-y: auto;
  min-height: 400px;
}
.phone-tabbar {
  display: flex;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 2px 0;
}
.deco-empty {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 13px;
}
.deco-rendered-component {
  position: relative;
  border: 2px dashed transparent;
  cursor: pointer;
}
.deco-rendered-component:hover {
  border-color: #409eff;
}
.deco-rendered-component.active {
  border-color: #ff4500;
}
.deco-comp-actions {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0,0,0,0.6);
  border-radius: 4px;
  padding: 2px 4px;
  display: flex;
  gap: 4px;
  z-index: 10;
}
.deco-comp-actions .el-icon {
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.deco-right {
  width: 300px;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  overflow-y: auto;
}
.deco-prop-panel {
  font-size: 13px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* 报表中心 */
.report-card {
  position: relative;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  min-height: 130px;
}
.report-card:hover {
  transform: translateY(-4px);
}
.report-card-icon {
  font-size: 34px;
  color: #ff4500;
  margin-bottom: 12px;
}
.report-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 8px;
}
.report-card-desc {
  font-size: 13px;
  color: #909399;
  line-height: 1.6;
}
.report-card-arrow {
  position: absolute;
  right: 16px;
  top: 16px;
  color: #c0c4cc;
  font-size: 18px;
}
.report-nav {
  margin-bottom: 16px;
}
.report-nav .el-button {
  padding-left: 0;
}
.stat-label {
  font-size: 13px;
  color: #909399;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #303133;
}
.report-filter-card {
  margin-bottom: 16px;
}
.report-filter-card .el-card__body {
  padding: 16px;
}
.report-filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.report-filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.report-filter-label {
  font-size: 13px;
  color: #606266;
  white-space: nowrap;
}
.report-filter-actions {
  margin-left: auto;
}
@media (max-width: 1200px) {
  .report-filter-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
}

/* 报表中心通用卡片（替代 el-card，避免组件渲染异常导致空白） */
.report-card-like {
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e4e7ed;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  margin-bottom: 16px;
  overflow: hidden;
}
.report-card-like .report-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid #ebeef5;
  font-weight: bold;
  color: #303133;
  background: #fafafa;
}
.report-card-like .report-card-body {
  padding: 16px 20px;
}
.report-card-like .report-card-body.no-pad {
  padding: 0;
}

/* ===== 报表中心·原生表格（替代 el-table，避免渲染异常导致空白） ===== */
.rpt-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
  color: #303133;
}
.rpt-table th,
.rpt-table td {
  border: 1px solid #ebeef5;
  padding: 9px 12px;
  text-align: left;
  line-height: 1.5;
  vertical-align: middle;
}
.rpt-table thead th {
  background: #f5f7fa;
  color: #303133;
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.rpt-table tbody tr:nth-child(even) {
  background: #fafafa;
}
.rpt-table tbody tr:hover {
  background: #f0f7ff;
}
.rpt-table .money {
  color: #ff4500;
  font-weight: 600;
  white-space: nowrap;
}
.rpt-table .money-green {
  color: #67c23a;
  font-weight: 600;
}
.rpt-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
}
.rpt-empty {
  margin: 30px 0;
  padding: 50px 0;
  text-align: center;
  color: #999;
  background: #fff;
  border-radius: 4px;
  border: 1px dashed #ddd;
  font-size: 14px;
}

/* 标签（替代 el-tag） */
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
.tag-green  { background: #e1f3d8; color: #67c23a; }
.tag-orange { background: #faecd8; color: #e6a23c; }
.tag-gray   { background: #f0f2f5; color: #909399; }
.tag-blue   { background: #ecf5ff; color: #409eff; }
.tag-primary{ background: #ecf5ff; color: #409eff; }
.tag-success{ background: #e1f3d8; color: #67c23a; }
.tag-warning{ background: #faecd8; color: #e6a23c; }
.tag-info   { background: #f0f2f5; color: #909399; }
.tag-danger { background: #fde2e2; color: #f56c6c; }

/* 原生筛选栏 */
.rpt-filter {
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.rpt-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.rpt-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.rpt-field > label {
  font-size: 12px;
  color: #606266;
  white-space: nowrap;
}
.rpt-field select,
.rpt-field input[type="date"] {
  height: 28px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 12px;
  color: #303133;
  background: #fff;
  min-width: 120px;
}
.rpt-field input[type="date"] {
  min-width: 130px;
}
.rpt-quick {
  display: inline-flex;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  overflow: hidden;
}
.rpt-quick button {
  border: none;
  background: #fff;
  padding: 0 10px;
  height: 24px;
  cursor: pointer;
  font-size: 12px;
  color: #606266;
  border-right: 1px solid #dcdfe6;
}
.rpt-quick button:last-child { border-right: none; }
.rpt-quick button.active { background: #ecf5ff; color: #409eff; }
.rpt-sep { color: #999; font-size: 12px; }
.rpt-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.rpt-btn {
  height: 24px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  cursor: pointer;
  font-size: 13px;
}
.rpt-btn:hover { color: #409eff; border-color: #c6e2ff; }
.rpt-btn-primary {
  background: #409eff;
  border-color: #409eff;
  color: #fff;
}
.rpt-btn-primary:hover { background: #66b1ff; border-color: #66b1ff; color: #fff; }

/* 返回按钮 / 链接按钮 */
.rpt-back {
  border: none;
  background: none;
  color: #409eff;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  margin-bottom: 16px;
}
.rpt-link {
  border: none;
  background: none;
  color: #409eff;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}
.rpt-link:hover { text-decoration: underline; }

/* ===== ERP 风格通用组件 ===== */
.erp-filter-card {
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.erp-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.erp-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.erp-field > label {
  font-size: 12px;
  color: #606266;
  line-height: 1;
  white-space: nowrap;
}
.erp-field .el-input,
.erp-field .el-select {
  font-size: 12px;
}
.erp-filter-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
/* 兼容未包裹 erp-filter-actions 的筛选卡：字段后面的第一个按钮自动推到右侧（v2026083019 统一规范） */
.erp-filter-card .erp-field + .erp-btn { margin-left: auto; }
.erp-filter-card .el-form--inline .el-form-item {
  margin-bottom: 0;
  margin-right: 10px;
}
.erp-filter-card .el-form--inline .el-form-item__label {
  font-size: 12px;
  color: #606266;
  padding-right: 6px;
  line-height: 24px;
}
.erp-filter-card .el-form--inline .el-form-item__content {
  line-height: 24px;
}
.erp-quick {
  display: inline-flex;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  overflow: hidden;
}
.erp-quick button {
  border: none;
  background: #fff;
  padding: 0 10px;
  height: 24px;
  cursor: pointer;
  font-size: 12px;
  color: #606266;
  border-right: 1px solid #dcdfe6;
}
.erp-quick button:last-child { border-right: none; }
.erp-quick button.active { background: #ecf5ff; color: #409eff; }
.erp-btn {
  height: 28px;
  padding: 0 14px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.erp-btn:hover:not(:disabled) { color: #409eff; border-color: #c6e2ff; }
/* 统一蓝色"底色边框"操作按钮（v2026083019 起规范：所有工具栏/筛选卡按钮默认此样式） */
.erp-btn-primary {
  background: #409eff;
  border-color: #409eff;
  color: #fff;
}
.erp-btn-primary:hover:not(:disabled) { background: #66b1ff; border-color: #66b1ff; color: #fff; }
.erp-btn-success { background: #67c23a; border-color: #67c23a; color: #fff; }
.erp-btn-success:hover:not(:disabled) { background: #85ce61; border-color: #85ce61; color: #fff; }
.erp-btn-warning { background: #e6a23c; border-color: #e6a23c; color: #fff; }
.erp-btn-warning:hover:not(:disabled) { background: #ebb563; border-color: #ebb563; color: #fff; }
.erp-btn-danger { background: #f56c6c; border-color: #f56c6c; color: #fff; }
.erp-btn-danger:hover:not(:disabled) { background: #f78989; border-color: #f78989; color: #fff; }
/* 统一禁用态灰底（无论何种颜色变体，禁用后均为灰底白字/灰字） */
.erp-btn:disabled,
.erp-btn[disabled],
.erp-btn.is-disabled {
  background: #ebeef5;
  border-color: #ebeef5;
  color: #c0c4cc;
  cursor: not-allowed;
}
.erp-btn-primary:disabled,
.erp-btn-primary[disabled] {
  background: #c0d4f0;
  border-color: #c0d4f0;
  color: #fff;
  cursor: not-allowed;
}
/* ===== 统一字号（v2026083019 规范，v2026083024 补 card 自身） ===== */
.erp-table-card { font-size: 13px; }
/* 全局统一所有表格字号为 13px（v2026083024：不再依赖 .erp-table-card 包裹，ext-pages 裸表格也生效） */
.el-table { font-size: 13px; }
.el-table .el-table__header th.el-table__cell .cell { font-size: 13px; font-weight: 600; }
.el-table .el-table__body td.el-table__cell .cell { font-size: 13px; }
/* 后台内容区全局基础字号 13px：消除各页面标题/卡片/统计文本大小不一（"字体很乱"根因之二） */
.main-content, #ext-pages { font-size: 13px; }
/* 表单/筛选/工具栏统一 13px（不依赖 .erp-form / .erp-detail-page 包裹，ext-pages 表单也生效） */
.el-form-item__label, .el-form-item__content, .erp-toolbar, .erp-filter-card, .erp-batch-bar { font-size: 13px; }
.erp-batch-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #f5f7fa;
  border: 1px solid #ebeef5;
  border-radius: 4px;
}
.erp-batch-count { color: #909399; font-size: 12px; margin-right: 4px; }
.erp-link { color: #409eff; cursor: pointer; }
.erp-link:hover { text-decoration: underline; }
/* v2026083024：table-card 改为 flex 列容器，让内部表格在少数据时仍撑满可视区 */
.erp-table-card {
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;  /* 阻止内层表格横向滚动条外溢到 card 外 */
}
.erp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ebeef5;
}
.erp-card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
  margin: 0;
}
.erp-card-header .actions {
  display: flex;
  gap: 10px;
}
/* detail drawer / dialog section helpers */
.erp-section-title {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  padding-left: 8px;
  border-left: 3px solid #409eff;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* 独立详情页（用于门店/商品/分类的添加/编辑，不做弹窗） */
.erp-detail-page {
  padding: 16px 0;
}
/* v2026083038：订单详情顶部工具栏（返回按钮 + 操作按钮组 同行右对齐） */
.erp-detail-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.erp-detail-toolbar .erp-back { flex: 0 0 auto; }
.erp-detail-toolbar .erp-detail-actions {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.erp-detail-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ebeef5;
  padding: 24px 32px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.erp-detail-header {
  border-bottom: 1px solid #ebeef5;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.erp-detail-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #303133;
}
.erp-detail-sub {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #909399;
}
.erp-section {
  margin-bottom: 20px;
}
.erp-detail-actions {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #ebeef5;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.erp-form-tip {
  margin-left: 12px;
  font-size: 12px;
  color: #909399;
}
.erp-form .el-form-item {
  margin-bottom: 18px;
}
.erp-form { padding: 4px 0; }
.erp-form-row { display: flex; align-items: center; margin-bottom: 16px; }
.erp-form-row > label { width: 88px; flex: 0 0 88px; color: #606266; font-size: 14px; }
.erp-form-row > .el-input,
.erp-form-row > .el-select,
.erp-form-row > .el-date-picker,
.erp-form-row > .el-input-number { flex: 1; }
.erp-form-row > .el-switch { flex: 0 0 auto; }
.erp-form-row > span { color: #303133; font-size: 14px; }
.erp-descriptions {
  margin-bottom: 4px;
}
.erp-setting-form {
  max-width: 720px;
}
.erp-setting-tip {
  font-size: 12px;
  color: #909399;
  line-height: 1.5;
  margin-top: 4px;
}
.erp-stat-subtitle {
  margin-top: 12px;
  font-size: 13px;
  color: #606266;
}
.erp-back {
  border: none;
  background: none;
  color: #409eff;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.erp-back:hover { text-decoration: underline; }
.erp-detail-page .el-card__header {
  font-weight: 600;
  color: #303133;
  font-size: 15px;
}
.erp-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.erp-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.erp-info-item label {
  font-size: 12px;
  color: #909399;
}
.erp-info-item span {
  font-size: 14px;
  color: #303133;
  word-break: break-all;
}

/* ===== 新建/编辑单据独立页（可编辑数据行 + 回车流转） ===== */
.erp-page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.erp-page-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #303133;
  flex: 1;
}
.erp-page-head-actions { display: flex; gap: 8px; align-items: center; }
.erp-form-card {
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.erp-edit-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.erp-edit-grid th, .erp-edit-grid td {
  border: 1px solid #ebeef5;
  padding: 6px 8px;
  text-align: left;
  vertical-align: middle;
}
.erp-edit-grid th {
  background: #f5f7fa;
  color: #606266;
  font-weight: 600;
  white-space: nowrap;
}
.erp-edit-grid td .el-input,
.erp-edit-grid td .el-select,
.erp-edit-grid td .el-input-number,
.erp-edit-grid td .el-date-editor { width: 100%; }
.erp-edit-grid .row-idx { color: #909399; text-align: center; }
.erp-grid-footer { margin-top: 12px; }
.erp-amount-row.totals {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  font-size: 13px;
  color: #606266;
}
.erp-amount-row.totals b { color: #303133; }

/* ===== 新订单提醒铃铛 ===== */
.new-order-bell {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #606266;
  font-size: 14px;
  height: 32px;
  position: relative;
  overflow: visible;
}
.new-order-bell .el-icon { font-size: 14px; transform: translateY(2px); }
.new-order-bell:hover { color: #409eff; }
.new-order-bell .el-badge__content {
  transform: translateY(2px) scale(0.85);
}
.new-order-bell .el-switch { height: 18px; }
.new-order-bell .el-switch__core { height: 14px; }
.new-order-bell .el-switch__action { width: 10px; height: 10px; }

/* 顶部售后徽章：紧挨「铃铛 + 开关」右侧 */
.aftersales-bell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 4px;
  cursor: pointer;
  color: #606266;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}
.aftersales-bell:hover { background: #f5f7fa; color: #f56c6c; }
.aftersales-bell .el-badge { display: inline-flex; align-items: center; justify-content: center; }
.aftersales-bell .el-badge__content {
  border: 0;
  padding: 0 4px;
  height: 14px;
  line-height: 14px;
  font-size: 10px;
  min-width: 14px;
  transform: translate(60%, -50%);
}
.aftersales-bell .el-icon { font-size: 14px; }

/* ===== 小票打印 ===== */
#print-area { display: none; }
.receipt {
  width: 80mm;
  box-sizing: border-box;
  padding: 3mm;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #000;
}
.receipt .r-shop { text-align: center; font-size: 16px; font-weight: bold; }
.receipt .r-sub { text-align: center; font-size: 11px; }
.receipt .r-dash { border-top: 1px dashed #000; margin: 6px 0; }
.receipt .r-title { text-align: center; font-weight: bold; margin-bottom: 4px; }
.receipt .r-row { display: flex; justify-content: space-between; }
.receipt .r-item { margin: 4px 0; }
.receipt .r-name { font-weight: bold; }
.receipt .r-spec { font-weight: normal; font-size: 11px; color: #333; }
.receipt .r-line { display: flex; justify-content: space-between; }
.receipt .r-item-head { display: flex; justify-content: space-between; font-weight: bold; border-bottom: 1px solid #000; padding-bottom: 2px; }
.receipt .r-item-head span:nth-child(2) { text-align: center; flex: 1; }
.receipt .r-item-head span:nth-child(3) { text-align: right; width: 56px; }
.receipt .r-total { font-weight: bold; font-size: 14px; }
.receipt .r-pickup { text-align: center; margin: 6px 0; }
.receipt .r-pickup-label { font-size: 12px; }
.receipt .r-pickup-code { font-size: 26px; font-weight: bold; letter-spacing: 3px; }
.receipt .r-foot { text-align: center; font-size: 11px; }

@media print {
  body * { visibility: hidden !important; }
  #print-area, #print-area * { visibility: visible !important; }
  #print-area { display: block !important; position: absolute; left: 0; top: 0; width: 80mm; background: #fff; }
  .receipt { width: 100%; }
}

/* ===== 打印模板设置编辑器 ===== */
.tpl-editor { display: flex; gap: 16px; align-items: flex-start; }
.tpl-left { flex: 1; min-width: 0; }
.tpl-right { width: 300px; flex: none; }
.tpl-vars { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tpl-var {
  font-size: 12px;
  padding: 3px 8px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #f4f4f5;
  color: #606266;
  cursor: pointer;
  user-select: none;
}
.tpl-var:hover { border-color: #409eff; color: #409eff; background: #ecf5ff; }
.tpl-textarea :deep(textarea) {
  font-family: "Consolas", "Menlo", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
}
.tpl-preview-title { font-size: 13px; color: #909399; margin-bottom: 8px; }
.tpl-preview {
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  background: #fff;
  padding: 10px;
  min-height: 200px;
  overflow: auto;
}
.tpl-preview .receipt { width: 100%; }
.erp-info-item .code {
  font-family: monospace;
  letter-spacing: 1px;
  color: #ff4500;
  font-weight: 600;
}
.erp-amount-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: #606266;
  border-bottom: 1px dashed #ebeef5;
}
.erp-amount-row:last-child { border-bottom: none; }
.erp-amount-row.total {
  font-size: 16px;
  font-weight: bold;
  color: #303133;
  margin-top: 6px;
}
.erp-amount-row.total span:last-child { color: #ff4500; }

@media (max-width: 1200px) {
  .erp-filter-actions { margin-left: 0; width: 100%; justify-content: flex-end; }
  .erp-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .erp-info-grid { grid-template-columns: 1fr; }
}

/* ===== 售后管理 ===== */
.as-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.as-stat {
  flex: 1 1 140px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  padding: 14px 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.as-stat-num {
  font-size: 20px;
  font-weight: 700;
  color: #303133;
  line-height: 1.2;
}
.as-stat-label {
  font-size: 12px;
  color: #909399;
  margin-top: 4px;
}
.as-date {
  height: 24px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 12px;
  color: #606266;
  background: #fff;
}
.as-detail { padding: 4px 0; }
.as-sub-title {
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  margin: 18px 0 10px;
  padding-left: 8px;
  border-left: 3px solid #409eff;
}
.as-media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.as-thumb {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ebeef5;
  cursor: pointer;
  background: #f5f7fa;
}
.as-thumb:hover { border-color: #409eff; }
.as-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== 全局空态文案（替换 el-table 默认 "No Data"） ===== */
/* v2026083024：empty-text 由 .el-table__empty-block::before 接管，line-height 取消（empty-block 改为 flex 居中） */
.el-table__empty-text { display: none; }
.el-table__empty-block::before {
  content: '暂无内容';
  font-size: 14px;
  color: #909399;
}

/* ===== 仪表盘：商城营业情况 / 待办事项（紧凑 9 格卡片） ===== */
.biz-card {
  background: #fafbfc;
  border-radius: 6px;
  padding: 16px 20px 18px;
  margin-bottom: 16px;
  border: 1px solid #ebeef5;
}
.biz-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.biz-title {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
}
.biz-updated {
  font-size: 12px;
  color: #909399;
}
.biz-settings {
  margin-left: auto;
  color: #409eff;
  font-size: 13px;
}
.biz-range-dropdown {
  /* 自身无需 margin-left:auto，由前一个 .biz-auto-refresh 兜底 */
}
.biz-auto-refresh {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.biz-refresh-btn {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 4px;
}
.biz-range-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 16px;
  font-size: 13px;
  color: #409eff;
  background: #f0f7ff;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s;
}
.biz-range-trigger:hover {
  border-color: #409eff;
  background: #e6f0ff;
}
.biz-range-caret {
  font-size: 12px;
  margin-left: 2px;
}
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.biz-cell {
  background: #fff;
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  min-height: 70px;
}
.biz-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.biz-body { flex: 1; min-width: 0; }
.biz-label { font-size: 13px; color: #606266; margin-bottom: 4px; }
.biz-value { font-size: 20px; font-weight: 600; color: #303133; line-height: 1.1; }
.biz-yesterday { font-size: 12px; color: #909399; margin-top: 4px; }

@media (max-width: 1280px) {
  .biz-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 待办事项 */
.biz-todo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.biz-todo-row .biz-todo-cell {
  background: #fff;
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  min-height: 64px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.biz-todo-row .biz-todo-cell.clickable {
  cursor: pointer;
}
.biz-todo-row .biz-todo-cell.clickable:hover {
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.18);
  transform: translateY(-1px);
}
.biz-todo-tag {
  display: inline-block;
  width: 4px;
  height: 28px;
  border-radius: 2px;
  flex-shrink: 0;
}
.biz-todo-body { flex: 1; min-width: 0; }
.biz-todo-name { font-size: 12px; color: #909399; margin-bottom: 4px; }
.biz-todo-num { font-size: 20px; font-weight: 600; color: #303133; line-height: 1.1; }

@media (max-width: 1280px) {
  .biz-todo-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .biz-todo-row { grid-template-columns: repeat(2, 1fr); }
}

/* 总账/明细账：期初/期末行视觉区分 */
.book-row-open > td { background: #f5f7fa !important; font-style: italic; color: #909399; }
.book-row-close > td { background: #f0f9eb !important; font-weight: 600; }

/* ========== v2026083020 erp-table 统一表格增强组件（列设置按钮外移到表格外侧右侧） ========== */
/* v2026083024：让"含 .erp-table-shell 的任意层级页面容器"自动成为 flex 列并撑满可视区，
   覆盖 ext-pages 多层嵌套（currentPage→stockTab→shell）场景，彻底消除"数据区域只显示一行"。 */
.main-content :has(.erp-table-shell),
#ext-pages :has(.erp-table-shell) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* 表格容器：flex 横向（main + side 列）；v2026083024 改为列方向 + flex:1 让内部 el-table 在少数据时撑满 card 可视区 */
.erp-table-shell {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
}
.erp-table-shell > .erp-table-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.erp-table-shell > .erp-table-side {
  flex: 0 0 18px;
  display: flex;
  align-items: flex-start;
}
.erp-table-shell > .erp-table-side .erp-table-tools-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 18px;
  padding: 8px 0;
  font-size: 12px;
  line-height: 1.1;
  color: #606266;
  background: #f5f7fa;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  writing-mode: vertical-rl;
  letter-spacing: 1px;
}
.erp-table-shell > .erp-table-side .erp-table-tools-btn:hover {
  color: #409eff;
  border-color: #409eff;
  background: #ecf5ff;
}
.erp-table-shell > .erp-table-side .erp-table-tools-btn:active { transform: scale(0.97); }
.erp-table-shell > .erp-table-side .erp-table-tools-btn svg { display: none; }
.erp-table-main > .el-table { width: 100%; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; height: 100%; }
/* v2026083024：让 el-table 内部 body-wrapper 在少数据时也撑满可视区 */
.erp-table-shell .el-table .el-table__inner-wrapper { display: flex; flex-direction: column; min-height: 0; }
.erp-table-shell .el-table .el-table__body-wrapper { flex: 1 1 auto; min-height: 0; }
/* 滚动条：细滚动条，默认轨道/滑块透明（视觉隐藏），hover 区域时才显色——符合"默认隐藏"诉求 */
.erp-table-shell .el-table .el-table__body-wrapper { overflow-x: auto; overflow-y: auto; scrollbar-gutter: stable; }
.erp-table-shell .el-table .el-table__body-wrapper::-webkit-scrollbar { width: 8px; height: 8px; }
.erp-table-shell .el-table .el-table__body-wrapper::-webkit-scrollbar-track { background: transparent; }
.erp-table-shell .el-table .el-table__body-wrapper::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; transition: background .2s; }
.erp-table-shell .el-table .el-table__body-wrapper:hover::-webkit-scrollbar-thumb { background: #c0c4cc; }
/* 空态：无数据时整张表格容器收缩到仅显示 empty 块，不再留 300+px 底部大空白（v2026083024） */
.erp-table-card:has(.el-table__empty-block),
.erp-table-shell:has(.el-table__empty-block) {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
}
/* v2026083047：订单详情/任何把 erp-table 嵌在 el-card 里的场景，shell 必须按内容自然高度渲染，
   否则会被卡片 flex 链压扁到 15px（bodyWrapper=0），表头之后的数据行全部不可见。
   同时 erp-info-grid / erp-amount-row 在 card 内也走自然高度，避免多行被裁切。 */
.el-card .erp-table-shell,
.el-card__body .erp-table-shell {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  align-items: flex-start !important;
}
.el-card .erp-table-shell .el-table,
.el-card__body .erp-table-shell .el-table {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
}
.el-card .erp-table-shell .el-table__inner-wrapper,
.el-card__body .erp-table-shell .el-table__inner-wrapper {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
}
.el-card .erp-table-shell .el-table__body-wrapper,
.el-card__body .erp-table-shell .el-table__body-wrapper {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
/* v2026083047：el-card 自身 / body 在 erp-detail-page 等 flex 列容器里会被压扁；
   强制 card body 按内容自然高度（auto）渲染，确保数据完整可见 */
.erp-detail-page .el-card,
.erp-detail-page .el-card__body {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
}
/* v2026083047：同一根因影响所有 .erp-info-grid / .erp-amount-row——它们的容器链也按 auto 渲染，
   避免 2 行以上信息被中间层 flex:1 + min-height:0 压到只剩 1 行 */
.erp-detail-page .erp-info-grid,
.erp-detail-page .erp-amount-row {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
}
.erp-table-shell .el-table:has(.el-table__empty-block) .el-table__body-wrapper { flex: 0 0 auto; height: auto; min-height: 0; }
.erp-table-shell .el-table .el-table__empty-block {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 表头拖拽手柄（Element Plus header-draggable 已内置，这里强化鼠标态） */
.erp-table-shell > .el-table thead th { cursor: default; position: relative; }
.erp-table-shell > .el-table thead th .cell { overflow: visible; }
.erp-table-shell > .el-table thead th.sortable .cell { cursor: pointer; }

/* 列设置按钮（v2026083020 已移至 .erp-table-shell > .erp-table-side 内部竖排呈现） */

/* 列设置 popover 面板 */
.erp-cols-popover { padding: 0 !important; min-width: 240px !important; }
.erp-cols-popover .popper__arrow { display: none; }
.erp-cols-settings { font-size: 13px; }
.erp-cols-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #ebeef5;
  background: #fafbfc;
}
.erp-cols-settings-title { font-weight: 600; color: #303133; }
.erp-cols-settings-reset {
  background: none;
  border: none;
  color: #909399;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
}
.erp-cols-settings-reset:hover { color: #409eff; background: #ecf5ff; }
.erp-cols-settings-tip {
  padding: 6px 12px;
  font-size: 11px;
  color: #909399;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.erp-cols-settings-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 4px 0;
}
.erp-cols-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: default;
  user-select: none;
}
.erp-cols-row:hover { background: #f5f7fa; }
.erp-cols-row[draggable="true"] { cursor: grab; }
.erp-cols-row[draggable="true"]:active { cursor: grabbing; }
.erp-cols-row[draggable="false"] { background: #fafbfc; }
.erp-cols-row-cb { cursor: pointer; margin: 0; }
.erp-cols-row-cb:disabled { cursor: not-allowed; }
.erp-cols-row-handle {
  display: inline-block;
  width: 14px;
  text-align: center;
  font-size: 14px;
  color: #c0c4cc;
}
.erp-cols-row-label {
  flex: 1;
  color: #303133;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.erp-cols-row-label.fixed { color: #909399; font-style: italic; }

/* 表格头部行高让出列设置按钮的位置 */
.erp-table-shell > .el-table th.el-table__cell { padding-top: 8px; padding-bottom: 8px; }
.erp-table-shell > .el-table th.el-table__cell:first-child .cell,
.erp-table-shell > .el-table th.el-table__cell .cell { padding-right: 6px; }

/* ===================== v2026083049：打印模板设计器布局 ===================== */
.print-design-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0;
  background: #fff;
}
.pd-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #ebeef5;
  flex: 0 0 auto;
}
.pd-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.pd-palette {
  flex: 0 0 132px;
  border-right: 1px solid #ebeef5;
  overflow: auto;
  padding: 10px 8px;
  background: #fafafa;
}
.pd-palette-title {
  font-size: 12px;
  color: #909399;
  margin-bottom: 8px;
  font-weight: 600;
}
.ep-draggable-item {
  display: block;
  padding: 8px 6px;
  margin-bottom: 8px;
  border: 1px dashed #c0c4cc;
  border-radius: 4px;
  background: #fff;
  text-align: center;
  font-size: 12px;
  color: #303133;
  cursor: grab;
  user-select: none;
}
.ep-draggable-item:hover { border-color: #409eff; color: #409eff; }
.ep-draggable-item:active { cursor: grabbing; }
.pd-canvas {
  flex: 1 1 auto;
  min-width: 0;
  overflow: auto;
  padding: 16px;
  background: #f5f5f5;
}
#hiprint-printTemplate {
  min-height: 420px;
  background: #fff;
}
.pd-setting {
  flex: 0 0 268px;
  border-left: 1px solid #ebeef5;
  overflow: auto;
  padding: 10px 12px;
  background: #fafafa;
}
/* 数据字段面板（v2026083054：点击字段即添加进画布，不再用自定义拖拽） */
.pd-fields {
  flex: 0 0 152px;
  border-right: 1px solid #ebeef5;
  overflow: auto;
  padding: 10px 8px;
  background: #f4f7fb;
}
.pd-fields-hint {
  font-size: 11px;
  color: #a0a4ad;
  margin-bottom: 8px;
  line-height: 1.5;
}
/* v2026083064：当前类型无可用字段时的占位提示 */
.pd-fields-empty {
  text-align: center;
  padding: 24px 4px;
  color: #b9bec8;
  font-size: 12px;
}
.pd-palette-title.pd-palette-sub {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed #dde3ec;
  color: #c0651d;
}
.pd-field-item {
  display: block;
  padding: 7px 6px;
  margin-bottom: 6px;
  border: 1px solid #b3d8ff;
  border-radius: 4px;
  background: #eaf3ff;
  text-align: center;
  font-size: 12px;
  color: #2c5fa8;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.pd-field-item:hover { border-color: #409eff; color: #1f4f93; background: #d9ecff; }
.pd-field-item:active { background: #b3d8ff; }
/* 业务字段专属样式（与通用变量区分色系：橙色系） */
.pd-field-item.pd-field-item-type {
  border-color: #f3c79b;
  background: #fff5e8;
  color: #b95f17;
}
.pd-field-item.pd-field-item-type:hover { border-color: #e6a965; color: #8d4909; background: #ffe9cc; }
.pd-fields-custom { margin-top: 6px; }
.pd-fields-custom .el-input { margin-bottom: 4px; }

/* v2026083059：打印模板预览对话框样式 —— ERP 级预览体验 */
.pd-preview-wrap { min-height: 60vh; max-height: 78vh; overflow: auto; background: #f6f7fa; padding: 16px; border-radius: 4px; }
.pd-preview-empty { text-align: center; padding: 80px 0; color: #909399; font-size: 14px; }
.pd-preview-body { background: #fff; padding: 16px; min-height: 60vh; border: 1px solid #ebeef5; box-shadow: 0 1px 4px rgba(0,0,0,.04); overflow-x: auto; }
/* 模板内容样式微调（hiprint 输出的纸面大多用 position:absolute 定位元素，确保预览可见） */
.pd-preview-body .hiprint-printPaper { margin: 0 auto; box-shadow: 0 1px 4px rgba(0,0,0,.08); background: #fff; }

/* ==================== 生鲜配送精细化组件（v2026110503） ==================== */
/* 通用 KPI 条 */
.fd-kpi-row { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.fd-kpi-row > .el-card { flex: 1 1 0; min-width: 120px; }
.fd-kpi-row > .el-card > .el-card__body { padding: 10px 14px; }
.fd-kpi { display: flex; flex-direction: column; gap: 4px; }
.fd-kpi span { font-size: 12px; color: #909399; line-height: 1.2; }
.fd-kpi b { font-size: 19px; font-weight: 600; color: #303133; line-height: 1.3; }
.fd-tabs { margin-top: 4px; }
.fd-tabs > .el-tabs__content { padding: 12px; }
.fd-hint { margin-top: 8px; font-size: 12px; color: #909399; line-height: 1.6; }

/* ===== 分拣标签：自定义纸张 / 内容排版 / 每页多张拼版 ===== */
.fpk-paper-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 10px; margin-bottom: 12px; background: #f5f7fa; border: 1px solid #ebeef5; border-radius: 4px; }
.fpk-paper-title { font-weight: 600; color: #303133; margin-right: 2px; }
.fpk-paper-unit { color: #606266; font-size: 12px; }
.fpk-paper-hint { color: #909399; font-size: 12px; margin-left: auto; }
.fpk-paper-bar .el-select, .fpk-paper-bar .el-input-number { flex: 0 0 auto; }
.fpk-preview { max-height: 54vh; overflow: auto; background: #eef0f3; padding: 16px 14px 8px; border-radius: 4px; }
.fpk-label-page { background: #fff; box-sizing: border-box; margin: 0 auto 16px; box-shadow: 0 2px 10px rgba(0,0,0,.15); position: relative; overflow: hidden; }
.fpk-page-no { position: absolute; top: -15px; left: 0; font-size: 11px; color: #909399; }
.fpk-label-grid { display: grid; align-content: start; }
.fpk-label { box-sizing: border-box; border: 1px dashed #303133; border-radius: 3px; padding: 4px 5px; background: #fff; color: #303133; overflow: hidden; position: relative; break-inside: avoid; page-break-inside: avoid; }
.fpk-label-inner { display: block; width: max-content; min-width: 100%; transform-origin: top left; }
.fpk-label-main { display: grid; gap: 1px 5px; align-content: start; flex: 1 1 auto; min-width: 0; }
.fpk-span { grid-column: 1 / -1; }
.fpk-field { display: flex; gap: 4px; align-items: baseline; white-space: nowrap; overflow: hidden; min-width: 0; }
.fpk-fk { color: #606266; flex: 0 0 auto; }
.fpk-fv { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.fpk-title .fpk-fv, .fpk-f-product .fpk-fv { font-weight: 700; }
.fpk-foot .fpk-fv { font-weight: 400; color: #606266; }
.fpk-f-amount .fpk-fv, .fpk-f-actual .fpk-fv { color: #c0392b; }
.fpk-label-inner.fpk-qr-right, .fpk-label-inner.fpk-qr-left, .fpk-label-inner.fpk-qr-top, .fpk-label-inner.fpk-qr-bottom { display: flex; gap: 4px; align-items: flex-start; }
.fpk-label-inner.fpk-qr-right { flex-direction: row; }
.fpk-label-inner.fpk-qr-left { flex-direction: row-reverse; }
.fpk-label-inner.fpk-qr-top { flex-direction: column-reverse; }
.fpk-label-inner.fpk-qr-bottom { flex-direction: column; }
.fpk-label-code { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fpk-label-code img.fpk-qr { display: block; image-rendering: pixelated; }
.fpk-label-code svg.fpk-bc { max-width: 100%; }
.fpk-label-empty { border: 1px dashed #dcdfe6; background: repeating-linear-gradient(45deg,#fafafa,#fafafa 6px,#f3f3f3 6px,#f3f3f3 12px); }
.fpk-label.price-warning { border: 2px dashed #f56c6c !important; background: #fef0f0; }

/* 内容排版设计器 */
.fpk-design-sec { background: #fff; border: 1px solid #ebeef5; border-radius: 4px; padding: 12px; margin-bottom: 12px; }
.fpk-design-title { font-weight: 600; color: #303133; margin-bottom: 8px; font-size: 13px; }
.fpk-field-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; border: 1px solid #ebeef5; border-radius: 3px; margin-bottom: 5px; background: #fafcff; }
.fpk-field-cand { background: #fff; }
.fpk-design-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 12px; }
.fpk-design-grid label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #606266; }
.fpk-design-grid input, .fpk-design-grid select { width: 92px; height: 28px; border: 1px solid #dcdfe6; border-radius: 3px; padding: 0 6px; background: #fff; color: #303133; font-size: 12px; }
.fpk-design-switches { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.fpk-tpl-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-bottom: 1px dashed #ebeef5; font-size: 13px; }
.fpk-tpl-row small { color: #909399; }

/* 分拣进度看板 / 绩效 / 分拣单 */
.fpk-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fpk-board { max-height: 230px; overflow: auto; }
.fpk-board-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fpk-board-name { width: 130px; flex: 0 0 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.fpk-board-row .el-progress { flex: 1 1 auto; }
.fpk-board-num { width: 78px; flex: 0 0 78px; text-align: right; font-size: 12px; color: #606266; }
.fpk-sheet-doc { background: #fff; color: #303133; padding: 10px 6px; }
.fpk-sheet-head { text-align: center; border-bottom: 2px solid #303133; padding-bottom: 8px; margin-bottom: 12px; }
.fpk-sheet-head h2 { font-size: 20px; margin: 0 0 4px; letter-spacing: 2px; }
.fpk-sheet-head div { font-size: 12px; color: #606266; }
.fpk-sheet-group { margin-bottom: 14px; }
.fpk-sheet-group-head { display: flex; justify-content: space-between; font-size: 13px; background: #f5f7fa; padding: 5px 8px; border-left: 3px solid #409eff; margin-bottom: 4px; }
.fpk-sheet-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.fpk-sheet-table th, .fpk-sheet-table td { border: 1px solid #dcdfe6; padding: 4px 6px; text-align: left; }
.fpk-sheet-table th { background: #fafafa; }

/* ===== 分拣作业台（App 式触屏） ===== */
.fpk-viewmode-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fpk-viewmode-bar .fresh-sub { font-size: 12px; }
.fpk-bench-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.fpk-seg { display: inline-flex; border: 1px solid #dcdfe6; border-radius: 8px; overflow: hidden; }
.fpk-seg-btn { border: none; background: #fff; color: #606266; padding: 8px 16px; font-size: 14px; cursor: pointer; transition: .15s; border-right: 1px solid #dcdfe6; }
.fpk-seg-btn:last-child { border-right: none; }
.fpk-seg-btn.active { background: #409eff; color: #fff; font-weight: 600; }
.fpk-seg-btn:hover:not(.active) { background: #ecf5ff; }
.fpk-bench-kpi { display: inline-flex; gap: 18px; flex-wrap: wrap; align-items: center; background: #ecf5ff; border: 1px solid #b3d8ff; border-radius: 8px; padding: 8px 16px; margin-bottom: 14px; font-size: 13px; color: #606266; }
.fpk-bench-kpi b { color: #303133; font-size: 15px; margin-left: 4px; }
.fpk-bench-empty { max-width: 520px; margin: 30px auto; }
.fpk-prod-grid, .fpk-order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.fpk-prod-card, .fpk-order-card { background: #fff; border: 1px solid #ebeef5; border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: .15s; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.fpk-prod-card:hover, .fpk-order-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(64,158,255,.18); border-color: #b3d8ff; }
.fpk-prod-top, .fpk-order-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.fpk-prod-name, .fpk-order-cust { font-size: 15px; font-weight: 600; color: #303133; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpk-prod-spec { font-size: 12px; color: #909399; margin-bottom: 4px; }
.fpk-prod-req, .fpk-order-req { font-size: 13px; color: #606266; margin-bottom: 8px; }
.fpk-prod-req b, .fpk-order-req b { color: #303133; }
.fpk-order-no { font-size: 12px; color: #909399; margin-bottom: 4px; }
.fpk-bench-dialog .fpk-bench-dlg-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fpk-bench-lines { max-height: 60vh; overflow: auto; }
.fpk-bench-line { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #ebeef5; border-radius: 8px; margin-bottom: 8px; background: #fff; flex-wrap: wrap; }
.fpk-bench-line.bl-done { background: #f0f9eb; border-color: #c2e7b0; }
.fpk-bench-line.bl-short { background: #fef0f0; border-color: #fbc4c4; }
.fpk-bl-main { flex: 1 1 200px; min-width: 160px; }
.fpk-bl-name { font-size: 14px; font-weight: 600; color: #303133; }
.fpk-bl-sub { font-size: 12px; color: #909399; }
.fpk-bl-qty { flex: 0 0 auto; text-align: right; font-size: 12px; color: #606266; }
.fpk-bl-qty b { color: #303133; font-size: 13px; }
.fpk-bl-act { margin-top: 2px; }
.fpk-bl-act.done b { color: #67c23a; }
.fpk-bl-act.short b { color: #f56c6c; }
.fpk-bl-ops { flex: 0 0 auto; display: flex; gap: 4px; }

/* ===== PDA 扫码作业页 ===== */
.fs-page { padding-bottom: 24px; }
.fs-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fs-header h2 { margin: 0 0 4px; font-size: 20px; color: #303133; }
.fs-header span { font-size: 12px; color: #909399; }
.fs-header-right { display: flex; align-items: center; gap: 8px; }
.fs-badge { background: #ecf5ff; color: #409eff; border: 1px solid #b3d8ff; border-radius: 12px; padding: 3px 10px; font-size: 12px; }
.fs-scan-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fs-scan-input { flex: 1 1 340px; min-width: 260px; }
.fs-scan-input input { font-size: 17px; letter-spacing: .5px; }
.fs-scan-opts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.fs-stats { font-size: 12px; color: #606266; margin-left: auto; }
.fs-stats b { color: #303133; }
.fs-cam { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.fs-cam video { width: 260px; height: 190px; background: #000; border-radius: 4px; object-fit: cover; }
.fs-cam-tip { font-size: 12px; color: #909399; }
.fs-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fs-empty-card { min-height: 330px; }
.fs-empty { text-align: center; padding: 48px 20px; }
.fs-empty-icon { font-size: 54px; color: #c0c4cc; line-height: 1; margin-bottom: 12px; }
.fs-empty-title { font-size: 17px; font-weight: 600; color: #606266; margin-bottom: 8px; }
.fs-empty-sub { font-size: 13px; color: #909399; line-height: 1.8; max-width: 420px; margin: 0 auto 14px; }
.fs-hero { border-bottom: 1px dashed #dcdfe6; padding-bottom: 12px; margin-bottom: 12px; }
.fs-hero-name { font-size: 24px; font-weight: 700; color: #303133; }
.fs-hero-product { font-size: 20px; font-weight: 600; color: #409eff; margin-top: 4px; }
.fs-hero-sub { font-size: 13px; color: #909399; margin-top: 4px; }
.fs-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.fs-metrics > div { background: #f5f7fa; border-radius: 4px; padding: 8px 10px; }
.fs-metrics span { display: block; font-size: 11px; color: #909399; }
.fs-metrics b { font-size: 18px; color: #303133; }
.fs-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #606266; margin-bottom: 12px; }
.fs-weigh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #f0f9eb; border: 1px solid #c2e7b0; border-radius: 4px; padding: 10px; }
.fs-weigh-label { font-size: 14px; font-weight: 600; color: #303133; }
.fs-weigh-input { width: 170px; }
.fs-weigh-input input { font-size: 20px; font-weight: 700; text-align: center; }
.fs-progress { margin-top: 12px; font-size: 12px; color: #606266; }
.fs-today { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.fs-today > div { text-align: center; background: #f5f7fa; border-radius: 4px; padding: 7px 2px; }
.fs-today span { display: block; font-size: 11px; color: #909399; }
.fs-today b { font-size: 18px; }
.fs-today-sub { font-size: 12px; color: #909399; margin-top: 8px; }
.fs-history { max-height: 300px; overflow: auto; }
.fs-hist-row { display: flex; gap: 8px; align-items: center; font-size: 12px; padding: 6px 4px; border-bottom: 1px dashed #ebeef5; }
.fs-hist-time { color: #909399; width: 62px; flex: 0 0 62px; }
.fs-hist-name { font-weight: 600; color: #303133; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-hist-cust { color: #606266; width: 92px; flex: 0 0 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-hist-code { color: #c0c4cc; width: 96px; flex: 0 0 96px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-hist-fail { background: #fef0f0; }
.fs-hist-fail .fs-hist-name { color: #f56c6c; }
.fs-trace-code { font-size: 12px; color: #909399; margin-bottom: 6px; }
.fs-trace h3 { margin: 0 0 12px; font-size: 19px; }
.fs-trace h3 small { font-size: 13px; color: #909399; font-weight: 400; }
.fs-trace-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-bottom: 14px; }
.fs-trace-grid > div { background: #f5f7fa; border-radius: 4px; padding: 7px 9px; }
.fs-trace-grid span { display: block; font-size: 11px; color: #909399; }
.fs-trace-grid b { font-size: 13px; }
.fs-trace-title { font-weight: 600; margin-bottom: 8px; font-size: 13px; }
.fs-trace-node { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 0 5px 4px; border-left: 2px solid #409eff; margin-left: 5px; padding-left: 12px; }
.fs-trace-node small { color: #909399; }

/* 送货单打印 */
.fd-note { background: #fff; color: #303133; padding: 4px 2px; }
.fd-note-title { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: 4px; margin-bottom: 8px; }
.fd-note-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; border-bottom: 1px solid #303133; padding-bottom: 8px; margin-bottom: 12px; }
.fd-note-customer { margin-bottom: 14px; break-inside: avoid; page-break-inside: avoid; }
.fd-note-chead { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.fd-note-chead span { color: #606266; font-size: 12px; }
.fd-note-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.fd-note-table th, .fd-note-table td { border: 1px solid #909399; padding: 4px 6px; text-align: left; }
.fd-note-table th { background: #f5f7fa; }
.fd-note-table tfoot td { font-weight: 700; text-align: right; }
.fd-note-sign { margin-top: 6px; font-size: 12px; color: #303133; }
.fd-note-foot { margin-top: 12px; padding-top: 8px; border-top: 1px solid #303133; font-size: 12px; text-align: right; }

/* 对账单打印 */
.ff-aging { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 8px 16px; background: #fafafa; }
.ff-aging-item { font-size: 12px; color: #606266; }
.ff-aging-item b { margin-right: 4px; color: #303133; }
.ff-statement { background: #fff; color: #303133; padding: 2px; }
.ff-statement-title { text-align: center; font-size: 19px; font-weight: 700; letter-spacing: 3px; margin-bottom: 8px; }
.ff-statement-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; border-bottom: 1px solid #dcdfe6; padding-bottom: 8px; margin-bottom: 10px; }
.ff-statement-foot { margin-top: 14px; padding-top: 10px; border-top: 1px solid #303133; font-size: 13px; text-align: right; }

/* 经营看板 7 日趋势柱图 */
.fr-chart { display: flex; align-items: flex-end; gap: 8px; height: 220px; padding: 10px 8px 0; border: 1px solid #ebeef5; border-radius: 4px; background: #fff; }
.fr-bar-wrap { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.fr-bar { width: 68%; max-width: 42px; min-height: 4px; background: linear-gradient(180deg, #67c23a, #409eff); border-radius: 3px 3px 0 0; transition: height .3s ease; }
.fr-bar-label { margin-top: 5px; font-size: 11px; color: #909399; white-space: nowrap; }
.fr-bar-val { font-size: 11px; color: #606266; white-space: nowrap; }

/* 单据打印隔离：仅在生鲜单据打印时生效，不影响 hiprint / 其他打印 */
@media print {
  body.fresh-print-mode > #app { display: none !important; }
  body.fresh-print-mode .el-overlay { position: static !important; overflow: visible !important; background: none !important; }
  body.fresh-print-mode .el-overlay-dialog { position: static !important; display: block !important; overflow: visible !important; }
  body.fresh-print-mode .el-dialog { width: 100% !important; max-width: 100% !important; margin: 0 !important; box-shadow: none !important; }
  body.fresh-print-mode .el-dialog__header,
  body.fresh-print-mode .el-dialog__headerbtn,
  body.fresh-print-mode .el-dialog__footer { display: none !important; }
  body.fresh-print-mode .el-dialog__body { padding: 0 !important; max-height: none !important; overflow: visible !important; }
  body.fresh-print-mode .el-tabs, body.fresh-print-mode .erp-filter-bar { display: none !important; }
  body.fresh-print-mode .fpk-paper-bar,
  body.fresh-print-mode .fpk-page-no,
  body.fresh-print-mode .fpk-designer { display: none !important; }
  body.fresh-print-mode .fpk-preview { zoom: 1 !important; max-height: none !important; overflow: visible !important; padding: 0 !important; background: none !important; }
  body.fresh-print-mode .fpk-label-page { box-shadow: none !important; margin: 0 !important; break-after: page; page-break-after: always; }
  body.fresh-print-mode .fpk-label-page:last-child { break-after: auto; page-break-after: auto; }
  body.fresh-print-mode .fpk-label-empty { border-color: transparent !important; background: #fff !important; }
  body.fresh-print-mode .fpk-label-grid { display: grid !important; }
  /* 第一个 @media print 会把 body 全部 visibility:hidden，这里显式恢复当前单据 */
  body.fresh-print-mode .el-overlay { display: none !important; }
  body.fresh-print-mode .el-overlay.fresh-print-active { display: block !important; visibility: visible !important; }
  body.fresh-print-mode .el-overlay.fresh-print-active * { visibility: visible !important; }
  body.fresh-print-mode .el-overlay.fresh-print-active .el-drawer,
  body.fresh-print-mode .el-overlay.fresh-print-active .el-dialog { visibility: visible !important; }
}


/* ===== 生鲜配送：全页通用子功能样式 ===== */
.fresh-pager { display: flex; justify-content: flex-end; align-items: center; padding: 10px 2px 2px; }
.fresh-pager .el-pagination { padding: 0; }
.fresh-batch-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #ecf5ff; border: 1px solid #b3d8ff; color: #409eff;
  border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; font-size: 13px;
}
.fresh-batch-bar b { font-size: 14px; }
.fresh-batch-bar .spacer { flex: 1; }
.fresh-empty { padding: 26px 12px; text-align: center; color: #909399; font-size: 13px; line-height: 1.9; }
.fresh-empty .fresh-empty-title { font-size: 14px; color: #606266; font-weight: 600; margin-bottom: 4px; }
.fresh-empty .fresh-empty-sub { font-size: 12px; color: #a8abb2; margin-bottom: 12px; }
.fresh-sub { font-size: 12px; color: #909399; line-height: 1.7; }
.fresh-mono { font-family: Consolas, Monaco, monospace; letter-spacing: .2px; }
.fresh-link { color: #409eff; cursor: pointer; }
.fresh-link:hover { text-decoration: underline; }
.fresh-copy { cursor: pointer; margin-left: 4px; color: #909399; font-size: 12px; }
.fresh-copy:hover { color: #409eff; }
.fresh-tag-mini { font-size: 11px; padding: 0 5px; border-radius: 3px; background: #f4f4f5; color: #909399; }
.el-table .fresh-row-warn > td.el-table__cell { background: #fdf6ec !important; }
.el-table .fresh-row-danger > td.el-table__cell { background: #fef0f0 !important; }
.el-table .fresh-row-warn:hover > td.el-table__cell { background: #faecd8 !important; }
.el-table .fresh-row-danger:hover > td.el-table__cell { background: #fde2e2 !important; }
.fresh-kpi-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; position: relative; z-index: 1; clear: both; }
.fresh-kpi-strip > div {
  flex: 1 1 0; min-width: 120px; background: #fff; border: 1px solid #ebeef5;
  border-radius: 6px; padding: 9px 12px;
}
.fresh-kpi-strip span { display: block; font-size: 12px; color: #909399; }
.fresh-kpi-strip b { display: block; font-size: 18px; color: #303133; margin-top: 3px; font-weight: 600; }
.fresh-section-title { font-size: 13px; font-weight: 600; color: #303133; margin: 14px 0 8px; padding-left: 8px; border-left: 3px solid #409eff; }
.fresh-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; font-size: 13px; }
.fresh-detail-grid .k { color: #909399; font-size: 12px; }
.fresh-detail-grid .v { color: #303133; word-break: break-all; }
.fresh-timeline { padding-left: 4px; }
.fresh-timeline-item { display: flex; gap: 8px; font-size: 12px; color: #606266; padding: 4px 0; }
.fresh-timeline-item .dot { width: 8px; height: 8px; border-radius: 50%; background: #c0c4cc; margin-top: 5px; flex: none; }
.fresh-timeline-item.done .dot { background: #67c23a; }
.fresh-timeline-item.done { color: #303133; }
.fresh-num-cell { font-variant-numeric: tabular-nums; }
.fresh-toolbar-sep { display: inline-block; width: 1px; height: 20px; background: #dcdfe6; margin: 0 2px; vertical-align: middle; }
.fresh-quick-dates .el-button { padding: 6px 9px; }
.fresh-summary-note { font-size: 12px; color: #909399; padding: 6px 2px; }
.fresh-inline-hint { font-size: 11px; color: #e6a23c; margin-top: 3px; }
.fresh-drawer-block { margin-bottom: 18px; }


/* 生鲜页面工具条：高度自适应 + 自动换行，避免控件多时与下方统计/表格重叠 */
.fresh-page > .erp-filter-bar,
.fresh-page .erp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  height: auto !important;
  min-height: 38px;
  overflow: visible;
  padding: 8px 10px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}
.fresh-page .erp-filter-bar > * { flex: none; }
.fresh-page .erp-filter-bar .erp-filter-tip { margin-right: 4px; }
.fresh-page .fresh-kpi-strip { margin-top: 2px; }
.fresh-page .fresh-batch-bar { clear: both; }
.fresh-page .fp-tip { margin-top: 4px; font-size: 12px; line-height: 1.5; color: #909399; }
.fresh-page .fp-tip::before { content: "提示："; color: #c0c4cc; }

/* 基础设置（数据字典）：左侧分组列表 + 右侧选项表格 */
.fresh-page .fb-layout { display: flex; gap: 14px; align-items: flex-start; }
.fresh-page .fb-groups {
  flex: none; width: 220px; background: #fff; border: 1px solid #ebeef5;
  border-radius: 6px; padding: 6px; box-sizing: border-box;
}
.fresh-page .fb-groups-title {
  font-size: 13px; font-weight: 600; color: #303133; padding: 8px 8px 6px;
  margin-bottom: 4px; border-bottom: 1px solid #f0f2f5;
}
.fresh-page .fb-group-item {
  padding: 9px 10px; border-radius: 5px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
  margin-bottom: 2px;
}
.fresh-page .fb-group-item:hover { background: #f5f7fa; }
.fresh-page .fb-group-item.active {
  background: #ecf5ff; border-color: #b3d8ff;
}
.fresh-page .fb-group-name { font-size: 14px; color: #303133; font-weight: 600; }
.fresh-page .fb-group-item.active .fb-group-name { color: #409eff; }
.fresh-page .fb-group-desc {
  font-size: 12px; color: #909399; margin-top: 3px; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fresh-page .fb-main { flex: 1 1 auto; min-width: 0; }

/* 生鲜价格风控：全页统一预警条 + 零价标签高亮 */
.fresh-price-alert {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fef0f0; border: 1px solid #fbc4c4; color: #f56c6c;
  border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; font-size: 13px; line-height: 1.7;
}
.fresh-price-alert > span:first-child { flex: 1 1 320px; }
.fpk-label.price-warning { border: 2px dashed #f56c6c; background: #fef0f0; }
.fpk-label.price-warning .fpk-label-row b { color: #f56c6c; }
.fresh-void-preview { background: #fafafa; border: 1px solid #ebeef5; border-radius: 6px; padding: 10px; margin-bottom: 10px; }
.fresh-void-preview .k { color: #909399; font-size: 12px; }
.fresh-void-preview .v { color: #303133; font-size: 13px; }

/* ===== 基础资料：供应商档案入口卡片 ===== */
.fb-entry-cards { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.fb-entry-card { flex: 1 1 320px; min-width: 280px; background: #fff; border: 1px solid #ebeef5; border-radius: 6px; padding: 12px 14px; }
.fb-entry-card:first-child { cursor: pointer; border-color: #b3d8ff; background: #f5faff; }
.fb-entry-card:first-child:hover { box-shadow: 0 2px 10px rgba(64,158,255,.18); }
.fb-entry-title { font-size: 14px; font-weight: 600; color: #303133; margin-bottom: 6px; }
.fb-entry-desc { font-size: 12px; color: #606266; line-height: 1.7; min-height: 40px; }
.fb-entry-link { font-size: 12px; color: #409eff; margin-top: 8px; }
.fb-entry-muted { color: #909399; }

/* ===== 分拣：作业视图切换 / 明细视图说明 ===== */
.fpk-view-switch { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; background: #f5f7fa; border: 1px solid #ebeef5; border-radius: 4px; }
.fpk-view-label { font-size: 12px; color: #909399; margin-right: 4px; white-space: nowrap; }
.fpk-detail-viewbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 10px; background: #ecf5ff; border: 1px solid #b3d8ff; border-radius: 4px; font-size: 13px; color: #303133; }
.fpk-detail-viewbar .fresh-sub { flex: 1 1 260px; }

/* ===== 逐商品签收到货核对 ===== */
.fd-sign-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.fd-sign-verdict { margin-left: auto; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 4px; }
.fd-v0 { background: #f4f4f5; color: #909399; }
.fd-v1 { background: #f0f9eb; color: #67c23a; }
.fd-v2 { background: #fef0f0; color: #f56c6c; }
.fd-v3 { background: #fdf6ec; color: #e6a23c; }

/* ===== 基础资料页主 Tab（数据字典 / 供应商档案） ===== */
.fb-main-tabs > .el-tabs__content { padding: 12px 2px 0; }

/* ===== 签收登记独立页面 ===== */
.fds-page { padding-bottom: 24px; }
.fds-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fds-header h2 { margin: 0 0 4px; font-size: 20px; color: #303133; }
.fds-header h2 small { font-size: 14px; font-weight: 400; color: #606266; }
.fds-sub { font-size: 12px; color: #909399; }
.fds-panel { margin-top: 14px; }
.fds-total { font-size: 18px; color: #c0392b; }
.fds-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.fds-result { text-align: center; padding: 28px 16px; }
.fds-result-icon { width: 56px; height: 56px; line-height: 56px; border-radius: 50%; font-size: 28px; margin: 0 auto 14px; background: #f0f9eb; color: #67c23a; }
.fds-result-icon.fd-v2 { background: #fef0f0; color: #f56c6c; }
.fds-result-icon.fd-v3 { background: #fdf6ec; color: #e6a23c; }
.fds-result-title { font-size: 18px; font-weight: 600; color: #303133; margin-bottom: 10px; }
.fds-result-desc { font-size: 13px; color: #606266; line-height: 1.9; }
.fds-result-stats { display: flex; justify-content: center; gap: 18px; margin: 16px 0; font-size: 13px; color: #909399; }
.fds-result-actions { display: flex; justify-content: center; gap: 10px; }

/* ===== 生成采购单（独立页 + 键盘快录） ===== */
.fpc-bar { align-items: center; }
.fpc-field { display: inline-flex; align-items: center; margin-right: 12px; }
.fpc-field > label { color: #606266; font-size: 13px; margin-right: 6px; white-space: nowrap; }
.fpc-remark { flex: 0 0 auto; }
.fpc-grid-wrap { overflow-x: auto; }
.fpc-grid { width: auto; min-width: 100%; table-layout: fixed; border-collapse: collapse; background: #fff; font-size: 13px; }
.fpc-grid th, .fpc-grid td { border: 1px solid #ebeef5; padding: 6px 8px; text-align: center; }
.fpc-grid thead th { background: #f5f7fa; color: #909399; font-weight: 600; }
.fpc-grid .fpc-idx { width: 46px; color: #909399; }
.fpc-grid .fpc-prod { min-width: 200px; text-align: left; }
.fpc-grid .fpc-num { width: 130px; }
.fpc-grid .fpc-unit { width: 70px; color: #606266; }
.fpc-grid .fpc-sub { width: 110px; text-align: right; color: #303133; font-weight: 600; }
.fpc-grid .fpc-op { width: 70px; }
.fpc-grid .fpc-empty { color: #909399; padding: 18px; }
.fpc-input { width: 100%; height: 30px; border: 1px solid #dcdfe6; border-radius: 4px; padding: 0 8px; text-align: right;
  font-size: 13px; color: #303133; outline: none; box-sizing: border-box; }
.fpc-input:focus { border-color: #409eff; }
.fpc-grid tbody tr:hover { background: #f5f7fa; }

/* ===== 系统设置页 ===== */
.fsy-info { margin-bottom: 14px; }
.fsy-info-card { background: #fff; border: 1px solid #ebeef5; border-radius: 8px; padding: 14px 16px; }
.fsy-info-card .k { color: #909399; font-size: 12px; margin-bottom: 6px; }
.fsy-info-card .v { color: #303133; font-size: 20px; font-weight: 600; }
.fsy-card { background: #fff; border: 1px solid #ebeef5; border-radius: 8px; padding: 18px; height: 100%; box-sizing: border-box; }
.fsy-card-title { font-size: 15px; font-weight: 600; color: #303133; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.fsy-card-desc { color: #606266; font-size: 13px; line-height: 1.8; margin-bottom: 12px; }
.fsy-card-danger { border-color: #fbc4c4; }
.fsy-warn { color: #e6a23c; }
.fsy-file { margin-top: 8px; color: #409eff; font-size: 13px; }
.fsy-msg { margin-top: 8px; color: #67c23a; font-size: 13px; }

/* ===== 分拣分配看板增强 ===== */
.fa-product-name { color: #409eff; cursor: pointer; font-weight: 500; }
.fa-product-name:hover { text-decoration: underline; color: #66b1ff; }
.fa-alloc-input-row { display: flex; align-items: center; gap: 8px; }
/* 数据变更高亮：本次分配值与已直配原值不同（含增/减）时整格加色，便于核对改了哪些 */
.fa-cell-changed { background: #fef0e6; box-shadow: inset 3px 0 0 #e6a23c; border-radius: 3px; padding: 2px 4px; }
.fa-cell-changed .el-input-number { background: #fff7ef; }
/* 完成态绿行：已配齐 / 已缺货 / 已替换 的行整行绿色底，直观区分"已处理 vs 待处理" */
.fa-row-done > td { background: #f0f9eb !important; }
.fa-row-done:hover > td { background: #e6f5d8 !important; }

/* 当前商品高亮卡（Issue 2：放大、高亮、显示规格/缺货/已替换明细） */
.fa-current-card {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(135deg, #ecf5ff 0%, #e6f0ff 100%);
  border: 1px solid #b3d8ff; border-radius: 12px; padding: 16px 22px; margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(64,158,255,.12);
}
.fa-cur-main { min-width: 200px; }
.fa-cur-label { font-size: 12px; color: #909399; letter-spacing: 1px; }
.fa-cur-name { font-size: 26px; font-weight: 700; color: #1f2d3d; line-height: 1.25; margin: 2px 0; }
.fa-cur-spec { font-size: 14px; color: #606266; }
.fa-cur-metrics { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.fa-cur-m { display: flex; flex-direction: column; line-height: 1.3; }
.fa-cur-m > span { font-size: 12px; color: #909399; }
.fa-cur-m > b { font-size: 20px; color: #303133; }
.fa-cur-bad > b { color: #f56c6c; }
.fa-cur-bad2 > b { color: #e6a23c; }

/* 操作日志详情单元格：换行完整显示，避免截断 */
.faud-detail-cell { white-space: normal; word-break: break-all; line-height: 1.6; font-size: 12px; color: #606266; }
/* 订单明细页面形式 */
.fo-detail-page { background: #fff; border: 1px solid #ebeef5; border-radius: 8px; padding: 14px 16px; }
.fo-detail-bar { margin-bottom: 12px; }

/* 客户下单二维码分享面板 */
.fc-share-qr { display: flex; justify-content: center; margin-bottom: 12px; }
.fc-share-qr img { width: 240px; height: 240px; border: 1px solid #ebeef5; border-radius: 6px; background: #fff; }
.fc-share-link { margin-bottom: 4px; }

/* v2026110804 供应商协同报价：比价定标矩阵 */
.fiq-quote-cells { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.fiq-quote-cell { min-width: 128px; border: 1px solid #e4e7ed; border-radius: 6px; padding: 6px 8px; cursor: pointer; background: #fff; transition: all .15s; }
.fiq-quote-cell:hover { border-color: #409eff; }
.fiq-quote-cell.lowest { background: #f0f9eb; border-color: #b7e1a1; }
.fiq-quote-cell.picked { border: 2px solid #67c23a; background: #f0f9eb; box-shadow: 0 0 0 2px rgba(103,194,58,.15); }
.fiq-q-name { font-size: 12px; color: #606266; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fiq-q-price { font-size: 15px; font-weight: 700; color: #d03050; margin-top: 2px; }
.fiq-q-badge { font-size: 10px; font-weight: 400; color: #fff; background: #67c23a; border-radius: 3px; padding: 1px 4px; margin-left: 5px; vertical-align: middle; }
.fiq-q-sub { font-size: 11px; color: #909399; margin-top: 2px; }
.fiq-q-pick { font-size: 11px; color: #409eff; margin-top: 3px; }
.fiq-quote-cell.picked .fiq-q-pick { color: #67c23a; font-weight: 700; }

/* ===== v2026110805 分拣分配「商品配货单」热敏小票打印 ===== */
.fa-print-setup { display: flex; gap: 14px; min-height: 460px; }
.fa-print-left { width: 310px; flex: 0 0 310px; border-right: 1px solid #ebeef5; padding-right: 14px; overflow: auto; max-height: 66vh; }
.fa-print-right { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fa-print-block { margin-top: 14px; padding: 10px; background: #f7f9fc; border-radius: 6px; }
.fa-print-block-t { font-size: 13px; font-weight: 600; color: #303133; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.fa-print-pick-list { max-height: 190px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.fa-print-pick-list .el-checkbox { margin-right: 0; height: 24px; }
.fa-print-preview-head { font-size: 13px; color: #606266; margin-bottom: 8px; }
.fa-print-preview { flex: 1; min-height: 380px; max-height: 62vh; overflow: auto; background: #e9edf2; padding: 14px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fa-ticket { background: #fff; color: #000; box-sizing: border-box; padding: 4mm 3mm; font-size: 12px; line-height: 1.5; font-family: "PingFang SC", "Microsoft YaHei", SimHei, monospace; box-shadow: 0 2px 8px rgba(0,0,0,.14); flex: 0 0 auto; }
.fa-ticket .ft-title { text-align: center; font-size: 1.65em; font-weight: 700; letter-spacing: 2px; margin-bottom: 3mm; }
.fa-ticket .ft-sub { text-align: center; font-size: 1.05em; margin-bottom: 2mm; }
.fa-ticket .ft-meta { font-size: 1em; white-space: pre-wrap; word-break: break-all; }
.fa-ticket .ft-meta.ft-strong { font-weight: 700; font-size: 1.1em; margin: 1mm 0; }
.fa-ticket .ft-dash { border-top: 1px dashed #333; margin: 2mm 0; }
.fa-ticket .ft-gap { height: 1mm; }
.fa-ticket .ft-thead, .fa-ticket .ft-row { display: grid; grid-template-columns: 1fr 34px 64px; align-items: center; gap: 2px; min-height: 6mm; }
.fa-ticket .ft-thead { font-weight: 700; }
.fa-ticket .ft-row { font-size: 1.05em; }
.fa-ticket .ft-c1 { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa-ticket .ft-c2 { text-align: center; }
.fa-ticket .ft-c3 { text-align: right; }
.fa-ticket .ft-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.15em; font-weight: 700; }
.fa-ticket .ft-total b { font-size: 1.25em; }
.fa-ticket .ft-total em { font-style: normal; font-size: .9em; font-weight: 400; }
.fa-ticket .ft-sign { margin-top: 5mm; font-size: 1em; }
.fa-ticket .ft-footer { margin-top: 3mm; font-size: .9em; text-align: center; }
@media print {
  body.fresh-print-mode .fa-print-setup { display: block !important; min-height: 0 !important; }
  body.fresh-print-mode .fa-print-left,
  body.fresh-print-mode .fa-print-preview-head { display: none !important; }
  body.fresh-print-mode .fa-print-right { width: 100% !important; }
  body.fresh-print-mode .fa-print-preview { display: block !important; background: #fff !important; padding: 0 !important; max-height: none !important; min-height: 0 !important; overflow: visible !important; }
  body.fresh-print-mode .fa-ticket { margin: 0 !important; box-shadow: none !important; break-after: page; page-break-after: always; }
  body.fresh-print-mode .fa-ticket:last-child { break-after: auto; page-break-after: auto; }
}
.fiq-log-row { display: flex; justify-content: space-between; font-size: 12px; color: #606266; padding: 5px 2px; border-bottom: 1px dashed #ebeef5; }

/* v2026110807 到货验收独立页面 */
.fpvr-bar { background: #fff; border: 1px solid #ebeef5; border-radius: 6px; padding: 10px 12px 0; margin-bottom: 12px; }
.fpvr-row-dev { background: #fff8e6 !important; }

/* v2026111015 采购汇总页：客户下单统计（v2026111018 改为靠左贴紧按钮，缩小间距） */
.fpv-cust-stats { display:inline-flex; align-items:center; flex-wrap:nowrap; gap:0; margin:0 0 0 6px; font-size:13px; color:#606266; white-space:nowrap; }
.fpv-stat-item { display:inline-flex; align-items:center; gap:3px; padding:2px 6px; }
.fpv-stat-item b { font-size:15px; font-weight:700; line-height:1; }
.fpv-stat-sep { color:#e4e7ed; font-size:13px; padding:0 2px; font-weight:300; }
.fpv-click { cursor:pointer; border-radius:6px; transition:all .15s; }
.fpv-click:hover { color:#409eff; background:#ecf5ff; }
.fpv-summary-bottom { display:flex; align-items:center; gap:6px 8px; margin:10px 0 4px; font-size:13px; color:#606266; white-space:nowrap; }
.fpv-summary-bottom b { font-size:15px; font-weight:700; }

/* v2026111015 采购任务：列表 + 详情执行台 */
.fpt-head { display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; margin-bottom:12px; }
.fpt-head .fpt-title { font-size:17px; font-weight:700; }
.fpt-kpis { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px; margin:12px 0; }
.fpt-kpi { background:#fff; border:1px solid #ebeef5; border-radius:8px; padding:12px 16px; }
.fpt-kpi .k { font-size:12px; color:#909399; }
.fpt-kpi .v { font-size:22px; font-weight:700; line-height:1.3; margin-top:2px; }
.fpt-progress { display:flex; align-items:center; gap:12px; background:#fff; border:1px solid #ebeef5; border-radius:8px; padding:12px 16px; margin-bottom:12px; }
.fpt-bar { flex:1; height:10px; background:#f5f7fa; border-radius:6px; overflow:hidden; }
.fpt-bar > i { display:block; height:100%; background:#67c23a; transition:width .25s; }
.fpt-groups { background:#fff; border:1px solid #ebeef5; border-radius:8px; padding:10px 16px; margin-bottom:12px; font-size:13px; }
.fpt-groups .fpt-g { display:inline-flex; align-items:center; gap:6px; margin-right:18px; color:#606266; }
.fpt-groups .fpt-g b { color:#303133; }
@media (max-width: 1100px) {
  .fpt-kpis { grid-template-columns:repeat(2, minmax(0,1fr)); }
}

/* v2026111016 采购汇总「自定义时间段」筛选条（按订单下单时间） */
/* v2026111017 收紧：按内容收缩、窄控件、小间距，不再撑满整行。
   页面根 #ext-pages > div 是纵向 flex 容器，子项默认 stretch 会拉满宽度，
   故必须 align-self:flex-start + width:fit-content（inline-flex 会被块化为 flex，不可依赖）。 */
.fpv-range-bar { display:flex; align-self:flex-start; width:fit-content; max-width:100%; align-items:center; flex-wrap:nowrap; gap:6px; margin:0 0 8px; padding:6px 9px; background:#fff; border:1px solid #ebeef5; border-radius:6px; }
.fpv-range-bar .fpv-field { width:104px; flex:none; }
.fpv-range-bar .fpv-preset { width:126px; flex:none; }
.fpv-range-bar .fpv-dates { width:224px; flex:none; }
.fpv-range-bar .fpv-time { width:92px; flex:none; }
.fpv-range-time-label { font-size:12px; color:#303133; margin-left:2px; white-space:nowrap; }
.fpv-range-time-label em { color:#f56c6c; font-style:normal; margin-right:2px; }
.fpv-range-tilde { color:#909399; }
.fpv-range-tip { font-size:12px; color:#909399; white-space:nowrap; margin-left:2px; }
.fpv-summary-bottom .fpv-sub { font-size:12px; color:#909399; }

/* ===== v2026111407：商品语音录入条 ===== */
.voice-form-bar{display:flex;align-items:center;gap:12px;padding:10px 14px;margin-bottom:14px;background:linear-gradient(90deg,#f0f7ff,#fafcff);border:1px solid #cfe0f5;border-radius:10px}
.voice-form-tip{font-size:12px;color:#6b7a8d;line-height:1.5}
