* { margin: 0; padding: 0; box-sizing: border-box; }  
body { overflow-x: hidden; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif; background: #f5f7fa; color: #1f2937; }  

/* ===== 登录页 ===== */  
#loginPage { display: flex !important; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 100%); justify-content: center; align-items: center; z-index: 9999; }  
#loginPage.hidden { display: none !important; }  

.login-box { background: white; border-radius: 12px; padding: 40px; width: 360px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }  

.login-logo { text-align: center; margin-bottom: 30px; }  
.login-logo-icon { font-size: 48px; margin-bottom: 10px; }  
.login-logo h1 { font-size: 20px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }  
.login-logo p { font-size: 12px; color: #9ca3af; }  

.login-field { margin-bottom: 16px; }  
.login-field label { display: block; font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 6px; }  
.login-field input { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; }  
.login-field input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); }  

.login-btn { width: 100%; padding: 11px; background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 100%); color: white; border: none; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 12px; transition: all 0.3s; }  
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(30, 58, 95, 0.3); }  

/* ===== 主布局 ===== */  
#mainLayout { display: flex !important; min-height: 100vh; }  
#mainLayout.hidden { display: none !important; }  

/* ===== 侧边栏 ===== */  
.sidebar { width: 220px; background: #1f2937; color: white; padding: 20px; display: flex; flex-direction: column; height: 100vh; overflow-y: auto; position: fixed; left: 0; top: 0; }  

.sidebar-brand { text-align: center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }  
.sidebar-brand-icon { font-size: 32px; margin-bottom: 8px; }  
.sidebar-brand h2 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }  
.sidebar-brand p { font-size: 11px; color: #9ca3af; }  

.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; padding-right: 4px; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }  

