* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #222;
}

.container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 12px clamp(12px, 2vw, 28px) 20px;
  box-sizing: border-box;
}

h1 {
  margin: 0;
}

.hint {
  color: #6b7280;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
  border: 1px solid #e5e7eb;
}

.login-only.card {
  max-width: 480px;
  margin: 24px auto;
}

label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 14px;
  color: #374151;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}

textarea {
  min-height: 70px;
  resize: vertical;
}

.upload-item {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
}

/* —— ERP 表格式布局（与注册审核统一表头风格） —— */
.erp-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #eef5fc 0%, #f8fbfe 55%, #f3f6fa 100%);
  border: 1px solid #d9e8f5;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(64, 158, 255, 0.06);
}

.erp-toolbar--compact {
  align-items: center;
}

.erp-toolbar-filters {
  margin: 0;
}

.erp-toolbar-actions button {
  margin-top: 0;
}

.erp-page-title {
  display: inline-block;
  margin: 0;
  padding: 8px 16px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(64, 158, 255, 0.28);
  line-height: 1.3;
}

.erp-page-sub {
  margin: 6px 0 0;
}

.erp-section-title {
  margin: 20px 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
}

.erp-subsection-title {
  margin: 20px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
}

.entry-poster-board {
  margin-bottom: 22px;
}

.entry-poster-board-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

#configCard .erp-section-title:first-of-type {
  margin-top: 4px;
}

.erp-section-title--tight {
  margin-top: 14px;
}

.erp-manual-add {
  margin-bottom: 20px;
}

.erp-manual-add .erp-section-title--tight {
  margin-top: 16px;
}

/* 角色管理 · 顶部标签 */
.erp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0 0 4px;
  border-bottom: 2px solid #e5e7eb;
}

.erp-tab {
  margin-top: 0 !important;
  padding: 10px 20px !important;
  border: 1px solid #d1d5db;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  bottom: -2px;
}

.erp-tab:hover {
  color: #111827;
  background: #f9fafb;
}

.erp-tab--active {
  background: #fff !important;
  color: #ff6b1a !important;
  font-weight: 700 !important;
  border-color: #e5e7eb;
  border-bottom-color: #fff !important;
  box-shadow: 0 -3px 0 #ff6b1a inset;
}

.erp-role-meta {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
}

.erp-role-meta-empty {
  margin: 0;
}

.erp-role-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 16px;
  align-items: start;
}

.erp-role-meta-item {
  line-height: 1.45;
}

.erp-role-meta-item strong {
  color: #6b7280;
  font-weight: 600;
  margin-right: 6px;
}

.erp-empty-cell {
  padding: 20px 16px !important;
  text-align: center;
}

.erp-foot-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #6b7280;
}

.erp-table-wrap {
  overflow-x: auto;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.erp-table-wrap--nested {
  border-radius: 6px;
  box-shadow: none;
  border-color: #e5e7eb;
}

.erp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.erp-table th,
.erp-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.erp-table thead th {
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  color: #1f2937;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid #d1d5db;
  font-size: 13px;
}

.erp-table tbody tr:last-child td {
  border-bottom: none;
}

.erp-table code {
  font-size: 12px;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
}

.erp-cell-label {
  color: #4b5563;
  font-weight: 500;
  white-space: nowrap;
  width: 160px;
  background: #fafafa;
}

.erp-cell-input {
  width: 100%;
  margin: 0;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
}

.erp-cell-textarea {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.45;
  resize: vertical;
  min-height: 120px;
}

.erp-file {
  font-size: 13px;
  max-width: 100%;
}

/* 点击缩略图即选文件并上传（文件叠在图上，全区域可点） */
.admin-upload-hit {
  position: relative;
  display: inline-block;
  vertical-align: top;
  cursor: pointer;
}

.admin-upload-hit .admin-sr-file {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.admin-home-banner-thumb {
  display: block;
  width: 128px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.home-carousel-toolbar {
  margin: 8px 0 12px;
}

.home-carousel-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-carousel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}

.home-carousel-num {
  width: 28px;
  font-weight: 700;
  color: #374151;
  text-align: center;
}

.home-carousel-type {
  min-width: 40px;
  font-size: 13px;
  color: #6b7280;
}

.home-carousel-tab {
  min-width: 72px;
  max-width: 96px;
  font-size: 12px;
  color: #374151;
  line-height: 1.3;
}

.home-carousel-preview {
  display: block;
  line-height: 0;
}

.home-carousel-thumb--video {
  background: #111827;
  object-fit: cover;
}

.home-carousel-thumb {
  display: block;
  width: 128px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.home-carousel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.venue-admin-cover-thumb {
  display: block;
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.venue-cover-upload-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.venue-cover-upload-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 280px;
  /* 与小程序首页列表一致：card-media 宽 100% × 高 300rpx（约 5:2） */
  aspect-ratio: 5 / 2;
  border-radius: 12px;
  overflow: hidden;
  border: 2px dashed #d1d5db;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.venue-cover-upload-card:hover {
  border-color: #818cf8;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}

.venue-cover-upload-card--filled {
  border-style: solid;
  border-color: #e5e7eb;
}

.venue-cover-upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #eceff3;
}

.venue-cover-upload-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.2), rgba(248, 250, 252, 0.88));
}

.venue-cover-upload-card--filled .venue-cover-upload-hint {
  opacity: 0;
  transition: opacity 0.15s;
}

.venue-cover-upload-card--filled:hover .venue-cover-upload-hint {
  opacity: 1;
  color: #fff;
  background: rgba(17, 24, 39, 0.45);
}

.portrait-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* 首页配置 · 板块海报：缩小竖图预览，与添加框等高对齐 */
.entry-poster-dimg-list .portrait-media-grid {
  grid-template-columns: repeat(auto-fill, minmax(96px, 120px));
  gap: 12px;
  justify-content: start;
  align-items: start;
}

.entry-poster-dimg-list .portrait-media-card {
  display: block;
  margin: 0;
  padding: 0;
}

.entry-poster-dimg-list .portrait-media-card input[type="hidden"] {
  display: none;
}

.entry-poster-dimg-list .portrait-media-frame,
.entry-poster-dimg-list .portrait-media-card--add {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  margin: 0;
  box-shadow: none;
}

.entry-poster-dimg-list .portrait-media-card--add {
  margin-top: 0 !important;
  padding: 0;
  gap: 4px;
  min-height: 0;
}

.entry-poster-dimg-list .portrait-media-upload {
  line-height: 0;
}

.entry-poster-dimg-list .portrait-media-preview {
  object-fit: contain;
  object-position: center center;
  background: #f3f4f6;
}

.entry-poster-dimg-list .portrait-media-add-icon {
  font-size: 22px;
}

.entry-poster-dimg-list .portrait-media-add-label,
.entry-poster-dimg-list .portrait-media-upload-hint {
  font-size: 11px;
}

.entry-poster-dimg-list .portrait-media-remove {
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  font-size: 14px;
}

@media (max-width: 960px) {
  .portrait-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-poster-dimg-list .portrait-media-grid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 112px));
  }
}

