/* ERP 业务中心 — 旅行社计调优先工作台 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --erp-ink: #0f172a;
  --erp-muted: #64748b;
  --erp-line: #e2e8f0;
  --erp-bg: #f4f7f6;
  --erp-surface: #ffffff;
  --erp-teal: #0f766e;
  --erp-teal-deep: #115e59;
  --erp-teal-soft: #ccfbf1;
  --erp-amber: #c2410c;
  --erp-amber-soft: #ffedd5;
  --erp-ok: #047857;
  --erp-danger: #b91c1c;
  --erp-radius: 12px;
  --erp-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
}

#erp-console-panel.erp-console-page {
  display: none;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: var(--erp-ink);
  background: var(--erp-bg);
  padding: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  min-height: 100vh;
  box-sizing: border-box;
}

#erp-console-panel.is-b2b-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: block;
  overflow: auto;
}

/* 退出登录后：登录层必须全屏盖过 B2B / CRM，切勿改成 relative（会露出右侧 CRM） */
#login-page {
  position: fixed !important;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 13000 !important;
}

/* 登录可见时彻底收起业务壳，避免左右分屏 */
body.login-visible #sidebar-nav,
body.login-visible #main-content,
body.login-visible .hd,
body.login-visible .drawer,
body.login-visible #drawer-overlay,
body.login-visible .mobile-header,
body.login-visible #workbench-switcher,
body.login-visible #erp-console-panel {
  display: none !important;
}

body.is-b2b-mode #sidebar-nav,
body.is-b2b-mode .drawer,
body.is-b2b-mode #drawer-overlay,
body.is-b2b-mode .mobile-header,
body.is-b2b-mode #workbench-switcher,
body.is-b2b-mode #main-content {
  display: none !important;
}

.b2b-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--erp-bg);
}

.b2b-topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
  height: 56px;
  background: #1f2937;
  color: #fff;
  border-bottom: 3px solid #ec4899;
  flex-shrink: 0;
  overflow: hidden; /* 避免顶栏右侧出现竖向滚动条 */
}

.b2b-brand {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.b2b-brand span {
  color: #f9a8d4;
  font-weight: 600;
  margin-left: 4px;
}

.b2b-topnav {
  display: flex;
  align-items: stretch;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden; /* overflow-x:auto 会把 overflow-y 变成 auto，底边高亮易顶出竖滚动条 */
  height: 100%;
  scrollbar-width: thin;
}

.b2b-top-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.82);
  padding: 0 16px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
.b2b-top-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.b2b-top-item.is-on {
  color: #fff;
  font-weight: 700;
  border-bottom-color: #ec4899;
  background: rgba(236, 72, 153, .12);
}

.b2b-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.b2b-link-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.b2b-link-btn:hover { background: rgba(255,255,255,.1); }

.b2b-logout-btn {
  border-color: rgba(252, 165, 165, .55);
  color: #fecaca;
}
.b2b-logout-btn:hover {
  background: rgba(239, 68, 68, .18);
  color: #fff;
}

.b2b-role-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(236, 72, 153, .25);
  color: #fce7f3;
  white-space: nowrap;
}

.b2b-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  flex: 1;
  min-height: 0;
}

.erp-shell {
  display: grid;
  grid-template-columns: 228px 1fr;
  min-height: calc(100vh - 56px);
}

.erp-rail {
  background: #111827;
  color: #ecfdf5;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: calc(100vh - 56px);
}

.erp-rail-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 4px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 8px;
  color: #f9fafb;
}

.erp-rail-brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #f9a8d4;
  margin-top: 4px;
  opacity: .95;
}

.erp-rail-step {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
  padding: 12px 10px 4px;
}

.erp-rail-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #d1d5db;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.erp-rail-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.erp-rail-btn.is-on {
  background: #ec4899;
  color: #fff;
  font-weight: 600;
}
.erp-rail-btn.erp-rail-crm {
  color: #99f6e4;
  border: 1px dashed rgba(153, 246, 228, .35);
  margin-top: 8px;
}

.erp-main {
  padding: 22px 24px 40px;
  overflow: auto;
  min-width: 0;
  background: var(--erp-bg);
}

.erp-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.erp-hero h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--erp-ink);
}

.erp-hero p {
  margin: 6px 0 0;
  color: var(--erp-muted);
  font-size: 13px;
  max-width: 640px;
  line-height: 1.55;
}

.erp-flow {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.erp-flow-chip {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--erp-line);
  color: var(--erp-muted);
}

.erp-flow-chip.is-active {
  background: var(--erp-teal-soft);
  border-color: #5eead4;
  color: var(--erp-teal-deep);
  font-weight: 600;
}

