/* ========== 发货管理模块 公共样式 ========== */

/* Tab 栏：扁平横排 + 底部蓝色下划线激活态（与 index.html status-tab 保持一致） */
.prod-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  background: #FFFFFF;
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid #F3F4F6;
  margin-bottom: 14px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.prod-tabs::-webkit-scrollbar { display: none; }
.prod-tab {
  position: relative;
  padding: 14px 18px 14px 0;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--edy-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
}
.prod-tab:hover { color: var(--edy-text-primary); }
.prod-tab.active { color: var(--edy-blue); font-weight: 500; }
.prod-tab.active::after {
  content: '';
  position: absolute;
  left: 0; right: 18px; bottom: -1px;
  height: 2px;
  background: var(--edy-blue);
  border-radius: 2px;
}
.prod-tab .count {
  margin-left: 4px;
  color: var(--edy-text-tertiary);
  font-size:12px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.prod-tab.active .count { color: var(--edy-blue); }

/* 多条件筛选区 */
.adv-filter {
  background: #FFFFFF;
  padding: 16px 20px;
  border-bottom: 1px solid var(--edy-border-light);
}
/* 所有筛选项共享同一个大栅格，自动流排无空位 */
.adv-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 20px;
  grid-auto-flow: row dense;
}
.adv-filter .af-row { display: contents; }
.adv-filter .af-actions { grid-column: 1 / -1; }
@media (max-width: 1400px) {
  .adv-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .adv-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .adv-filter { grid-template-columns: 1fr; }
  .adv-filter .af-item.af-span-2 { grid-column: span 1; }
}
.adv-filter .af-item { display: flex; align-items: center; gap: 8px; }
.adv-filter .af-item label { font-size:12px; color: var(--edy-text-secondary); flex-shrink: 0; white-space: nowrap; min-width: 64px; text-align: right; }
.adv-filter input,
.adv-filter select {
  flex: 1; min-width: 0;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--edy-border);
  border-radius: 4px;
  font-size:12px;
  font-family: inherit;
  color: var(--edy-text-primary);
  background: #FFFFFF;
  outline: none;
}
.adv-filter input:focus,
.adv-filter select:focus { border-color: var(--edy-blue); }
.adv-filter .af-phone-group { display: flex; flex: 1; min-width: 0; }
.adv-filter .af-phone-group .af-phone-type {
  flex: 0 0 84px; width: 84px;
  border-top-right-radius: 0; border-bottom-right-radius: 0;
  border-right: 0;
  background: #FAFAFA;
}
.adv-filter .af-phone-group .af-phone-input {
  flex: 1; min-width: 0;
  border-top-left-radius: 0; border-bottom-left-radius: 0;
}
.adv-filter .af-phone-group .af-phone-type:focus + .af-phone-input,
.adv-filter .af-phone-group .af-phone-input:focus { border-color: var(--edy-blue); }