@media (max-width: 560px) {
  .portrait-media-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 280px;
  }

  .entry-poster-dimg-list .portrait-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }
}

.portrait-media-card {
  min-width: 0;
}

.portrait-media-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.portrait-media-upload {
  display: block;
  width: 100%;
  height: 100%;
}

.portrait-media-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #eceff3;
}

.portrait-media-upload-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  pointer-events: none;
}

.portrait-media-card--filled .portrait-media-upload-hint {
  opacity: 0;
  transition: opacity 0.15s;
}

.portrait-media-card--filled:hover .portrait-media-upload-hint {
  opacity: 1;
  color: #fff;
  background: rgba(17, 24, 39, 0.42);
}

.portrait-media-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
  opacity: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s, background 0.15s, transform 0.12s;
}

.portrait-media-card--filled:hover .portrait-media-remove,
.portrait-media-remove:focus-visible {
  opacity: 1;
}

.portrait-media-remove:hover {
  background: #b91c1c;
  transform: scale(1.05);
}

.portrait-media-card--add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 16px;
  border: 2px dashed #d1d5db;
  border-radius: 14px;
  background: #fafafa;
  color: #6b7280;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.portrait-media-card--add:hover {
  border-color: #818cf8;
  color: #4f46e5;
  background: #eef2ff;
}

.portrait-media-add-icon {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.portrait-media-add-label {
  font-size: 13px;
  font-weight: 600;
}

.admin-upload-hit--round {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.admin-upload-hit--round .venue-admin-rev-avatar {
  width: 56px;
  height: 56px;
  display: block;
}

.venue-rev-edit-thumb {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.venue-rev-img-cell {
  flex: 0 0 auto;
}

.venue-rev-img-wrap {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.venue-rev-img-remove {
  position: absolute;
  left: 4px;
  top: 4px;
  z-index: 3;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.venue-rev-img-remove:hover {
  background: rgba(15, 23, 42, 0.62);
}

.venue-rev-img-hit.admin-upload-hit {
  display: block;
}

.erp-table-btn {
  margin-top: 0 !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  white-space: nowrap;
}

.erp-num {
  text-align: center;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

.erp-th-narrow {
  width: 160px;
}

.erp-th-num {
  width: 44px;
  text-align: center;
}

.erp-th-name {
  min-width: 100px;
}

.erp-th-key {
  width: 100px;
}

.erp-th-file {
  min-width: 200px;
}

.erp-th-action {
  width: auto;
  min-width: 200px;
  text-align: left;
}

.erp-action-cell,
.erp-td-actions,
.venue-actions-cell {
  white-space: normal;
  vertical-align: middle;
}

/* —— 操作按钮组（横向并排，覆盖全局 button 橙色） —— */
.admin-action-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
}

.admin-action-bar button {
  margin-top: 0;
  margin-right: 0;
  width: auto;
  min-width: 0;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 6px;
}

.admin-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.admin-act-btn .layui-icon {
  font-size: 14px;
  line-height: 1;
}

.admin-act-btn--neutral {
  border: 1px solid #d0d7de;
  background: #f8fafc;
  color: #475569;
}

.admin-act-btn--neutral:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #334155;
}

.admin-act-btn--primary {
  border: 1px solid #4096ff;
  background: #1677ff;
  color: #fff;
}

.admin-act-btn--primary:hover:not(:disabled) {
  border-color: #0958d9;
  background: #0958d9;
  color: #fff;
}

.admin-act-btn--info {
  border: 1px solid #5cdbd3;
  background: #e6fffb;
  color: #08979c;
}

.admin-act-btn--info:hover:not(:disabled) {
  border-color: #13c2c2;
  background: #b5f5ec;
  color: #006d75;
}

.admin-act-btn--warn {
  border: 1px solid #ffc069;
  background: #fff7e6;
  color: #d46b08;
}

.admin-act-btn--warn:hover:not(:disabled) {
  border-color: #fa8c16;
  background: #ffe7ba;
  color: #ad4e00;
}

.admin-act-btn--danger {
  border: 1px solid #ff7875;
  background: #fff1f0;
  color: #cf1322;
}

.admin-act-btn--danger:hover:not(:disabled) {
  border-color: #ff4d4f;
  background: #ffccc7;
  color: #a8071a;
}

.admin-act-btn:disabled,
.admin-act-btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-action-empty {
  font-size: 13px;
}

.account-status-revoked {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
}

.wx-user-row--revoked {
  opacity: 0.72;
}

.wx-user-row--revoked td {
  color: #9ca3af;
}

.tour-order-refund-reason {
  font-size: 12px;
  max-width: 120px;
  margin-bottom: 4px;
  word-break: break-all;
}

.audit-detail-cell {
  max-width: 280px;
  white-space: normal;
  word-break: break-all;
  font-size: 12px;
  color: #64748b;
}

.erp-th-rolekey {
  min-width: 140px;
}

.erp-th-rolename {
  min-width: 100px;
}

.erp-th-flag {
  width: 88px;
  text-align: center;
}

.erp-th-sort {
  width: 64px;
  text-align: center;
}

.erp-td-center {
  text-align: center;
}

.erp-ellipsis {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.erp-foot-row td {
  background: #f9fafb;
  border-top: 2px solid #e5e7eb;
}

.erp-foot-hint {
  font-size: 13px;
  color: #6b7280;
  vertical-align: middle;
}

.reg-table.erp-table tbody tr.reg-row:hover {
  background: #fffbeb;
  cursor: pointer;
}

.reg-table.erp-table tbody tr.reg-row--active,
.reg-table.erp-table tbody tr.erp-row--active {
  background: #ffedd5;
}

button {
  margin-top: 14px;
  border: none;
  border-radius: 8px;
  background: #ff6b1a;
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
}

button.secondary {
  background: #6b7280;
  margin-right: 10px;
}

.venue-basic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.venue-reset-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: #6b7280;
}

button.danger,
.erp-table-btn.danger {
  background: #dc2626;
  color: #ffffff;
}

button.danger:hover,
.erp-table-btn.danger:hover {
  background: #b91c1c;
}

.venue-actions-cell .erp-table-btn {
  margin-top: 0;
}

.actions {
  margin-top: 10px;
}

.message {
  display: none;
}

.admin-toast-stack {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(92vw, 420px);
  min-height: 0;
  pointer-events: none;
}

.admin-toast {
  width: 100%;
  padding: 14px 18px 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.24);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.32s ease;
  will-change: opacity;
}

.admin-toast--visible {
  opacity: 1;
}

.admin-toast--leaving {
  opacity: 0;
}

.admin-toast--success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.admin-toast--error {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.admin-toast--info {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.admin-toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.admin-toast__text {
  flex: 1;
  word-break: break-word;
}

.hidden {
  display: none;
}

.admin-shell {
  display: flex;
  gap: 0;
  width: 100%;
  min-height: calc(100vh - 56px);
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.sidebar {
  width: 196px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: calc(100vh - 56px);
  background: #001529;
  color: #f9fafb;
  padding: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
}

.sidebar-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6b1a 0%, #ff8f4a 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sidebar-brand-text strong {
  font-size: 15px;
  line-height: 1.2;
}

.sidebar-brand-text small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.2;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 8px 10px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.sidebar-group-label {
  padding: 10px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

.sidebar-group-label:not(:first-child) {
  margin-top: 4px;
}

.sidebar-footer {
  flex-shrink: 0;
  padding: 10px 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-operator {
  padding: 0 6px 8px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  word-break: break-all;
}

.sidebar-operator--warn {
  color: #fbbf24;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  text-align: center;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  cursor: pointer;
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  margin-top: 0;
  padding: 10px 10px 10px 12px;
  border-radius: 6px;
  border: none;
  border-left: 3px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.3;
}

.sidebar-link-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-link-icon .layui-icon {
  font-size: 16px;
  line-height: 1;
}

.sidebar-link-text {
  min-width: 0;
  white-space: nowrap;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sidebar-link.active {
  background: rgba(255, 107, 26, 0.14);
  border-left-color: #ff6b1a;
  color: #fff;
}

.sidebar-link.active .sidebar-link-icon {
  background: rgba(255, 107, 26, 0.28);
  color: #ffd8bf;
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: clamp(16px, 2vw, 28px) clamp(16px, 2.5vw, 36px);
  overflow-x: auto;
}

.admin-main .card.panel {
  margin-top: 0;
  border: none;
  padding: 0;
}

.admin-main h2 {
  margin-top: 0;
}

.panel-hint {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 12px;
}

.official-invite-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.official-invite-code-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.official-invite-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.official-invite-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1d4ed8;
  word-break: break-all;
}

.official-invite-actions {
  flex-shrink: 0;
}

.inline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 4px;
}

.inline-grid button {
  margin-top: 0;
  min-height: 42px;
}

.list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.list-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  background: #fafafa;
}

.list-item h4 {
  margin: 0 0 8px;
}

.meta {
  font-size: 13px;
  color: #4b5563;
  margin: 4px 0;
}

.filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px;
}

.thumb {
  margin-top: 8px;
  max-width: 260px;
  max-height: 160px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  object-fit: cover;
}

.reg-detail-panel .thumb,
.detail-dl .thumb {
  max-width: 100%;
  width: auto;
  max-height: min(480px, 55vh);
}

.reg-detail-panel video.thumb {
  width: 100%;
  max-height: min(480px, 55vh);
}

.reg-media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.reg-media-grid .thumb {
  margin-top: 0;
}

.reg-media-grid a {
  display: block;
  line-height: 0;
}

.media-hint {
  font-size: 12px;
  color: #b45309;
  margin-top: 6px;
}

.muted {
  color: #9ca3af;
  font-size: 13px;
}

.venue-variant-row--delisted td,
.venue-variant-row--disabled td {
  color: #9ca3af;
  background: #f9fafb;
}

.venue-book-disabled-toggle input {
  margin: 0;
}

.reg-review-layout {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 28px);
  margin-top: 12px;
}

.reg-list-panel {
  flex: 1 1 55%;
  min-width: 0;
}

.reg-detail-panel {
  flex: 0 0 clamp(340px, 32vw, 640px);
  width: clamp(340px, 32vw, 640px);
  max-width: none;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px;
  background: #fafafa;
  position: sticky;
  top: 12px;
  align-self: flex-start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.reg-detail-panel.hidden {
  display: none;
}

.reg-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.reg-detail-head h3 {
  margin: 0;
  font-size: 17px;
}

.reg-detail-head button {
  margin-top: 0;
}

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge--pending {
  background: #fef3c7;
  color: #b45309;
}

.status-badge--approved {
  background: #d1fae5;
  color: #166534;
}

.status-badge--revoked {
  background: #f3f4f6;
  color: #6b7280;
}

.status-badge--rejected {
  background: #fee2e2;
  color: #991b1b;
}

.detail-dl {
  margin: 0;
  font-size: 14px;
}

.detail-dl dt {
  margin-top: 10px;
  color: #6b7280;
  font-size: 12px;
}

.detail-dl dd {
  margin: 4px 0 0;
  color: #111827;
  word-break: break-all;
}

.detail-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-actions button {
  margin-top: 0;
}

.detail-review-note {
  width: 100%;
  margin-top: 12px;
  min-height: 72px;
  resize: vertical;
}

.guide-venue-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 0;
}

.guide-accounts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
}

.guide-accounts-filters .erp-cell-input {
  min-width: 160px;
  flex: 1 1 180px;
}

.guide-accounts-filters .erp-table-btn {
  flex: 0 0 auto;
}

.guide-accounts-table {
  min-width: 920px;
}

.guide-accounts-table .guide-venue-th,
.guide-accounts-table .guide-venue-cell {
  min-width: 150px;
}

.guide-accounts-table .guide-region-cell,
.guide-accounts-table .guide-time-cell {
  white-space: nowrap;
  font-size: 13px;
}

.guide-accounts-table .guide-time-cell {
  color: #6b7280;
}

.guide-venue-link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: #2563eb;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  line-height: 1.45;
}

.guide-venue-link--empty {
  color: #c2410c;
}

.guide-venue-link:hover {
  color: #1d4ed8;
}

.guide-venue-modal {
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
}

.guide-venue-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.guide-venue-toolbar .erp-cell-input {
  flex: 1 1 160px;
  min-width: 0;
}

.guide-venue-selected-hint {
  margin: 0 0 8px;
  font-size: 13px;
  color: #6b7280;
}

.guide-venue-modal-list {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
}

.guide-venue-modal-list--inline {
  max-height: 280px;
}

.guide-venue-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 0;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
}