.nav-item { padding: 11px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 10px; color: #d1d5db; transition: all 0.3s; }  
.nav-item:hover { background: rgba(255,255,255,0.1); color: white; }  
.nav-item.active { background: #1e3a5f; color: white; font-weight: 600; }  

.sidebar-user { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; display: flex; align-items: center; gap: 10px; }  

.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: #667eea; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: white; flex-shrink: 0; }  

.user-info { flex: 1; font-size: 12px; }  
.user-name { font-weight: 600; color: white; }  
.user-role { color: #9ca3af; font-size: 11px; }  

.logout-btn { width: 32px; height: 32px; border: none; background: rgba(255,255,255,0.1); color: white; border-radius: 6px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }  
.logout-btn:hover { background: #ef4444; }  

/* ===== 主内容 ===== */  
.main-content { margin-left: 220px; display: flex; flex-direction: column; height: 100vh; flex: 1; overflow-x: hidden; min-width: 0; }  

.topbar { height: 56px; background: white; border-bottom: 1px solid #e5e7eb; padding: 0 16px; display: flex; align-items: center; font-size: 16px; font-weight: 700; color: #1f2937; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }  

.page-content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 16px; max-width: 100%; box-sizing: border-box; }  

.notif-item { padding:12px 20px; border-bottom:1px solid #f9fafb; cursor:pointer; transition:background 0.15s; }
.notif-item:hover { background:#f9fafb; }
.notif-item.unread { background:#eff6ff; border-left:3px solid #4f8ef7; }
.notif-item.unread:hover { background:#dbeafe; }
.notif-type-warning { border-left-color:#ef4444 !important; background:#fff1f0 !important; }
.notif-type-contract { border-left-color:#fa8c16 !important; background:#fff7e6 !important; }
.notif-type-success { border-left-color:#52c41a !important; background:#f6ffed !important; }

.page { display: none; }  
.page.active { display: block; }
.page-header { display:flex; align-items:center; padding:0 0 12px 0; margin:0; }
.page-header h2 { margin:0; font-size:20px; }  

.card { padding: 14px !important; margin-bottom: 10px !important; }
/* ===== 统计卡片 ===== */  
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }  

.stat-card { background: white; padding: 16px; border-radius: 10px; display: flex; gap: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }  

.stat-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }  

.stat-value { font-size: 18px; font-weight: 700; color: #1f2937; }  
.stat-label { font-size: 12px; color: #9ca3af; margin-top: 4px; }  

/* ===== 卡片 ===== */  
.card { background: white; border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 20px; }  

.card-title { font-size: 14px; font-weight: 700; color: #1f2937; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }  

/* ===== 表格 ===== */  
.table-wrap { overflow-x: auto; }  

table { width: 100%; border-collapse: collapse; font-size: 13px; }  

thead { background: #f9fafb; border-bottom: 1px solid #e5e7eb; }  

th { padding: 12px; text-align: left; font-weight: 600; color: #6b7280; white-space: nowrap; }  

td { padding: 12px; border-bottom: 1px solid #e5e7eb; color: #374151; }  

/* ===== 按钮 ===== */  
.btn { padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 600; transition: all 0.3s; display: inline-flex; align-items: center; gap: 6px; }  

.btn-primary { background: #1e3a5f; color: white; }  
.btn-primary:hover { background: #15304f; }  

.btn-secondary { background: #e5e7eb; color: #6b7280; }  
.btn-secondary:hover { background: #d1d5db; }  

.btn-ghost { background: transparent; color: #4f8ef7; padding: 4px 8px; }  
.btn-ghost:hover { background: #dbeafe; }  

.btn-sm { padding: 6px 12px; font-size: 11px; }  
.btn-xs { padding: 4px 8px; font-size: 11px; }  

/* ===== 表单 ===== */  
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }  
.form-row.single { grid-template-columns: 1fr; }  

.form-field { display: flex; flex-direction: column; }  
.form-field label { font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 6px; }  

.form-field input,  
.form-field select,  
.form-field textarea {  
  padding: 10px 12px;  
  border: 1px solid #e5e7eb;  
  border-radius: 8px;  
  font-size: 13px;  
  font-family: inherit;  
  transition: all 0.3s;  
}  

.form-field input:focus,  
.form-field select:focus,  
.form-field textarea:focus {  
  outline: none;  
  border-color: #667eea;  
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);  
}  

/* ===== 弹窗 ===== */  
.modal {
  display: none;
}

.modal.show {
  display: flex;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #f9fafb;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 14px;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.3s;
}

.btn-primary {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.btn-primary:hover {
  background: #5568d3;
  border-color: #5568d3;
}

.btn-ghost {
  background: transparent;
  color: #667eea;
  border-color: #e5e7eb;
}

.btn-ghost:hover {
  background: #f9fafb;
}
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 9999; justify-content: center; align-items: center; }  
.modal-overlay.show { display: flex !important; }  

.modal-box { background: white; border-radius: 12px; padding: 24px; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px rgba(0,0,0,0.15); width: 90%; max-width: 700px; }  

.modal-box.sm { max-width: 400px; }  

.modal-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #f3f4f6; }  
.modal-title-text { font-size: 15px; font-weight: 700; color: #1f2937; }  

.modal-close { background: none; border: none; font-size: 20px; color: #9ca3af; cursor: pointer; }  
.modal-close:hover { color: #1f2937; }  

.modal-footer { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; padding-top: 12px; border-top: 1px solid #f3f4f6; }  

/* ===== 工具栏 ===== */  
.toolbar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }  
.search-wrap { flex: 1; min-width: 200px; }  
.search-wrap input { width: 100%; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; }  
.filter-select { padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; cursor: pointer; background: white; }  

/* ===== Toast ===== */  
#toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }  

/* ===== 项目卡片 ===== */  
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }  

.project-card { background: white; border-radius: 10px; padding: 16px; cursor: pointer; transition: all 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }  
.project-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }  

.pc-name { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 6px; }  
.pc-meta { font-size: 11px; color: #9ca3af; margin-bottom: 12px; }  

.pc-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }  
.pc-stat { text-align: center; }  

.psv { font-size: 14px; font-weight: 700; color: #1f2937; }  
.psl { font-size: 10px; color: #9ca3af; margin-top: 2px; }  

.progress-wrap { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }  
.progress-bar { height: 100%; border-radius: 3px; transition: width 0.3s; }  
.pb-blue { background: #4f8ef7; }  
.pb-green { background: #10b981; }  

/* ===== 徽章 ===== */  
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }  
.badge-a { background: #fef3c7; color: #d97706; }  
.badge-b { background: #dbeafe; color: #0c2d6b; }  
.badge-c { background: #dcfce7; color: #16a34a; }  
.badge-d { background: #f3f4f6; color: #6b7280; }  

.badge-reserved { background: #f3f4f6; color: #6b7280; }  
.badge-signed { background: #fef3c7; color: #d97706; }  
.badge-paid { background: #dcfce7; color: #16a34a; }  
.badge-cancelled { background: #fee2e2; color: #dc2626; }  

.form-section-title { font-weight: 600; color: #6b7280; margin-bottom: 12px; margin-top: 12px; font-size: 13px; }  

.dtab { padding: 12px 16px; cursor: pointer; font-weight: 600; border-bottom: 2px solid transparent; transition: all 0.3s; color: #9ca3af; }  
.dtab.active { border-bottom-color: #667eea; color: #667eea; }  

.dinfo-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }  
.dinfo-label { font-weight: 600; color: #6b7280; font-size: 12px; }  
.dinfo-value { color: #1f2937; text-align: right; }  
/* ===== 商机看板 ===== */
.kanban-column {
  min-width: 260px;
  max-width: 280px;
  background: #f9fafb;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 260px);
  flex-shrink: 0;
}
.kanban-header {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid transparent;
  border-radius: 10px 10px 0 0;
}
.kanban-count {
  background: rgba(0,0,0,0.08);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.kanban-amount {
  font-size: 11px;
  color: #6b7280;
  padding: 4px 14px 8px;
}
.kanban-cards {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
}
.kanban-cards.drag-over {
  background: #e0e7ff;
  border-radius: 0 0 10px 10px;
}
.kanban-card {
  background: white;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: grab;
  transition: box-shadow 0.2s, transform 0.2s;
  border-left: 3px solid transparent;
}
.kanban-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}
.kanban-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}
.kanban-card.priority-high { border-left-color: #ef4444; }
.kanban-card.priority-medium { border-left-color: #f59e0b; }
.kanban-card.priority-low { border-left-color: #10b981; }
.kc-title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
  line-height: 1.4;
}
.kc-customer {
  font-size: 11px;
  color: #667eea;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.kc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #9ca3af;
}
.kc-amount {
  font-weight: 700;
  color: #1f2937;
  font-size: 12px;
}
.kc-actions {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}
.kc-actions button {
  flex: 1;
  padding: 4px;
  border: none;
  background: #f3f4f6;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: background 0.2s;
}
.kc-actions button:hover { background: #e5e7eb; }

.priority-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.priority-dot.high { background: #ef4444; }
.priority-dot.medium { background: #f59e0b; }
.priority-dot.low { background: #10b981; }
/* ===== 展位平面图 ===== */
.booth-marker {
  position: absolute;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: box-shadow 0.15s;
  user-select: none;
  border: 1.5px solid rgba(255,255,255,0.6);
  overflow: hidden;
  z-index: 5;
}
.booth-marker:hover { z-index: 10; box-shadow: 0 2px 12px rgba(0,0,0,0.25); transform: scale(1.03); }
.booth-marker.draggable { cursor: grab; }
.booth-marker.dragging { opacity: 0.6; cursor: grabbing; z-index: 50; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.booth-marker.status-reserved { background: rgba(147,197,253,0.85); color: #1e3a5f; }
.booth-marker.status-signed { background: rgba(251,191,36,0.85); color: #78350f; }
.booth-marker.status-paid { background: rgba(52,211,153,0.85); color: #064e3b; }
.booth-marker.status-cancelled { background: rgba(252,165,165,0.85); color: #7f1d1d; }
.booth-marker .bm-no { font-weight: 700; font-size: 11px; line-height: 1.2; }
.booth-marker .bm-cust { font-size: 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.booth-marker .bm-price { font-size: 8px; opacity: 0.7; }

.booth-marker .bm-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: none;
  line-height: 1.5;
}
.booth-marker:hover .bm-tooltip { display: block; }

.unplaced-booth {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: grab;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.unplaced-booth.status-reserved { background: rgba(147,197,253,0.85); color: #1e3a5f; }
.unplaced-booth.status-signed { background: rgba(251,191,36,0.85); color: #78350f; }
.unplaced-booth.status-paid { background: rgba(52,211,153,0.85); color: #064e3b; }
.unplaced-booth.status-cancelled { background: rgba(252,165,165,0.85); color: #7f1d1d; }

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
  /* 侧边栏改为抽屉式 */
  .sidebar {
    width: 240px !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 16px rgba(0,0,0,0.3);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }

  /* 主内容区全宽 */
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* 显示汉堡菜单 */
  #mobile-menu-btn {
    display: block !important;
  }

  /* 顶部栏紧凑化 */
  .topbar {
    padding: 12px 14px !important;
  }
  #topbarTitle {
    font-size: 15px !important;
  }

  /* 页面内容边距 */
  .page {
    padding: 12px !important;
  }

  /* 工具栏 - 垂直排列 */
  .toolbar {
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 10px !important;
  }
  .toolbar > * {
    flex-shrink: 0;
  }

  /* 表格横向滚动 */
  .table-wrap, .card > div[style*="overflow-x"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: 600px;
  }

  /* 统计卡片2列 */
  .stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .stat-card {
    padding: 12px !important;
  }
  .stat-value {
    font-size: 18px !important;
  }
  .stat-label {
    font-size: 11px !important;
  }

  /* 表单布局 - 单列 */
  .form-row {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .form-row.single {
    flex-direction: column !important;
  }
  .form-field {
    width: 100% !important;
  }
  .form-field input, .form-field select, .form-field textarea {
    font-size: 15px !important; /* >=15 防止 iOS 自动放大 */
    padding: 10px !important;
  }

  /* 弹窗 */
  .modal-box {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 40px) !important;
    overflow-y: auto;
    margin: 20px 12px !important;
  }
  .modal-title {
    padding: 14px !important;
  }
  .modal-title-text {
    font-size: 14px !important;
  }

  /* 按钮变大易点 */
  .btn {
    padding: 10px 14px !important;
    font-size: 13px !important;
    min-height: 38px;
  }
  .btn-sm, .btn-xs {
    padding: 7px 10px !important;
    font-size: 12px !important;
  }

  /* 通知面板 */
  #notif-panel {
    width: calc(100vw - 20px) !important;
    right: 10px !important;
    left: 10px !important;
    max-height: 60vh !important;
  }

  /* 客户卡片 */
  .project-grid {
    grid-template-columns: 1fr !important;
  }

  /* 商机看板 */
  .pipeline-kanban {
    flex-direction: column !important;
  }
  .pipeline-stage {
    min-width: 100% !important;
  }

  /* 登录页 */
  .login-box {
    width: calc(100vw - 40px) !important;
    padding: 30px 20px !important;
  }

  /* 隐藏次要列的类 */
  .hide-on-mobile {
    display: none !important;
  }

  /* 文字截断 */
  td, th {
    white-space: nowrap;
  }
}

/* ==================== 平板适配 ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 180px !important;
  }
  .main-content {
    margin-left: 180px !important;
  }
  .stat-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media print {
  *{margin:0;padding:0;box-sizing:border-box}
  body{font-family:-apple-system,"Microsoft YaHei","SimSun","Helvetica Neue",Arial,sans-serif;color:#1f2937;font-size:12px;line-height:1.6;max-width:700px;margin:0 auto;padding:30px 40px}
  .bar{height:6px;background:linear-gradient(90deg,#1e3a5f,#2d5a8e);margin-bottom:20px}
  .title{text-align:center;font-size:20px;font-weight:700;color:#1e3a5f;margin-bottom:4px}
  .subtitle{text-align:center;font-size:10px;color:#9ca3af;margin-bottom:6px}
  .info-box{display:flex;gap:20px;background:#f3f4f6;border-radius:8px;padding:14px 18px;margin-bottom:16px}
  .info-col{flex:1}.info-row{display:flex;margin-bottom:4px;font-size:11px}
  .info-label{color:#6b7280;width:80px;flex-shrink:0}.info-val{color:#1f2937;font-weight:500}
  .section{font-size:13px;font-weight:700;color:#1f2937;margin:14px 0 8px;padding-left:8px;border-left:3px solid #1e3a5f}
  table{width:100%;border-collapse:collapse;font-size:11px;margin-bottom:12px}
  thead th{background:#1e3a5f;color:white;padding:7px 8px;font-weight:600;font-size:10px}
  td{padding:6px 8px;border-bottom:1px solid #e5e7eb}
  .summary{text-align:right;margin-bottom:14px}
  .summary-row{display:flex;justify-content:flex-end;gap:16px;margin-bottom:4px;font-size:12px}
  .summary-label{color:#6b7280}.summary-val{font-weight:600;min-width:110px;text-align:right}
  .total-row{font-size:16px;border-top:2px solid #1e3a5f;padding-top:6px;margin-top:4px}
  .total-row .summary-val{color:#1e3a5f;font-weight:700}
  .discount-val{color:#10b981}
  .terms{font-size:11px;color:#374151;white-space:pre-line;line-height:1.8;margin-bottom:12px}
  .sign-area{display:flex;gap:40px;margin-top:30px;padding-top:14px;border-top:1px solid #d1d5db}
  .sign-col{flex:1}.sign-col p{font-size:10px;color:#6b7280;margin-bottom:40px}
  .sign-col .line{font-size:10px;color:#6b7280}
  .footer{text-align:center;font-size:9px;color:#9ca3af;margin-top:20px}
  .print-btn{display:block;margin:20px auto;padding:10px 30px;background:#1e3a5f;color:white;border:none;border-radius:8px;font-size:14px;cursor:pointer}
  .print-btn:hover{background:#15304f}
}
@media print{.no-print{display:none!important}}
@media print{@page{margin:25mm 22mm;size:A4}body{-webkit-print-color-adjust:exact;print-color-adjust:exact}}



/* Custom Confirm Dialog */
dialog.confirm-dialog{border:none;border-radius:12px;padding:0;box-shadow:0 8px 32px rgba(0,0,0,0.25);max-width:400px;width:90%}
dialog.confirm-dialog::backdrop{background:rgba(0,0,0,0.5)}
.confirm-dialog .cd-msg{padding:24px 28px 16px;font-size:15px;color:#333;line-height:1.6;word-break:break-word}
.confirm-dialog .cd-btns{padding:0 28px 24px;display:flex;gap:12px;justify-content:flex-end}
.confirm-dialog .cd-btn{padding:8px 24px;border-radius:6px;font-size:14px;cursor:pointer;border:none;transition:all .15s}
.confirm-dialog .cd-cancel{background:#f0f0f0;color:#666}
.confirm-dialog .cd-cancel:hover{background:#e0e0e0}
.confirm-dialog .cd-ok{background:#ff4d4f;color:#fff}
.confirm-dialog .cd-ok:hover{background:#ff7875}
/* Signed News Ticker */
#signed-ticker-bar { overflow: hidden; max-width: 100%; position: relative; }
.ticker-content { display: inline-block; white-space: nowrap; animation: ticker-scroll linear infinite; }
.ticker-content:hover { animation-play-state: paused; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } } 100% { transform: translateX(-100%); } }

/* Pool Tabs */
.pool-tab{padding:6px 16px;font-size:12px;font-weight:500;border:none;background:#f9fafb;color:#6b7280;cursor:pointer;transition:all .2s;white-space:nowrap}
.pool-tab:hover{background:#f3f4f6;color:#374151}
.pool-tab.active{background:#1890ff;color:#fff}
.pool-tab+.pool-tab{border-left:1px solid #e5e7eb}
/* 展位平面图缩放 */
#floor-canvas { transform-origin: 0 0; transition: transform 0.15s ease; }
.zoom-btn { padding: 2px 6px !important; font-size: 10px !important; min-width: auto !important; }
.zoom-btn.active { background: #1e3a5f !important; color: white !important; }

/* 展位大小标签 */
.booth-marker .bm-size-label {
  font-size: 8px;
  opacity: 0.8;
  padding: 0 2px;
  line-height: 1.2;
}

/* 展位调整大小手柄 */
.bm-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: rgba(0,0,0,0.2);
  cursor: nwse-resize;
  border-radius: 2px 0 0 0;
}
.bm-resize-handle:hover {
  background: rgba(0,0,0,0.4);
}

/* 未放置展位也显示面积 */
.unplaced-booth {
  font-size: 10px;
}