.adv-filter .af-item.af-span-2 { grid-column: span 2; }
.af-daterange { display: flex; flex: 1; min-width: 0; }
/* 全局基础样式（适配 .adv-filter 外的场景，如3个月前订单标签） */
.af-dr-preset, .af-dr-input {
  height: 32px; padding: 0 10px;
  border: 1px solid var(--edy-border); border-radius: 4px;
  font-size:12px; font-family: inherit;
  color: var(--edy-text-primary); background: #FFFFFF;
  outline: none; box-sizing: border-box;
}
.af-dr-preset:focus, .af-dr-input:focus { border-color: var(--edy-blue); }
.af-daterange .af-dr-preset {
  flex: 0 0 110px; width: 110px;
  border-top-right-radius: 0; border-bottom-right-radius: 0;
  border-right: 0;
  background: #FAFAFA;
}
.adv-filter .af-autocomplete { position: relative; flex: 1; min-width: 0; display: flex; }
.adv-filter .af-autocomplete input { flex: 1; min-width: 0; padding-right: 28px; }
.adv-filter .af-ac-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; line-height: 14px; text-align: center;
  border: 0; border-radius: 50%;
  background: #D1D5DB; color: #fff;
  font-size:12px; cursor: pointer; padding: 0;
}
.adv-filter .af-ac-clear:hover { background: #9CA3AF; }
.adv-filter .af-ac-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
  max-height: 240px; overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid var(--edy-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  padding: 4px 0;
}
.adv-filter .af-ac-item {
  padding: 8px 12px; font-size:12px; color: var(--edy-text-primary);
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adv-filter .af-ac-item:hover { background: #F2F4F7; }
.adv-filter .af-ac-empty { padding: 10px 12px; font-size:12px; color: var(--edy-text-secondary); text-align: center; }
.adv-filter .af-ac-footer { padding: 8px 12px; font-size: 12px; color: var(--edy-text-secondary); text-align: center; border-top: 1px solid #F2F4F7; }
.adv-filter .af-ac-hl { background: transparent; color: var(--edy-blue); font-weight: 600; }

.af-daterange { position: relative; }
.af-daterange .af-dr-input {
  flex: 1; min-width: 0;
  border-top-left-radius: 0; border-bottom-left-radius: 0;
  background: #FFFFFF url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>") no-repeat right 10px center;
  padding-right: 30px;
  cursor: pointer;
}
.af-dr-picker {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  background: #FFFFFF; border: 1px solid var(--edy-border); border-radius: 8px;
  box-shadow: 0 10px 32px rgba(0,0,0,.12);
  padding: 14px; width: 600px; max-width: calc(100vw - 48px);
  font-size:12px;
}
@media (max-width: 720px) {
  .af-dr-picker { width: 320px; }
  .af-dr-cals { flex-direction: column; }
}
.af-dr-cals { display: flex; gap: 14px; }
.af-dr-cal { flex: 1; min-width: 260px; }
.af-dr-cal-head {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 2px 10px; border-bottom: 1px solid #F2F4F7;
}
.af-dr-nav {
  width: 26px; height: 26px; line-height: 22px; text-align: center;
  background: transparent; border: 1px solid transparent; border-radius: 4px;
  color: #6B7280; cursor: pointer; font-size: 14px; padding: 0;
}
.af-dr-nav:hover { background: #F3F4F6; color: var(--edy-text-primary); }
.af-dr-title { flex: 1; text-align: center; display: inline-flex; align-items: center; gap: 4px; justify-content: center; color: var(--edy-text-primary); }
.af-dr-title select {
  height: 26px; padding: 0 18px 0 6px; border: 1px solid transparent;
  background: transparent; font-size:12px; cursor: pointer; border-radius: 4px;
}
.af-dr-title select.af-dr-year { min-width: 72px; }
.af-dr-title select.af-dr-month { min-width: 52px; }
.af-dr-title select:hover { background: #F3F4F6; }
.af-dr-spacer { width: 56px; flex-shrink: 0; }
.af-dr-grid { width: 100%; border-collapse: collapse; margin-top: 6px; table-layout: fixed; }
.af-dr-grid th {
  height: 28px; font-weight: normal; color: var(--edy-text-secondary); font-size: 12px;
}
.af-dr-grid td { padding: 2px 0; text-align: center; }
.af-dr-grid td .d {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 28px; font-size:12px; cursor: pointer;
  border-radius: 4px; color: var(--edy-text-primary);
}
.af-dr-grid td .d:hover { background: #EFF6FF; }
.af-dr-grid td.out .d { color: #C8CDD3; }
.af-dr-grid td.in-range { background: #EFF6FF; }
.af-dr-grid td.in-range:first-child { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.af-dr-grid td.in-range:last-child { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.af-dr-grid td.sel .d { background: var(--edy-blue); color: #FFFFFF; font-weight: 600; }
.af-dr-grid td.disabled .d { color: #D1D5DB; cursor: not-allowed; background: transparent !important; }

.af-dr-foot {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  padding-top: 10px; border-top: 1px solid #F2F4F7;
}
.af-dr-time-in {
  width: 108px; height: 30px; padding: 0 10px;
  border: 1px solid var(--edy-border); border-radius: 4px; font-size:12px;
  background: #FFFFFF;
}
.af-dr-foot-sep { color: var(--edy-text-secondary); }
/* 仅选年月日的范围选择器：隐藏时分秒与「归零」，只保留确认 */
.af-dr-picker.is-date-only .af-dr-time-in,
.af-dr-picker.is-date-only .af-dr-foot-sep,
.af-dr-picker.is-date-only .af-dr-zero { display: none; }
.af-dr-zero {
  height: 30px; padding: 0 10px;
  background: transparent; border: 0; color: var(--edy-blue); cursor: pointer; font-size:12px;
}
.af-dr-zero:hover { text-decoration: underline; }

/* 标签栏 */
.tag-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--edy-border-light);
  margin-top: 10px;
}
.tag-bar .tag-label {
  color: var(--edy-text-secondary); font-size:12px; flex-shrink: 0;
}
.tag-bar .tag-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.tag-bar .tag-tab {
  height: 30px; padding: 0 12px;
  background: transparent; border: 0; border-radius: 4px;
  color: var(--edy-text-primary); font-size:12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.tag-bar .tag-tab:hover { background: #F3F4F6; }
.tag-bar .tag-tab.active { color: var(--edy-blue); background: transparent; font-weight: 500; }
.tag-bar .tag-tab.has-caret::after {
  content: ''; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; opacity: .6;
  transition: transform .15s;
}
.tag-bar .tag-tab-wrap.open .tag-tab.has-caret::after { transform: rotate(180deg); }

.tag-bar .tag-tab-wrap { position: relative; display: inline-block; }
.tag-bar .tag-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
  background: #FFFFFF; border: 1px solid var(--edy-border); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  padding: 6px 0 0; 
  min-width: 140px;
  display: none;
  font-size:12px;
}
.tag-bar .tag-tab-wrap.open .tag-menu { display: block; }
.tag-bar .tag-menu-item {
  display: flex; align-items: center; gap: 8px;
  padding:6px 14px;  cursor: pointer; color: var(--edy-text-primary);
}
.tag-bar .tag-menu-item:hover { background: #F3F4F6; }
.tag-bar .tag-menu-item.selected { color: var(--edy-blue); }
.tag-bar .tag-menu-item .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tag-bar .tag-menu-item .tag-flag { display: inline-flex; align-items: center; line-height: 0; }
.tag-bar .tag-menu-item .tag-flag svg { width: 14px; height: 14px; }
.tag-bar .tag-menu-divider { height: 1px; background: #F2F4F7;  }

.tag-bar .tag-menu label {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; font-size:12px; color: var(--edy-text-primary);
  cursor: pointer;
}
.tag-bar .tag-menu label:hover { background: #F3F4F6; }
.tag-bar .tag-menu label input[type="checkbox"] { accent-color: var(--edy-blue); }

.tag-bar .tag-menu.grid-3 {
  display: none; padding: 12px;
  min-width: 640px;
}
.tag-bar .tag-tab-wrap.open .tag-menu.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; }
.tag-bar .tag-menu.grid-3 label { padding: 6px 4px; }

.tag-bar .tag-menu.tag-menu-extra { min-width: 160px; padding: 6px 0; }

/* 批量操作按钮栏 */
.batch-bar { display: flex; align-items: center; gap: 10px; padding: 12px 0; flex-wrap: wrap; }
.batch-bar .batch-sep { width: 1px; height: 16px; background: var(--edy-border); }
.batch-bar .batch-btn {
  position: relative;
  height: 32px; min-width: 60px; padding: 4px 12px; line-height: 22px;
  background: #FFFFFF; border: 1px solid var(--edy-border); border-radius: 4px;
  color: var(--edy-text-primary); font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: inherit;
  box-sizing: border-box;
}
.batch-bar .batch-btn:hover { border-color: var(--edy-blue); color: var(--edy-blue); }
.batch-bar .batch-btn.is-primary-outline { border-color: var(--edy-blue); color: var(--edy-blue); }
.batch-bar .batch-btn.has-caret::after {
  content: ''; width: 0; height: 0; margin-left: 4px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; opacity: .6;
}
.batch-bar .batch-btn.has-badge { overflow: visible; }
.batch-bar .batch-btn .badge-off {
  position: absolute; top: -8px; left: -6px;
  height: 16px; padding: 0 5px; line-height: 16px;
  background: #F59E0B; color: #FFFFFF; border-radius:4px 3px 3px 0;
  font-size:12px; font-weight: 500;
}
.batch-bar .batch-msg { margin-left: auto; font-size:12px; color: var(--edy-text-secondary); }
.batch-bar .batch-msg b { color: var(--edy-text-primary); font-weight: 600; padding: 0 2px; }

/* 更多 下拉 */
.batch-more-wrap { position: relative; display: inline-block; }
.batch-more-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 180px; padding: 6px 0;
  background: #FFFFFF; border: 1px solid var(--edy-border-light); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 50;
}
.batch-more-menu.open { display: block; }
.batch-more-menu .bm-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; font-size:12px; color: var(--edy-text-primary);
  cursor: pointer;
}
.batch-more-menu .bm-item:hover { background: #F5F7FB; color: var(--edy-blue); }
.batch-more-menu .bm-icon { font-size: 14px; width: 16px; text-align: center; }
.batch-more-menu .bm-divider { height: 1px; background: var(--edy-border-light); margin: 4px 0; }

/* Excel/识别码 上传通用 */
.exs-tip {
  background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF;
  padding: 10px 14px; border-radius: 6px; font-size:12px; line-height: 1.7;
  margin-bottom: 16px;
}
.exs-tip.warn { background: #FFFBEB; border-color: #FDE68A; color: #854D0E; }
.exs-tip b { color: var(--edy-blue); font-weight: 600; padding: 0 2px; }
.exs-tip.warn b { color: #B45309; }
.exs-step {
  display: flex; gap: 12px;
  padding: 14px 0; border-top: 1px dashed var(--edy-border-light);
}
.exs-step:first-of-type { border-top: 0; padding-top: 0; }
.exs-step-no {
  flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--edy-blue); color: #FFFFFF;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.exs-step-body { flex: 1; min-width: 0; }
.exs-step-title { font-size: 14px; font-weight: 600; color: var(--edy-text-primary); margin-bottom: 4px; }
.exs-step-desc { font-size: 12px; color: var(--edy-text-secondary); margin-bottom: 10px; line-height: 1.7; }
.exs-uploader {
  border: 1px dashed var(--edy-border); border-radius: 8px;
  padding: 22px 16px; text-align: center; cursor: pointer;
  background: #F9FAFB; transition: border-color 0.2s, background 0.2s;
}
.exs-uploader:hover { border-color: var(--edy-blue); background: #EFF6FF; }
.exs-uploader-icon { font-size: 28px; margin-bottom: 6px; }
.exs-uploader-main { font-size:12px; color: var(--edy-text-primary); font-weight: 500; }
.exs-uploader-sub { font-size: 12px; color: var(--edy-text-tertiary); margin-top: 4px; }
.exs-file {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 6px 10px;
  background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 4px;
  font-size:12px; color: var(--edy-blue);
}
.exs-file-icon { font-size: 14px; }
.exs-file-name { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exs-file-x { cursor: pointer; color: #9CA3AF; padding: 0 2px; }
.exs-file-x:hover { color: var(--edy-error); }
.exs-result { display: flex; gap: 12px; margin-top: 10px; }
.exs-stat {
  flex: 1; padding: 10px 12px;
  background: #F9FAFB; border: 1px solid var(--edy-border-light);
  border-radius: 6px; font-size: 12px; color: var(--edy-text-secondary);
}
.exs-stat b { display: block; font-size: 18px; color: var(--edy-text-primary); margin-top: 2px; font-weight: 600; }
.exs-stat.ok { background: #ECFDF5; border-color: #A7F3D0; color: #047857; }
.exs-stat.ok b { color: #047857; }
.exs-stat.warn { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.exs-stat.warn b { color: #B91C1C; }

/* 合并发货 */
.merge-groups { max-height: 320px; overflow-y: auto; margin-bottom: 14px; }
.mg-group {
  border: 1px solid var(--edy-border-light); border-radius: 6px;
  margin-bottom: 10px; background: #FFFFFF;
}
.mg-group.ok { border-color: #BBF7D0; background: #F0FDF4; }
.mg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size:12px; }
.mg-idx { color: var(--edy-text-secondary); font-size: 12px; }
.mg-name { font-weight: 600; color: var(--edy-text-primary); }
.mg-phone { color: var(--edy-text-secondary); }
.mg-count { margin-left: auto; color: var(--edy-text-secondary); font-size: 12px; }
.mg-tag {
  display: inline-block; padding: 1px 8px;
  border-radius:4px; font-size:12px; font-weight: 500;
}
.mg-tag.ok { background: #DCFCE7; color: #166534; }
.mg-tag.err { background: #FEE2E2; color: #B91C1C; }
.mg-tag.mute { background: #F3F4F6; color: #6B7280; }
.mg-addr { font-size: 12px; color: var(--edy-text-secondary); margin: 6px 0 8px; line-height: 1.6; }
.mg-orders { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-order {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; background: #FFFFFF; border: 1px solid var(--edy-border-light);
  border-radius:4px; font-size: 12px; color: var(--edy-text-primary); font-family: var(--edy-font-mono, monospace);
}
.mg-order em { font-style: normal; color: var(--edy-text-tertiary); font-size:12px; }
.merge-form { padding: 14px; background: #F9FAFB; border-radius: 8px; }
.merge-form-row { display: flex; align-items: center; margin-bottom: 12px; }
.merge-form-row:last-child { margin-bottom: 0; }
.merge-label { width: 80px; flex-shrink: 0; font-size:12px; color: var(--edy-text-secondary); }
.merge-label .required { color: var(--edy-error); margin-right: 3px; }
.merge-ctrl {
  flex: 1; height: 34px; padding: 0 12px;
  border: 1px solid var(--edy-border); border-radius: 6px;
  background: #FFFFFF; font-size:12px; font-family: inherit;
  color: var(--edy-text-primary); outline: none; box-sizing: border-box;
}
.merge-ctrl:focus { border-color: var(--edy-blue); box-shadow: 0 0 0 2px rgba(79,110,247,0.15); }
.merge-foot-msg { margin-right: auto; font-size: 12px; color: var(--edy-text-secondary); }
.merge-foot-msg b { color: var(--edy-text-primary); font-weight: 600; padding: 0 2px; }

/* 商家寄件 */
.sn-section { margin-bottom:16px; }
.sn-section:last-child { margin-bottom: 0; }
.sn-section-title {
  font-size:12px; font-weight: 600; color: var(--edy-text-primary);
  margin-bottom: 10px; padding-left: 11px; position: relative;
}
.sn-section-title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; background: var(--edy-blue); border-radius: 2px;
}
.sn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.sn-row { display: flex; flex-direction: column; gap: 6px; }
.sn-row-full { grid-column: 1 / -1; }
.sn-row > label { font-size: 12px; color: var(--edy-text-secondary); }
.sn-row > label .required { color: var(--edy-error); margin-right: 3px; }
.sn-ctrl {
  height: 34px; padding: 0 12px;
  border: 1px solid var(--edy-border); border-radius: 6px;
  background: #FFFFFF; font-size:12px; font-family: inherit;
  color: var(--edy-text-primary); outline: none; box-sizing: border-box; width: 100%;
}
.sn-ctrl:focus { border-color: var(--edy-blue); box-shadow: 0 0 0 2px rgba(79,110,247,0.15); }
.sn-row > label .required { color: var(--edy-error); }
.modal-foot .required { display: none; }
.merge-label .required, .sn-row .required { display: inline; }

/* 批量备注 弹窗 */
#batchRemarkModal .br-box {
  position: relative;
  background: #FFFFFF; border-radius: 10px;
  width: 600px; max-width: calc(100vw - 32px);
  box-shadow: 0 20px 48px rgba(0,0,0,.18);
  padding: 24px 28px;
}
#batchRemarkModal .br-close {
  position: absolute; top: -14px; right: -14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #FFFFFF; border: 0;
  font-size: 14px; cursor: pointer;
}
#batchRemarkModal .br-close:hover { background: rgba(0,0,0,.6); }
#batchRemarkModal .br-title { font-size: 16px; font-weight: 600; color: var(--edy-text-primary); margin-bottom: 10px; }
#batchRemarkModal .br-sel { font-size:12px; color: var(--edy-text-primary); margin-bottom: 12px; }
#batchRemarkModal .br-sel b { color: var(--edy-blue); font-weight: 600; }
#batchRemarkModal .br-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
#batchRemarkModal .br-label { font-size:12px; color: var(--edy-text-secondary); flex-shrink: 0; }
#batchRemarkModal .br-marks { display: flex; gap: 8px; flex-wrap: wrap; }
#batchRemarkModal .br-mark {
  display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 10px;
  background: #FFFFFF; border: 1px solid var(--edy-border); border-radius: 4px;
  color: var(--edy-text-primary); font-size:12px; cursor: pointer; font-family: inherit;
}
#batchRemarkModal .br-mark:hover { border-color: var(--edy-blue); }
#batchRemarkModal .br-mark.active { border-color: var(--edy-blue); background: #EFF6FF; color: var(--edy-blue); }
#batchRemarkModal .br-mark .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
#batchRemarkModal .br-mark .pen { color: #9CA3AF; font-size: 12px; }
#batchRemarkModal .br-textarea {
  position: relative;
  border: 1px solid var(--edy-border); border-radius: 6px;
  background: #FFFFFF; padding: 8px 10px;
}
#batchRemarkModal .br-textarea:focus-within { border-color: var(--edy-blue); }
#batchRemarkModal .br-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
#batchRemarkModal .br-chips:empty { display: none; }
#batchRemarkModal .br-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border: 1px solid #BFDBFE; background: #EFF6FF;
  border-radius: 4px; font-size: 12px; color: var(--edy-blue);
}
#batchRemarkModal .br-chip .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
#batchRemarkModal .br-chip .x {
  cursor: pointer; color: #9CA3AF; font-size: 14px; line-height: 1;
}
#batchRemarkModal .br-chip .x:hover { color: var(--edy-text-primary); }
#batchRemarkModal .br-textarea textarea {
  width: 100%; min-height: 90px;
  padding: 2px 2px 22px; box-sizing: border-box;
  border: 0; background: transparent;
  font-size:12px; font-family: inherit; color: var(--edy-text-primary);
  resize: vertical; outline: none; line-height: 1.6;
}
#batchRemarkModal .br-counter {
  position: absolute; right: 10px; bottom: 8px;
  font-size: 12px; color: var(--edy-text-secondary);
}
#batchRemarkModal .br-foot {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px;
}
.adv-filter .af-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 4px;
}
.adv-filter .af-expand {
  background: none; border: none;
  color: var(--edy-blue); font-size:12px;
  cursor: pointer; font-family: inherit;
}

/* 列表容器 */
.list-card {
  background: #FFFFFF;
  border-radius: 0;
  border: none;
  padding: 0px;
  overflow: hidden;
}
.list-card.standalone { border-radius: 0; }

.list-card .data-table,
.data-table { width: 100%; border-collapse: collapse; font-size:12px; }
.list-card .data-table th,
.data-table th {
  background: #F9FAFB;
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  color: var(--edy-text-primary);
  font-size:12px;
  border-bottom: 1px solid #F3F4F6;
  white-space: nowrap;
  user-select: none;
}
.list-card .data-table td,
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--edy-border-light);
  color: var(--edy-text-primary);
  vertical-align: middle;
  font-size:12px;
}
.list-card .data-table tbody tr:hover,
.data-table tbody tr:hover { background: #EFF6FF; }
.list-card .data-table tbody tr:nth-child(even),
.data-table tbody tr:nth-child(even) { background: transparent; }
.list-card .data-table tbody tr:nth-child(even):hover,
.data-table tbody tr:nth-child(even):hover { background: #EFF6FF; }

/* 订单分组（每订单一个块，表头行 + 商品行） */
.order-group {
  background: #FFFFFF;
  border: 1px solid var(--edy-border);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}
.order-group .og-head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 16px;
  background: #F9FAFB;
  border-bottom: 1px solid var(--edy-border);
  font-size:12px;
  color: var(--edy-text-secondary);
}
/* 退款/售后 Tab：仅带「投诉预警」的订单头部使用浅红底，其余沿用默认灰底 */
#orderList.as-refunding .order-group.as-group .og-head:has(.as-badge-complaint) { background: #fff2f0 !important; }
.order-group .og-head .og-check { margin-right: 4px; }
.order-group .og-head strong { color: var(--edy-text-primary); font-weight: 600; }
.order-group .og-head .og-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.order-group .og-head .og-deal-time { color: var(--edy-text-secondary); white-space: nowrap; }
.order-group .og-head .og-countdown { color: var(--edy-text-secondary); white-space: nowrap; }
.order-group .og-head .og-countdown .cd-num { color: var(--edy-error); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
/* 待付款：支付超时倒计时（同揽收倒计时视觉：红色数字 + 灰色说明） */
.order-group .og-head .og-pay-cd { color: var(--edy-text-secondary); white-space: nowrap; }
.order-group .og-head .og-pay-cd .cd-num { color: var(--edy-error); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
/* 待付款：催支付按钮（描边小按钮） */
.order-group .og-head .og-urge-btn { height: 24px; padding: 0 12px; border: 1px solid var(--edy-blue); border-radius: 4px; background: #fff; color: var(--edy-blue); font-size: 12px; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s, color .15s; }
.order-group .og-head .og-urge-btn:hover { background: var(--edy-blue); color: #fff; }
/* 收货信息占位（待付款暂不支持查看） */
.og-addr .recv-none { color: var(--edy-text-primary); font-size: 12px; }
.order-group .og-head .og-remark { font-size:12px; color: #F97316; background: #FFF3E8; padding: 0 2px; border-radius: 4px; white-space: nowrap; }
.order-group .og-head .og-copy { font-size:12px; color: var(--edy-blue); cursor: pointer; margin-left: 4px; }
.order-group .og-head .og-copy:hover { text-decoration: underline; }

.order-group .og-body {
  display: grid;
  grid-template-columns: 2fr 100px 50px 80px 80px 160px 86px 204px;
  gap: 16px;
  padding: 14px 16px;
  align-items: center;
}
/* 退款/售后 列表列 */
.order-group .og-body.og-body--as,
.order-list-header.as-list-header {
  grid-template-columns: minmax(220px,2fr) 100px 70px 70px 90px 120px 90px 208px;
}
/* 退款/售后头部：浅灰底（对齐 edy-marchant order/list as-head） */
.order-group.as-group .og-head { background: #f9fafb; }
/* 发货状态 药丸（ship-badge）*/
.order-group .og-body--as .ship-badge { display:inline-block; padding:2px 8px; border-radius:4px; font-size:12px; }
.order-group .og-body--as .ship-badge.shipped { background:rgba(34,197,94,0.12); color:var(--edy-success); }
.order-group .og-body--as .ship-badge.pending-ship { background:rgba(245,158,11,0.12); color:#F59E0B; }
/* 售后状态 药丸（as-status-badge）*/
.order-group .og-body--as .as-status-badge { display:inline-block; padding:3px 10px; border-radius:4px; font-size:12px; font-weight:500; }
.order-group .og-body--as .as-status-badge.pending    { background:rgba(245,158,11,0.12); color:#F59E0B; }
.order-group .og-body--as .as-status-badge.processing { background:rgba(79,110,247,0.12); color:var(--edy-blue); }
.order-group .og-body--as .as-status-badge.success    { background:rgba(34,197,94,0.12); color:var(--edy-success); }
.order-group .og-body--as .as-status-badge.rejected   { background:rgba(239,68,68,0.12); color:var(--edy-error); }
.order-group .og-body--as .as-status-badge.closed     { background:rgba(142,142,147,0.12); color:#8E8E93; }
/* 售后协商 / 售后原因：次级文字 */
.order-group .og-body--as .negotiate { font-size:12px; color:var(--edy-text-secondary); }
.order-group.as-group .og-head { flex-wrap: wrap; }
.order-group.as-group .og-head .as-badge { font-size: 12px; padding: 1px 6px; border-radius: 3px; white-space: nowrap; line-height: 1.6; }
.order-group.as-group .og-head .as-badge-complaint { color: #fff; background: #EF4444; }
.order-group.as-group .og-head .as-badge-custom { color: #C2410C; background: #FFEDD5; }
.order-group.as-group .og-head .as-countdown { color: var(--edy-text-secondary); white-space: nowrap; }
.order-group.as-group .og-head .as-countdown .cd-num { color: var(--edy-error); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.order-group.as-group .og-head .as-contact { color: var(--edy-blue); cursor: pointer; white-space: nowrap; }
.order-group.as-group .og-head .as-contact:hover { text-decoration: underline; }
.order-group .og-body--as .op-snapshot { display: inline-block; margin-top: 4px; color: var(--edy-blue); font-size: 12px; cursor: pointer; }
.order-group .og-body--as .op-snapshot:hover { text-decoration: underline; }
.order-group .og-body--as .as-status { color: var(--edy-text-primary); }
.order-group .og-body--as .as-amount-cell { color: #1A1D26; font-weight: 400; }
.order-group .og-body--as .as-amount-cell .og-net { color: #1A1D26; font-weight: 400; }
.order-group .og-body--as .as-note { margin-top: 6px; font-size: 12px; color: #C2410C; background: #FFF7ED; padding: 2px 6px; border-radius: 3px; display: inline-block; }
.order-group .og-logistics {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px dashed var(--edy-border);
  font-size: 12px;
  color: var(--edy-text-secondary);
}
.order-group .og-logistics .ogl-label { color: var(--edy-text-tertiary); }
.order-group .og-logistics .ogl-carrier { color: var(--edy-text-primary); white-space: nowrap; }
.order-group .og-logistics .og-copy { color: var(--edy-blue); cursor: pointer; }
.order-group .og-logistics .og-copy:hover { text-decoration: underline; }
.order-group .og-logistics .ogl-track {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  cursor: default;
}
.order-group .og-logistics .ogl-dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; flex: none; margin-left: 4px; }
.order-group .og-logistics .ogl-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-group .og-logistics .ogl-time { margin-left: auto; color: var(--edy-text-tertiary); white-space: nowrap; }
.order-list-header {
  display: grid;
  grid-template-columns: 2fr 100px 50px 80px 80px 160px 86px 204px;
  gap: 16px;
  padding: 10px 16px;
  align-items: center;
  background: #F9FAFB;
  border: 1px solid var(--edy-border);
  border-radius: 4px;
  margin-bottom: 10px;
  font-size:12px;
  color: var(--edy-text-secondary);
  font-weight: 500;
}
.order-list-header .olh-prod { display: flex; align-items: center; gap: 10px; }
.order-list-header .olh-prod input[type="checkbox"] { margin: 0; }
/* "操作 / 备注" 列：表头文字右对齐，使其右边缘与每条订单 og-head 的小旗子图标对齐 */
.order-list-header > div:last-child { text-align: right; }

/* 收货信息 脱敏/展开 */
.og-addr .recv-mask,
.og-addr .recv-full,
.og-addr .recv-blocked { font-size:12px; line-height: 1.6; }
.og-addr .recv-sub { color: var(--edy-text-secondary); font-size: 12px; margin-top: 2px; }
.og-addr .recv-link { color: var(--edy-blue); cursor: pointer; font-size: 12px; margin-left: 4px; }
.og-addr .recv-link:hover { text-decoration: underline; }
.og-addr .recv-name strong { color: var(--edy-text-primary); }
.og-addr .recv-phone { color: var(--edy-text-primary); margin-top: 2px; }
.og-addr .recv-tag { display: inline-block; background: #EEF2FF; color: #4F46E5; font-size:12px; padding: 1px 5px; border-radius:4px; margin-left: 4px; }
.og-addr .recv-addr { color: var(--edy-text-secondary); margin-top: 2px; font-size: 12px; }
.og-addr .recv-blocked {
  display: inline-flex; align-items: center;
  background: #FFF; border: 1px solid var(--edy-border);
  border-radius: 4px; padding: 8px 12px;
  color: var(--edy-text-primary); font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* 买家列（昵称 + 发起聊天） */
.og-buyer { font-size:12px; color: var(--edy-text-primary); line-height: 1.5; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.og-buyer .og-buyer-name { color: var(--edy-text-primary); word-break: break-all; }
.og-buyer .chat { display: inline-flex; align-items: center; gap: 4px; color: var(--edy-blue); font-size: 12px; cursor: pointer; }
.og-buyer .chat:hover { text-decoration: underline; }
.og-buyer .chat:before { content: '💬'; }

/* 3 个月前订单表格 — 卡片式（与近 3 个月订单 .order-group 风格一致） */
.ol-header, .ol-row-body {
  display: grid;
  grid-template-columns: 2.2fr 120px 80px 120px 120px 120px 140px;
  gap: 16px;
  align-items: center;
}
.ol-header {
  background: #F9FAFB;
  border: 1px solid var(--edy-border);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 10px;
  font-size:12px;
  color: var(--edy-text-secondary);
  font-weight: 500;
}
.ol-group {
  background: #FFFFFF;
  border: 1px solid var(--edy-border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.ol-group:last-child { margin-bottom: 0; }
.ol-row-head {
  display: flex; align-items: center; gap: 24px;
  padding: 10px 16px; background: #F9FAFB;
  border-bottom: 1px solid var(--edy-border);
  font-size:12px; color: var(--edy-text-secondary);
}
.ol-row-head strong { color: var(--edy-text-primary); font-weight: 600; }
.ol-row-head .ol-copy { color: var(--edy-blue); font-size: 12px; cursor: pointer; margin-left: 4px; }
.ol-row-head .ol-copy:hover { text-decoration: underline; }
.ol-row-head .ol-time { margin-left: auto; color: var(--edy-text-secondary); }
.ol-row-head .ol-remark { color: #F59E0B; }
.ol-row-body { padding: 14px 16px; }
.ol-prod { display: flex; gap: 10px; min-width: 0; }
.ol-prod img { width: 52px; height: 52px; border-radius: 4px; object-fit: cover; border: 1px solid var(--edy-border-light); background: #F2F4F7; flex-shrink: 0; }
.ol-prod .op-info { min-width: 0; font-size: 12px; color: var(--edy-text-secondary); }
.ol-prod .op-title { font-size:12px; color: var(--edy-text-primary); font-weight: 500; line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ol-prod .op-id { color: var(--edy-text-tertiary); font-size: 12px; }
.ol-status { font-size:12px; color: var(--edy-text-primary); line-height: 1.7; }
.ol-status .sub { color: var(--edy-text-secondary); }
.ol-price { font-size:12px; color: var(--edy-text-primary); text-decoration: underline dotted; text-underline-offset: 3px; }
.ol-buyer { font-size:12px; color: var(--edy-text-primary); line-height: 1.5; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ol-buyer .chat { display: inline-flex; align-items: center; gap: 4px; color: var(--edy-blue); font-size: 12px; cursor: pointer; }
.ol-buyer .chat:hover { text-decoration: underline; }
.ol-buyer .chat:before { content: '💬'; }
.ol-acts { font-size:12px; }
.ol-acts a { color: var(--edy-blue); cursor: pointer; margin-right: 10px; }
.ol-acts .note { color: var(--edy-text-tertiary); font-size: 12px; margin-top: 6px; display: block; }
.order-group .og-body + .og-body { border-top: 1px dashed var(--edy-border-light); }
/* 多商品订单：收货信息 / 买家 / 操作备注 列合并（跨多行单元格） */
.order-group .og-body--merged { row-gap: 0; align-items: stretch; padding: 0 16px; }
.order-group .og-body--merged .og-mc { padding: 16px 0; display: flex; align-items: center; }
.order-group .og-body--merged .og-merged { align-self: center; padding: 16px 0 16px 16px; }
/* 商品行之间的虚线分隔（仅商品/状态等明细列，不跨过合并区） */
.order-group .og-rowsep { align-self: start; height: 0; border-top: 1px dashed var(--edy-border-light); pointer-events: none; }
/* 明细区 与 合并的「订单信息区」之间的整段竖向分隔线，消除割裂感 */
.order-group .og-body--merged .og-colsep { justify-self: start; align-self: stretch; width: 0; border-left: 1px dashed var(--edy-border-light); margin: 10px 0 10px -8px; pointer-events: none; }
.order-group .og-prod {
  display: flex; gap: 10px; min-width: 0;
}
.order-group .og-prod img {
  width: 52px; height: 52px; border-radius: 4px;
  object-fit: cover; background: #F2F4F7;
  border: 1px solid var(--edy-border-light);
  flex-shrink: 0;
}
.order-group .og-prod .op-info { min-width: 0; flex: 1 1 auto; position: relative; font-size: 12px; color: var(--edy-text-secondary); }
.order-group .og-prod .op-title {
  font-size:12px; color: var(--edy-blue); font-weight: 400;
  line-height: 1.4; margin-bottom: 3px;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  cursor: pointer;
}
.order-group .og-prod .op-title:hover { text-decoration: underline; color: var(--edy-blue-hover, #335FDC); }
/* 商品名超出省略时，悬浮显示完整名称（白底气泡） */
.order-group .og-prod .op-title-tip {
  display: none; position: absolute; left: 0; bottom: 100%; margin-bottom: 8px; z-index: 60;
  background: #fff; color: #1A1D26; font-size: 12px; line-height: 1.5; font-weight: 400;
  padding: 6px 10px; border: 1px solid #E5E7EB; border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  white-space: normal; width: max-content; max-width: 260px; pointer-events: none;
}
/* 指向箭头 */
.order-group .og-prod .op-title-tip::after {
  content: ''; position: absolute; left: 16px; top: 100%;
  width: 8px; height: 8px; background: #fff;
  border-right: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB;
  transform: translateY(-50%) rotate(45deg);
}
/* 仅当名称被省略（超出）时，悬浮才显示完整名称 */
.order-group .og-prod .op-info.title-truncated .op-title:hover + .op-title-tip { display: block; }
.order-group .og-prod .op-id { color: var(--edy-text-tertiary); font-size: 12px; margin-bottom: 2px; }
.order-group .og-prod .op-spec { color: var(--edy-text-tertiary); font-size: 12px; }
.order-group .og-cell { font-size:12px; color: var(--edy-text-primary); }
.order-group .og-cell .og-price { font-family: var(--edy-font-display); font-weight: 600; color: var(--edy-text-primary); }

/* 状态徽章 */
.order-status {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
}
/* 每个状态唯一配色，互不重复 */
.order-status.pending-pay { background: rgba(245,158,11,0.12); color: #F59E0B; }      /* 待付款 - 琥珀 */
.order-status.deposit-paid { background: rgba(217,119,6,0.12); color: #D97706; }       /* 已付定金 - 深橙 */
.order-status.pending-final { background: rgba(202,138,4,0.12); color: #CA8A04; }      /* 待付尾款 - 黄褐 */
.order-status.pending-ship { background: rgba(37,99,235,0.12); color: #2563EB; }       /* 待发货 - 蓝 */
/* 「已发货，待收货」shipped 与 pending-receive 同一标签，同色（靛蓝） */
.order-status.shipped { background: rgba(99,102,241,0.12); color: #6366F1; }           /* 已发货，待收货 - 靛蓝 */
.order-status.pending-receive { background: rgba(99,102,241,0.12); color: #6366F1; }
.order-status.received { background: rgba(34,197,94,0.12); color: var(--edy-success); }/* 已收货 - 绿 */
.order-status.done { background: rgba(34,197,94,0.12); color: var(--edy-success); }
.order-status.out-of-stock { background: rgba(219,39,119,0.12); color: #DB2777; }      /* 已申请缺货 - 品红 */
.order-status.cancelled { background: rgba(107,114,128,0.12); color: #6B7280; }        /* 已取消 - 灰 */
.order-status.refunding { background: rgba(220,38,38,0.12); color: #DC2626; }          /* 退款中 - 红 */
.order-status.deposit-refunded { background: rgba(225,29,72,0.12); color: #E11D48; }   /* 已退定金 - 玫红 */
/* 换货状态 - 紫色 */
.order-status.exchanging { background: rgba(147,51,234,0.12); color: #9333EA; }        /* 换货 - 紫 */
.order-status.refunded { background: rgba(13,148,136,0.12); color: #0D9488; }          /* 退款成功 - 青 */

/* 收货信息 */
.og-addr {
  font-size: 12px; color: var(--edy-text-secondary); line-height: 1.5;
}
.og-addr strong { color: var(--edy-text-primary); font-weight: 500; }
.og-addr .a-phone { color: var(--edy-blue); cursor: pointer; font-size:12px; }
.og-addr .a-phone:hover { text-decoration: underline; }

/* 行操作 —— 蓝色文字链 上下堆叠（订单详情 / 立即发货 等） */
.og-acts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 0px; justify-content: flex-end; align-items: center; text-align: right; white-space: nowrap; }
.og-acts .og-note-tag { flex: 0 0 100%; }

/* 备注/标记内容：原悬浮气泡内容，改为「操作/备注」列灰底展示 */
.og-acts .og-note-tag {
  display: inline-flex; align-items: flex-start; gap: 4px;
  margin-top: 2px; padding: 4px;
  background: #F3F4F6; border-radius: 4px;
  font-size: 12px; line-height: 1.5;
  white-space: normal; text-align: left; max-width: 100%;
}
.og-acts .og-note-tag .nt-flag { flex: none; display: inline-flex; align-items: center; line-height: 0; margin-top: 1px; }
.og-acts .og-note-tag .nt-flag svg { width: 13px; height: 13px; }
.og-acts .og-note-tag .nt-name { color: #6B7280; flex: none; }
.og-acts .og-note-tag .nt-text { color: #1A1D26; word-break: break-all; }
.og-acts .act { white-space: nowrap; }
.og-acts .act,
.og-acts .act.primary-btn {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  height: auto;
  line-height: 1.6;
  font-size:12px;
  font-weight: 400;
  font-family: inherit;
  color: #1D4ED8;
  text-decoration: none;
  box-shadow: none;
  transition: color .15s;
}
.og-acts .act:hover,
.og-acts .act.primary-btn:hover {
  background: transparent;
  color: #335FDC;
  text-decoration: underline;
  border: none;
  box-shadow: none;
}
.og-acts .act.primary-btn { background: transparent; color: #1D4ED8; }
.og-acts .act.primary-btn:hover { background: transparent; color: #335FDC; border: none; }
.og-acts .act.danger { color: #ff3b30; }
.og-acts .act.danger:hover { background: transparent; color: #ff3b30; text-decoration: underline; }

/* 空态 */
.empty-state {
  padding: 80px 20px;
  text-align: center;
  color: var(--edy-text-tertiary);
}
.empty-state svg { width: 64px; height: 64px; stroke: #C8CDD5; stroke-width: 1.5; fill: none; margin-bottom: 12px; }
.empty-state .empty-text { font-size: 14px; margin-bottom: 16px; }

/* 分页 */
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px;
  font-size:12px;
  color: var(--edy-text-secondary);
}
.pager .pg-btn {
  min-width: 32px; height: 32px;
  padding: 0 10px;
  border: 1px solid var(--edy-border);
  border-radius: 6px;
  background: #FFFFFF;
  cursor: pointer;
  font-size:12px;
  color: var(--edy-text-primary);
  font-family: inherit;
}
.pager .pg-btn:hover:not(:disabled) { border-color: var(--edy-blue); color: var(--edy-blue); }
.pager .pg-btn.active { background: var(--edy-blue); border-color: var(--edy-blue); color: #FFFFFF; }
.pager .pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager select {
  height: 32px; padding: 0 8px;
  border: 1px solid var(--edy-border);
  border-radius: 6px;
  font-size:12px;
  background: #FFFFFF;
}

/* 分页字体统一 12px（ship 模块全页生效） */
.table-pagination { font-size: 12px; }
.pagination-size select { font-size: 12px; }

/* 物流概况 KPI */
.oview-section { background: #FFFFFF; margin-bottom: 16px; }
.oview-title {
  display: flex; align-items: center; gap: 8px;
  font-size:14px; font-weight: 600; color: var(--edy-text-primary);
  margin-bottom:16px;
}
.oview-title::before {
  content: '';
  width: 3px; height: 16px;
  background: var(--edy-blue);
  border-radius: 2px;
}
.oview-title .sub { font-weight: 400; font-size: 12px; color: var(--edy-text-tertiary); margin-left: 10px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.oview-kpi {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 16px 18px;
  transition: all 0.2s;
}
.oview-kpi:hover { background: #F2F4F7; }
.oview-kpi .kl { font-size:12px; color: var(--edy-text-secondary); margin-bottom: 10px; }
.oview-kpi .kv {
  font-family: var(--edy-font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--edy-text-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}
.oview-kpi .kc { font-size: 12px; color: var(--edy-text-tertiary); }
.oview-kpi .kc.up { color: var(--edy-success); }
.oview-kpi .kc.down { color: var(--edy-error); }

/* 地址卡片 */
.addr-section { margin-bottom: 20px; }
.addr-section-head {
  display: flex; align-items: center;
  margin-bottom: 12px;
}
.addr-section-head h3 {
  position: relative; padding-left: 10px;
  font-size:14px; font-weight: 600; color: var(--edy-text-primary);
}
.addr-section-head h3::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px;
  background: var(--edy-blue);
  border-radius: 2px;
}
.addr-section-head .btn { margin-left: auto; }

/* ========== 表单（校验） ========== */
.form-card {
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid var(--edy-border, #E5E7EB);;
  padding: 28px 32px;
  margin-bottom: 16px;
}
.form-card-title {
  display: flex; align-items: center;
  font-size: 16px; font-weight: 600; color: var(--edy-text-primary);
  margin-bottom: 22px; padding-bottom: 12px;
  border-bottom: 1px solid var(--edy-border-light);
}
.form-card-title::before {
  content: '';
  width: 3px; height: 16px;
  background: var(--edy-blue);
  border-radius: 2px;
  margin-right: 8px;
}
.fm-row { display: flex; align-items: flex-start; margin-bottom:16px; }
.fm-label {
  width: 140px; flex-shrink: 0;
  text-align: right; padding-right: 14px; padding-top: 9px;
  font-size:12px; color: var(--edy-text-primary);
}
.fm-label .required { color: var(--edy-error); margin-right: 3px; }
.fm-value { flex: 1; min-width: 0; }
.fm-value .fm-input,
.fm-value .fm-select,
.fm-value .fm-textarea {
  width: 360px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--edy-border);
  border-radius: 6px;
  font-size:12px;
  font-family: inherit;
  color: var(--edy-text-primary);
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.fm-value .fm-input.wide { width: 480px; }
.fm-value .fm-textarea { height: auto; min-height: 80px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.fm-value .fm-input:focus,
.fm-value .fm-select:focus,
.fm-value .fm-textarea:focus {
  border-color: var(--edy-blue);
  box-shadow: 0 0 0 2px rgba(79,110,247,0.15);
}
.fm-value .fm-input.error,
.fm-value .fm-select.error,
.fm-value .fm-textarea.error {
  border-color: var(--edy-error);
  box-shadow: 0 0 0 2px rgba(239,68,68,0.12);
}
.fm-hint { font-size: 12px; color: var(--edy-text-tertiary); margin-top: 6px; }
.fm-err { font-size: 12px; color: var(--edy-error); margin-top: 6px; display: none; }
.fm-err.show { display: block; }

.fm-radio-group { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.fm-radio {
  padding: 6px 16px;
  border: 1px solid var(--edy-border);
  border-radius: 6px;
  background: #FFFFFF;
  font-size:12px;
  color: var(--edy-text-primary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.fm-radio:hover { border-color: var(--edy-blue); color: var(--edy-blue); }
.fm-radio.active {
  background: var(--edy-blue-light);
  border-color: var(--edy-blue);
  color: var(--edy-blue);
  font-weight: 500;
}

.region-select { display: flex; gap: 8px; flex-wrap: wrap; }
.region-select .fm-select { width: 140px; }

.form-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid var(--edy-border, #E5E7EB);;
  margin-top: 16px;
}

/* Modal 通用 */
.ship-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.ship-modal.show { display: flex; }
.ship-modal .modal-box {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 560px;
}
.ship-modal .modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--edy-border-light);
}
.ship-modal .modal-head h3 { font-size: 16px; font-weight: 600; }
.ship-modal .modal-close {
  border: none; background: transparent;
  width: 28px; height: 28px;
  cursor: pointer; font-size: 18px;
  color: var(--edy-text-tertiary);
  border-radius: 4px;
}
.ship-modal .modal-close:hover { background: #F2F4F7; color: var(--edy-text-primary); }
.ship-modal .modal-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.ship-modal .modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--edy-border-light);
}

/* 物流轨迹 */
.tracking-list {
  padding: 14px 18px;
  background: #F9FAFB;
  border-radius: 8px;
  margin-top: 10px;
}
.tracking-item {
  position: relative;
  padding: 0 0 18px 22px;
  font-size:12px;
  color: var(--edy-text-secondary);
}
.tracking-item:last-child { padding-bottom: 0; }
.tracking-item::before {
  content: '';
  position: absolute; left: 5px; top: 5px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #D1D5DB;
}
.tracking-item:first-child::before { background: var(--edy-success); box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
.tracking-item::after {
  content: '';
  position: absolute; left: 8px; top: 14px; bottom: 0;
  width: 2px; background: var(--edy-border-light);
}
.tracking-item:last-child::after { display: none; }
.tracking-item:first-child { color: var(--edy-success); font-weight: 500; }
.tracking-item .t-time { font-size: 12px; color: var(--edy-text-tertiary); margin-top: 3px; }

/* Toast */
.ship-toast {
  position: fixed; top: 80px; left: 50%;
  transform: translateX(-50%);
  background: rgba(26,29,38,0.92);
  color: #fff; padding: 10px 22px;
  border-radius: 8px; font-size:12px;
  z-index: 2000; opacity: 0;
  pointer-events: none; transition: opacity 0.2s;
}
.ship-toast.show { opacity: 1; }
.ship-toast.success { background: rgba(34,197,94,0.95); }
.ship-toast.error { background: rgba(239,68,68,0.95); }