.guide-venue-row:last-child {
  border-bottom: none;
}

.guide-venue-row:hover {
  background: #f9fafb;
}

.guide-venue-row input {
  margin: 0;
}

.guide-venue-row-title {
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-venue-row-region {
  color: #9ca3af;
  font-size: 12px;
  white-space: nowrap;
}

.guide-venue-empty {
  padding: 16px 12px;
  margin: 0;
}

.guide-deposit-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 88px;
}

.guide-deposit-status {
  font-size: 13px;
  color: #374151;
  white-space: nowrap;
}

.guide-deposit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guide-deposit-link {
  padding: 0;
  border: none;
  background: none;
  color: #2563eb;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.guide-deposit-link:hover {
  color: #1d4ed8;
}

.guide-accounts-table .erp-action-cell {
  min-width: 128px;
  white-space: nowrap;
}

.guide-accounts-table .erp-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.guide-accounts-table .erp-th-action {
  width: auto;
  min-width: 128px;
}

@media (max-width: 900px) {
  .reg-review-layout {
    flex-direction: column;
  }

  .reg-detail-panel {
    flex: 1 1 auto;
    width: 100%;
    max-height: none;
    position: static;
  }
}

/* —— 景区管理 —— */
.panel--venues {
  max-width: none;
  width: 100%;
}