.erp-banner {
  background: linear-gradient(120deg, #ecfdf5 0%, #f0fdfa 55%, #fff7ed 100%);
  border: 1px solid #99f6e4;
  border-radius: var(--erp-radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #134e4a;
}

.erp-banner strong { color: var(--erp-teal-deep); }

.erp-simple-flow {
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: var(--erp-radius);
  padding: 16px 18px 14px;
  box-shadow: var(--erp-shadow);
}
.erp-simple-flow-hd h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}
.erp-simple-flow-hd p {
  margin: 0 0 14px;
  color: var(--erp-muted);
  font-size: 13px;
  line-height: 1.5;
}
.erp-simple-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.erp-simple-step {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 12px 14px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.erp-simple-step:hover {
  border-color: #f9a8d4;
  box-shadow: 0 6px 18px rgba(236, 72, 153, .12);
  transform: translateY(-1px);
}
.erp-simple-step.is-mine {
  border-color: #ec4899;
  background: linear-gradient(180deg, #fff 0%, #fdf2f8 100%);
}
.erp-simple-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #1f2937;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}
.erp-simple-step.is-mine .erp-simple-num { background: #ec4899; }
.erp-simple-who {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 2px;
}
.erp-simple-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--erp-ink);
  margin-bottom: 4px;
}
.erp-simple-desc {
  font-size: 12px;
  color: var(--erp-muted);
  line-height: 1.45;
}
.erp-simple-arrow {
  display: none;
}
.erp-simple-tip {
  margin: 12px 0 0;
  font-size: 12px;
  color: #64748b;
}
.erp-path-callout {
  margin: 0;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border: 1px solid #bae6fd;
  border-radius: 10px;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.55;
}
.erp-path-callout p { margin: 0; }
.erp-path-callout strong { color: #0369a1; }
@media (max-width: 980px) {
  .erp-simple-steps { grid-template-columns: 1fr 1fr; }
}

/* —— 旅品汇式线路商城 —— */
.erp-mall-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.erp-mall-search {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 260px;
  max-width: 520px;
}
.erp-mall-search input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}
.erp-mall-search input:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, .15);
}
.erp-mall-meta {
  font-size: 12px;
  color: #64748b;
}
.erp-line-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.erp-line-card {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.erp-line-card:hover {
  transform: translateY(-2px);
  border-color: #f9a8d4;
  box-shadow: 0 10px 24px rgba(236, 72, 153, .12);
}
.erp-line-card-cover {
  position: relative;
  height: 128px;
  background: linear-gradient(135deg, #1f2937, #4b5563);
  overflow: hidden;
}
.erp-line-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.erp-line-card-ph {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fce7f3;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
}
.erp-line-card-ph.big { min-height: 180px; font-size: 28px; }
.erp-line-card-badge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 6px 10px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 11px;
}
.erp-line-card-body { padding: 12px 12px 14px; }
.erp-line-card-code {
  font-size: 11px;
  font-weight: 700;
  color: #ec4899;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.erp-line-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.erp-line-card-meta {
  margin-top: 8px;
  font-size: 11px;
  color: #64748b;
}
.erp-line-card-price {
  margin-top: 8px;
  color: #be185d;
  font-weight: 700;
  font-size: 18px;
}
.erp-line-card-price span { font-size: 12px; margin-right: 1px; }
.erp-line-card-price em { font-style: normal; font-size: 12px; font-weight: 500; margin-left: 2px; color: #94a3b8; }
.erp-line-card-price.muted { font-size: 12px; color: #94a3b8; font-weight: 500; }

.erp-detail-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  padding: 0 0 12px;
}
.erp-detail-back:hover { color: #e11d48; }

/* —— 旅品汇式产品详情 —— */
.erp-pd { max-width: 1180px; margin: 0 auto; }
.erp-pd-top {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 230px;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
  background: transparent;
  border: 0;
  padding: 0;
}
.erp-pd-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 10px;
}
.erp-pd-info {
  min-width: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 14px;
}
.erp-pd-gallery {
  background: #1f2937;
  overflow: hidden;
}
.erp-pd-gallery img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}
.erp-pd-cal {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 8px;
}
.erp-pd-cal .erp-cal-month {
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
.erp-cal-hd-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.erp-cal-nav {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 2px 8px;
  font-family: inherit;
}
.erp-cal-nav:hover { color: #e11d48; }
.erp-cal-ym { letter-spacing: .04em; min-width: 72px; text-align: center; }
.erp-pd-shop {
  min-width: 0;
  position: sticky;
  top: 8px;
}
.erp-pd-shop-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 14px 12px 16px;
  text-align: center;
}
.erp-pd-shop-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #e11d48;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  padding: 4px 10px;
  margin-bottom: 8px;
}
.erp-pd-shop-sat {
  font-size: 13px;
  font-weight: 700;
  color: #059669;
  margin-bottom: 10px;
}
.erp-pd-shop-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 6px;
}
.erp-pd-shop-name:hover { color: #e11d48; }
.erp-pd-shop-meta {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}
.erp-pd-shop-contact {
  font-size: 12px;
  color: #374151;
  margin: 8px 0 12px;
  padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
}
.erp-pd-shop-enter {
  width: 100%;
  margin-top: 4px;
}
.erp-pd-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  color: #111827;
  font-weight: 700;
}
.erp-pd-prefix { color: #e11d48; font-weight: 700; }
.erp-pd-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #16a34a;
  vertical-align: middle;
  white-space: nowrap;
}
.erp-pd-sales {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
}
.erp-pd-sales b { color: #e11d48; font-weight: 700; }
.erp-pd-meta-box {
  background: #f7f8fa;
  border: 1px solid #eef0f3;
  padding: 12px 14px 14px;
  overflow: visible;
}
.erp-pd-meta {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #374151;
  margin-bottom: 10px;
}
.erp-pd-meta td {
  padding: 5px 0;
  width: 50%;
}
.erp-pd-date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 13px;
  color: #374151;
  position: relative;
  overflow: visible;
  z-index: 6;
}
.erp-pd-label { color: #111827; font-weight: 600; }
.erp-pd-date-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.erp-pd-date-input {
  width: 160px;
  border: 1px solid #d1d5db;
  padding: 6px 32px 6px 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
}
.erp-pd-date-ico {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 18px;
  height: 18px;
  padding: 0;
}
.erp-pd-date-ico::before {
  content: '';
  display: block;
  width: 16px;
  height: 14px;
  border: 1.5px solid #9ca3af;
  border-radius: 2px;
  box-sizing: border-box;
  background:
    linear-gradient(#9ca3af, #9ca3af) 3px 0 / 2px 3px no-repeat,
    linear-gradient(#9ca3af, #9ca3af) 11px 0 / 2px 3px no-repeat,
    linear-gradient(#9ca3af, #9ca3af) 0 4px / 100% 1.5px no-repeat;
}
.erp-pd-hint { font-size: 12px; color: #9ca3af; }
.erp-mini-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 30;
  background: #fff;
  border: 1px solid #d1d5db;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  padding: 8px;
  min-width: 260px;
}
.erp-mini-hd {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}
.erp-mini-hd span { flex: 1; text-align: center; }
.erp-mini-nav,
.erp-mini-clear {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: #6b7280;
  padding: 2px 4px;
  font-size: 12px;
}
.erp-mini-nav:hover,
.erp-mini-clear:hover { color: #e11d48; }
.erp-mini-clear { margin-left: 4px; color: #9ca3af; }
.erp-mini-week,
.erp-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.erp-mini-week span {
  font-size: 12px;
  color: #9ca3af;
  padding: 4px 0;
}
.erp-mini-day {
  appearance: none;
  border: 0;
  background: transparent;
  min-height: 30px;
  font-size: 13px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.erp-mini-day.empty { visibility: hidden; }
.erp-mini-day.is-off { color: #d1d5db; cursor: default; }
.erp-mini-day.is-ok {
  color: #111827;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}
.erp-mini-day.is-ok:hover { background: #fff1f2; color: #e11d48; }
.erp-mini-day.is-on {
  background: #e11d48;
  color: #fff !important;
}
.erp-pd-price {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 10px;
  font-size: 13px;
  background: #fff;
}
.erp-pd-price th,
.erp-pd-price td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  text-align: center;
}
.erp-pd-price th {
  background: #f9fafb;
  color: #4b5563;
  font-weight: 600;
}
.erp-pd-price td:first-child { background: #fafafa; color: #374151; font-weight: 600; }
.erp-pd-money { color: #e11d48; font-weight: 700; line-height: 1.45; }
.erp-pd-profit {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #f59e0b;
}
.erp-pd-muted { color: #9ca3af; }
.erp-pd-price-note {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 12px;
}
.erp-pd-price-note span { color: #e11d48; margin-right: 4px; }
.erp-pd-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.erp-pd-btn {
  appearance: none;
  border: 0;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
}
.erp-pd-btn-book { background: #e11d48; color: #fff; }
.erp-pd-btn-book:hover { background: #be123c; }
.erp-pd-btn-shelf {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
}
.erp-pd-btn-fav {
  background: #f59e0b;
  color: #fff;
}
.erp-pd-btn-fav:hover { background: #d97706; }
.erp-pd-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-bottom: 2px solid #e11d48;
  margin-bottom: 0;
}
.erp-pd-tab {
  padding: 12px 16px;
  font-size: 13px;
  color: #4b5563;
  text-decoration: none;
  border-right: 1px solid #f3f4f6;
  white-space: nowrap;
}
.erp-pd-tab:hover { color: #e11d48; background: #fff1f2; }
.erp-pd-tab.is-on {
  color: #fff;
  background: #e11d48;
  font-weight: 700;
}
.erp-pd-tab-book { margin-left: auto; border-right: 0; color: #e11d48; font-weight: 700; }
.erp-pd-sections {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 0;
  padding: 0 16px 20px;
}
.erp-pd-section {
  padding: 18px 0;
  border-bottom: 1px solid #f3f4f6;
  scroll-margin-top: 52px;
}
.erp-pd-section:last-child { border-bottom: 0; }
.erp-pd-sec-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid #e11d48;
}
.erp-pd-sec-body { min-width: 0; }
.erp-pd-poster {
  position: relative;
  background: #111827;
  overflow: hidden;
}
.erp-pd-poster img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  background: #111827;
}
.erp-pd-poster-dl {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e11d48;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
}
.erp-pd-poster-ph {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f2937, #be123c 120%);
  color: #fff;
}
.erp-pd-poster-ph-inner { text-align: center; padding: 24px; }
.erp-pd-poster-ph .t { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.erp-pd-poster-ph .m { font-size: 14px; opacity: .85; margin-bottom: 12px; }
.erp-pd-poster-ph .p { font-size: 18px; font-weight: 700; color: #fde68a; }
.erp-detail-text {
  background: #fafafa;
  border: 1px solid #f3f4f6;
  padding: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: #374151;
}
.erp-pd-fee-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.erp-pd-fee-h {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.erp-pd-res { margin-top: 12px; }
.erp-detail-book {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 14px;
}
.erp-cal-cell.is-off { background: #fafafa; }
@media (max-width: 1100px) {
  .erp-pd-top { grid-template-columns: 300px minmax(0, 1fr); }
  .erp-pd-shop { grid-column: 1 / -1; position: static; }
}
@media (max-width: 980px) {
  .erp-pd-top { grid-template-columns: 1fr; }
  .erp-pd-fee-split { grid-template-columns: 1fr; }
}

/* —— 供应商 / 本社店铺 —— */
.erp-shop { max-width: 1180px; margin: 0 auto; }
.erp-shop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
  margin-bottom: 0;
}
.erp-shop-head-main { flex: 1; min-width: 200px; }
.erp-shop-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #111827;
}
.erp-shop-head-meta { font-size: 12px; color: #6b7280; }
.erp-shop-trust {
  font-size: 12px;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 8px 12px;
}
.erp-shop-nav {
  display: flex;
  gap: 0;
  background: #e11d48;
  margin-bottom: 0;
}
.erp-shop-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.85);
  padding: 12px 22px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.erp-shop-nav button.is-on,
.erp-shop-nav button:hover {
  color: #fff;
  background: rgba(0,0,0,.12);
  font-weight: 700;
}
.erp-shop-banner {
  height: 140px;
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  background:
    linear-gradient(120deg, rgba(15,23,42,.55), rgba(225,29,72,.35)),
    linear-gradient(135deg, #0f766e, #334155);
  margin-bottom: 14px;
}
.erp-shop-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.erp-shop-side { display: flex; flex-direction: column; gap: 12px; }
.erp-shop-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 12px;
}
.erp-shop-box-h {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}
.erp-shop-main {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 12px 14px 16px;
}
.erp-shop-sec-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.erp-shop-sec-h em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
}
.erp-shop-price-row {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.erp-shop-price-row b { color: #e11d48; font-size: 14px; }
@media (max-width: 900px) {
  .erp-shop-body { grid-template-columns: 1fr; }
}

/* —— 旅品汇式填写订单 —— */
.erp-book { max-width: 1180px; margin: 0 auto; }
.erp-book-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  margin-bottom: 14px;
  overflow: hidden;
}
.erp-book-step {
  flex: 1;
  min-width: 120px;
  padding: 14px 10px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  border-right: 1px solid #f3f4f6;
  background: #fafafa;
}
.erp-book-step span {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 50%;
  background: #d1d5db;
  color: #fff;
  font-size: 12px;
  margin-right: 6px;
}
.erp-book-step.is-done { color: #059669; background: #ecfdf5; }
.erp-book-step.is-done span { background: #059669; }
.erp-book-step.is-on {
  color: #fff;
  background: #e11d48;
  font-weight: 700;
}
.erp-book-step.is-on span { background: rgba(255,255,255,.25); }
.erp-book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}
.erp-book-sec {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 16px 18px 18px;
  margin-bottom: 14px;
}
.erp-book-h {
  margin: 0 0 14px;
  font-size: 16px;
  color: #111827;
  padding-left: 10px;
  border-left: 3px solid #e11d48;
}
.erp-book-line a {
  color: #2563eb;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.erp-book-line a:hover { text-decoration: underline; }
.erp-book-code { font-size: 12px; color: #9ca3af; margin: 4px 0 12px; }
.erp-book-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
}
.erp-book-row > label {
  width: 72px;
  flex-shrink: 0;
  padding-top: 8px;
  color: #374151;
  font-weight: 600;
}
.erp-book-row > label.req::before,
.erp-book-field > label.req::before {
  content: '*';
  color: #e11d48;
  margin-right: 3px;
}
.erp-book-qty { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.erp-book-qty-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
}
.erp-book-qty-item b {
  min-width: 24px;
  text-align: center;
  font-size: 15px;
}
.erp-book-qty-item em {
  font-style: normal;
  color: #e11d48;
  font-size: 12px;
}
.erp-qty-btn {
  appearance: none;
  width: 28px;
  height: 28px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  font-family: inherit;
}
.erp-qty-btn:hover { border-color: #e11d48; color: #e11d48; }
.erp-qty-input {
  width: 52px;
  height: 28px;
  border: 1px solid #d1d5db;
  text-align: center;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  -moz-appearance: textfield;
}
.erp-qty-input::-webkit-outer-spin-button,
.erp-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.erp-book-rooms-tip {
  font-style: normal;
  color: #9ca3af;
  font-size: 12px;
  margin-left: 4px;
}
.erp-book-radio { margin-right: 8px; color: #4b5563; cursor: pointer; }
.erp-book-subtabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  margin: 8px 0 12px;
}
.erp-book-subtab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.erp-book-subtab.is-on {
  color: #e11d48;
  font-weight: 700;
  border-bottom-color: #e11d48;
}
.erp-book-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.erp-book-field label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}
.erp-book-field input,
.erp-book-field select,
.erp-book-field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
}
.erp-book-field textarea { resize: vertical; }
.erp-book-hint { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.erp-book-warn {
  font-size: 12px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 8px 10px;
  margin: 0 0 12px;
}
.erp-book-contracts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 13px;
  color: #374151;
}
.erp-book-h-tip {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
}
.erp-book-warn-inline {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #b91c1c;
}
.erp-book-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #fce7f3;
}
.erp-book-tourist-card {
  border: 1px solid #e5e7eb;
  border-left: 3px solid #e11d48;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #fff;
}
.erp-book-tourist-one {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.erp-book-tourist-one .erp-book-tr-label {
  flex: 0 0 auto;
  padding-bottom: 0;
  white-space: nowrap;
}
.erp-book-il {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.erp-book-il-lab {
  flex: 0 0 auto;
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}
.erp-book-il-lab.req::before {
  content: '*';
  color: #e11d48;
  margin-right: 2px;
}
.erp-book-il input[type="text"],
.erp-book-il input:not([type]),
.erp-book-il input[type="date"],
.erp-book-il input[type="tel"],
.erp-book-il select {
  border: 1px solid #d1d5db;
  padding: 5px 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
  height: 30px;
}
.erp-book-il input[data-f="name"] { width: 88px; }
.erp-book-il-phone input { width: 118px; }
.erp-book-il-id {
  flex: 1 1 260px;
  min-width: 220px;
}
.erp-book-il-id select {
  width: 84px;
  flex: 0 0 84px;
}
.erp-book-il-id input[data-f="id_number"] {
  flex: 1 1 auto;
  min-width: 140px;
}
.erp-book-il-radio {
  gap: 8px;
  font-size: 13px;
  color: #374151;
  white-space: nowrap;
}
.erp-book-il-radio label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}
.erp-book-tourist-one .erp-book-check {
  margin: 0;
  white-space: nowrap;
  font-size: 12px;
}
.erp-book-tourist-one .erp-book-del {
  margin-left: auto;
  padding: 4px 6px;
}
.erp-book-tourist-r1 {
  display: none;
}
.erp-book-tourist-r2 {
  display: none;
}
.erp-book-tr-spacer { display: none; }
.erp-book-tourist-row {
  display: grid;
  grid-template-columns: 56px minmax(100px, 1.1fr) minmax(180px, 1.6fr) minmax(100px, 1fr) 88px auto auto;
  gap: 8px 10px;
  align-items: end;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #e11d48;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fff;
}
@media (max-width: 900px) {
  .erp-book-tourist-one {
    align-items: flex-start;
  }
  .erp-book-il-id { flex-basis: 100%; }
  .erp-book-tourist-one .erp-book-del { margin-left: 0; }
}

.erp-book-team-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 13px;
  color: #9a3412;
}
.erp-book-team-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.erp-book-modal-wide { width: min(720px, 100%); }
.erp-book-pick-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 8px 0;
  font-size: 13px;
  color: #374151;
}
.erp-book-pick-list {
  max-height: 320px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  margin-bottom: 12px;
}
.erp-book-pick-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 110px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}
.erp-book-pick-row:hover { background: #fff1f2; }
.erp-book-pick-main b { color: #111827; }
.erp-book-pick-sub { color: #6b7280; font-size: 12px; margin-top: 2px; }
.erp-book-pick-sel,
.erp-book-pick-phone {
  font-size: 12px;
  color: #4b5563;
  white-space: nowrap;
}
.erp-book-team-item {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  font-family: inherit;
}
.erp-book-team-item:hover { background: #fff1f2; }
.erp-book-team-item span { font-size: 12px; color: #6b7280; }
.erp-book-crm-stage { min-height: 40px; margin-top: 8px; }
@media (max-width: 900px) {
  .erp-book-tourist-row {
    grid-template-columns: 1fr 1fr;
  }
  .erp-book-tourist-one {
    align-items: flex-start;
  }
  .erp-book-il-id { flex-basis: 100%; }
  .erp-book-tourist-one .erp-book-del { margin-left: 0; }
  .erp-book-pick-row { grid-template-columns: 48px 1fr; }
  .erp-book-pick-phone { grid-column: 2; }
}
.erp-book-tr-label {
  font-size: 13px;
  font-weight: 700;
  color: #e11d48;
  padding-bottom: 0;
}
.erp-book-idpair-row {
  display: flex;
  gap: 6px;
}
.erp-book-idpair-row select {
  width: 88px;
  flex-shrink: 0;
  height: 32px;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 13px;
}
.erp-book-idpair-row input { flex: 1; min-width: 0; }
.erp-book-tourist {
  border: 1px solid #e5e7eb;
  padding: 12px;
  margin-bottom: 10px;
  background: #fafafa;
}
.erp-book-tourist-hd {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
  color: #111827;
}
.erp-book-del {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e11d48;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  padding-bottom: 8px;
  white-space: nowrap;
}
.erp-book-del:disabled { color: #d1d5db; cursor: not-allowed; }
.erp-book-inline { display: flex; gap: 10px; padding-bottom: 6px; font-size: 12px; }
.erp-book-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #4b5563;
  padding-bottom: 8px;
  white-space: nowrap;
}
.erp-book-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.erp-book-modal[hidden] { display: none !important; }
.erp-book-modal-box {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 16px 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.erp-book-modal-box h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #111827;
}
.erp-book-modal-box textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  margin: 8px 0 12px;
  box-sizing: border-box;
}
.erp-book-crm-list {
  max-height: 240px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  margin: 10px 0 12px;
  padding: 6px;
  background: #fafafa;
}
.erp-book-crm-item {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}
.erp-book-crm-item:hover { background: #fff1f2; }
@media (max-width: 900px) {
  .erp-book-tourist-row {
    grid-template-columns: 1fr 1fr;
  }
  .erp-book-tr-label { grid-column: 1 / -1; padding-bottom: 0; }
}
.erp-book-side { position: sticky; top: 8px; }
.erp-book-summary {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 14px;
}
.erp-book-summary h4 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #111827;
}
.erp-book-sum-line {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.8;
  min-height: 48px;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.erp-book-sum-total {
  font-size: 14px;
  color: #374151;
}
.erp-book-sum-total b {
  font-size: 22px;
  color: #ea580c;
  margin-left: 6px;
}
.erp-book-sum-tip { font-size: 11px; color: #9ca3af; margin-top: 8px; }
.erp-book-submit {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.erp-book-submit-total {
  font-size: 14px;
  color: #374151;
  margin-right: auto;
}
.erp-book-submit-total strong {
  font-size: 22px;
  color: #ea580c;
  margin-left: 6px;
}
.erp-book-agree { font-size: 12px; color: #4b5563; width: 100%; }
@media (max-width: 900px) {
  .erp-book-layout { grid-template-columns: 1fr; }
  .erp-book-side { position: static; }
  .erp-book-grid2 { grid-template-columns: 1fr; }
}

/* 计调工作台：左列表 + 右编辑 */
.erp-split-work {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: start;
}
.erp-split-work.two { grid-template-columns: 300px minmax(0, 1fr); }
/* 资源总表：左侧略窄，贴近线路设计侧栏体量 */
.erp-split-work.two.erp-ledger-split { grid-template-columns: 260px minmax(0, 1fr); }
.erp-split-side, .erp-split-kb {
  position: sticky;
  top: 8px;
}
.erp-side-list {
  max-height: calc(100vh - 160px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.erp-side-item {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
.erp-side-item:hover { border-color: #f9a8d4; }
.erp-side-item.is-on {
  border-color: #ec4899;
  background: #fdf2f8;
  box-shadow: 0 0 0 2px rgba(236,72,153,.12);
}
.erp-side-item .c { font-size: 11px; font-weight: 700; color: #ec4899; }
.erp-side-item .t { font-size: 13px; font-weight: 600; color: #0f172a; margin-top: 2px; line-height: 1.35; }
.erp-side-item .m { font-size: 11px; color: #64748b; margin-top: 4px; }

.erp-side-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  overflow: visible;
  flex-shrink: 0;
  min-height: 72px;
}
.erp-side-card:hover { border-color: #f9a8d4; }
.erp-side-card.is-on {
  border-color: #ec4899;
  background: #fdf2f8;
  box-shadow: 0 0 0 2px rgba(236,72,153,.12);
}
.erp-side-main {
  appearance: none;
  border: 0;
  background: transparent;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 72px;
  padding: 10px 10px 10px 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: block;
  height: auto;
}
.erp-side-main .c { font-size: 11px; font-weight: 700; color: #ec4899; }
.erp-side-main .t {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-top: 2px;
  line-height: 1.4;
  word-break: break-word;
  white-space: normal;
}
.erp-side-main .m {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
  word-break: break-word;
  white-space: normal;
}
.erp-side-acts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  padding: 8px;
  border-left: 1px solid #f1f5f9;
  background: #fafbfc;
  flex: 0 0 auto;
  align-self: stretch;
}
.erp-side-card.is-on .erp-side-acts { background: #fff7fb; border-left-color: #fce7f3; }
.erp-side-act {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  line-height: 1.35;
  height: auto;
  min-height: 28px;
}
.erp-side-act:hover { border-color: #94a3b8; background: #f8fafc; }
.erp-side-act.is-danger { color: #b91c1c; border-color: #fecaca; }
.erp-side-act.is-danger:hover { background: #fef2f2; border-color: #f87171; }
.erp-side-act:disabled { opacity: .55; cursor: wait; }
.erp-edit-tip {
  font-size: 13px;
  color: #334155;
  margin-bottom: 10px;
  font-weight: 600;
}
.erp-kb-hit {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  background: #fff;
}
.erp-kb-hit .t { font-size: 13px; font-weight: 600; color: #0f172a; }
.erp-kb-hit .m { font-size: 11px; color: #64748b; margin-top: 4px; }

.erp-kb-page { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.erp-kb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.erp-kb-searchbar {
  flex: 1;
  min-width: 260px;
  max-width: 560px;
}
.erp-kb-toolbar-meta { font-size: 12px; color: #64748b; }
.erp-kb-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}
.erp-kb-list {
  max-height: calc(100vh - 200px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}
.erp-kb-row {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}
.erp-kb-row:hover { border-color: #a5b4fc; }
.erp-kb-row.is-on {
  border-color: #6366f1;
  background: #eef2ff;
  box-shadow: 0 0 0 2px rgba(99,102,241,.12);
}
.erp-kb-row .t {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  word-break: break-word;
}
.erp-kb-row .m {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.45;
}
.erp-kb-main { min-width: 0; }
.erp-kb-detail h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  color: #0f172a;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}
.erp-kb-detail-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.erp-kb-detail-hd .erp-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.erp-kb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: #475569;
  margin-bottom: 14px;
}
.erp-kb-detail .erp-pd-section { margin-top: 4px; }
@media (max-width: 960px) {
  .erp-kb-layout { grid-template-columns: 1fr; }
  .erp-kb-list { max-height: 320px; }
}

.erp-sec-h { margin: 16px 0 4px; font-size: 14px; color: #0f172a; }
.erp-edit-hint { margin: 0 0 10px; font-size: 12px; color: #64748b; }

.erp-day-editor { margin-bottom: 12px; }
.erp-day-editor-tools { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; align-items: center; }
.erp-day-smart {
  display: none;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  background: #eef2ff;
}
.erp-day-smart.is-open { display: block; }
.erp-day-smart-hd {
  font-size: 14px;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 6px;
}
.erp-day-smart-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #6366f1;
  line-height: 1.5;
}
.erp-day-smart textarea {
  width: 100%;
  min-height: 220px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
  background: #fff;
  font-family: inherit;
}
.erp-day-smart-file {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.erp-day-smart-file-lab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #4338ca;
  font-weight: 600;
  cursor: pointer;
}
.erp-day-smart-file-lab input[type="file"] {
  font-size: 12px;
  max-width: 240px;
}
.erp-day-smart-fname { font-size: 12px; color: #64748b; }
.erp-day-smart-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.erp-day-edit {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fafbfc;
}
.erp-day-edit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.erp-field-tip {
  margin-top: 4px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}
.erp-day-pick { margin-top: 2px; }
.erp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.erp-chip {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.erp-chip:hover { border-color: #fb7185; color: #9f1239; }
.erp-chip.is-on {
  background: #fff1f2;
  border-color: #e11d48;
  color: #9f1239;
  font-weight: 600;
}
.erp-day-trans-note {
  margin-top: 6px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  font-family: inherit;
}
[data-pick="meals"] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 旅品汇式按天行程展示 */
.erp-itin { display: flex; flex-direction: column; gap: 18px; }
.erp-itin-day {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
}
.erp-itin-day:last-child { border-bottom: 0; }
.erp-itin-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.erp-itin-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 28px;
  padding: 0 10px;
  background: #db2777;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  flex-shrink: 0;
}
.erp-itin-title {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #9f1239;
  line-height: 1.4;
}
.erp-itin-metas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.erp-itin-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}
.erp-itin-ic {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #db2777;
  flex-shrink: 0;
  position: relative;
}
.erp-itin-ic::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: #fff;
  opacity: .9;
  clip-path: polygon(20% 40%, 40% 40%, 40% 20%, 60% 20%, 60% 40%, 80% 40%, 80% 60%, 60% 60%, 60% 80%, 40% 80%, 40% 60%, 20% 60%);
}
.erp-itin-ic-tr::after { clip-path: polygon(10% 60%, 30% 30%, 70% 30%, 90% 60%, 75% 60%, 75% 70%, 25% 70%, 25% 60%); }
.erp-itin-ic-ml::after { clip-path: polygon(20% 20%, 35% 20%, 35% 55%, 65% 20%, 80% 20%, 80% 80%, 65% 80%, 65% 45%, 35% 80%, 20% 80%); }
.erp-itin-ic-ht::after { clip-path: polygon(50% 10%, 90% 45%, 75% 45%, 75% 90%, 25% 90%, 25% 45%, 10% 45%); }
.erp-itin-ic-sp::after { clip-path: polygon(10% 80%, 30% 40%, 45% 55%, 65% 25%, 90% 80%); }
.erp-itin-k { color: #db2777; font-weight: 600; min-width: 2.5em; }
.erp-itin-v { flex: 1; line-height: 1.5; }
.erp-itin-chip {
  display: inline-block;
  margin: 0 6px 4px 0;
  padding: 2px 8px;
  background: #fce7f3;
  color: #9d174d;
  border-radius: 4px;
  font-size: 12px;
}
.erp-itin-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #334155;
  margin: 8px 0;
  white-space: pre-wrap;
}
.erp-itin-extra { margin-top: 10px; font-size: 13px; color: #475569; }
.erp-itin-extra-h { font-weight: 700; color: #9f1239; margin-bottom: 4px; }

/* 门店采购：月历 */
.erp-cal-month {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}
.erp-cal-hd {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.erp-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}
.erp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.erp-cal-cell {
  min-height: 64px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 4px;
  background: #f8fafc;
  font-family: inherit;
}
.erp-cal-cell.empty { background: transparent; border-color: transparent; }
.erp-cal-cell .n { font-size: 12px; font-weight: 600; color: #0f172a; }
.erp-cal-cell .n.muted { color: #cbd5e1; font-weight: 500; }
.erp-cal-cell.has-group {
  appearance: none;
  cursor: pointer;
  background: #fff;
  border-color: #f9a8d4;
  text-align: left;
}
.erp-cal-cell.has-group:hover { box-shadow: 0 0 0 2px rgba(225,29,72,.18); }
.erp-cal-cell.has-group.is-on { border-color: #e11d48; background: #fff1f2; }
.erp-cal-cell.has-group .p { font-size: 12px; font-weight: 700; color: #e11d48; margin-top: 2px; }
.erp-cal-cell.has-group .s { font-size: 10px; color: #059669; }
.erp-pd-cal .erp-cal-cell {
  min-height: 52px;
  border-radius: 4px;
  padding: 2px;
}
.erp-pd-cal .erp-cal-cell.has-group {
  background: #fff7ed;
  border-color: #fdba74;
}
.erp-pd-cal .erp-cal-cell.has-group.is-on {
  background: #ffedd5;
  border-color: #e11d48;
}
.erp-pd-cal .erp-cal-cell .n { font-size: 11px; }
.erp-pd-cal .erp-cal-cell.has-group .p { font-size: 11px; }
.erp-pd-cal .erp-cal-cell.has-group .s { font-size: 10px; }
@media (max-width: 1100px) {
  .erp-split-work { grid-template-columns: 1fr; }
  .erp-split-side, .erp-split-kb { position: static; }
  .erp-side-list { max-height: min(50vh, 420px); }
}

.erp-grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px) {
  .b2b-body { grid-template-columns: 1fr; }
  .erp-shell { grid-template-columns: 1fr; }
  .erp-rail {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px;
    min-height: auto;
  }
  .erp-rail-brand { width: 100%; border-bottom: 0; padding-bottom: 8px; }
  .erp-rail-step { width: 100%; }
  .erp-grid-2 { grid-template-columns: 1fr; }
  .b2b-topbar { height: auto; min-height: 56px; flex-wrap: wrap; padding: 8px 12px; }
  .b2b-topnav { width: 100%; order: 3; }
}

.erp-card {
  background: var(--erp-surface);
  border: 1px solid var(--erp-line);
  border-radius: var(--erp-radius);
  box-shadow: var(--erp-shadow);
  overflow: hidden;
}

.erp-card-hd {
  padding: 12px 16px;
  border-bottom: 1px solid var(--erp-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.erp-card-hd h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.erp-card-bd { padding: 14px 16px; }

.erp-table-wrap { overflow: auto; }

.erp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.erp-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--erp-muted);
  letter-spacing: .03em;
  border-bottom: 1px solid var(--erp-line);
  background: #f8fafc;
  white-space: nowrap;
}

.erp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.erp-table tr:hover td { background: #f8fafc; }

.erp-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.erp-badge-teal { background: var(--erp-teal-soft); color: var(--erp-teal-deep); }
.erp-badge-amber { background: var(--erp-amber-soft); color: var(--erp-amber); }
.erp-badge-slate { background: #f1f5f9; color: #475569; }
.erp-badge-ok { background: #d1fae5; color: var(--erp-ok); }
.erp-badge-danger { background: #fee2e2; color: var(--erp-danger); }

.erp-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin-bottom: 8px;
}

.erp-form-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.erp-form-row.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.erp-form-row.cols-1 { grid-template-columns: 1fr; }
/* 付采购单：采购单 / 金额 / 方式 同一行，采购单略宽 */
.erp-form-row.erp-pay-form-row {
  grid-template-columns: minmax(0, 2.4fr) minmax(110px, 0.7fr) minmax(120px, 0.7fr);
  align-items: end;
}
.erp-form-row .erp-field.span-2 { grid-column: span 2; }
.erp-form-row.cols-3 .erp-field.span-2 { grid-column: span 2; }

.erp-form-sec {
  margin: 0 0 14px;
  padding: 12px 12px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.erp-form-sec-t {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.erp-form-sec .erp-form-row { margin-bottom: 0; }
.erp-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #334155;
  margin-top: 6px;
}
.erp-field input.is-readonly,
.erp-field input[readonly] {
  background: #f1f5f9;
  color: #64748b;
  cursor: default;
}

.erp-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--erp-muted);
  margin-bottom: 3px;
}

.erp-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: var(--erp-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  min-height: 2.6em;
  overflow-y: hidden;
  resize: vertical;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.erp-field input,
.erp-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: var(--erp-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.erp-field input:focus,
.erp-field select:focus,
.erp-field textarea:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .18);
}

.erp-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.erp-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.erp-btn:hover { transform: translateY(-1px); }
.erp-btn:active { transform: translateY(0); }

.erp-btn-primary {
  background: var(--erp-teal);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, .25);
}
.erp-btn-primary:hover { background: var(--erp-teal-deep); }

.erp-btn-ghost {
  background: #fff;
  color: var(--erp-ink);
  border: 1px solid var(--erp-line);
}
.erp-btn-ghost:hover { background: #f8fafc; }

.erp-btn-warn {
  background: #ea580c;
  color: #fff;
}

.erp-btn-danger {
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.erp-btn-danger:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.erp-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--erp-muted);
  font-size: 13px;
}

.erp-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .erp-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .erp-form-row,
  .erp-form-row.cols-3,
  .erp-form-row.cols-4,
  .erp-form-row.erp-pay-form-row { grid-template-columns: 1fr; }
  .erp-form-row .erp-field.span-2,
  .erp-form-row.cols-3 .erp-field.span-2 { grid-column: span 1; }
}

.erp-modal[hidden] { display: none !important; }
/* 须高于 B2B 全屏壳(12000)，否则财务对账等页里弹窗点开看不见 */
.erp-modal {
  position: fixed;
  inset: 0;
  z-index: 13100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.erp-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.erp-modal-panel {
  position: relative; z-index: 1; width: min(520px, 92vw); max-height: 86vh; overflow: auto;
  background: #fff; border-radius: 12px; padding: 18px 18px 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}
.erp-modal-panel h3 { margin: 0 0 8px; font-size: 16px; }
.erp-modal-panel.erp-res-modal {
  width: min(1100px, 96vw);
  max-width: 1100px;
  max-height: 92vh;
}
.erp-media-block { margin: 12px 0 16px; padding: 12px 14px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; }
.erp-media-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.erp-file-btn { cursor: pointer; display: inline-flex; align-items: center; }
.erp-media-ph {
  margin-top: 8px; padding: 18px 12px; color: #94a3b8; font-size: 12px;
  border: 1px dashed #e2e8f0; border-radius: 8px; text-align: center; background: #fff;
}
.erp-gallery-prev {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.erp-gal-item {
  position: relative; width: 88px; height: 66px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--erp-line); background: #fff;
}
.erp-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.erp-gal-del {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0;
  border-radius: 50%; background: rgba(15, 23, 42, 0.72); color: #fff; cursor: pointer; line-height: 1;
}
.erp-st-inline { display: flex; gap: 8px; align-items: center; }
.erp-st-inline select { flex: 1; min-width: 0; }
.erp-st-inline .erp-btn { flex-shrink: 0; white-space: nowrap; padding: 8px 12px; }
.erp-preview-gallery {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0;
}
.erp-preview-gallery img {
  width: 120px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--erp-line);
}
.erp-preview-gallery img.is-cover { width: 200px; height: 120px; }
.erp-pd-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.erp-pd-thumbs img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; border: 1px solid var(--erp-line); }
.erp-pd-poster img { display: block; max-width: 100%; margin-bottom: 10px; border-radius: 8px; }

.erp-pipeline-kpi .erp-pipeline-item {
  cursor: pointer;
  border: 1px solid transparent;
  background: inherit;
  text-align: inherit;
  width: 100%;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.erp-pipeline-kpi .erp-pipeline-item:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15);
}

.erp-kpi {
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: 10px;
  padding: 12px 14px;
}

.erp-kpi .n {
  font-size: 22px;
  font-weight: 700;
  color: var(--erp-teal-deep);
  line-height: 1.1;
}

.erp-kpi .l {
  font-size: 11px;
  color: var(--erp-muted);
  margin-top: 4px;
}

.erp-pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  margin: 0;
}

.erp-type-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.erp-type-tab {
  border: 1px solid var(--erp-line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--erp-muted);
}

.erp-type-tab.is-on {
  background: var(--erp-teal);
  border-color: var(--erp-teal);
  color: #fff;
  font-weight: 600;
}

.erp-res-list-search {
  margin: 0 0 10px;
}
.erp-res-list-search input {
  width: 100%;
  max-width: 320px;
  padding: 7px 10px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  font: inherit;
}
.erp-res-form-title {
  font-weight: 650;
  font-size: 13px;
  margin: 0 0 10px;
  color: #0f172a;
}
.erp-table tr.erp-row-click { cursor: pointer; }
.erp-table tr.erp-row-click:hover { background: #f0fdfa; }
.erp-table tr.erp-row-click.is-on { background: #ccfbf1; }

.erp-ra-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  grid-column: span 2;
}
.erp-ra-pick-lab {
  font-size: 12px;
  font-weight: 500;
  color: var(--erp-muted);
}
.erp-ra-pick-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.erp-ra-sq {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
}
.erp-ra-sq[readonly] {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #0f766e;
}
.erp-ra-pick-clear {
  flex: 0 0 auto;
  padding: 6px 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}
.erp-ra-suggest {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 2px);
  z-index: 40;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.erp-ra-sug-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  color: #334155;
}
.erp-ra-sug-item:hover { background: #f8fafc; }
.erp-ra-sug-item:last-child { border-bottom: 0; }
.erp-ra-sug-name {
  font-size: 13px;
  font-weight: 400;
  color: #0f172a;
}
.erp-ra-sug-meta {
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
}
.erp-inv-drop {
  border: 1.5px dashed #94a3b8;
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.erp-inv-drop:hover,
.erp-inv-drop.is-drag {
  border-color: var(--erp-teal);
  background: #f0fdfa;
}
.erp-inv-drop.is-busy {
  opacity: .7;
  pointer-events: none;
}
.erp-inv-drop.has-preview {
  text-align: left;
  padding: 12px;
}
.erp-inv-drop-icon {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  color: var(--erp-teal);
  margin-bottom: 6px;
}
.erp-inv-drop-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
.erp-inv-drop-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}
.erp-inv-drop-filled {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.erp-inv-drop-filled[hidden] {
  display: none !important;
}
.erp-inv-drop-filled img,
.erp-inv-preview-img {
  width: 132px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
  cursor: zoom-in;
}
.erp-inv-preview-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.erp-inv-thumb-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  vertical-align: middle;
  line-height: 0;
}
.erp-inv-thumb {
  width: 42px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
  display: block;
}
.erp-inv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 13200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.erp-inv-lightbox-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  cursor: zoom-out;
}
.erp-inv-lightbox-img {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  background: #fff;
}
.erp-inv-lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.erp-inv-lightbox-close:hover { background: #fff; }
.erp-inv-layout {
  grid-template-columns: 1.55fr .85fr;
}
.erp-inv-layout .erp-table td:last-child,
.erp-inv-layout .erp-table th:last-child {
  width: 78px;
  white-space: nowrap;
  text-align: right;
  padding-right: 8px;
}
.erp-inv-acts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}
.erp-inv-edit {
  border: 0;
  background: transparent;
  color: var(--erp-teal);
  font-size: 12px;
  padding: 2px 4px;
  cursor: pointer;
}
.erp-inv-edit:hover { text-decoration: underline; }
.erp-inv-del {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  width: 22px;
  height: 22px;
  padding: 0;
  cursor: pointer;
  border-radius: 4px;
}
.erp-inv-del:hover {
  color: #dc2626;
  background: #fef2f2;
}
@media (max-width: 980px) {
  .erp-inv-layout { grid-template-columns: 1fr; }
}

.erp-chain-ol {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.7;
  font-size: 13px;
  color: #334155;
}
.erp-chain-ol li { margin: 4px 0; }
.erp-kpi-row { flex-wrap: wrap; }

/* 登录：CRM / B2B 工作台切换 */
.login-workbench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}
.login-wb-opt {
  cursor: pointer;
  margin: 0;
}
.login-wb-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.login-wb-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  transition: border-color .15s, box-shadow .15s, background .15s;
  text-align: center;
  justify-content: center;
  min-height: 44px;
}
.login-wb-card strong {
  font-size: 13px;
  color: #0f172a;
  font-weight: 700;
}
.login-wb-card em {
  font-style: normal;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}
.login-wb-opt input:checked + .login-wb-card {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.18);
}
.workbench-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: calc(100% - 16px);
  margin: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  color: #334155;
}
.workbench-switcher .wb-action {
  color: #0d9488;
  font-weight: 600;
  white-space: nowrap;
}
.workbench-switcher[data-mode="b2b"] {
  border-color: #99f6e4;
  background: #f0fdfa;
}
html[data-workbench="b2b"] .nav-item[data-page="erp_console"] {
  display: flex !important;
}

/* —— 线路订单（旅品汇式） —— */
.erp-orders { max-width: 100%; }
.erp-orders-hd h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #111827;
}
.erp-orders-path-tip {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
}
.erp-g-line-cell { line-height: 1.35; }
.erp-g-line-code {
  font-size: 11px;
  color: #64748b;
  font-family: ui-monospace, Consolas, monospace;
}
.erp-g-line-name {
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
}

/* 退改申请 */
.erp-rf-meta {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}
.erp-rf-tourists {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.erp-rf-tourist-hd {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}
.erp-rf-tourist {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px dashed #f1f5f9;
}
.erp-rf-tourist:last-child { border-bottom: 0; }
.erp-rf-tourist .n { font-weight: 600; color: #0f172a; }
.erp-rf-tourist .m { color: #64748b; font-size: 12px; }
.erp-rf-list tbody tr { cursor: pointer; }
.erp-rf-list tbody tr:hover { background: #f8fafc; }
.erp-rf-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.erp-rf-hd h3 { margin: 0; font-size: 16px; }
.erp-rf-kv {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
}
.erp-rf-kv span { color: #64748b; }
.erp-rf-kv b { font-weight: 600; color: #0f172a; }
.erp-rf-section { margin-top: 12px; }
.erp-rf-section .tt {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}
.erp-rf-detail-tourists {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
}
.erp-rf-ft {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.erp-rf-panel { width: min(560px, 94vw); }
.erp-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
}
.erp-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #0369a1;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.erp-rf-work td { vertical-align: top; }
.erp-rf-row-main { min-width: 240px; }
.erp-rf-row-title { font-size: 13px; color: #0f172a; margin-bottom: 4px; }
.erp-rf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.erp-rf-meta b { color: #334155; font-weight: 600; }
.erp-rf-meta .muted { color: #94a3b8; }
.erp-rf-sub {
  margin-top: 4px;
  font-size: 11px;
  color: #94a3b8;
  max-width: 180px;
  word-break: break-word;
}
.erp-rf-ops {
  white-space: nowrap;
}
.erp-orders-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid #e11d48;
  margin-bottom: 12px;
  background: #fff;
}
.erp-orders-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.erp-orders-tab.is-on {
  background: #e11d48;
  color: #fff;
  font-weight: 700;
}
.erp-orders-tab:hover:not(.is-on) { color: #e11d48; }
.erp-orders-filter {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 14px 14px 10px;
  margin-bottom: 14px;
}
.erp-orders-filter.is-collapsed .erp-orders-filter-grid,
.erp-orders-filter.is-collapsed .erp-orders-filter-act { display: none; }
.erp-orders-collapse {
  position: absolute;
  right: 12px;
  top: 10px;
  appearance: none;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.erp-orders-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  padding-right: 48px;
}
.erp-orders-fg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #374151;
}
.erp-orders-fg label { min-width: 64px; color: #6b7280; }
.erp-orders-fg input[type="text"],
.erp-orders-fg input[type="date"],
.erp-orders-fg select {
  flex: 1;
  min-width: 0;
  height: 30px;
  border: 1px solid #d1d5db;
  padding: 0 8px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
}
.erp-orders-fg span { color: #9ca3af; }
.erp-orders-check { padding-top: 4px; }
.erp-orders-filter-act {
  text-align: center;
  margin-top: 12px;
}
.erp-orders-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
}
.erp-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 1180px;
}
.erp-orders-table th {
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.erp-orders-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: middle;
}
.erp-ord-no { font-variant-numeric: tabular-nums; color: #111827; }
.erp-ord-product {
  color: #e11d48;
  text-decoration: none;
  font-weight: 600;
}
.erp-ord-product:hover { text-decoration: underline; }
.erp-ord-contract .erp-ord-sub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.erp-ord-st { color: #111827; }
.erp-ord-ops {
  position: relative;
  white-space: nowrap;
}
.erp-ord-detail,
.erp-ord-more {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e11d48;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  padding: 0 2px;
}
.erp-ord-more { color: #9ca3af; margin-left: 2px; }
.erp-ord-menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
  min-width: 108px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 0;
  max-height: 180px;
  overflow-y: auto;
}
.erp-ord-menu button {
  appearance: none;
  display: block;
  width: 100%;
  text-align: center;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  color: #be123c;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px;
}
.erp-ord-menu button:last-child { border-bottom: 0; }
.erp-ord-menu button:hover { background: #fff1f2; }

.erp-cancel-panel { width: min(560px, 94vw); padding: 0; }
.erp-cancel-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #eef2f7;
}
.erp-cancel-hd h3 { margin: 0; font-size: 16px; font-weight: 600; }
.erp-cancel-x {
  appearance: none; border: 0; background: transparent; font-size: 22px;
  line-height: 1; color: #94a3b8; cursor: pointer; padding: 0 4px;
}
.erp-cancel-tip {
  margin: 14px 18px 8px; color: #ef4444; font-size: 13px;
}
.erp-cancel-row {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 10px 16px; padding: 10px 18px; font-size: 13px;
}
.erp-cancel-row .lab {
  width: 72px; flex-shrink: 0; color: #64748b; padding-top: 2px;
}
.erp-cancel-radio {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: #334155;
}
.erp-cancel-checks {
  display: flex; flex-direction: column; gap: 8px;
}
.erp-cancel-checks label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.erp-cancel-desc { align-items: stretch; }
.erp-cancel-ta-wrap { flex: 1; min-width: 0; }
.erp-cancel-ta-wrap textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #e2e8f0;
  border-radius: 6px; padding: 8px 10px; resize: vertical; font: inherit;
}
.erp-cancel-remain { margin-top: 6px; color: #94a3b8; font-size: 12px; text-align: right; }
.erp-cancel-ft {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 18px 16px; border-top: 1px solid #eef2f7;
}
.erp-muted { color: #94a3b8; font-size: 12px; }
@media (max-width: 900px) {
  .erp-orders-filter-grid { grid-template-columns: 1fr; padding-right: 0; }
}

/* —— 订单确认详情 / 线路快照 —— */
.erp-od { max-width: 1100px; margin: 0 auto; }
.erp-od-title {
  margin: 8px 0 14px;
  font-size: 18px;
  color: #111827;
}
.erp-od-sec { margin-bottom: 14px; background: #fff; border: 1px solid #e5e7eb; }
.erp-od-sec-h {
  background: #e11d48;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
}
.erp-od-sec-b { padding: 12px 14px 14px; }
.erp-od-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #374151;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e5e7eb;
}
.erp-od-name {
  color: #e11d48;
  font-weight: 700;
  text-decoration: none;
}
.erp-od-name:hover { text-decoration: underline; }
.erp-od-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  font-size: 13px;
}
.erp-od-kv {
  display: flex;
  gap: 8px;
  align-items: baseline;
  line-height: 1.5;
}
.erp-od-kv .k {
  flex: 0 0 110px;
  color: #6b7280;
  text-align: right;
}
.erp-od-kv .v { color: #111827; flex: 1; min-width: 0; }
.erp-od-st { color: #e11d48; }
.erp-od-linkbtn,
.erp-od-alink {
  appearance: none;
  border: 0;
  background: #7c3aed;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  cursor: pointer;
  font-family: inherit;
  margin-left: 6px;
  text-decoration: none;
  display: inline-block;
}
.erp-od-alink { background: transparent; color: #e11d48; padding: 0; }
.erp-od-table-wrap { overflow-x: auto; }
.erp-od-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 900px;
}
.erp-od-table th {
  background: #f3f4f6;
  padding: 8px 6px;
  text-align: left;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.erp-od-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #f3f4f6;
  color: #111827;
}
.erp-od-idn { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.erp-od-remark {
  margin-top: 10px;
  font-size: 13px;
  color: #4b5563;
}
.erp-od-fee {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.erp-od-fee-block {
  border: 1px solid #e5e7eb;
  padding: 12px;
  font-size: 13px;
  color: #374151;
  line-height: 1.8;
}
.erp-od-fee-block h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #111827;
}
.erp-od-fee-total {
  margin-top: 8px;
  text-align: right;
  font-weight: 700;
  color: #ea580c;
}
.erp-od-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 16px 0 8px;
}
.erp-snap { max-width: 900px; margin: 0 auto; }
.erp-snap-badge {
  display: inline-block;
  font-size: 12px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 4px 10px;
  margin-bottom: 8px;
}
@media (max-width: 800px) {
  .erp-od-grid,
  .erp-od-fee { grid-template-columns: 1fr; }
  .erp-od-kv .k { flex-basis: 88px; text-align: left; }
}

/* ---- 运营往来 run_mode panel (erp_runmode_panel.js V2) ---- */
.erp-rm-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 1200;
  background: #2f6fed; color: #fff; border: 0; border-radius: 20px;
  padding: 9px 16px; font-size: 13px; box-shadow: 0 2px 10px rgba(0,0,0,.25);
  cursor: pointer;
}
.erp-rm-drawer {
  position: fixed; right: 18px; bottom: 64px; z-index: 1201;
  width: 340px; max-height: 70vh; overflow: auto; background: #fff;
  border: 1px solid #dfe3ec; border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,.18); padding: 10px 12px;
  transform: translateY(8px); opacity: 0; pointer-events: none;
  transition: .16s ease; font-size: 13px; color: #24292f;
}
.erp-rm-drawer.is-open { transform: none; opacity: 1; pointer-events: auto; }
.erp-rm-bar { font-weight: 700; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.erp-rm-x { border: 0; background: transparent; font-size: 18px; cursor: pointer; color: #57606a; }
.erp-rm-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.erp-rm-row input[type="number"] { width: 130px; padding: 4px 8px; border: 1px solid #cfd4dc; border-radius: 6px; }
.erp-rm-btn {
  border: 1px solid #cfd4dc; background: #f6f8fa; border-radius: 14px; padding: 3px 10px;
  font-size: 12px; cursor: pointer; color: #24292f;
}
.erp-rm-btn:hover { background: #eaeef2; }
.erp-rm-card { border-top: 1px solid #eef1f5; padding-top: 6px; }
.erp-rm-sum { font-weight: 600; margin: 4px 0; }
.erp-rm-list .erp-rm-row { border: 1px solid #eef1f5; border-radius: 8px; padding: 6px 8px; align-items: stretch; }
.erp-rm-txt { flex: 1; min-width: 150px; line-height: 1.5; }
.erp-rm-dim { color: #6e7781; font-size: 12px; }
.erp-rm-ops { display: flex; gap: 6px; align-items: center; }
.erp-rm-empty { color: #8c959f; font-size: 12px; padding: 4px 0; }

/* ===== 资源总表：整团条带 + 日卡 ===== */
.erp-res-modal { max-width: 1100px; width: 96%; max-height: 92vh; overflow: auto; }
.erp-res-board { margin-top: 8px; }
.erp-res-group-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid #db2777;
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 100%);
  box-shadow: 0 1px 2px rgba(219, 39, 119, 0.08);
}
.erp-res-group-bar-l {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(100%, 420px);
  flex: 1;
}
.erp-res-group-bar-l label {
  font-size: 14px;
  color: #9d174d;
}
.erp-res-gid-select {
  width: 100%;
  max-width: 520px;
  height: 40px;
  border: 1px solid #f9a8d4;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
  color: #0f172a;
}
.erp-res-gid-select:focus {
  outline: none;
  border-color: #db2777;
  box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.15);
}
.erp-res-group-bar-r {
  font-size: 13px;
  padding-bottom: 8px;
}
.erp-res-group-empty {
  font-size: 13px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px dashed #fdba74;
  border-radius: 8px;
  padding: 10px 12px;
}
.erp-res-board-meta { font-size: 13px; color: #334155; margin-bottom: 12px; line-height: 1.5; }
.erp-res-mode-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.erp-res-mode-banner.self {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.erp-res-mode-banner.wholesale {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.erp-res-mode-banner.tip {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}
.erp-res-po-ok {
  font-size: 11px;
  color: #047857;
  background: #d1fae5;
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}
.erp-res-section-t { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.erp-res-section-t .muted { font-weight: 400; color: #64748b; margin-left: 6px; }
.erp-res-tour-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.erp-res-tour-slot {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  min-height: 110px;
}
.erp-res-slot-hd {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700; color: #1e293b; margin-bottom: 8px;
}
.erp-res-slot-bd { display: flex; flex-direction: column; gap: 6px; }
.erp-res-empty { color: #94a3b8; font-size: 12px; padding: 4px 0; }
.erp-res-chip {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 6px 8px; font-size: 12px;
}
.erp-res-chip-main { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.erp-res-chip-meta {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-top: 4px; color: #64748b;
}
.erp-res-chip-price { font-weight: 700; color: #0f172a; margin-left: auto; }
.erp-res-day-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 12px; margin-bottom: 10px;
}
.erp-res-day-hd {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px; gap: 10px;
}
.erp-res-day-sum { font-size: 12px; color: #475569; white-space: nowrap; }
.erp-res-day-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.erp-res-day-col {
  background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 8px;
  min-height: 72px;
}
.erp-res-day-col.span-all { grid-column: 1 / -1; }
.erp-res-day-col-hd {
  font-size: 11px; font-weight: 700; color: #475569; margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center;
}
.erp-res-day-col-bd { display: flex; flex-direction: column; gap: 6px; }
.erp-res-add {
  margin-top: 8px; padding: 8px; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px;
}
.erp-res-add-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
}
.erp-res-add-grid label {
  display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #64748b;
}
.erp-res-add-grid label.span2 { grid-column: span 2; }
.erp-res-add-grid .erp-ra-pick { grid-column: span 2; }
.erp-res-add-grid input, .erp-res-add-grid select {
  border: 1px solid #cbd5e1; border-radius: 6px; padding: 4px 6px; font-size: 12px;
}
.erp-res-add-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px;
}
@media (max-width: 960px) {
  .erp-res-tour-strip, .erp-res-day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .erp-res-tour-strip, .erp-res-day-grid, .erp-res-add-grid { grid-template-columns: 1fr; }
  .erp-res-add-grid label.span2 { grid-column: auto; }
}

.erp-res-day-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.erp-res-day-col { min-height: 96px; display: flex; flex-direction: column; gap: 6px; }
.erp-res-day-col-hd i.muted { font-style: normal; font-weight: 400; color: #94a3b8; }
.erp-res-add-foot {
  width: 100%; justify-content: center; border-style: dashed !important;
  color: #334155 !important; font-size: 12px !important; padding: 4px 6px !important;
}
.erp-res-add-title { font-size: 12px; font-weight: 700; margin-bottom: 6px; color: #0f172a; }
.erp-res-newlib { margin-top: 8px; padding: 8px; background: #f1f5f9; border-radius: 8px; }
.erp-res-newlib-fields { margin-top: 8px; }
@media (max-width: 1100px) {
  .erp-res-day-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.erp-res-tour-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.erp-res-day-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .erp-res-tour-strip.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 财务对账总表 42 列横向滚动 */
.erp-recon-wide-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.erp-recon-wide-wrap .erp-table-wrap {
  overflow: visible;
}
.erp-recon-wide-wrap .erp-table {
  min-width: 3600px;
  font-size: 11px;
}
.erp-recon-wide-wrap .erp-table th,
.erp-recon-wide-wrap .erp-table td {
  white-space: nowrap;
  padding: 6px 8px;
}
.erp-recon-wide-wrap .erp-table th:nth-child(-n+4),
.erp-recon-wide-wrap .erp-table td:nth-child(-n+4) {
  position: sticky;
  background: #fff;
  z-index: 2;
}
.erp-recon-wide-wrap .erp-table th:nth-child(1),
.erp-recon-wide-wrap .erp-table td:nth-child(1) { left: 0; min-width: 44px; }
.erp-recon-wide-wrap .erp-table th:nth-child(2),
.erp-recon-wide-wrap .erp-table td:nth-child(2) { left: 44px; min-width: 110px; }
.erp-recon-wide-wrap .erp-table th:nth-child(3),
.erp-recon-wide-wrap .erp-table td:nth-child(3) { left: 154px; min-width: 140px; }
.erp-recon-wide-wrap .erp-table th:nth-child(4),
.erp-recon-wide-wrap .erp-table td:nth-child(4) { left: 294px; min-width: 88px; box-shadow: 4px 0 6px -4px rgba(15,23,42,.18); }
.erp-recon-wide-wrap .erp-table thead th:nth-child(-n+4) {
  background: #f1f5f9;
  z-index: 3;
}

/* 对账总表：表头操作 + 全屏层 */
.erp-recon-hd-acts {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.erp-card-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.erp-recon-fs {
  position: fixed;
  inset: 0;
  z-index: 13050;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}
.erp-recon-fs[hidden] { display: none !important; }
.erp-recon-fs-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #0f766e;
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}
.erp-recon-fs-title { font-size: 15px; font-weight: 700; }
.erp-recon-fs-title .muted { color: rgba(255,255,255,.75); font-weight: 400; font-size: 12px; margin-left: 8px; }
.erp-recon-fs-acts { display: flex; gap: 8px; }
.erp-recon-fs-acts .erp-btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.erp-recon-fs-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 12px 16px 20px;
  background: #fff;
}
body.erp-recon-fs-on { overflow: hidden; }
