[v-cloak] { display: none; }
:root {
  --as-col-1-desktop: 120px;
  --as-col-2-desktop: 114px;
  --as-col-3-desktop: 186px;
  --as-col-4-desktop: 124px;
  --as-col-5-desktop: 100px;
  --as-col-6-desktop: 114px;
  --as-col-7-desktop: 114px;
  --as-col-8-desktop: 190px;
  --as-col-9-desktop: 190px;
  --as-col-10-desktop: 96px;
  --as-col-11-desktop: 156px;
  --as-col-12-desktop: 156px;
  --as-col-13-desktop: 96px;
  --as-col-14-desktop: 96px;
  --as-col-15-desktop: 200px;
  --as-col-16-desktop: 96px;
  --as-col-17-desktop: 96px;
  --as-col-18-desktop: 114px;
  --as-col-19-desktop: 96px;
  --as-col-20-desktop: 96px;
  --as-col-21-desktop: 96px;
  --as-table-min-desktop: 2850px;

  --as-col-1-mobile: 128px;
  --as-col-2-mobile: 122px;
  --as-col-3-mobile: 196px;
  --as-col-4-mobile: 134px;
  --as-col-5-mobile: 96px;
  --as-col-6-mobile: 122px;
  --as-col-7-mobile: 122px;
  --as-col-8-mobile: 180px;
  --as-col-9-mobile: 180px;
  --as-col-10-mobile: 104px;
  --as-col-11-mobile: 164px;
  --as-col-12-mobile: 164px;
  --as-col-13-mobile: 104px;
  --as-col-14-mobile: 104px;
  --as-col-15-mobile: 190px;
  --as-col-16-mobile: 104px;
  --as-col-17-mobile: 104px;
  --as-col-18-mobile: 122px;
  --as-col-19-mobile: 104px;
  --as-col-20-mobile: 104px;
  --as-col-21-mobile: 92px;
  --as-table-min-mobile: 2050px;
}
html { width: 100%; margin: 0; padding: 0; overflow-x: hidden; }
/* 滚动条美化（兼容 Firefox + Chromium） */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.55) rgba(15, 23, 42, 0.55);
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.9) 0%, rgba(6, 182, 212, 0.9) 100%);
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.55);
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.95) 0%, rgba(14, 165, 233, 0.95) 100%);
}
.table-container::-webkit-scrollbar {
  height: 12px;
}
.table-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.95) 0%, rgba(14, 165, 233, 0.95) 100%);
  border: 2px solid rgba(15, 23, 42, 0.6);
}
body {
  width: 100%;
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden !important;
  min-height: 100vh;
  height: auto;
}
/* 科技风格渐变背景 - 与成交系统一致，固定到视口避免上下分离 */
body {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 25%, #312e81 50%, #1e293b 75%, #0f172a 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-position: 0% 50%, 0% 0%, 0% 0%, 0% 50%;
  background-attachment: fixed, fixed, fixed, fixed;
  position: relative;
  min-height: 100vh;
  height: auto;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: #e2e8f0;
  will-change: auto;
}
/* 网格层 - 与成交系统一致 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(168, 85, 247, 0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.08) 2px, transparent 2px),
    radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(168, 85, 247, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  background-size: 40px 40px, 40px 40px, 200px 200px, 200px 200px, min(600px, 50vw) min(600px, 50vh), min(600px, 50vw) min(600px, 50vh), min(1000px, 80vw) min(1000px, 80vh);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
/* 光晕层 - 与成交系统一致 */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60vw 40vh at 10% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50vw 35vh at 90% 80%, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40vw 30vh at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
#app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden !important;
}
/* 星点装饰层 - 与成交系统一致 */
#app::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(99, 102, 241, 0.6), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(168, 85, 247, 0.6), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(59, 130, 246, 0.8), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(99, 102, 241, 0.5), transparent),
    radial-gradient(2px 2px at 30% 80%, rgba(168, 85, 247, 0.5), transparent);
  background-repeat: repeat;
  background-size: 200px 200px, 300px 300px, 150px 150px, 250px 250px, 180px 180px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.top-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(26, 31, 58, 0.98) 50%, rgba(45, 27, 78, 0.98) 100%);
  border-bottom: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}