.venues-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #eef5fc 0%, #f8fbfe 55%, #f3f6fa 100%);
  border: 1px solid #d9e8f5;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(64, 158, 255, 0.06);
}

.venues-hint {
  max-width: 52rem;
  line-height: 1.5;
}

.venues-head-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.venues-head-actions button {
  margin-top: 0;
}

.venues-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.venues-label {
  font-size: 14px;
  color: #374151;
  font-weight: 600;
}

.venues-select {
  min-width: 200px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.city-search-picker {
  position: relative;
  min-width: 0;
}

.city-search-picker--toolbar {
  flex: 1 1 240px;
  max-width: 320px;
}

.city-search-picker-input {
  width: 100%;
  max-width: none;
}

.city-search-picker-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px 0;
  max-height: 240px;
  overflow-y: auto;
  list-style: none;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.city-search-picker-list:not(.hidden) {
  display: block;
}

.city-search-picker-option {
  padding: 8px 12px;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
  line-height: 1.35;
}

.city-search-picker-option:hover,
.city-search-picker-option.is-active {
  background: #eff6ff;
  color: #1d4ed8;
}

.city-search-picker-option--muted {
  color: #6b7280;
}

.city-search-picker-empty {
  padding: 10px 12px;
  font-size: 13px;
  color: #9ca3af;
}

.venue-edit-city-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.venue-add-card {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.venue-add-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.venue-add-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.venue-add-cover-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.venue-add-fields-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding-top: 2px;
}

.venue-add-fields-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
}

.venue-add-grid {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(200px, 1fr) minmax(180px, 220px) auto;
  gap: 14px 18px;
  align-items: end;
}

.venue-add-grid--legacy-flex {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.venue-add-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.venue-add-field--city {
  width: 200px;
  max-width: 100%;
}

.venue-add-field--city .city-search-picker,
.venue-add-field--city .erp-cell-input {
  width: 100%;
  max-width: 200px;
}

.venue-add-field--name {
  width: 260px;
  max-width: 100%;
}

.venue-add-field--name .erp-cell-input {
  width: 100%;
  max-width: 260px;
}

.venue-add-field--grow .erp-cell-input {
  max-width: none;
}

.venue-cover-upload-card--add {
  width: 240px;
  max-width: 100%;
}

.venue-add-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

.venue-cover-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.venue-add-actions button {
  margin-top: 0;
}

.venue-list-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.venue-list-summary {
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  font-size: 14px;
  color: #606266;
  background: #f4f8fc;
  border: 1px solid #dce9f5;
  border-radius: 8px;
  text-align: center;
}

.venue-table-wrap {
  width: 100%;
  border-radius: 10px;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.venue-table {
  margin: 0;
  width: 100%;
  table-layout: auto;
}

.venue-table thead th {
  vertical-align: middle;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  background: #fafafa;
  border-bottom: 1px solid #ebeef5;
  text-align: center;
  white-space: nowrap;
}

.venue-table tbody td {
  vertical-align: middle;
  line-height: 1.45;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
}

.venue-table tbody tr.venue-list-row:hover {
  background: #f8fafc;
}

.venue-table tbody tr.venue-list-row:last-child td {
  border-bottom: none;
}

.venue-list-empty {
  padding: 20px 16px !important;
  color: #9ca3af;
  font-size: 13px;
}

.venue-list-td-cover {
  width: 1%;
  white-space: nowrap;
}

.venue-list-cover {
  width: min(280px, 36vw);
  aspect-ratio: 5 / 2;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.venue-list-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-list-cover--empty {
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 13px;
}

.venue-list-td-city {
  width: 1%;
  white-space: nowrap;
}

.venue-list-city {
  display: inline-block;
  max-width: 120px;
  padding: 4px 12px;
  border-radius: 4px;
  background: #ecf5ff;
  color: #409eff;
  border: 1px solid #d9ecff;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.venue-list-td-title {
  min-width: 160px;
}

.venue-list-name-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 320px;
  margin: 0 auto;
}

.venue-list-title {
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: #303133;
}

.venue-list-meta {
  font-size: 12px;
  color: #909399;
  line-height: 1.2;
}

.venue-actions-cell {
  width: 1%;
  white-space: nowrap;
}

.venue-list-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.venue-list-action-sep {
  color: #dcdfe6;
  font-size: 12px;
  user-select: none;
}

.venue-list-action {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.3;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s;
}

.venue-list-action--edit {
  color: #409eff;
}

.venue-list-action--edit:hover {
  color: #66b1ff;
}

.venue-list-action--del {
  color: #f56c6c;
}

.venue-list-action--del:hover {
  color: #f78989;
}

.venue-list-action--shelf {
  color: #e6a23c;
}

.venue-list-action--shelf:hover {
  color: #ebb563;
}

.venue-list-action--on {
  color: #67c23a;
}

.venue-list-action--on:hover {
  color: #85ce61;
}

.venue-list-action--purge {
  color: #f56c6c;
}

.venue-list-action--purge:hover {
  color: #f78989;
}

.venue-list-row--delisted .venue-list-title {
  color: #909399;
}

.venue-list-row--delisted .venue-list-cover-img {
  opacity: 0.55;
}

.erp-th-thumb {
  width: 88px;
  text-align: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
}

.modal-overlay.hidden {
  display: none;
}

.modal-overlay--top {
  z-index: 800;
}

.modal-overlay--pkg-edit {
  z-index: 520;
}

.modal-overlay--pkg-edit .modal-dialog {
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 420px;
  padding: 22px 24px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.modal-dialog--wide {
  max-width: min(960px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
}

/* 包团档位字段多，弹窗加宽；档位改为分行卡片后不必过宽 */
.modal-dialog--cal-pkg {
  max-width: min(980px, 98vw);
  width: calc(100% - 24px);
}

.modal-dialog--pkg {
  max-width: min(1100px, 98vw);
}

.venue-modal-tabs {
  margin-top: 12px;
}

.venue-modal-pane {
  margin-top: 12px;
}

.venue-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 16px;
  margin-top: 8px;
}

.venue-edit-grid label {
  margin-top: 0;
}

.modal-dialog-title {
  margin: 0 0 10px;
  font-size: 18px;
}

.modal-dialog-meta {
  margin: 12px 0 0;
  font-size: 14px;
  color: #374151;
  white-space: pre-line;
  line-height: 1.55;
}

.modal-dialog-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.modal-dialog--confirm {
  max-width: 400px;
}

.modal-dialog--save-scope {
  max-width: 420px;
  width: calc(100% - 32px);
}

#packageSaveScopeModal .package-save-scope-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

#packageSaveScopeModal .package-save-scope-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 14px;
  color: #374151;
}

#packageSaveScopeModal .package-save-scope-option:hover {
  border-color: #c7d2fe;
  background: #f8fafc;
}

#packageSaveScopeModal .package-save-scope-option:has(.package-save-scope-radio:checked) {
  border-color: #6366f1;
  background: #eef2ff;
}

#packageSaveScopeModal .package-save-scope-radio {
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  margin: 3px 0 0;
  padding: 0;
  flex: 0 0 16px;
  accent-color: #6366f1;
}

#packageSaveScopeModal .package-save-scope-option-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

#packageSaveScopeModal .package-save-scope-option-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}

#packageSaveScopeModal .package-save-scope-option-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
  white-space: normal;
}

.schedule-sync-conflict-list {
  margin: 0 0 16px;
  padding: 0 0 0 18px;
  max-height: 220px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.5;
}

.schedule-sync-conflict-list li {
  margin-bottom: 8px;
}

.schedule-sync-conflict-list .blocked {
  color: #b45309;
}

.account-edit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.account-edit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  color: #374151;
}

.account-edit-field .erp-cell-input {
  width: 100%;
  box-sizing: border-box;
}

.account-edit-error {
  margin: 0;
  font-size: 13px;
  color: #b91c1c;
  background: #fef2f2;
  border-radius: 8px;
  padding: 8px 10px;
}

.account-edit-error.hidden {
  display: none;
}

.booking-pane {
  margin-top: 14px;
}

.booking-form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin-top: 10px;
  margin-bottom: 8px;
}

.booking-form-grid label {
  margin-top: 0;
  margin-bottom: 0;
  min-width: 120px;
  flex: 0 1 auto;
}

.booking-form-grid--wide label {
  min-width: 100px;
}

.venue-tier-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.venue-tier-row:last-child {
  border-bottom: none;
}

.modal-dialog--pkg {
  width: calc(100% - 24px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overflow-x: auto;
}

.venue-pkg-field--pin .erp-cell-input {
  max-width: 200px;
}

.venue-pkg-tier-actions {
  margin-top: 12px;
  padding-top: 4px;
}

.venue-pkg-tier-actions .erp-table-btn {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
}

.venue-pkg-section--off .venue-tier-card-list {
  opacity: 0.45;
  pointer-events: none;
}

.venue-pkg-section--off .venue-pkg-field--pin .erp-cell-input {
  opacity: 0.45;
  pointer-events: none;
}

.venue-pkg-section--off .venue-pkg-tier-actions .erp-table-btn:not(#venuePkgTierAddBtn) {
  opacity: 0.45;
}

#venuePkgTierAddBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.venue-pkg-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef0f3;
}

.venue-pkg-section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 12px;
}

.venue-pkg-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.venue-pkg-hint {
  margin: 6px 0 10px;
}

.venue-pkg-field-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.venue-pkg-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.venue-pkg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 140px;
  min-width: 120px;
  margin: 0;
}

.venue-pkg-field-label {
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

.venue-pkg-priv-toggle {
  margin: 0;
}

.venue-tier-card-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
}

.venue-tier-card--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #fafbfc;
}

.venue-tier-card-badge {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  min-width: 28px;
}

.venue-tier-inline {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  color: #555;
  white-space: nowrap;
}

.venue-tier-inline > span:first-child {
  color: #888;
  flex-shrink: 0;
}

.venue-tier-sep {
  color: #999;
  padding: 0 2px;
}

.erp-cell-input--compact {
  width: 4.2em;
  min-width: 48px;
  max-width: 88px;
  padding: 4px 6px;
  font-size: 13px;
  box-sizing: border-box;
}

.venue-tier-inline select.erp-cell-input--compact {
  width: auto;
  min-width: 88px;
  max-width: 120px;
}

.venue-tier-card--compact .js-tier-price {
  width: 5.5em;
  max-width: 96px;
}

.venue-tier-card--compact .js-tier-del {
  flex: 0 0 auto;
  min-width: 32px;
  padding: 4px 10px;
  margin-left: auto;
}

.booking-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: auto;
}

.booking-check input {
  width: auto;
  margin: 0;
}

.venue-batch-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 200px;
}

.venue-batch-preview-wrap .erp-table-wrap {
  max-height: 320px;
  overflow: auto;
}

.venue-batch-detail td {
  background: #f9fafb;
  padding: 10px 12px;
  vertical-align: top;
}

.erp-table--compact th,
.erp-table--compact td {
  padding: 6px 8px;
  font-size: 13px;
}

.erp-td-center {
  text-align: center;
}

.booking-schedule-card {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafbff;
}

.venue-schedule-table {
  table-layout: fixed;
  width: 100%;
  min-width: 880px;
}

.venue-schedule-col-name {
  width: 18%;
  min-width: 120px;
}

.venue-schedule-col-time {
  width: 14%;
  min-width: 118px;
}

.venue-schedule-col-cap {
  width: 9%;
  min-width: 72px;
}

.venue-schedule-col-pin {
  width: 11%;
}

.venue-schedule-col-priv {
  width: 9%;
}

.venue-schedule-col-act {
  width: 22%;
  min-width: 200px;
}

.venue-schedule-table input[type="time"] {
  width: 100%;
  min-width: 108px;
  max-width: none;
  box-sizing: border-box;
  padding-left: 6px;
  padding-right: 6px;
}

.booking-schedule-card .venue-batch-tpl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay--venue .modal-dialog--wide,
.modal-overlay--venue .modal-dialog--venue-booking {
  max-width: min(1360px, calc(100vw - 24px));
  width: calc(100% - 16px);
}

#venuePaneBooking.venue-pane-booking {
  max-width: none;
}

.venue-schedule-table .erp-th-action,
.venue-schedule-table td.venue-schedule-td-act {
  min-width: 148px;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

.venue-schedule-table td.venue-schedule-td-act .erp-table-btn {
  margin-left: 6px;
}

.venue-schedule-table .js-pkg-pin-summary,
.venue-schedule-table .js-pkg-priv-summary {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.venue-batch-tpl-wrap {
  overflow-x: auto;
}

/* 景区「详情页」轮播 / 长图：上传 + 预览 */
.venue-detail-carousel-host .venue-detail-thumb {
  width: 160px;
  max-width: min(160px, 42vw);
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  display: block;
  background: #f3f4f6;
}

.venue-detail-cell-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.venue-detail-dimg-list {
  margin-top: 4px;
}

/* 评价配图：与宝贝长图共用 list 类名，须更高优先级/双类覆盖竖排 */
.venue-detail-dimg-list.venue-rev-images-grid {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}

.venue-detail-dimg-row-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.venue-detail-dimg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.venue-detail-qa-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.venue-detail-qa-row {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px 12px;
  background: #fafafa;
}

/* 详情 Tab：与小程序页顺序对齐的分区 */
.venue-detail-save-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
}

.venue-detail-save-banner--compact {
  padding: 0;
  margin-bottom: 18px;
  background: transparent;
  border: none;
}

.venue-detail-section-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.venue-detail-inline-add {
  margin-top: 10px;
}

.venue-detail-pane .erp-cell-textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
}