.top-nav .logo-text { font-size: 1.25rem; font-weight: 700; color: #e2e8f0; }
.top-nav .nav-wrap { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.top-nav .nav-user { color: #94a3b8; font-size: 13px; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); margin-right: 8px; }
.top-nav .nav-user strong { color: #67e8f9; }
.top-nav .nav-divider { width: 1px; height: 24px; background: rgba(34, 211, 238, 0.3); margin: 0 4px; }
.top-nav .nav-link {
  display: inline-block; font-size: 13px; font-weight: 500; color: #67e8f9;
  padding: 6px 12px; border-radius: 8px; text-decoration: none;
  border: 1px solid transparent; transition: all 0.2s;
}
.top-nav .nav-link:hover { color: #a5f3fc; background: rgba(6, 182, 212, 0.2); border-color: rgba(34, 211, 238, 0.3); }
.top-nav .nav-link.current { font-weight: 700; color: #e2e8f0; background: rgba(99, 102, 241, 0.25); border-color: rgba(99, 102, 241, 0.4); }
.top-nav .nav-link.exit { color: #f87171; }
.top-nav .nav-link.exit:hover { color: #fca5a5; background: rgba(239, 68, 68, 0.2); border-color: rgba(248, 113, 113, 0.3); }
/* .tech-card 见 /css/tech-surface.css */
.admin-table {
  border-collapse: collapse; width: 100%; font-size: 13px;
  table-layout: fixed;
}
.admin-table th {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 10px 6px; text-align: center; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis;
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: blur(4px);
}
.admin-table td {
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 6px; text-align: center;
  overflow: hidden; text-overflow: ellipsis;
}
.admin-table tbody tr:hover { background: rgba(59, 130, 246, 0.15); }
.table-container {
  overflow-x: auto; overflow-y: auto; max-height: 70vh;
  border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 8px;
  background: var(--tech-surface-nested);
}
.form-input {
  width: 100%; padding: 8px 10px; border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px; font-size: 13px; box-sizing: border-box;
}
.form-input:focus { outline: none; border-color: rgba(99, 102, 241, 0.6); }
.form-input:disabled { background-color: rgba(15, 23, 42, 0.5); color: var(--tech-text-muted); cursor: not-allowed; }
.grid-editable:focus {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.5);
  border-color: rgba(56, 189, 248, 0.8) !important;
}
.admin-table tbody tr.excel-active-row td {
  background: rgba(14, 116, 144, 0.18) !important;
}
.admin-table td.excel-active-col {
  background: rgba(56, 189, 248, 0.16) !important;
}
.admin-table td.excel-active-cell {
  background: rgba(59, 130, 246, 0.28) !important;
  box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.9);
}
.admin-table th.excel-active-col {
  background: rgba(30, 64, 175, 0.5) !important;
  color: #dbeafe;
}

/* 自定义右键菜单样式见 /grid-context-menu.css */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid rgba(147, 197, 253, 0.35);
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.1px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  border-color: rgba(191, 219, 254, 0.55);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255,255,255,0.26);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-secondary {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.86) 0%, rgba(30, 41, 59, 0.92) 100%);
  color: #e2e8f0;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.24), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-secondary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.88) 0%, rgba(51, 65, 85, 0.95) 100%);
  border-color: rgba(148, 163, 184, 0.65);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.3), inset 0 1px 0 rgba(255,255,255,0.14);
}
.btn-secondary:active { transform: translateY(0); }
.btn-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(252, 165, 165, 0.38);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 6px 14px rgba(185, 28, 28, 0.28);
}
.btn-danger:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 10px 20px rgba(185, 28, 28, 0.34); }
.btn-danger:active { transform: translateY(0); }
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-danger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.75), 0 0 0 4px rgba(14, 165, 233, 0.25);
}
.btn-lg { min-height: 42px; padding: 10px 18px; font-size: 14px; border-radius: 11px; }
.btn-md { min-height: 36px; padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-sm { min-height: 32px; padding: 5px 10px; font-size: 12px; border-radius: 9px; }
/* .kpi-card 见 /css/tech-surface.css */
.kpi-value { font-size: 28px; }
.kpi-value-pending { color: #f87171 !important; }
.kpi-value-processed { color: #4ade80 !important; }
.kpi-label { font-size: 13px; margin-top: 6px; }
.filter-row-one {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: 12px;
  margin-bottom: 1rem;
}
.filter-toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 0.5rem; }
.filter-action-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-action-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; }
.after-sales-filter-section {
  position: relative;
  overflow: visible;
  z-index: 80;
}
.after-sales-filter-section::before { pointer-events: none; }
.filter-view-toggle { display: flex; gap: 8px; align-items: center; }
.filter-view-cell {
  padding-top: 26px;
  justify-self: end;
}
.filter-view-toggle .btn-md { min-height: 38px; height: 38px; }
.filter-tag { font-size: 12px; color: #94a3b8; min-width: 46px; }
.filter-note { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.as-more-menu {
  position: absolute;
  z-index: 120;
  width: min(96vw, 300px);
  min-width: 240px;
  background: rgba(11, 16, 36, 0.98);
  backdrop-filter: blur(8px);
}
.as-more-group {
  border: 1px solid rgba(71, 85, 105, 0.45);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  margin-bottom: 10px;
}
.as-more-group:last-child { margin-bottom: 0; }
.as-more-group > summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.as-more-group > summary::-webkit-details-marker { display: none; }
.as-more-group > summary::after {
  content: "▸";
  color: #94a3b8;
  font-size: 12px;
  transition: transform 0.2s ease;
}
.as-more-group[open] > summary::after { transform: rotate(90deg); }
.as-more-list {
  border-top: 1px solid rgba(71, 85, 105, 0.35);
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.as-more-item {
  min-height: 34px !important;
  height: 34px;
  padding: 0 12px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}
.as-more-item-active {
  color: #ffffff !important;
  border-color: rgba(96, 165, 250, 0.78) !important;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 60%, #1d4ed8 100%) !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.82), 0 8px 18px rgba(8, 145, 178, 0.22);
}
.date-range-field { grid-column: span 2; }
.date-range-inputs { display: flex; align-items: center; gap: 8px; }
.date-range-inputs .form-input { flex: 1 1 0; min-width: 0; }
.date-range-sep { color: #94a3b8; font-size: 12px; white-space: nowrap; }
.mobile-only { display: none; }
.export-actions { display: flex; gap: 8px; }
.records-ops-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 2px 0;
}
.records-ops-meta {
  font-size: 13px;
  color: #cbd5e1;
  white-space: nowrap;
}
.records-ops-meta .count-value {
  color: #67e8f9;
  font-weight: 700;
  margin: 0 2px;
}
.records-ops-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-cell {
  cursor: pointer; padding: 6px 8px; min-height: 36px; text-align: left;
  border: 1px solid rgba(99, 102, 241, 0.2); border-radius: 6px;
  background: rgba(15, 23, 42, 0.5); color: #cbd5e1; font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.detail-cell:hover { background: rgba(59, 130, 246, 0.15); border-color: rgba(99, 102, 241, 0.4); }
.detail-cell.empty { color: #64748b; font-style: italic; }
.detail-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.detail-modal {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4); border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5); width: 100%; max-width: 520px;
  padding: 20px; max-height: 80vh; display: flex; flex-direction: column;
}
.detail-modal h3 { margin: 0 0 12px 0; font-size: 16px; color: #e2e8f0; }
.detail-modal textarea { flex: 1; min-height: 160px; resize: vertical; }
.detail-modal-actions { margin-top: 16px; display: flex; gap: 10px; justify-content: flex-end; }

/* 售后：关联订单多选弹窗 */
.detail-modal.order-pick-modal {
  max-width: 540px;
  width: calc(100vw - 32px);
  max-height: min(640px, 88vh);
  display: flex;
  flex-direction: column;
}
.order-pick-list {
  max-height: min(380px, 52vh);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}
.order-pick-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.order-pick-row:hover {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(30, 41, 59, 0.95);
}
.order-pick-row-main { font-size: 14px; }
.order-pick-row-sub { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.order-pick-hint strong { font-weight: 600; }
.btn-return-active-pending { box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.85), 0 8px 18px rgba(180, 83, 9, 0.22); }
.btn-return-active-done { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.85), 0 8px 18px rgba(21, 128, 61, 0.22); }
.btn-pending {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 60%, #b45309 100%) !important;
  border-color: rgba(253, 224, 71, 0.45) !important;
  box-shadow: 0 8px 18px rgba(180, 83, 9, 0.32), inset 0 1px 0 rgba(255,255,255,0.22) !important;
}
.btn-pending:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 22px rgba(180, 83, 9, 0.4), inset 0 1px 0 rgba(255,255,255,0.28) !important;
}
.btn-pending-active { box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.85), 0 8px 18px rgba(180, 83, 9, 0.22); }
.btn-view-active {
  color: #ffffff !important;
  border-color: rgba(96, 165, 250, 0.75) !important;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 60%, #1d4ed8 100%) !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.85), 0 8px 18px rgba(8, 145, 178, 0.22);
}
.btn-filter-active { box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.78), 0 8px 18px rgba(3, 105, 161, 0.2); }
.cards-container { padding: 12px; }
.cards-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.after-sales-card {
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  padding: 12px;
}
.deep-link-flash-row {
  animation: deepLinkRowFlash 2.2s ease-out 1;
}
.deep-link-flash-card {
  animation: deepLinkCardFlash 2.2s ease-out 1;
}
@keyframes deepLinkRowFlash {
  0% { background: rgba(34, 211, 238, 0.36); }
  100% { background: rgba(34, 211, 238, 0.06); }
}
@keyframes deepLinkCardFlash {
  0% { box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.95), 0 0 26px rgba(34, 211, 238, 0.45); }
  100% { box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35), 0 0 0 rgba(34, 211, 238, 0); }
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.card-title { color: #e2e8f0; font-weight: 600; font-size: 14px; }
.card-badge { font-size: 12px; color: #67e8f9; border: 1px solid rgba(34, 211, 238, 0.4); border-radius: 999px; padding: 2px 8px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.card-field { font-size: 12px; color: #cbd5e1; }
.card-field strong { color: #94a3b8; margin-right: 4px; }
/* 卡片上可复制字段：长按/右键菜单热区（与成交订单卡片思路一致） */
.card-field.as-card-field-copyblock {
  touch-action: manipulation;
  border-radius: 6px;
  padding: 6px 4px;
  margin: -2px -4px;
  background: rgba(30, 41, 59, 0.55);
}
.card-assign { margin-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.card-assign .form-input { height: 34px; }
.card-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.card-actions .btn-secondary {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  padding: 6px 10px;
  font-size: 12px;
}

/* ========== 移动端：汉堡菜单、安全区、减弱动效 ========== */
@media (max-width: 768px) {
  .main-content-after-sales { padding-bottom: max(0.75rem, env(safe-area-inset-bottom)); }
  .top-nav .logo-text { white-space: nowrap; }
  .table-container {
    overflow-x: auto !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table {
    min-width: var(--as-table-min-mobile);
    table-layout: fixed;
  }
  .admin-table th,
  .admin-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-table td .form-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    text-align: left;
  }
  .admin-table colgroup col:nth-child(1) { width: var(--as-col-1-mobile) !important; }
  .admin-table colgroup col:nth-child(2) { width: var(--as-col-2-mobile) !important; }
  .admin-table colgroup col:nth-child(3) { width: var(--as-col-3-mobile) !important; }
  .admin-table colgroup col:nth-child(4) { width: var(--as-col-4-mobile) !important; }
  .admin-table colgroup col:nth-child(5) { width: var(--as-col-5-mobile) !important; }
  .admin-table colgroup col:nth-child(6) { width: var(--as-col-6-mobile) !important; }
  .admin-table colgroup col:nth-child(7) { width: var(--as-col-7-mobile) !important; }
  .admin-table colgroup col:nth-child(8) { width: var(--as-col-8-mobile) !important; }
  .admin-table colgroup col:nth-child(9) { width: var(--as-col-9-mobile) !important; }
  .admin-table colgroup col:nth-child(10) { width: var(--as-col-10-mobile) !important; }
  .admin-table colgroup col:nth-child(11) { width: var(--as-col-11-mobile) !important; }
  .admin-table colgroup col:nth-child(12) { width: var(--as-col-12-mobile) !important; }
  .admin-table colgroup col:nth-child(13) { width: var(--as-col-13-mobile) !important; }
  .admin-table colgroup col:nth-child(14) { width: var(--as-col-14-mobile) !important; }
  .admin-table colgroup col:nth-child(15) { width: var(--as-col-15-mobile) !important; }
  .admin-table colgroup col:nth-child(16) { width: var(--as-col-16-mobile) !important; }
  .admin-table colgroup col:nth-child(17) { width: var(--as-col-17-mobile) !important; }
  .admin-table colgroup col:nth-child(18) { width: var(--as-col-18-mobile) !important; }
  .admin-table colgroup col:nth-child(19) { width: var(--as-col-19-mobile) !important; }
  .admin-table colgroup col:nth-child(20) { width: var(--as-col-20-mobile) !important; }
  .admin-table colgroup col:nth-child(21) { width: var(--as-col-21-mobile) !important; }
  .tech-card { padding: 12px !important; }
  .filter-row-one { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
  .filter-row-one label { font-size: 12px !important; margin-bottom: 4px !important; }
  .filter-row-one .form-input { height: 38px; font-size: 13px; padding: 6px 8px; }
  .date-range-field { grid-column: 1 / -1; }
  .filter-view-cell { padding-top: 0; justify-self: stretch; grid-column: 1 / -1; }
  .filter-view-toggle { grid-column: 1 / -1; }
  .date-range-inputs { gap: 6px; }
  .filter-toolbar { gap: 8px; }
  .filter-action-wrap { display: block; }
  .filter-action-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
  .filter-action-row .form-input { grid-column: 1 / -1; min-width: 0 !important; height: 38px; }
  .filter-action-row .filter-tag { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 2px 0 0; }
  .filter-action-row button { width: 100%; min-height: 38px; padding: 6px 8px; font-size: 14px; }
  .mobile-only { display: block; }
  .export-actions { display: none; grid-column: 1 / -1; }
  .export-actions.mobile-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .export-actions.mobile-open button { width: 100%; min-height: 38px; }
  .filter-note { line-height: 1.4; }
  .records-ops-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .records-ops-meta { font-size: 12px; white-space: normal; }
  .records-ops-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .records-ops-actions button { width: 100%; min-height: 38px; padding: 6px 8px; font-size: 14px; }
  .cards-list { grid-template-columns: 1fr; gap: 10px; }
}
@media (min-width: 769px) {
  .nav-drawer-overlay, .nav-drawer-panel { display: none !important; }
  .admin-table {
    min-width: var(--as-table-min-desktop);
    table-layout: fixed;
  }
  .admin-table colgroup col:nth-child(1) { width: var(--as-col-1-desktop) !important; }
  .admin-table colgroup col:nth-child(2) { width: var(--as-col-2-desktop) !important; }
  .admin-table colgroup col:nth-child(3) { width: var(--as-col-3-desktop) !important; }
  .admin-table colgroup col:nth-child(4) { width: var(--as-col-4-desktop) !important; }
  .admin-table colgroup col:nth-child(5) { width: var(--as-col-5-desktop) !important; }
  .admin-table colgroup col:nth-child(6) { width: var(--as-col-6-desktop) !important; }
  .admin-table colgroup col:nth-child(7) { width: var(--as-col-7-desktop) !important; }
  .admin-table colgroup col:nth-child(8) { width: var(--as-col-8-desktop) !important; }
  .admin-table colgroup col:nth-child(9) { width: var(--as-col-9-desktop) !important; }
  .admin-table colgroup col:nth-child(10) { width: var(--as-col-10-desktop) !important; }
  .admin-table colgroup col:nth-child(11) { width: var(--as-col-11-desktop) !important; }
  .admin-table colgroup col:nth-child(12) { width: var(--as-col-12-desktop) !important; }
  .admin-table colgroup col:nth-child(13) { width: var(--as-col-13-desktop) !important; }
  .admin-table colgroup col:nth-child(14) { width: var(--as-col-14-desktop) !important; }
  .admin-table colgroup col:nth-child(15) { width: var(--as-col-15-desktop) !important; }
  .admin-table colgroup col:nth-child(16) { width: var(--as-col-16-desktop) !important; }
  .admin-table colgroup col:nth-child(17) { width: var(--as-col-17-desktop) !important; }
  .admin-table colgroup col:nth-child(18) { width: var(--as-col-18-desktop) !important; }
  .admin-table colgroup col:nth-child(19) { width: var(--as-col-19-desktop) !important; }
  .admin-table colgroup col:nth-child(20) { width: var(--as-col-20-desktop) !important; }
  .admin-table colgroup col:nth-child(21) { width: var(--as-col-21-desktop) !important; }
}

/* 打印优化 */
@media print {
  .no-print,
  .top-nav,
  .records-ops-bar,
  .modal-overlay,
  .modal-content {
    display: none !important;
  }
  body {
    background: white !important;
    margin: 0;
    padding: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #app {
    background: white !important;
  }
  .admin-table th,
  .admin-table td {
    border: 1px solid #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .admin-table th {
    background-color: #f0f0f0 !important;
    color: #000 !important;
  }
  .admin-table {
    background-color: white !important;
  }
  .card,
  .records-list {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    background: white !important;
  }
  body::before,
  body::after,
  #app::before {
    display: none !important;
  }
}

/* 站内通知 Toast（与成交页行为一致） */
.toast-as {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  color: #0f172a;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 10050;
  max-width: min(420px, calc(100vw - 40px));
  animation: toast-as-slide 0.28s ease;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
}
.toast-as.success {
  border-left: 4px solid #10b981;
}
.toast-as.error {
  border-left: 4px solid #ef4444;
}
.toast-as.warning {
  border-left: 4px solid #f59e0b;
}
.toast-as.info {
  border-left: 4px solid #06b6d4;
}
@keyframes toast-as-slide {
  from {
    transform: translateX(110%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast-as {
    animation: none;
  }
}