.venue-detail-mini-section {
  margin-bottom: 20px;
  padding: 14px 14px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.venue-detail-mini-section--accent {
  border-color: #fecaca;
  background: #fffafa;
}

.venue-detail-mini-kicker {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.venue-detail-save-sticky {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 0 4px;
  margin-top: 8px;
  background: linear-gradient(to top, #ffffff 70%, rgba(255, 255, 255, 0));
  border-top: 1px solid #e5e7eb;
}

/* —— 评论区 Tab：与小程序评价区一致的卡片列表 —— */
.venue-reviews-admin-pane .venue-admin-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.venue-admin-review-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 14px 12px;
  background: #fafafa;
}

.venue-admin-rev-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.venue-admin-rev-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e5e7eb;
}

.venue-admin-rev-card-avatar--ph {
  border: 2px solid #ececec;
}

.venue-admin-rev-card-head-text {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.venue-admin-rev-card-nick {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.venue-admin-rev-card-date {
  font-size: 13px;
  color: #6b7280;
  flex-shrink: 0;
}

.venue-admin-rev-card-off {
  font-size: 12px;
  color: #b45309;
  background: #fffbeb;
  padding: 2px 8px;
  border-radius: 6px;
}

.venue-admin-rev-pin-badge {
  flex-shrink: 0;
  font-size: 12px;
  color: #ff6b1a;
  border: 1px solid #ffccb3;
  background: #fff3eb;
  border-radius: 6px;
  padding: 2px 10px;
  line-height: 1.4;
}

.venue-admin-rev-card-stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  margin-bottom: 8px;
}

.venue-admin-star {
  font-size: 16px;
  color: #d1d5db;
}

.venue-admin-star--on {
  color: #f53838;
}

.venue-admin-rev-card-label {
  font-size: 13px;
  color: #f53838;
  font-weight: 600;
}

.venue-admin-rev-card-body {
  font-size: 14px;
  line-height: 1.55;
  color: #4b5563;
  white-space: pre-wrap;
  margin-bottom: 10px;
}

.venue-admin-rev-card-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.venue-admin-rev-card-img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  background: #e5e7eb;
}

.venue-admin-rev-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #e5e7eb;
}

.venue-admin-review-form {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 14px 16px;
  background: #ffffff;
}

.venue-admin-review-form-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.venue-admin-rev-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e5e7eb;
}

.venue-admin-rev-head-meta {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-end;
}

.venue-admin-rev-label-inline {
  margin: 0;
  flex: 1;
  min-width: 140px;
}

.venue-admin-rev-date-wrap {
  max-width: 200px;
}

.venue-admin-rev-stars-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.venue-admin-rev-enabled {
  margin: 0 !important;
  align-self: center;
}

.venue-admin-rev-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

/* —— 讲解与预约 / 日程：简约分区 —— */
.venue-book-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 14px 16px;
  background: #fafafa;
}

.venue-edit-grid--tight label {
  margin-top: 8px;
}

/* 场次生成预览：可点击单日编辑，在面板内居中 */
.cal-slot-preview {
  margin: 8px auto 4px;
  max-width: 560px;
  width: 100%;
}
.cal-slot-preview__summary {
  font-size: 13px;
  color: #475569;
  margin: 0 0 8px;
  line-height: 1.45;
  text-align: center;
}
.cal-slot-preview__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
  justify-content: center;
}
.cal-slot-preview__legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cal-slot-preview__dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}
.cal-slot-preview__dot--create {
  background: #16a34a;
}
.cal-slot-preview__dot--skip {
  background: #94a3b8;
}
.cal-slot-preview__dot--empty {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  box-sizing: border-box;
}
.cal-slot-month {
  margin-bottom: 12px;
}
.cal-slot-month__title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 6px;
  text-align: center;
}
.cal-slot-month__weekdays,
.cal-slot-month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal-slot-month__weekdays span {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  padding: 0;
  line-height: 1.2;
}
.cal-slot-day {
  min-height: 68px;
  height: auto;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 3px;
  padding: 4px 5px;
  font-size: 12px;
  line-height: 1.2;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid transparent;
  text-align: left;
  opacity: 0;
  transform: scale(0.92);
  animation: calSlotDayIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  box-sizing: border-box;
}
.cal-slot-day--clickable {
  cursor: pointer;
}
.cal-slot-day--clickable:hover {
  outline: 2px solid #93c5fd;
  outline-offset: -1px;
}
.cal-slot-day--editing {
  outline: 2px solid #2563eb;
  outline-offset: -1px;
}
.cal-slot-day--pad {
  visibility: hidden;
  animation: none;
  opacity: 0;
  min-height: 68px;
  cursor: default;
}
.cal-slot-day--empty {
  background: #f1f5f9;
  color: #94a3b8;
}
.cal-slot-day--create {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
  font-weight: 600;
}
.cal-slot-day--skip {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #475569;
}
.cal-slot-day__n {
  line-height: 1.1;
  font-size: 13px;
  font-weight: 700;
}
.cal-slot-day__tag {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.1;
}
.cal-slot-day__pkgs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 1px;
}
.cal-slot-day__pkg {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-slot-day--create .cal-slot-day__pkg {
  background: rgba(22, 101, 52, 0.12);
  color: #166534;
}
.cal-day-edit {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8fafc;
}
.cal-day-edit-pkg {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}
.cal-day-edit-pkg h5 {
  margin: 0 0 8px;
  font-size: 13px;
}
.cal-day-edit-segs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
}
.cal-day-edit-seg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin: 0;
}
@keyframes calSlotDayIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 640px) {
  .cal-slot-preview {
    max-width: 100%;
  }
  .cal-slot-day {
    min-height: 56px;
    padding: 3px 4px;
  }
  .cal-slot-day__pkg {
    font-size: 8px;
  }
}

.venue-book-details {
  margin-top: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px 12px;
  background: #fff;
}

.venue-book-details > summary {
  cursor: pointer;
  font-weight: 600;
  color: #334155;
  user-select: none;
}

.venue-book-details[open] > summary {
  margin-bottom: 4px;
}

.modal-dialog--venue-booking {
  max-width: min(1360px, calc(100vw - 24px));
  width: calc(100% - 16px);
}

.venue-book-hint-wide {
  max-width: none;
  line-height: 1.6;
}

.venue-schedule-list-head {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  padding: 12px 16px !important;
  white-space: normal;
  text-align: left;
}

.venue-schedule-table--groups {
  width: 100%;
  min-width: 100%;
}

.venue-pkg-group-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.venue-pkg-group-footer .js-pkg-save {
  min-width: 120px;
}

.venue-pkg-save-hint {
  font-size: 12px;
}

.venue-schedule-table--groups td {
  padding: 0;
  vertical-align: top;
  border: none;
}

.venue-schedule-table--groups tbody tr + tr .venue-pkg-group-card {
  margin-top: 12px;
}

.venue-pkg-group-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  background: #fafafa;
}

.venue-pkg-group-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.venue-pkg-group-card--compact {
  padding: 10px 12px;
}

.venue-pkg-group-head--compact {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) 52px 68px 68px auto;
  gap: 6px 8px;
  align-items: center;
  margin-bottom: 8px;
}

.venue-pkg-group-head--compact.venue-pkg-group-head--private {
  grid-template-columns: minmax(88px, 1fr) 52px 68px auto;
}

.venue-pkg-group-head--compact label.venue-pkg-field {
  margin: 0;
}

.venue-pkg-field--inline-name,
.venue-pkg-field--inline-cap,
.venue-pkg-field--inline-price,
.venue-pkg-field--inline-guide-price {
  margin: 0;
  min-width: 0;
}

.venue-pkg-field--inline-guide-price {
  max-width: 68px;
}

.venue-pkg-name-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 4px;
  line-height: 1;
}

.venue-pkg-field--inline-name .erp-cell-input,
.venue-pkg-field--inline-cap .erp-cell-input,
.venue-pkg-field--inline-price .erp-cell-input,
.venue-pkg-field--inline-guide-price .erp-cell-input {
  width: 100%;
  max-width: 100%;
  padding: 6px 8px;
  font-size: 13px;
}

.venue-pkg-field--narrow {
  flex: 0 0 108px;
  max-width: 120px;
  min-width: 96px;
}

.venue-pkg-field--narrow .erp-cell-input {
  width: 100%;
}

.venue-pkg-field-label {
  font-size: 11px;
}

.venue-pkg-head-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-self: end;
  align-self: center;
}

.venue-pkg-head-actions .erp-table-btn {
  padding: 6px 10px;
  font-size: 13px;
  min-width: 0;
}

.venue-pkg-group-section--times {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed #e8ecf0;
}

.venue-pkg-times-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.venue-pkg-times-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.venue-pkg-times-hint {
  font-size: 11px;
}

.venue-pkg-times-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.venue-pkg-times-scroll {
  flex: 1 1 240px;
  min-width: 0;
  max-height: 96px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.venue-pkg-times-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.venue-pkg-inline-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
}

.venue-pkg-time-picker--inline {
  flex: 0 1 auto;
  min-width: 0;
}

.venue-pkg-time-picker--inline .venue-pkg-time-grid {
  margin-bottom: 0;
  gap: 6px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}

.venue-pkg-time-picker--inline .venue-pkg-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 4px 2px 2px;
  font-size: 12px;
  max-width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}

.venue-pkg-time-chip-main {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 2px 4px;
}

.venue-pkg-time-chip-label {
  white-space: nowrap;
}

.venue-pkg-time-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #9ca3af;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.venue-pkg-time-del:hover {
  color: #fff;
  background: #dc2626;
}

.venue-pkg-custom-time--inline {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.venue-pkg-custom-time--inline input[type="time"] {
  width: 88px;
  max-width: 88px;
  padding: 4px 4px;
  font-size: 12px;
}

.venue-pkg-custom-time--inline .js-pkg-add-time {
  margin: 0;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
}

.venue-pkg-group-section--flat {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

.venue-pkg-group-section--flat .venue-tier-table {
  margin-bottom: 6px;
}

.venue-pkg-group-card--compact .venue-pkg-group-footer {
  display: none;
}

.venue-pkg-field--grow {
  flex: 1 1 240px;
}

.venue-pkg-group-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e5e7eb;
}

.venue-pkg-group-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
}

.venue-pkg-time-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.venue-pkg-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}

.venue-pkg-time-chip:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
}

.venue-pkg-custom-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.venue-pkg-custom-time input[type="time"] {
  max-width: 120px;
}

.venue-pkg-group-section .venue-tier-card-list {
  margin-bottom: 10px;
}

.venue-schedule-table-wrap {
  max-height: min(68vh, 780px);
  overflow: auto;
  width: 100%;
}

.venue-schedule-day-summary {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}

.venue-schedule-copy-details {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px 12px;
  background: #fafafa;
}

.venue-schedule-copy-summary {
  cursor: pointer;
  font-weight: 600;
  color: #475569;
  user-select: none;
}

/* 角色管理 · 企业/推广会员邀请展开行 */
tr.referral-nested-row td {
  background: #f8fafc;
  padding: 12px 16px !important;
  vertical-align: top;
}

tr.referral-nested-row.hidden {
  display: none;
}

.referral-expand-chevron {
  display: inline-block;
  margin-right: 4px;
  font-size: 11px;
  vertical-align: middle;
}

.referral-detail-modal-body {
  max-height: 70vh;
  overflow: auto;
  margin-top: 8px;
  font-size: 14px;
}

.referral-detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 16px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f1f5f9;
  border-radius: 8px;
}

.referral-detail-stats dt {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.referral-detail-stats dd {
  margin: 2px 0 0;
  font-weight: 600;
  color: #0f172a;
}

.tour-group-progress strong {
  display: block;
  font-size: 13px;
}

.tour-group-progress-sub {
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.35;
}

.tour-order-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 108px;
}

.tour-merge-source-list {
  margin: 12px 0;
  max-height: 280px;
  overflow-y: auto;
}

.tour-merge-source-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.tour-merge-source-item input {
  margin-top: 3px;
}

/* —— 套餐 UI 改版（拼团/包团分卡、人数档横排） —— */
.venue-pkg-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.venue-pkg-add-btn--pin {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.venue-pkg-add-btn--priv {
  background: #059669;
  color: #fff;
  border-color: #059669;
}

.venue-pkg-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.3;
  min-width: 0;
  width: auto;
}

.venue-pkg-type-badge--pin {
  background: #dbeafe;
  color: #1d4ed8;
}

.venue-pkg-type-badge--priv {
  background: #d1fae5;
  color: #047857;
}

.venue-pkg-group-card--pin {
  border-left: 4px solid #2563eb;
}

.venue-pkg-group-card--private {
  border-left: 4px solid #059669;
}

.venue-pkg-group-head .venue-pkg-type-badge {
  margin: 0;
}

.venue-pkg-pin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 20px;
}

.venue-pkg-inline-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  align-self: center;
}

.venue-pkg-inline-hint--block {
  align-self: auto;
  margin-bottom: 10px;
  width: 100%;
}

.venue-tier-table {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 10px;
}

.venue-tier-table-head,
.venue-tier-row--flat {
  display: grid;
  grid-template-columns:
    40px
    minmax(160px, 1.5fr)
    minmax(92px, 0.95fr)
    minmax(76px, 0.8fr)
    minmax(92px, 0.95fr)
    minmax(92px, 0.95fr)
    minmax(92px, 0.95fr)
    minmax(140px, 1.4fr)
    minmax(80px, 0.85fr)
    minmax(80px, 0.85fr)
    minmax(72px, 0.75fr)
    40px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
}

.venue-tier-table--rebate {
  overflow-x: auto;
}

/* 包团档位：多行卡片，避免一排挤满 */
.venue-tier-table--stack .venue-tier-table-head--stack,
.venue-tier-table-head--stack {
  display: block;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
}

.venue-tier-row--stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  padding: 14px 16px;
  background: #fff;
}

.venue-tier-row--stack + .venue-tier-row--stack {
  border-top: 1px solid #eef2f7;
}

.venue-tier-stack-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 16px;
}

.venue-tier-stack-top .venue-tier-row-badge {
  font-size: 14px;
  color: #0f172a;
  min-width: 36px;
  text-align: left;
}

.venue-tier-stack-top .js-tier-del {
  margin-left: auto;
  min-width: auto;
  padding: 4px 12px;
  justify-self: auto;
}

.venue-tier-stack-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

/* 盖过上面 display:flex，否则 hidden 无效，超额行会一直显示 */
.venue-tier-stack-row.hidden,
.venue-tier-field.hidden {
  display: none;
}

.venue-tier-stack-tag {
  flex: 0 0 auto;
  min-width: 36px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  padding: 4px 0;
}

.venue-tier-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  min-width: 110px;
  flex: 1 1 110px;
  max-width: 180px;
}

.venue-tier-field--wide {
  min-width: 180px;
  max-width: 260px;
  flex: 1 1 180px;
}

.venue-tier-field-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

.venue-tier-field .erp-cell-input--compact,
.venue-tier-field select.erp-cell-input--compact {
  width: 100%;
  min-height: 34px;
  font-size: 13px;
}

.venue-tier-field .venue-tier-cell--party {
  width: 100%;
}

.venue-tier-cell--profit {
  font-size: 13px;
  font-weight: 600;
  color: #0f766e;
  text-align: right;
  padding-right: 4px;
}

.venue-tier-table-head {
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  border-bottom: 1px solid #e5e7eb;
}

.venue-tier-row--flat {
  border: none;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0;
  margin: 0;
  padding: 10px 12px;
  background: #fff;
}

.venue-tier-row--flat:last-child {
  border-bottom: none;
}

.venue-tier-row-badge {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
}

.venue-tier-cell {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  min-width: 0;
}

.venue-tier-cell--party {
  gap: 6px;
}

.venue-tier-cell--party .erp-cell-input--compact {
  flex: 1 1 0;
  width: auto;
  min-width: 56px;
  max-width: none;
}

.venue-tier-sep {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 12px;
}

.venue-tier-cell .erp-cell-input--compact {
  width: 100%;
  max-width: none;
}

.venue-tier-cell select.erp-cell-input--compact {
  min-width: 0;
  font-size: 12px;
}

.venue-tier-cell--hp-rule select.erp-cell-input--compact {
  font-size: 12px;
  padding-left: 6px;
  padding-right: 4px;
}

.venue-tier-cell-suffix {
  color: #888;
  font-size: 12px;
  flex-shrink: 0;
}

.venue-tier-row--flat .js-tier-del {
  min-width: 32px;
  padding: 4px 8px;
  justify-self: end;
}

.venue-tier-table-body.venue-tier-card-list {
  max-height: none;
  overflow: visible;
  gap: 0;
}

.venue-schedule-auto-days {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  background: #f8fafc;
}

.venue-schedule-auto-days-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.venue-schedule-auto-days-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  color: #374151;
}

.venue-schedule-auto-days-hint {
  font-size: 13px;
}

.venue-schedule-price-rule-hint {
  line-height: 1.5;
}

.venue-addon-link-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}

.venue-addon-link-bar label {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

.venue-pane-schedule,
.venue-pane-addons {
  max-width: none;
}

.venues-toolbar .venues-select,
.venues-toolbar .city-search-picker {
  min-width: 240px;
}

@media (max-width: 900px) {
  .venue-add-grid {
    grid-template-columns: 1fr;
  }

  .venue-add-layout {
    flex-direction: column;
  }

  .venue-add-fields-row {
    flex-direction: column;
    align-items: stretch;
  }

  .venue-add-field--city,
  .venue-add-field--name {
    width: 100%;
  }

  .venue-add-field--city .city-search-picker,
  .venue-add-field--city .erp-cell-input,
  .venue-add-field--name .erp-cell-input {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .venue-tier-table-head:not(.venue-tier-table-head--stack) {
    display: none;
  }

  .venue-tier-row--flat:not(.venue-tier-row--stack) {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
  }

  .venue-tier-row--flat:not(.venue-tier-row--stack) .venue-tier-row-badge {
    grid-column: 1 / -1;
    text-align: left;
  }

  .venue-tier-row--flat:not(.venue-tier-row--stack) .js-tier-del {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .venue-tier-field {
    min-width: 46%;
    max-width: none;
    flex: 1 1 46%;
  }

  .venue-tier-field--wide {
    min-width: 100%;
    flex: 1 1 100%;
  }
}

.billing-report-shell {
  margin-top: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.billing-table-wrap {
  margin-top: 0;
  border: none;
  border-radius: 0;
  overflow: auto;
  background: #fff;
  box-shadow: none;
}

.billing-report-meta {
  margin: 0;
  padding: 14px 18px;
  border: none;
  border-bottom: 1px solid #dbe3ef;
  border-radius: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.billing-report-meta-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 14px;
  color: #334155;
}

.billing-report-meta-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1e3a5f;
  background: #e2e8f0;
}

.billing-report-meta-period strong,
.billing-report-meta-sub strong {
  color: #0f172a;
  font-weight: 700;
}

.billing-report-meta-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #64748b;
}

.billing-table thead th {
  background: #1e293b;
  color: #f8fafc;
  font-weight: 600;
  font-size: 13px;
  border-color: #334155;
  white-space: nowrap;
}

.billing-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.billing-table tbody tr:hover {
  background: #f1f5f9;
}

.billing-th-money,
.billing-td-money,
.billing-th-remain,
.billing-td-remain {
  font-variant-numeric: tabular-nums;
}

.billing-th-remain,
.billing-td-remain {
  color: #0f766e;
  font-weight: 600;
}

.billing-th-deduct,
.billing-td-deduct {
  color: #b45309;
}

.billing-th-copy,
.billing-td-copy {
  width: 64px;
  text-align: center;
}

.billing-table th,
.billing-table td {
  white-space: nowrap;
}

.billing-table-foot {
  border-top: 2px solid #1e293b;
}

.billing-table-foot.hidden {
  display: none;
}

.billing-foot-row td {
  padding: 14px 10px;
  background: #f8fafc;
  border-top: 2px solid #cbd5e1;
  vertical-align: middle;
}

.billing-foot-label {
  text-align: left !important;
  min-width: 120px;
}

.billing-foot-label-main {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.billing-foot-label-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
}

.billing-foot-cell {
  text-align: center !important;
  min-width: 88px;
}

.billing-foot-cell strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.billing-foot-cap {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: none;
}

.billing-foot-income strong {
  color: #1d4ed8;
}

.billing-foot-deduct strong {
  color: #b45309;
}

.billing-foot-remain strong,
.billing-foot-remain-val {
  color: #0f766e !important;
  font-size: 18px !important;
}

.billing-foot-dash {
  text-align: center;
  color: #cbd5e1;
  font-size: 13px;
}

.billing-pay--paid {
  color: #059669;
  font-weight: 600;
}

.billing-pay--unpaid {
  color: #d97706;
  font-weight: 600;
}

.billing-pay--cancel {
  color: #94a3b8;
}

.withdraw-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.withdraw-status--pending {
  color: #b45309;
  background: #fff7ed;
}

.withdraw-status--approved {
  color: #047857;
  background: #ecfdf5;
}

.withdraw-status--rejected {
  color: #b91c1c;
  background: #fef2f2;
}
