/* =========================================================
   Longmai Booking UI System
   Design direction: professional hospitality / SaaS
   ========================================================= */

:root {
  --brand-900: #053634;
  --brand-800: #07473f;
  --brand-700: #0f766e;
  --brand-600: #109484;
  --brand-500: #14b8a6;
  --brand-100: #d8f4ef;
  --brand-50: #effaf7;

  --gold-600: #b7791f;
  --gold-500: #d6a13c;
  --gold-100: #f7e7c6;
  --gold-50: #fff8ea;

  --surface: #f4f7f8;
  --surface-2: #eef3f5;
  --white: #ffffff;
  --ink: #17282a;
  --ink-2: #46585c;
  --ink-3: #6c7f84;
  --line: #dbe6e8;
  --line-strong: #c8d6d9;

  --success: #16803c;
  --success-bg: #e9f9ef;
  --warning: #b45309;
  --warning-bg: #fff4e4;
  --danger: #c2372c;
  --danger-bg: #fdeeed;
  --info: #175fbd;
  --info-bg: #e8f1fe;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(11, 48, 45, .06);
  --shadow-sm: 0 2px 8px rgba(11, 48, 45, .06);
  --shadow: 0 10px 30px rgba(11, 48, 45, .08);
  --shadow-lg: 0 18px 48px rgba(11, 48, 45, .14);
  --ring: 0 0 0 3px rgba(15, 118, 110, .16);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --control-h: 40px;
  --sidebar-w: 252px;
  --topbar-h: 62px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(20, 184, 166, .12), transparent),
    radial-gradient(820px 480px at -10% 8%, rgba(214, 161, 60, .09), transparent),
    var(--surface);
  letter-spacing: .01em;
}

h1,h2,h3,h4,h5 {
  letter-spacing: .01em;
}

a {
  color: var(--brand-700);
}

/* ---------------- Layout ---------------- */
.app-layout {
  min-height: 100vh;
  background: transparent;
}

.sidebar {
  width: var(--sidebar-w);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 32%),
    linear-gradient(160deg, #043a34 0%, #055247 46%, #076a5d 100%);
  box-shadow: 0 0 40px rgba(4, 45, 40, .22);
  border-right: 0;
}

.sidebar-header {
  min-height: calc(var(--topbar-h) + 8px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-header .logo {
  height: 40px !important;
  width: auto !important;
  margin: 0 !important;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.2));
}

.sidebar-header .subtitle {
  font-size: 12px;
  color: rgba(255,255,255,.62);
  letter-spacing: .04em;
  margin-top: 4px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.04);
}

.sidebar-user::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand-500), var(--gold-500));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.2);
}

.sidebar-user .user-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.sidebar-user .user-role {
  color: rgba(255,255,255,.64);
  font-size: 12px;
  line-height: 1.3;
}

.sidebar-nav {
  padding: 10px 10px 18px;
}

.sidebar-nav .nav-group-title {
  padding: 14px 10px 7px;
  color: rgba(255,255,255,.48);
  font-size: 11px;
  font-weight: 600;
}

.sidebar-nav .nav-item {
  min-height: 40px;
  margin: 2px 0;
  padding: 9px 12px;
  border-radius: 10px;
  border-left: 0;
  color: rgba(255,255,255,.76);
  font-size: 14px;
  font-weight: 500;
}

.sidebar-nav .nav-item:hover {
  background: rgba(255,255,255,.1);
  transform: none;
}

.sidebar-nav .nav-item.active {
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  box-shadow: inset 2px 0 0 var(--gold-500);
  color: #fff;
  font-weight: 600;
}

.sidebar-nav .nav-badge {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--warning);
}

.sidebar-nav .nav-badge-todo {
  background: #ff7a59;
  color: #fff;
}

.sidebar-footer {
  padding: 14px 16px 18px;
}

.dev-role-switch select {
  height: 34px;
  border: 1px solid rgba(255,255,255,.2) !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

.sidebar-footer .btn-logout {
  height: 38px;
  border-radius: 10px;
  font-weight: 600;
}

.main-content {
  margin-left: var(--sidebar-w);
  padding: 24px 28px 80px;
  min-height: 100vh;
}

.mobile-header {
  display: none;
}

/* ---------------- Page header ---------------- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 18px 20px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.page-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-900);
  line-height: 1.2;
}

.page-header .breadcrumb {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------------- Cards ---------------- */
.card,
.booking-form {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(219,230,232,.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 18px rgba(11,48,45,.05);
  overflow: visible;
}

.card {
  margin-bottom: 18px;
}

.card-header {
  min-height: 56px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(244,247,248,.85));
}

.card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-900);
}

.card-body {
  padding: 20px;
}

/* ---------------- 布局防溢出 ----------------
   网格/弹性容器里的卡片允许收缩（min-width:auto 会把宽表格的
   最小内容宽度传导到整页）；卡片内宽表格改为卡片内横向滚动 */
.main-content .card { min-width: 0; }
.main-content .card > .card-body { overflow-x: auto; }

/* ---------------- 表格列宽保护 ----------------
   名称/角色类列在空间不足时会被表格自动布局挤成一字一行 */
.main-content .data-table td:nth-child(3) { min-width: 128px; }
.accounts-table td:nth-child(-n+3) { white-space: nowrap; }

/* ---------------- KPI ---------------- */
.stat-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(219,230,232,.85);
  border-left: 0;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card .stat-num,
.stat-card .stat-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.stat-info .stat-num,
.stat-value {
  font-size: 27px;
  color: var(--brand-900);
}

.stat-info .stat-label,
.stat-label {
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
}

.stat-card.stat-blue::before { background: linear-gradient(180deg,#38bdf8,#2563eb); }
.stat-card.stat-green::before { background: linear-gradient(180deg,#34d399,#16803c); }
.stat-card.stat-orange::before { background: linear-gradient(180deg,#fbbf24,#d97706); }
.stat-card.stat-purple::before { background: linear-gradient(180deg,#a78bfa,#7c3aed); }

/* ---------------- Buttons ---------------- */
.btn,
.btn-sm,
.btn-lg,
.btn-login,
.form-group button,
.filter-bar button {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: .01em;
}

.btn,
.btn-sm,
.btn-lg {
  min-height: var(--control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--ink-2);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: all .18s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: #b9d6d1;
  color: var(--brand-700);
  transform: translateY(-1px);
}

.btn-primary,
.btn-success {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(15,118,110,.22);
}

.btn-primary:hover,
.btn-success:hover {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  border-color: transparent;
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(214,161,60,.22);
}

.btn-danger {
  background: linear-gradient(135deg,#e1584d,#c2372c);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(194,55,44,.18);
}

.btn-sm {
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12.5px;
}

.btn-lg {
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 15px;
}

.btn[disabled] {
  transform: none !important;
  box-shadow: none;
}

/* ---------------- Forms ---------------- */
.form-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.form-group {
  min-width: 0 !important;
  margin-bottom: 14px;
}

.form-group label,
.filter-bar .filter-item label {
  color: var(--ink-2) !important;
  font-weight: 600 !important;
}

.form-group input,
.form-group select,
.form-group textarea,
.filter-bar .filter-item input,
.filter-bar .filter-item select,
.dev-role-switch select {
  min-height: var(--control-h);
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-family: var(--font);
  box-shadow: var(--shadow-xs);
  transition: all .15s ease;
}

/* input 固定等高 + 行高居中；select 用原生行高（避免 iOS 文字不居中） */
.form-group input:not([type="checkbox"]):not([type="radio"]):not(textarea),
.filter-bar .filter-item input,
.dev-role-switch select {
  height: var(--control-h);
  line-height: var(--control-h);
  box-sizing: border-box;
}

.form-group select,
.filter-bar .filter-item select {
  height: var(--control-h);
  line-height: normal !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box;
}

.form-group input[type="date"] {
  line-height: normal;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.filter-bar .filter-item input:focus,
.filter-bar .filter-item select:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: var(--ring);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-3);
}

.form-section-title,
.detail-section h4 {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px !important;
  border: 1px solid #cfe6e2;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--brand-50), #fff);
  color: var(--brand-800) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.form-hint {
  color: var(--ink-3) !important;
}

/* ---------------- Tables ---------------- */
.table-wrap,
.card-body:has(> table.data-table),
.card-body:has(> .table-wrap) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.data-table,
table.edit-table,
table.inv-calendar-table,
table.revenue-table,
table.report-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

table.data-table {
  min-width: 680px;
  font-size: 13.5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

table.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg,#f7fafb,#eef5f6);
  color: var(--brand-800);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

table.data-table td {
  padding: 11px 11px;
  border-bottom: 1px solid #edf3f4;
  color: var(--ink-2);
  vertical-align: middle;
}

table.data-table tbody tr:last-child td {
  border-bottom: 0;
}

table.data-table tbody tr:hover {
  background: #f6fbfa;
  box-shadow: inset 3px 0 0 var(--brand-500);
}

table.data-table tbody tr:nth-child(even) {
  background: rgba(248, 251, 251, .5);
}

table.data-table tbody tr:nth-child(even):hover {
  background: #f6fbfa;
}

/* ---------------- Editable tables ---------------- */
.edit-table {
  min-width: 720px;
}

.edit-table th {
  background: #f2f7f8;
  color: var(--brand-800) !important;
  font-size: 12px !important;
}

.edit-table td input,
.edit-table td select {
  height: 34px;
  box-sizing: border-box;
  padding: 5px 8px !important;
  font-size: 13px;
}

/* ---------------- Filter bar ---------------- */
.filter-bar,
.inventory-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px !important;
  padding: 14px;
  border: 1px solid rgba(219,230,232,.9);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-xs);
  margin-bottom: 18px;
}

.filter-bar .filter-item {
  min-width: 140px;
}

.filter-bar .filter-item input,
.filter-bar .filter-item select {
  min-width: 140px;
}

.inventory-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

/* ---------------- Tags ---------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 9px !important;
  border: 1px solid transparent;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

.tag-pending {
  background: var(--warning-bg) !important;
  border-color: #f4d0a4;
  color: var(--warning) !important;
}

.tag-approved {
  background: var(--info-bg) !important;
  border-color: #b8d3f8;
  color: var(--info) !important;
}

.tag-rejected,
.tag-cancel {
  background: var(--danger-bg) !important;
  border-color: #f3c5c0;
  color: var(--danger) !important;
}

.tag-completed {
  background: var(--success-bg) !important;
  border-color: #b8e8c9;
  color: var(--success) !important;
}

/* ---------------- Modal ---------------- */
.modal-overlay {
  padding: 24px;
  background: rgba(8, 34, 31, .44);
  backdrop-filter: blur(4px);
}

.modal-box {
  width: min(560px, 100%);
  max-height: min(84vh, 820px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-box.modal-lg {
  width: min(820px, 100%);
}

.modal-box.modal-xl {
  width: min(1080px, 100%);
}

.modal-header {
  padding: 16px 20px;
  background: linear-gradient(90deg,#fff,#f7fafb);
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  color: var(--brand-900);
  font-size: 16px;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 14px 20px;
  background: #fbfdfd;
  border-top: 1px solid var(--line);
  gap: 10px;
}

/* ---------------- Empty / messages ---------------- */
.empty-state {
  padding: 56px 24px;
}

.empty-state .empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-50);
  font-size: 28px;
  margin-bottom: 14px;
}

.empty-state .empty-text {
  color: var(--ink-3);
  font-size: 14px;
}

.msg-item {
  border-bottom: 1px solid #edf3f4;
}

.msg-item.unread {
  background: linear-gradient(90deg,var(--brand-50),#fff 40%);
}

/* ---------------- Inventory ---------------- */
.inventory-table th,
.inventory-table td {
  min-width: 42px;
  font-size: 12.5px;
}

.inventory-table td.ok { color: var(--success) !important; }
.inventory-table td.low { color: var(--warning) !important; }
.inventory-table td.zero { color: var(--danger) !important; background: var(--danger-bg) !important; }

.inv-calendar-table {
  min-width: 980px;
}

/* ---------------- Login ---------------- */
.login-wrap {
  background:
    radial-gradient(900px 500px at 82% 0%, rgba(20,184,166,.22), transparent),
    radial-gradient(700px 420px at 0% 100%, rgba(214,161,60,.18), transparent),
    linear-gradient(150deg,#03322d 0%,#065247 48%,#077a69 100%);
}

.login-card {
  width: min(430px, 100%);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 70px rgba(2, 30, 27, .35);
  padding: 40px 34px;
}

.login-logo h1 {
  color: var(--brand-900);
  font-size: 22px;
}

.login-logo p {
  color: var(--ink-3);
}

.login-form input {
  min-height: 46px;
  border-radius: 12px;
  font-size: 15px;
}

.login-form .btn-login {
  min-height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  box-shadow: 0 10px 24px rgba(15,118,110,.24);
}

/* ---------------- Toast ---------------- */
.toast {
  min-width: 300px;
  border: 1px solid var(--line);
  border-radius: 12px !important;
  box-shadow: var(--shadow);
  font-size: 13.5px;
}

/* ---------------- Mobile UI ---------------- */
.mobile-tabbar {
  display: none;
}

@media (max-width: 860px) {
  :root {
    --control-h: 44px;
    --radius-lg: 16px;
  }

  body {
    background:
      radial-gradient(720px 380px at 90% -6%, rgba(20,184,166,.14), transparent),
      var(--surface);
  }

  .mobile-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px calc(10px + env(safe-area-inset-top) * 0);
    background: linear-gradient(180deg, #053634 0%, #07473f 100%);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .mobile-header .hamburger {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    font-size: 20px;
  }

  .mobile-header .page-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px !important;
    font-weight: 700 !important;
  }

  .mobile-header .header-user {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255,255,255,.72);
    font-size: 12px;
  }

  .sidebar {
    width: min(84vw, 300px);
  }

  .main-content {
    padding: 14px 12px calc(84px + env(safe-area-inset-bottom));
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    margin-top: 0;
    border-radius: var(--radius);
  }

  .page-header h2 {
    font-size: 19px;
  }

  .page-header .breadcrumb {
    font-size: 12px;
  }

  .card {
    border-radius: var(--radius);
    margin-bottom: 12px;
  }

  .card-header {
    padding: 13px 15px;
  }

  .card-header h3 {
    font-size: 14px;
  }

  .card-body {
    padding: 14px;
  }

  .stat-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }

  .stat-card {
    padding: 13px;
    border-radius: 14px;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .stat-info .stat-num,
  .stat-value {
    font-size: 21px;
  }

  .stat-info .stat-label,
  .stat-label {
    font-size: 12px;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .filter-bar .filter-item,
  .filter-bar .filter-item input,
  .filter-bar .filter-item select {
    width: 100%;
    min-width: 0;
  }

  .inventory-filter-bar {
    grid-template-columns: 1fr;
  }

  table.data-table {
    min-width: 620px;
    font-size: 12.5px;
  }

  table.data-table thead th,
  table.data-table td {
    padding: 10px 9px;
  }

  table.edit-table {
    min-width: 640px;
  }

  .booking-form {
    max-width: 100% !important;
    padding: 16px 12px !important;
    border-radius: 16px;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-box {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 94dvh;
    border: 0;
    border-radius: 22px 22px 0 0;
    animation: sheetUp .24s ease;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 16px;
  }

  .modal-body {
    padding: 16px;
  }

  .modal-footer {
    position: sticky;
    bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .btn,
  .btn-sm,
  .btn-lg {
    min-height: 42px;
  }

  .btn-sm {
    min-height: 34px;
    font-size: 12px;
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.92);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 28px rgba(11,48,45,.08);
    backdrop-filter: blur(18px);
  }

  .mobile-tabbar button {
    height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-tabbar button .tab-icon {
    font-size: 18px;
    line-height: 1;
  }

  .mobile-tabbar button.active {
    background: var(--brand-50);
    color: var(--brand-700);
  }

  .toast-container {
    left: 12px;
    right: 12px;
    top: 66px;
  }

  .toast {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .main-content {
    padding: 12px 10px calc(80px + env(safe-area-inset-bottom));
  }

  .page-header h2 {
    font-size: 18px;
  }

  .stat-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) {
  .stat-grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@keyframes sheetUp {
  from { transform: translateY(8%); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}

/* Better scrollbars */
.sidebar-nav::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.sidebar-nav::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(100,127,132,.25);
  border-radius: 99px;
}

.sidebar-nav::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

/* Accessibility focus */
.nav-item:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* ---------------- Desktop app topbar ---------------- */
.app-topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--topbar-h);
  padding: 10px 28px;
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(219,230,232,.9);
  box-shadow: 0 6px 24px rgba(11,48,45,.05);
  backdrop-filter: blur(16px);
}

.app-topbar .topbar-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.app-topbar .topbar-title {
  color: var(--brand-900);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-topbar .topbar-subtitle {
  color: var(--ink-3);
  font-size: 12px;
  white-space: nowrap;
}

.app-topbar .topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.app-topbar .topbar-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--brand-600),var(--gold-500));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22);
}

.app-topbar .topbar-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-topbar .topbar-user-info strong {
  color: var(--brand-900);
  font-size: 13px;
}

.app-topbar .topbar-user-info span {
  color: var(--ink-3);
  font-size: 11px;
}

@media (min-width: 861px) {
  .app-topbar {
    display: flex;
  }

  .main-content {
    padding-top: calc(var(--topbar-h) + 24px);
  }
}

@media (max-width: 860px) {
  .app-topbar {
    display: none;
  }
}

.sidebar-header .sidebar-brand-sub {
  color: rgba(255,255,255,.46);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Unified responsive breakpoint with mobile header/tabbar */
@media (max-width: 860px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .28s ease;
    z-index: 1001;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    background: rgba(6, 30, 27, .52);
  }

  .sidebar-overlay.show {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }
}

/* =========================================================
   Professional detail pass
   ========================================================= */

/* Typography rhythm */
.main-content h2 {
  margin: 0;
}

.page-header .breadcrumb {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-header h3 {
  display: flex;
  align-items: center;
  min-width: 0;
}

.card-body > p:first-child {
  margin-top: 0;
}

/* Compact data cards */
.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1px rgba(15,118,110,.08);
}

.stat-card .stat-info {
  min-width: 0;
}

.stat-card .stat-sub {
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.4;
}

/* Forms and filters */
.form-row,
.filter-bar {
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group textarea,
.filter-bar .filter-item input {
  appearance: none;
}

/* select 保留原生外观：iOS/Android 的原生 picker 才能正确渲染文字 + 垂直居中 */
.form-group select,
.filter-bar .filter-item select {
  appearance: auto;
  -webkit-appearance: menulist;
  line-height: normal !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236c7f84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 36px;
}

.form-section {
  border: 1px solid #e4eef0;
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(11,48,45,.03);
}

.form-section-title {
  justify-content: flex-start;
  margin-bottom: 15px;
}

.form-section-title .section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px !important;
  border-radius: 50%;
  background: var(--brand-700);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(15,118,110,.2);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand-700);
}

/* Tables and details */
.table-wrap {
  border-radius: 14px;
}

table.data-table th.col-center,
table.data-table td.col-center {
  text-align: center;
}

table.data-table th.col-right,
table.data-table td.col-right {
  text-align: right;
}

table.data-table td .btn + .btn,
table.data-table td .btn-sm + .btn-sm {
  margin-left: 6px;
}

table.data-table td .btn-sm {
  margin-bottom: 3px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-info-grid .info-item {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e4eef0;
  border-radius: 12px;
  background: #fbfdfd;
}

.detail-info-grid .info-label {
  margin-bottom: 4px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}

.detail-info-grid .info-value {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}

/* Dashboard/list action areas */
.page-header .header-actions,
.page-actions,
.card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* Modal polish */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header .modal-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f1f6f7;
}

/* Inventory / calendar readability */
.inventory-table th,
.inventory-table td {
  text-align: center;
}

.inv-calendar-cell {
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}

/* Login refinement */
.login-card .login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 26px;
}

/* Mobile: same components, compact travel-style layout */
@media (max-width: 860px) {
  .detail-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .detail-info-grid .info-item {
    padding: 10px 12px;
  }

  .detail-info-grid .info-value {
    font-size: 13px;
  }

  .form-section {
    padding: 12px;
  }

  .card-header {
    flex-wrap: wrap;
  }

  .card-actions,
  .page-header .header-actions,
  .page-actions {
    width: 100%;
    justify-content: stretch;
  }

  .card-actions .btn,
  .page-actions .btn {
    flex: 1 1 auto;
  }

  .stat-card .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .page-header .breadcrumb {
    max-width: 100%;
    white-space: normal;
  }

  .modal-box.modal-lg,
  .modal-box.modal-xl {
    width: 100% !important;
  }

  table.data-table {
    min-width: 540px;
  }

  table.edit-table {
    min-width: 520px;
  }

  /* Keep the first column visible on narrow order tables */
  .table-wrap table.data-table thead th:first-child,
  .table-wrap table.data-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 1px 0 0 var(--line);
  }

  .table-wrap table.data-table thead th:first-child {
    z-index: 3;
    background: #f2f7f8;
  }
}

@media (max-width: 420px) {
  .detail-info-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 14px;
  }

  .page-header h2 {
    max-width: 100%;
    word-break: break-word;
  }
}

/* =========================================================
   Mobile final pass: ensure every custom inline grid stacks
   ========================================================= */
@media (max-width: 860px) {
  .main-content [style*="display:grid"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .main-content .card-body > div[style*="display:grid"],
  .main-content .card-body [style*="display:grid"] {
    min-width: 0;
  }

  .main-content [style*="display:flex"][style*="gap:"] {
    flex-wrap: wrap;
  }

  .main-content [style*="width:160px"],
  .main-content [style*="width:120px"],
  .main-content [style*="width:140px"],
  .main-content [style*="width:60px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  .main-content .form-input,
  .main-content .filter-item input,
  .main-content .filter-item select {
    min-height: 44px;
  }

  .main-content .btn,
  .main-content button {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .main-content .table-wrap {
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px var(--line);
  }

  .main-content .table-wrap::after {
    content: "左右滑动查看更多";
    display: block;
    position: sticky;
    left: 0;
    margin-top: -1px;
    padding: 7px 10px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 11px;
    line-height: 1;
    text-align: center;
  }

  .main-content .empty-state {
    min-height: 180px;
  }
}

/* =========================================================
   Mobile layout lock:真正切换为单栏，并禁止页面级横向滚动
   ========================================================= */
@media (max-width: 860px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .app-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
  }

  .main-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px 12px calc(84px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: min(84vw, 300px) !important;
    margin: 0 !important;
    visibility: hidden;
    pointer-events: none;
  }

  .sidebar,
  .sidebar.open {
    z-index: 1200 !important;
  }

  .sidebar.open {
    visibility: visible;
    pointer-events: auto;
  }

  .sidebar-overlay {
    z-index: 1150 !important;
  }

  .sidebar-overlay,
  .mobile-header,
  .mobile-tabbar {
    width: 100%;
    max-width: 100%;
  }

  .main-content *,
  .mobile-header *,
  .mobile-tabbar * {
    max-width: 100%;
  }

  .main-content table,
  .main-content pre,
  .main-content iframe {
    max-width: 100%;
  }

  .main-content .table-wrap,
  .main-content .inventory-scroll,
  .main-content .card-body:has(> table.data-table),
  .main-content .card-body:has(> .table-wrap) {
    max-width: 100%;
    overflow-x: auto !important;
  }
}

/* Mobile top navigation lock:固定顶部导航，下翻不消失 */
@media (max-width: 860px) {
  .mobile-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1100 !important;
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: calc(58px + env(safe-area-inset-top)) !important;
    padding-top: calc(10px + env(safe-area-inset-top)) !important;
    background: linear-gradient(120deg, #043a34, #055247) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    backdrop-filter: blur(12px);
  }

  .main-content {
    padding-top: calc(74px + env(safe-area-inset-top)) !important;
  }

  .toast-container {
    top: calc(72px + env(safe-area-inset-top)) !important;
  }
}

/* Booking form mobile cards:多列录入表在手机端转为逐字段卡片，避免横向截断 */
@media (max-width: 1080px) {
  .booking-form .form-section {
    overflow: visible;
  }

  .booking-form .form-row {
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 10px;
  }

  .booking-form .form-group,
  .booking-form .form-group input,
  .booking-form .form-group select,
  .booking-form .form-group textarea {
    min-width: 0 !important;
    max-width: 100%;
  }

  .booking-form table.edit-table,
  .booking-form table.edit-table tbody,
  .booking-form table.edit-table tr,
  .booking-form table.edit-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
  }

  .booking-form table.edit-table thead {
    display: none;
  }

  .booking-form table.edit-table {
    margin-bottom: 8px;
    border: 0 !important;
    background: transparent;
  }

  .booking-form table.edit-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .booking-form table.edit-table tbody tr {
    position: relative;
    padding: 12px;
    border: 1px solid #dce9ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(11, 48, 45, .05);
  }

  .booking-form table.edit-table td {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 0 !important;
    border: 0 !important;
    margin: 0 0 10px;
    overflow: visible;
  }

  .booking-form table.edit-table td:last-child {
    margin-bottom: 0;
  }

  .booking-form table.edit-table td::before {
    flex: 0 0 auto;
    align-self: flex-start;
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  .booking-form table.edit-table td input,
  .booking-form table.edit-table td select,
  .booking-form table.edit-table td textarea {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    border: 1px solid #d7e4e7 !important;
    border-radius: 9px !important;
    background: #fff !important;
    padding: 9px 12px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
  }

  .booking-form table.edit-table td input:not([type="checkbox"]):not([type="radio"]):not(textarea),
  .booking-form table.edit-table td select {
    height: 44px !important;
    min-height: 44px !important;
  }

  .booking-form table.edit-table .market-price-hint {
    margin-top: 4px;
    white-space: normal !important;
    line-height: 1.3;
  }

  .booking-form table.edit-table .room-option-trigger {
    display: block !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 9px 12px !important;
    border-radius: 9px !important;
    font-size: 15px !important;
    text-align: left !important;
  }

  .booking-form table.edit-table .room-option-panel {
    position: static !important;
    margin-top: 6px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(11, 48, 45, .1) !important;
  }

  .booking-form table.edit-table .room-option-panel label {
    align-items: center;
    min-height: 36px;
    font-size: 14px;
  }

  .booking-form table.edit-table .comp-room-wrap {
    align-items: center;
  }

  .booking-form table.edit-table .comp-room {
    width: 82px !important;
    min-height: 36px !important;
  }

  .booking-form table.edit-table .col-action {
    order: 9;
    align-items: flex-start;
    margin: 2px 0 0;
    padding-top: 10px !important;
    border-top: 1px solid #e8f0f1 !important;
  }

  .booking-form table.edit-table .btn-del-row {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 120px !important;
    height: 36px !important;
    font-size: 14px !important;
  }

  #table_room td:nth-child(1)::before { content: "入住日期"; }
  #table_room td:nth-child(2)::before { content: "离店日期"; }
  #table_room td:nth-child(3)::before { content: "区域"; }
  #table_room td:nth-child(4)::before { content: "房型"; }
  #table_room td:nth-child(5)::before { content: "房数"; }
  #table_room td:nth-child(6)::before { content: "销售价 / 成交价"; }
  #table_room td:nth-child(7)::before { content: "是否含早"; }
  #table_room td:nth-child(8)::before { content: ""; display: none; }

  #table_package td:nth-child(1)::before { content: "开始日期"; }
  #table_package td:nth-child(2)::before { content: "结束日期"; }
  #table_package td:nth-child(3)::before { content: "套餐名称"; }
  #table_package td:nth-child(4)::before { content: "数量"; }
  #table_package td:nth-child(5)::before { content: "门市价"; }
  #table_package td:nth-child(6)::before { content: "销售价"; }
  #table_package td:nth-child(7)::before { content: "产品构成"; }
  #table_package td:nth-child(8)::before { content: "使用条件"; }
  #table_package td:nth-child(9)::before { content: ""; display: none; }

  #table_catering td:nth-child(1)::before { content: "开始日期"; }
  #table_catering td:nth-child(2)::before { content: "结束日期"; }
  #table_catering td:nth-child(3)::before { content: "用餐餐厅"; }
  #table_catering td:nth-child(4)::before { content: "用餐类型"; }
  #table_catering td:nth-child(5)::before { content: "时间"; }
  #table_catering td:nth-child(6)::before { content: "桌数"; }
  #table_catering td:nth-child(7)::before { content: "餐标"; }
  #table_catering td:nth-child(8)::before { content: "用餐形式"; }
  #table_catering td:nth-child(9)::before { content: ""; display: none; }

  #table_meeting td:nth-child(1)::before { content: "开始日期"; }
  #table_meeting td:nth-child(2)::before { content: "结束日期"; }
  #table_meeting td:nth-child(3)::before { content: "会议室"; }
  #table_meeting td:nth-child(4)::before { content: "时段"; }
  #table_meeting td:nth-child(5)::before { content: "参会人数"; }
  #table_meeting td:nth-child(6)::before { content: "台型"; }
  #table_meeting td:nth-child(7)::before { content: "价格"; }
  #table_meeting td:nth-child(8)::before { content: ""; display: none; }

  #table_health td:nth-child(1)::before { content: "日期"; }
  #table_health td:nth-child(2)::before { content: "时间"; }
  #table_health td:nth-child(3)::before { content: "康体项目"; }
  #table_health td:nth-child(4)::before { content: "参与人数"; }
  #table_health td:nth-child(5)::before { content: "项目价格"; }
  #table_health td:nth-child(6)::before { content: "备注"; }
  #table_health td:nth-child(7)::before { content: ""; display: none; }

  #table_spring td:nth-child(1)::before { content: "日期"; }
  #table_spring td:nth-child(2)::before { content: "温泉馆"; }
  #table_spring td:nth-child(3)::before { content: "入园人数"; }
  #table_spring td:nth-child(4)::before { content: "服务价格"; }
  #table_spring td:nth-child(5)::before { content: "特殊备注"; }
  #table_spring td:nth-child(6)::before { content: ""; display: none; }

  #table_vehicle td:nth-child(1)::before { content: "日期"; }
  #table_vehicle td:nth-child(2)::before { content: "接送人数"; }
  #table_vehicle td:nth-child(3)::before { content: "接送时间"; }
  #table_vehicle td:nth-child(4)::before { content: "出发地点"; }
  #table_vehicle td:nth-child(5)::before { content: "送达地点"; }
  #table_vehicle td:nth-child(6)::before { content: "返程地点"; }
  #table_vehicle td:nth-child(7)::before { content: "对接联系人"; }
  #table_vehicle td:nth-child(8)::before { content: "备注"; }
  #table_vehicle td:nth-child(9)::before { content: ""; display: none; }
}

/* =========================================================
   Booking form system: 统一团队/散客预订单的布局与视觉层级
   ========================================================= */
.booking-form {
  width: min(1480px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 26px;
  border-color: rgba(219, 230, 232, .95);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94));
  box-shadow: var(--shadow-sm);
}

.booking-form .booking-form-title {
  color: var(--brand-900);
  font-size: 24px;
  letter-spacing: .02em;
}

.booking-form .booking-form-subtitle {
  color: var(--ink-3);
  font-size: 13px;
}

.booking-form .form-section {
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid rgba(219, 230, 232, .95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .74);
  overflow-x: auto;
}

.booking-form .form-section[style*="display:none"] {
  display: none !important;
}

.booking-form .form-section:last-of-type {
  margin-bottom: 0;
}

.booking-form .form-section-title {
  min-height: 40px;
  margin-bottom: 16px;
  padding: 8px 14px !important;
  border-color: rgba(207, 230, 226, .85);
  font-size: 14px !important;
}

.booking-form .form-section-title .section-num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-right: 3px;
  font-size: 12px;
}

.booking-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  align-items: start;
  gap: 14px 16px;
  margin: 0;
}

.booking-form .form-row + .form-row {
  margin-top: 14px;
}

.booking-form .form-group {
  min-width: 0;
}

.booking-form .form-group > label {
  margin-bottom: 7px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
}

.booking-form .form-group input,
.booking-form .form-group select,
.booking-form .form-group textarea,
.booking-form .form-group #approverTrigger {
  min-height: var(--control-h);
  box-sizing: border-box;
  border-color: #d7e4e7;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
}

/* form-group 内 input/select/trigger 等高（textarea 除外） */
.booking-form .form-group input:not([type="checkbox"]):not([type="radio"]):not(textarea),
.booking-form .form-group select,
.booking-form .form-group #approverTrigger {
  height: var(--control-h);
  line-height: var(--control-h);
}

.booking-form .form-group textarea {
  min-height: 92px;
  padding: 11px 12px !important;
  line-height: 1.55;
}

.booking-form .form-hint {
  margin-top: 7px;
  font-size: 12px !important;
  line-height: 1.45;
}
.booking-form .form-section > textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #d7e4e7;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.55;
  resize: vertical;
  box-sizing: border-box;
}

.booking-form .form-section > textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}

.booking-form .form-tip {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #cfe6e2;
  border-left: 3px solid var(--brand-600);
  border-radius: 10px;
  background: linear-gradient(90deg, #effaf7, #fff);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}

.booking-form .form-tip-warning {
  border-color: #f5ddba;
  border-left-color: var(--warning);
  background: linear-gradient(90deg, #fff7ed, #fff);
}

.booking-form .form-tip b {
  color: var(--brand-800);
}

.booking-form .biz-type-check {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.booking-form .biz-type-check label {
  min-height: 44px;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid #d7e4e7;
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.booking-form .biz-type-check label:hover {
  border-color: var(--brand-500);
  background: var(--brand-50);
  color: var(--brand-800);
}

.booking-form .biz-type-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--brand-700);
}

.booking-form table.edit-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border: 1px solid #dce9ec;
  border-radius: 12px;
  background: #fff;
}

.booking-form .edit-table th:last-child,
.booking-form .edit-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.booking-form .edit-table td input,
.booking-form .edit-table td select {
  width: 100%;
  box-sizing: border-box;
}

.booking-form .edit-table th {
  padding: 9px 6px !important;
  background: #f2f7f8;
  border-bottom: 1px solid #dce9ec;
  font-size: 11px !important;
  white-space: nowrap;
}

.booking-form .edit-table td {
  padding: 6px !important;
  vertical-align: middle;
}

.booking-form .edit-table td input,
.booking-form .edit-table td select {
  height: 38px;
  box-sizing: border-box;
  padding: 7px 9px !important;
  border: 1px solid #d7e4e7 !important;
  border-radius: 9px !important;
  background: #fff !important;
  font-size: 13px;
  line-height: 38px;
  vertical-align: middle;
}

/* date/number 输入去掉浏览器默认的额外间距，确保同行等高 */
.booking-form .edit-table td input[type="date"],
.booking-form .edit-table td input[type="number"] {
  height: 38px !important;
  line-height: normal;
  appearance: none;
  -webkit-appearance: none;
}

.booking-form .edit-table td input[type="date"]::-webkit-calendar-picker-indicator {
  height: 100%;
  margin: 0;
}
/* 各编辑表紧凑列宽（按内容重要度分配，配合下方最小宽度保底） */
.booking-form #table_room th:nth-child(1),
.booking-form #table_room td:nth-child(1) { width: 15%; }
.booking-form #table_room th:nth-child(2),
.booking-form #table_room td:nth-child(2) { width: 15%; }
.booking-form #table_room th:nth-child(3),
.booking-form #table_room td:nth-child(3) { width: 11%; }
.booking-form #table_room th:nth-child(4),
.booking-form #table_room td:nth-child(4) { width: 15%; }
.booking-form #table_room th:nth-child(5),
.booking-form #table_room td:nth-child(5) { width: 6%; }
.booking-form #table_room th:nth-child(6),
.booking-form #table_room td:nth-child(6) { width: 14%; }
.booking-form #table_room th:nth-child(7),
.booking-form #table_room td:nth-child(7) { width: 12%; }
.booking-form #table_room th:nth-child(8),
.booking-form #table_room td:nth-child(8) { width: 5%; }

.booking-form #table_catering th:nth-child(1),
.booking-form #table_catering td:nth-child(1) { width: 11%; }
.booking-form #table_catering th:nth-child(2),
.booking-form #table_catering td:nth-child(2) { width: 11%; }
.booking-form #table_catering th:nth-child(3),
.booking-form #table_catering td:nth-child(3) { width: 17%; }
.booking-form #table_catering th:nth-child(4),
.booking-form #table_catering td:nth-child(4) { width: 10%; }
.booking-form #table_catering th:nth-child(5),
.booking-form #table_catering td:nth-child(5) { width: 9%; }
.booking-form #table_catering th:nth-child(6),
.booking-form #table_catering td:nth-child(6) { width: 9%; }
.booking-form #table_catering th:nth-child(7),
.booking-form #table_catering td:nth-child(7) { width: 13%; }
.booking-form #table_catering th:nth-child(8),
.booking-form #table_catering td:nth-child(8) { width: 13%; }
.booking-form #table_catering th:nth-child(9),
.booking-form #table_catering td:nth-child(9) { width: 7%; }

.booking-form #table_meeting th:nth-child(1),
.booking-form #table_meeting td:nth-child(1) { width: 12%; }
.booking-form #table_meeting th:nth-child(2),
.booking-form #table_meeting td:nth-child(2) { width: 12%; }
.booking-form #table_meeting th:nth-child(3),
.booking-form #table_meeting td:nth-child(3) { width: 19%; }
.booking-form #table_meeting th:nth-child(4),
.booking-form #table_meeting td:nth-child(4) { width: 9%; }
.booking-form #table_meeting th:nth-child(5),
.booking-form #table_meeting td:nth-child(5) { width: 9%; }
.booking-form #table_meeting th:nth-child(6),
.booking-form #table_meeting td:nth-child(6) { width: 11%; }
.booking-form #table_meeting th:nth-child(7),
.booking-form #table_meeting td:nth-child(7) { width: 14%; }
.booking-form #table_meeting th:nth-child(8),
.booking-form #table_meeting td:nth-child(8) { width: 4%; }


.booking-form .edit-table .btn-del-row {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(194, 55, 44, .18);
  border-radius: 9px;
  background: rgba(194, 55, 44, .06);
  font-size: 16px;
}
.booking-form table.edit-table .room-option-trigger {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.booking-form table.edit-table .room-option-panel {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 100;
  min-width: 200px;
  margin-top: 2px;
  padding: 6px 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(11, 48, 45, .14);
}

.booking-form table.edit-table .room-option-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.3;
}

.booking-form table.edit-table .room-option-panel label:hover {
  background: rgba(20, 184, 166, .06);
}

.booking-form table.edit-table .room-option-panel input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--brand-700);
}

.booking-form table.edit-table .comp-room-wrap {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-top: 1px solid #eee;
}

.booking-form table.edit-table .comp-room {
  width: 72px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #d7e4e7;
  border-radius: 6px;
  font-size: 13px;
}

.booking-form .btn-add-row {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px dashed var(--brand-500);
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 700;
}

.booking-form .sign-row {
  margin: 22px 0 20px;
  padding: 16px 18px;
  border: 1px solid rgba(219, 230, 232, .95);
  border-radius: var(--radius);
  background: #fbfdfd;
}

.booking-form .form-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.booking-form .form-actions .btn {
  min-width: 132px;
}

.booking-form .form-actions .btn-primary {
  min-width: 178px;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .18);
}

/* Booking form mobile cards:多列录入表转为字段卡片，彻底避免截断 */
@media (max-width: 980px) {
  .booking-form {
    width: 100%;
    padding: 20px;
  }

  .booking-form .form-row {
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  }
}

@media (max-width: 860px) {
  .page-header {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: var(--radius);
  }

  .page-header h2 {
    font-size: 19px;
  }

  .booking-form {
    padding: 14px;
    border-radius: 16px;
  }

  .booking-form .booking-form-title {
    font-size: 19px;
    line-height: 1.3;
  }

  .booking-form .booking-form-subtitle {
    padding-bottom: 12px;
    font-size: 12px;
    line-height: 1.5;
  }

  .booking-form .form-section {
    padding: 14px 12px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #fff;
  }

  .booking-form .form-section-title {
    margin-bottom: 14px;
    font-size: 14px !important;
    line-height: 1.35;
  }

  .booking-form .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .booking-form .form-group input,
  .booking-form .form-group select,
  .booking-form .form-group textarea,
  .booking-form .form-group #approverTrigger {
    font-size: 16px;
  }

  /* 原生 select 弹出菜单跟随 select 字号，设为 16 保证可读；line-height 归 normal 保证垂直居中 */
  .booking-form select,
  .filter-bar select,
  .form-group select,
  table.edit-table select {
    font-size: 16px !important;
    line-height: normal !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
  }

  .booking-form .biz-type-check {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .booking-form .form-tip {
    margin-bottom: 12px;
    padding: 10px;
    font-size: 13px;
    line-height: 1.55;
  }

  .booking-form .form-section {
    overflow: visible;
  }

  .booking-form table.edit-table,
  .booking-form table.edit-table tbody,
  .booking-form table.edit-table tr,
  .booking-form table.edit-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
  }

  .booking-form table.edit-table thead {
    display: none;
  }

  .booking-form table.edit-table {
    margin-bottom: 8px;
    border: 0 !important;
    background: transparent;
  }

  .booking-form table.edit-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .booking-form table.edit-table tbody tr {
    position: relative;
    padding: 12px;
    border: 1px solid #dce9ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(11, 48, 45, .05);
  }

  .booking-form table.edit-table td {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 0 !important;
    border: 0 !important;
    margin: 0 0 10px;
    overflow: visible;
  }

  .booking-form table.edit-table td:last-child {
    margin-bottom: 0;
  }

  .booking-form table.edit-table td::before {
    flex: 0 0 auto;
    align-self: flex-start;
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  .booking-form table.edit-table td input,
  .booking-form table.edit-table td select,
  .booking-form table.edit-table td textarea {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    border: 1px solid #d7e4e7 !important;
    border-radius: 9px !important;
    background: #fff !important;
    padding: 9px 12px !important;
    /* 16px 是移动端浏览器判定"不缩放"的阈值，同时原生下拉弹出选项也会跟随这个字号 */
    font-size: 16px !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
  }

  /* select 单独覆盖：原生外观 + normal 行高 + 上下 padding 归零，保证文字完整且垂直居中 */
  .booking-form table.edit-table td select,
  .filter-bar select,
  .form-group select {
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    line-height: normal !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .booking-form table.edit-table td input[type="date"] {
    min-height: 46px !important;
  }

  .booking-form table.edit-table .market-price-hint {
    margin-top: 4px;
    white-space: normal !important;
    line-height: 1.3;
  }

  .booking-form table.edit-table .room-option-trigger {
    display: block !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 9px 12px !important;
    border-radius: 9px !important;
    font-size: 15px !important;
    text-align: left !important;
  }

  .booking-form table.edit-table .room-option-panel {
    position: static !important;
    margin-top: 6px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(11, 48, 45, .1) !important;
  }

  .booking-form table.edit-table .room-option-panel label {
    align-items: center;
    min-height: 36px;
    font-size: 14px;
  }

  .booking-form table.edit-table .col-action {
    order: 9;
    align-items: flex-start;
    margin: 2px 0 0;
    padding-top: 10px !important;
    border-top: 1px solid #e8f0f1 !important;
  }

  .booking-form table.edit-table .btn-del-row {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 120px !important;
    height: 36px !important;
    font-size: 14px !important;
  }

  #table_room td:nth-child(1)::before { content: "入住日期"; }
  #table_room td:nth-child(2)::before { content: "离店日期"; }
  #table_room td:nth-child(3)::before { content: "区域"; }
  #table_room td:nth-child(4)::before { content: "房型"; }
  #table_room td:nth-child(5)::before { content: "房数"; }
  #table_room td:nth-child(6)::before { content: "销售价 / 成交价"; }
  #table_room td:nth-child(7)::before { content: "是否含早"; }
  #table_room td:nth-child(8)::before { content: ""; display: none; }

  #table_package td:nth-child(1)::before { content: "开始日期"; }
  #table_package td:nth-child(2)::before { content: "结束日期"; }
  #table_package td:nth-child(3)::before { content: "套餐名称"; }
  #table_package td:nth-child(4)::before { content: "数量"; }
  #table_package td:nth-child(5)::before { content: "门市价"; }
  #table_package td:nth-child(6)::before { content: "销售价"; }
  #table_package td:nth-child(7)::before { content: "产品构成"; }
  #table_package td:nth-child(8)::before { content: "使用条件"; }
  #table_package td:nth-child(9)::before { content: ""; display: none; }

  #table_catering td:nth-child(1)::before { content: "开始日期"; }
  #table_catering td:nth-child(2)::before { content: "结束日期"; }
  #table_catering td:nth-child(3)::before { content: "用餐餐厅"; }
  #table_catering td:nth-child(4)::before { content: "用餐类型"; }
  #table_catering td:nth-child(5)::before { content: "时间"; }
  #table_catering td:nth-child(6)::before { content: "桌数"; }
  #table_catering td:nth-child(7)::before { content: "餐标"; }
  #table_catering td:nth-child(8)::before { content: "用餐形式"; }
  #table_catering td:nth-child(9)::before { content: ""; display: none; }

  #table_meeting td:nth-child(1)::before { content: "开始日期"; }
  #table_meeting td:nth-child(2)::before { content: "结束日期"; }
  #table_meeting td:nth-child(3)::before { content: "会议室"; }
  #table_meeting td:nth-child(4)::before { content: "时段"; }
  #table_meeting td:nth-child(5)::before { content: "参会人数"; }
  #table_meeting td:nth-child(6)::before { content: "台型"; }
  #table_meeting td:nth-child(7)::before { content: "价格"; }
  #table_meeting td:nth-child(8)::before { content: ""; display: none; }

  #table_health td:nth-child(1)::before { content: "日期"; }
  #table_health td:nth-child(2)::before { content: "时间"; }
  #table_health td:nth-child(3)::before { content: "康体项目"; }
  #table_health td:nth-child(4)::before { content: "参与人数"; }
  #table_health td:nth-child(5)::before { content: "项目价格"; }
  #table_health td:nth-child(6)::before { content: "备注"; }
  #table_health td:nth-child(7)::before { content: ""; display: none; }

  #table_spring td:nth-child(1)::before { content: "日期"; }
  #table_spring td:nth-child(2)::before { content: "温泉馆"; }
  #table_spring td:nth-child(3)::before { content: "入园人数"; }
  #table_spring td:nth-child(4)::before { content: "服务价格"; }
  #table_spring td:nth-child(5)::before { content: "特殊备注"; }
  #table_spring td:nth-child(6)::before { content: ""; display: none; }

  #table_vehicle td:nth-child(1)::before { content: "日期"; }
  #table_vehicle td:nth-child(2)::before { content: "接送人数"; }
  #table_vehicle td:nth-child(3)::before { content: "接送时间"; }
  #table_vehicle td:nth-child(4)::before { content: "出发地点"; }
  #table_vehicle td:nth-child(5)::before { content: "送达地点"; }
  #table_vehicle td:nth-child(6)::before { content: "返程地点"; }
  #table_vehicle td:nth-child(7)::before { content: "对接联系人"; }
  #table_vehicle td:nth-child(8)::before { content: "备注"; }
  #table_vehicle td:nth-child(9)::before { content: ""; display: none; }

  .booking-form .sign-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
    padding: 14px;
  }

  .booking-form .form-actions {
    flex-direction: column-reverse;
    gap: 10px;
    width: 100%;
    margin-top: 18px;
  }

  .booking-form .form-actions .btn,
  .booking-form .form-actions .btn-primary {
    width: 100%;
    min-width: 0;
  }
}

/* 散客房表与团队表共用行模板：含早列正常显示（表头已补齐为 8 列） */

/* =========================================================
   Hotel OS 简洁骨架 — 全局统一：侧边栏 / 页头 / 卡片
   仅做视觉覆盖，不影响结构与业务数据
   ========================================================= */

/* ---------- 全局底色 ---------- */
body {
  background: #f6f7f9;
  color: var(--ink);
}

/* ---------- 侧边栏：深色沉稳，对齐 Hotel OS ---------- */
.sidebar {
  width: var(--sidebar-w);
  background: #0b2b28;
  box-shadow: 2px 0 12px rgba(15,40,38,.08);
}
.sidebar-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-header .logo { border-radius: 8px; }
.sidebar-header .subtitle {
  color: rgba(255,255,255,.55);
  font-size: 12px;
}
.sidebar-nav { padding: 12px 12px 20px; }
.sidebar-nav .nav-group-title {
  padding: 16px 12px 6px;
  color: rgba(255,255,255,.42);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}
.sidebar-nav .nav-group + .nav-group .nav-group-title { border-top: none; margin-top: 0; }
.sidebar-nav .nav-item {
  min-height: 42px;
  margin: 2px 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 500;
  border-left: 0 !important;
}
.sidebar-nav .nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-nav .nav-item.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--brand-500);
}
.sidebar-nav .nav-item .nav-icon {
  width: 22px;
  font-size: 16px;
}
.sidebar-nav .nav-badge { background: var(--brand-500); color: #052e2b; }

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.sidebar-footer .btn-logout {
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
}

/* ---------- 页头：扁平标题 + 面包屑 ---------- */
.page-header {
  margin: 0 0 20px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.page-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.page-header .breadcrumb {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- 卡片：纯白柔和阴影 ---------- */
.card,
.booking-form {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16,24,40,.06);
}
.card { margin-bottom: 16px; }
.card-header {
  min-height: auto;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f2f5;
  background: #fff;
}
.card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.card-body { padding: 20px; }

/* ---------- KPI 统计卡 ---------- */
.stat-card {
  padding: 20px;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16,24,40,.06);
}
.stat-card::before { width: 4px; border-radius: 4px; }
.stat-card .stat-num,
.stat-card .stat-value { color: var(--ink); }

/* ---------- 通用按钮：统一体系 ---------- */
.btn {
  border-radius: 8px;
  font-weight: 500;
}
.btn-primary,
.btn-primary:not([class*="btn-danger"]) {
  background: #0e9384;
  border-color: #0e9384;
}
.btn-primary:hover {
  background: #0b7c70;
  border-color: #0b7c70;
}

/* =========================================================
   P1 — 表单控件 / 按钮 / 表格 / 状态标签 统一为 Hotel OS 风格
   ========================================================= */

/* ---------- 表单控件：统一高度/圆角/边框/聚焦 ---------- */
.form-group input,
.form-group select,
.form-group textarea,
.filter-bar .filter-item input,
.filter-bar .filter-item select,
.inventory-filter-bar .filter-item input,
.inventory-filter-bar .filter-item select {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #d7dbe0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  box-shadow: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.filter-bar .filter-item input:focus,
.filter-bar .filter-item select:focus,
.inventory-filter-bar .filter-item input:focus,
.inventory-filter-bar .filter-item select:focus {
  border-color: #0e9384;
  box-shadow: 0 0 0 3px rgba(14,147,132,.12);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-3); }

.form-group label,
.filter-bar .filter-item label,
.inventory-filter-bar .filter-item label {
  color: var(--ink-2) !important;
  font-weight: 500 !important;
  font-size: 12.5px;
}

/* ---------- 筛选条 ---------- */
.filter-bar,
.inventory-filter-bar {
  padding: 14px 16px;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16,24,40,.06);
  margin-bottom: 16px;
}

/* ---------- 按钮：统一体系 ---------- */
.btn,
.btn-sm,
.btn-lg {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: none;
}
.btn { border: 1px solid #d7dbe0; }
.btn:hover { border-color: #0e9384; color: #0e9384; transform: none; }
.btn-primary,
.btn-success {
  background: #0e9384;
  border-color: #0e9384;
  color: #fff !important;
  box-shadow: none;
}
.btn-primary:hover,
.btn-success:hover {
  background: #0b7c70;
  border-color: #0b7c70;
  color: #fff !important;
  transform: none;
}
.btn-accent {
  background: #d6a13c;
  border-color: #d6a13c;
  color: #fff !important;
  box-shadow: none;
}
.btn-danger {
  background: #d4380d;
  border-color: #d4380d;
  color: #fff !important;
  box-shadow: none;
}
.btn-sm { min-height: 32px; padding: 6px 12px; font-size: 12.5px; }

/* ---------- 表格：表头浅灰 / 行悬停 / 无重边框 ---------- */
table.data-table {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  font-size: 13.5px;
}
table.data-table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f3;
  background: #f9fafb;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}
table.data-table td {
  padding: 11px 11px;
  border-bottom: 1px solid #f0f2f5;
  color: var(--ink-2);
}
table.data-table tbody tr:nth-child(even) { background: #fafbfc; }
table.data-table tbody tr:hover { background: #f0fdfa; box-shadow: none; }

/* 可编辑表格 */
.edit-table th {
  background: #f9fafb;
  color: var(--ink-3) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-bottom: 1px solid #eef0f3;
}
.edit-table td input,
.edit-table td select {
  min-height: 36px;
  padding: 7px 10px !important;
  border: 1px solid #d7dbe0 !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  background: #fff !important;
}
.edit-table td input:focus,
.edit-table td select:focus {
  border-color: #0e9384 !important;
  box-shadow: 0 0 0 3px rgba(14,147,132,.12) !important;
}

/* ---------- 状态标签：柔和胶囊 ---------- */
.tag {
  min-height: 24px;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}
.tag-pending { background: #fff4e4 !important; border-color: #f8d8a8; color: #b45309 !important; }
.tag-approved { background: #e8f1fe !important; border-color: #bcd4f5; color: #1d4ed8 !important; }
.tag-rejected,
.tag-cancel { background: #fdeeed !important; border-color: #f3c5c0; color: #c2372c !important; }
.tag-completed { background: #e9f9ef !important; border-color: #b8e8c9; color: #16803c !important; }

/* =========================================================
   P2 — KPI 统计卡细化 / 弹窗 / 响应式收尾
   ========================================================= */

/* ---------- KPI 卡：图标圆底 + 数字清晰 ---------- */
.stat-card .stat-icon,
.stat-card .stat-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f0fdfa;
  color: #0e9384;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.stat-card .stat-num,
.stat-card .stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}
.stat-card .stat-info .stat-label,
.stat-card .stat-label { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 弹窗 ---------- */
.modal-overlay { background: rgba(17,24,39,.5); backdrop-filter: blur(3px); }
.modal-box {
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(16,24,40,.2);
}
.modal-header { padding: 16px 20px; background: #fff; border-bottom: 1px solid #f0f2f5; }
.modal-header h3 { color: var(--ink); font-size: 16px; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; background: #fff; border-top: 1px solid #f0f2f5; }

/* ---------- 订单流程条 / 步骤条 ---------- */
.step-item,
.flow-step { color: var(--ink-3); }

/* ---------- 响应式收尾：小屏表格转卡片、控件铺满 ---------- */
@media (max-width: 768px) {
  .filter-bar,
  .inventory-filter-bar { padding: 12px; }
  .filter-bar .filter-item,
  .inventory-filter-bar .filter-item { min-width: 100%; }
  .filter-bar .filter-item input,
  .filter-bar .filter-item select,
  .inventory-filter-bar .filter-item input,
  .inventory-filter-bar .filter-item select { width: 100%; }
  .form-group input,
  .form-group select,
  .form-group textarea { width: 100%; }
}


/* =========================================================
   品牌主题覆盖层（原 AIRBNB 覆盖层收敛为品牌变量别名层）
   暖白画布 + 龙脉青绿(#0f766e) + 金色点缀 + 柔和阴影 + 系统字体栈
   ========================================================= */

/* ---------- 全局字体：系统栈（SF Pro/苹方、Segoe/雅黑、鸿蒙/小米） ---------- */
:root {
  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC','HarmonyOS Sans SC','MiSans','Microsoft YaHei','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  /* 语义别名：历史规则中的 --airbnb-* 统一指向品牌色，保持旧选择器生效 */
  --airbnb-red: var(--brand-600);
  --airbnb-red-deep: var(--brand-700);
  --airbnb-ink: var(--ink);
  --airbnb-ink-2: var(--ink-2);
  --airbnb-surface: #f2f2f2;
  --airbnb-line: #ebebeb;

  /* 品牌色保持青绿主色（不再映射到红系） */

  --ink: #17282a;
  --ink-2: #46585c;
  --ink-3: #6c7f84;
  --line: #e8edec;
  --line-strong: #dde6e4;

  --surface: #f4f6f7;
  --surface-2: #eef3f4;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;

  /* 青墨色调三层阴影 */
  --shadow-card: 0 0 0 1px rgba(13,48,43,.04), 0 1px 2px rgba(13,48,43,.05), 0 4px 12px rgba(13,48,43,.07);
  --shadow-hover: 0 4px 14px rgba(13,48,43,.12);
  --shadow-lg: 0 18px 44px rgba(13,48,43,.16);
}

html, body {
  font-family: var(--font);
  color: var(--airbnb-ink);
  background: var(--surface);
}

/* ---------- 侧边栏：品牌深青 + 青绿高亮 + 金色徽标 ---------- */
.sidebar { background: linear-gradient(180deg, #053634 0%, #07473f 100%); box-shadow: 2px 0 12px rgba(13,48,43,.12); }
.sidebar-nav .nav-item.active {
  background: rgba(20,184,166,.16);
  box-shadow: inset 3px 0 0 var(--brand-500);
  color: #fff;
}
.sidebar-nav .nav-badge { background: var(--gold-500); color: #fff; }
.sidebar-nav .nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-footer .btn-logout { background: rgba(255,255,255,.10); color: rgba(255,255,255,.75); }
.sidebar-header .logo { border-radius: 10px; }

/* ---------- 页头 ---------- */
.page-header h2 { color: var(--airbnb-ink); font-weight: 700; }
.page-header .breadcrumb { color: var(--airbnb-ink-2); }

/* ---------- 卡片：更大圆角 + Airbnb 三层阴影 ---------- */
.card,
.booking-form,
.filter-bar,
.inventory-filter-bar {
  border: 1px solid rgba(0,0,0,.02);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  background: #fff;
}
.card-header { border-bottom: 1px solid #f0f0f0; }
.card-header h3 { color: var(--airbnb-ink); }
.card-body { color: var(--airbnb-ink-2); }

/* ---------- KPI 卡 ---------- */
.stat-card {
  border: 1px solid rgba(0,0,0,.02);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  background: #fff;
}
.stat-card::before { width: 4px; border-radius: 4px; background: var(--airbnb-red); }
.stat-card .stat-num, .stat-card .stat-value { color: var(--airbnb-ink); }
.stat-card .stat-icon, .stat-card .stat-ico {
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--airbnb-red);
}

/* ---------- 主按钮：品牌青绿渐变 CTA ---------- */
.btn-primary,
.btn-primary:not([class*="btn-danger"]),
.btn-success {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(15,118,110,.28);
}
.btn-primary:hover,
.btn-success:hover {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-800)) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.btn-accent { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)) !important; border-color: transparent !important; color: #fff !important; }
.btn-danger { background: var(--danger) !important; border-color: var(--danger) !important; color: #fff !important; }
.btn { border-radius: 10px; }

/* ---------- 表单控件：Airbnb 圆角 + 红色聚焦 ---------- */
.form-group input,
.form-group select,
.form-group textarea,
.filter-bar .filter-item input,
.filter-bar .filter-item select,
.inventory-filter-bar .filter-item input,
.inventory-filter-bar .filter-item select,
.edit-table td input,
.edit-table td select {
  border-radius: 8px;
  border: 1px solid #d7d7d7;
  color: var(--airbnb-ink);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.filter-bar .filter-item input:focus,
.filter-bar .filter-item select:focus,
.inventory-filter-bar .filter-item input:focus,
.inventory-filter-bar .filter-item select:focus,
.edit-table td input:focus,
.edit-table td select:focus {
  border-color: var(--airbnb-red) !important;
  box-shadow: 0 0 0 3px rgba(15,118,110,.15) !important;
}
.form-group label,
.filter-bar .filter-item label,
.inventory-filter-bar .filter-item label { color: var(--airbnb-ink) !important; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #9a9a9a; }

/* ---------- 表格 ---------- */
table.data-table { border: 1px solid rgba(0,0,0,.02); border-radius: 16px; }
table.data-table thead th { background: #fafafa; color: var(--airbnb-ink-2); border-bottom: 1px solid #f0f0f0; }
table.data-table td { border-bottom: 1px solid #f0f0f0; color: var(--airbnb-ink); }
table.data-table tbody tr:nth-child(even) { background: #fcfcfc; }
table.data-table tbody tr:hover { background: #eef8f6; }
.edit-table th { background: #fafafa; color: var(--airbnb-ink-2) !important; }

/* ---------- 状态标签 ---------- */
.tag { border-radius: 999px !important; }
.tag-pending { background: #fff4e4 !important; border-color: #f8d8a8 !important; color: #b45309 !important; }
.tag-approved { background: #e8f1fe !important; border-color: #bcd4f5 !important; color: #1d4ed8 !important; }
.tag-rejected, .tag-cancel { background: var(--danger-bg) !important; border-color: #f3c5c0 !important; color: var(--danger) !important; }
.tag-completed { background: #e9f9ef !important; border-color: #b8e8c9 !important; color: #16803c !important; }

/* ---------- 弹窗 ---------- */
.modal-overlay { background: rgba(11,43,40,.5); backdrop-filter: blur(3px); }
.modal-box { border-radius: 20px; box-shadow: var(--shadow-lg); }
.modal-header h3 { color: var(--airbnb-ink); }
.modal-header { border-bottom: 1px solid #f0f0f0; }
.modal-footer { border-top: 1px solid #f0f0f0; }

/* ---------- 步骤条 ---------- */
.step-item.active, .flow-step.active { color: var(--airbnb-red); }

/* ---------- 链接/次要文本 ---------- */
a { color: var(--airbnb-red); }
.text-muted, .muted { color: var(--airbnb-ink-2); }

/* ---------- 移动端顶栏/抽屉：Airbnb 暖黑（带 !important 压过 1712 行渐变） ---------- */
@media (max-width: 860px) {
  .mobile-header {
    background: linear-gradient(180deg, #053634 0%, #07473f 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
  }
  .mobile-header .hamburger { color: #fff; }
  .mobile-header .header-user { color: rgba(255,255,255,.7); }
  .sidebar { background: linear-gradient(180deg, #053634 0%, #07473f 100%) !important; }
  .sidebar .nav-item.active { box-shadow: inset 3px 0 0 var(--airbnb-red) !important; }
}

/* =========================================================
   表单填写优化覆盖层（团队预订 / 散客预订）
   仅调整视觉与布局，不影响任何业务逻辑 / 数据字段
   ========================================================= */

/* ---------- 表单整体更饱满：减少两侧空白 ---------- */
.booking-form {
  padding: 28px 30px;
}
.booking-form > .form-section {
  padding: 20px 22px;
  margin-bottom: 18px;
}

/* 通用基础信息：让字段更宽、更整齐 */
.booking-form .form-row {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px 20px;
}
.booking-form .form-row + .form-row { margin-top: 16px; }
.booking-form .form-group > label {
  font-size: 13px;
  letter-spacing: .01em;
}

/* ---------- 客房表格：列宽重分配，表格更饱满 ---------- */
.booking-form #table_room th,
.booking-form #table_room td { padding: 8px 8px !important; }
.booking-form #table_room th:nth-child(1),
.booking-form #table_room td:nth-child(1) { width: 14%; }
.booking-form #table_room th:nth-child(2),
.booking-form #table_room td:nth-child(2) { width: 14%; }
.booking-form #table_room th:nth-child(3),
.booking-form #table_room td:nth-child(3) { width: 12%; }
.booking-form #table_room th:nth-child(4),
.booking-form #table_room td:nth-child(4) { width: 14%; }
.booking-form #table_room th:nth-child(5),
.booking-form #table_room td:nth-child(5) { width: 7%; }
.booking-form #table_room th:nth-child(6),
.booking-form #table_room td:nth-child(6) { width: 18%; }
.booking-form #table_room th:nth-child(7),
.booking-form #table_room td:nth-child(7) { width: 10%; }
.booking-form #table_room th:nth-child(8),
.booking-form #table_room td:nth-child(8) { width: 5%; }

/* 散客 / 团队表格内控件更大更好点 */
.booking-form .edit-table td input,
.booking-form .edit-table td select {
  min-height: 40px;
  padding: 8px 10px !important;
  font-size: 13.5px !important;
}

/* ---------- 选择按钮（含早/免陪同房）：更大更清晰 ---------- */
.booking-form table.edit-table .room-option-trigger {
  min-height: 38px;
  padding: 8px 12px !important;
  border: 1px solid #d7d7d7 !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--airbnb-ink) !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  text-align: left !important;
}
.booking-form table.edit-table .room-option-trigger:hover {
  border-color: var(--airbnb-red) !important;
  background: #eef8f6 !important;
}
/* 选项下拉面板：checkbox 更醒目 */
.booking-form table.edit-table .room-option-panel {
  left: auto !important;
  right: 0 !important;
  min-width: 0 !important;
  width: max-content !important;
  max-width: min(260px, calc(100vw - 40px)) !important;
  padding: 8px 0 !important;
  border: 1px solid #e3e3e3 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(13,48,43,.14) !important;
  overflow: hidden !important;
}
.booking-form table.edit-table .room-option-panel label {
  padding: 9px 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--airbnb-ink) !important;
}
.booking-form table.edit-table .room-option-panel label:hover {
  background: #eef8f6 !important;
}
.booking-form table.edit-table .room-option-panel input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  accent-color: var(--airbnb-red) !important;
}
.booking-form table.edit-table .comp-room-wrap {
  padding: 9px 14px !important;
}
.booking-form table.edit-table .comp-room {
  min-height: 32px !important;
  font-size: 13px !important;
}

/* ---------- 成交价格 / 门市价提示 ---------- */
.booking-form .edit-table .market-price-hint {
  font-size: 12px !important;
  color: var(--airbnb-ink-2) !important;
  margin-top: 3px !important;
}

/* ---------- 删除行按钮 ---------- */
.booking-form table.edit-table .btn-del-row {
  width: 36px !important;
  height: 36px !important;
  border-radius: 9px !important;
}

/* ---------- 老客户快速选择：占满整行更饱满 ---------- */
.booking-form .form-section .form-group#custSearchGroup,
.booking-form .form-section .form-group:has(#custSearch) {
  grid-column: 1 / -1;
}

/* ---------- 业态选择按钮：更整齐 ---------- */
.booking-form .biz-type-check {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.booking-form .biz-type-check label {
  min-height: 46px;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 10px;
}

/* 移动端适配：让表格在手机上更易用 */
@media (max-width: 860px) {
  .booking-form { padding: 16px; }
  .booking-form > .form-section { padding: 16px 14px; }
  .booking-form .form-row { gap: 14px; }
  .booking-form table.edit-table .room-option-trigger {
    font-size: 14px !important;
  }
}

/* =========================================================
   下拉面板显示优化（对应审批人 / 客房选择）
   确保点开后内容完整清晰显示、不撑出横向滚动
   ========================================================= */

/* ---------- 审批人下拉面板：完整显示、不滚动截断 ---------- */
.booking-form #approverTrigger {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid #d7d7d7 !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  color: var(--airbnb-ink) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  text-align: left !important;
  padding: 8px 32px 8px 12px !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236c7f84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  cursor: pointer;
}
.booking-form #approverTrigger:hover {
  border-color: var(--airbnb-red) !important;
}

.booking-form #approverPanel {
  left: 0 !important;
  right: auto !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  overflow-y: visible !important;
  border: 1px solid #e3e3e3 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(13,48,43,.14) !important;
  padding: 4px 0 !important;
  box-sizing: border-box !important;
}
.booking-form #approverPanel label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 4px 14px !important;
  margin: 0 !important;
  cursor: pointer;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: var(--airbnb-ink) !important;
  border-radius: 6px;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
.booking-form #approverPanel label:hover {
  background: #eef8f6 !important;
}
.booking-form #approverPanel .approver-check {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  accent-color: var(--airbnb-red) !important;
  box-sizing: border-box !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}

/* ---------- 客房选择面板：完整清晰、紧跟按钮 ---------- */
.booking-form table.edit-table .room-option-panel {
  right: 0 !important;
  left: auto !important;
  min-width: 0 !important;
  width: max-content !important;
  max-width: min(240px, calc(100vw - 48px)) !important;
  padding: 6px 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.booking-form table.edit-table .room-option-panel label {
  padding: 9px 14px !important;
  margin: 0 !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}
.booking-form table.edit-table .room-option-panel input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 auto;
  margin: 0 !important;
  accent-color: var(--airbnb-red) !important;
}
.booking-form table.edit-table .comp-room-wrap {
  padding: 9px 14px !important;
  white-space: nowrap !important;
}

/* ---------- 老客户下拉面板：同样约束不溢出 ---------- */
.booking-form #custDropdown {
  left: 0 !important;
  right: 0 !important;
  max-height: 280px !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(13,48,43,.14) !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

/* =========================================================
   【最终修复】下拉面板点开不撑高页面、不产生滚动
   根因：≤1080px 断点把 .room-option-panel 设成 position:static，
   进入文档流导致点开面板页面变高出现滚动。此处强制改回
   absolute 贴附触发按钮，保持内容完整显示且不撑高文档。
   ========================================================= */

/* 客房选项下拉：任意视口都保持贴附式浮层，不进入文档流 */
.booking-form table.edit-table .room-option-panel {
  position: absolute !important;
  top: 100% !important;
  left: auto !important;
  right: 0 !important;
  margin-top: 2px !important;
  z-index: 1200 !important;
  min-width: 0 !important;
  width: max-content !important;
  max-width: min(260px, calc(100vw - 40px)) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* 审批人下拉：同样贴附式浮层，z-index 提高避免被下方区块遮住 */
.booking-form #approverPanel {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1200 !important;
  max-height: none !important;
  overflow-y: visible !important;
  box-sizing: border-box !important;
}

/* 确保面板定位基准在表单内，浮层不被父容器裁剪/遮挡 */
.booking-form .form-section {
  overflow: visible !important;
}
@media (max-width: 1080px) {
  .booking-form .form-section {
    overflow: visible !important;
  }
}

/* =========================================================
   「含早」是/否 选项面板：简单清晰
   ========================================================= */
.booking-form table.edit-table .room-breakfast-panel {
  min-width: 128px !important;
  padding: 6px 0 !important;
}
.booking-form table.edit-table .room-breakfast-opt {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  cursor: pointer !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--airbnb-ink) !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
}
.booking-form table.edit-table .room-breakfast-opt::before {
  content: '';
  flex: 0 0 auto;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  border: 2px solid #d1d5db !important;
  background: #fff !important;
  box-sizing: border-box !important;
  transition: all .15s ease !important;
}
.booking-form table.edit-table .room-breakfast-opt:hover {
  background: #f8faf9 !important;
}
.booking-form table.edit-table .room-breakfast-opt.active {
  color: var(--airbnb-red) !important;
  font-weight: 600 !important;
  background: #eef8f6 !important;
}
.booking-form table.edit-table .room-breakfast-opt.active::before {
  border-color: var(--airbnb-red) !important;
  background: var(--airbnb-red) !important;
}
.booking-form table.edit-table .room-breakfast-opt + .room-breakfast-opt {
  border-top: 1px solid #f0f0f0 !important;
}

/* =========================================================
   「含早」按钮宽度优化：紧凑、不撑满整列/整行
   ========================================================= */
.booking-form table.edit-table .room-option-trigger {
  width: max-content !important;
  min-width: 92px !important;
  max-width: 100% !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
.booking-form table.edit-table .room-option-trigger:hover {
  border-color: var(--airbnb-red) !important;
}
/* 移动端卡片式布局：含早按钮不撑满整行宽度 */
@media (max-width: 1080px) {
  .booking-form table.edit-table .room-option-trigger {
    width: auto !important;
    min-width: 140px !important;
    max-width: 220px !important;
    display: inline-flex !important;
  }
}

/* ===== 审批人规则配置卡片 ===== */
.approval-rule-block { background: #fafbfc; border: 1px solid #f0f0f0; border-radius: 10px; padding: 14px 16px; }
.approval-rule-title { font-size: 14px; font-weight: 600; color: var(--airbnb-ink, #222); margin-bottom: 10px; }
.approval-rule-list { display: flex; flex-direction: column; gap: 10px; }
.approval-rule-item {
  display: flex; align-items: flex-start; gap: 14px; padding: 10px 12px;
  background: #fff; border: 1px solid #efefef; border-radius: 8px; flex-wrap: wrap;
}
.approval-rule-name { font-size: 13px; font-weight: 600; color: var(--ink); min-width: 76px; padding-top: 2px; flex-shrink: 0; }
.approval-check-group { display: flex; flex-wrap: wrap; gap: 8px 18px; flex: 1; }
.approval-check {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2);
  cursor: pointer; user-select: none; line-height: 1.4;
}
.approval-check input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--airbnb-red, #e0245e); cursor: pointer; }
.approval-check:hover { color: var(--airbnb-red, #e0245e); }
@media (max-width: 640px) {
  .approval-rule-item { flex-direction: column; gap: 8px; }
  .approval-rule-name { min-width: auto; }
}

/* ===== 项目区域映射（审批人规则） ===== */
.approval-map-details { margin-top: 10px; background: #fff; border: 1px solid #efefef; border-radius: 8px; padding: 0 12px; }
.approval-map-details summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink);
  padding: 10px 0; user-select: none; list-style: none;
  display: flex; align-items: center; gap: 6px;
}
.approval-map-details summary::-webkit-details-marker { display: none; }
.approval-map-details summary::after { content: '▸'; margin-left: auto; color: var(--ink-3); transition: transform .15s; }
.approval-map-details[open] summary::after { transform: rotate(90deg); }
.approval-map-grid { display: flex; flex-direction: column; gap: 6px; padding: 2px 0 12px; max-width: 640px; }
.approval-map-item {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px;
  background: #fafbfc; border: 1px solid #f0f0f0; border-radius: 6px;
  max-width: 640px;
}
.approval-map-name {
  font-size: 13px; color: var(--ink); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.appr-map-select,
.appr-health-default {
  height: 34px;
  box-sizing: border-box;
  font-size: 13px; padding: 4px 24px 4px 8px; border: 1px solid #d1d5db;
  border-radius: 6px; background: #fff; color: var(--ink); min-width: 132px;
  flex-shrink: 0;
  text-overflow: ellipsis;
}
/* 窄屏时缩写「门楼会议室」这类长选项 */
.appr-map-select option {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.appr-map-select:focus,
.appr-health-default:focus { outline: none; border-color: var(--airbnb-red, #e0245e); }
.approval-map-badge {
  font-size: 11px; color: #b7791f; border: 1px solid currentColor;
  border-radius: 999px; padding: 1px 8px; flex-shrink: 0; white-space: nowrap;
}
@media (max-width: 640px) {
  .approval-map-item { flex-wrap: wrap; }
  .appr-map-select { flex: 1; min-width: 120px; }
}


/* =========================================================
   简洁化 + 全端自适应（第二轮统一）
   ========================================================= */

/* ---------- 表头更干净：去渐变、统一字重 ---------- */
table.data-table thead th {
  background: #f4f8f7;
  font-weight: 600;
}

/* ---------- KPI 标签不竖排 ---------- */
.stat-card .stat-label { white-space: nowrap; }

/* ---------- 预订表单手机端：删除行按钮靠右对齐 ---------- */
@media (max-width: 1080px) {
  .booking-form table.edit-table td.col-action,
  .booking-form table.edit-table td:last-child {
    text-align: right;
  }
  .booking-form table.edit-table .btn-del-row { display: inline-block; margin-left: auto; }
}

/* ---------- 移动端网格堆叠（客户/报表 KPI、客户档案、库存日历筛选） ---------- */
@media (max-width: 720px) {
  .customer-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .customer-profile { grid-template-columns: 1fr; }
  .inv-calendar-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card .stat-sub { font-size: 11px; }
}
@media (max-width: 430px) {
  .customer-summary-grid,
  .report-kpis,
  .inv-calendar-controls { grid-template-columns: 1fr; }
}

/* =========================================================
   预订表单控件尺寸保底（团队/散客通用）
   解决日期被截断、下拉文字显示不全：窄窗口时表格在卡片内滚动
   ========================================================= */
.booking-form table.edit-table td input[type="date"] { min-width: 128px; }
.booking-form table.edit-table td input[type="time"] { min-width: 84px; }
.booking-form table.edit-table td select {
  min-width: 100px;
  text-overflow: ellipsis;
}
.booking-form table.edit-table td input[type="number"] { min-width: 52px; }
/* 房型下拉选项名较长（如「请先选择区域」） */
.booking-form #table_room td:nth-child(4) select { min-width: 132px; }
/* 餐厅下拉选项名最长（如「包间宴会厅龙兴大包」） */
.booking-form #table_catering td:nth-child(3) select { min-width: 128px; }
/* 会议室下拉选项名长（如「会馆宴会厅西会议室」） */
.booking-form #table_meeting td:nth-child(1) select { min-width: 128px; }
/* 康体「时间」为文本框（占位符 如 14:00），同样保底 */
.booking-form #table_health td:nth-child(2) input { min-width: 100px; }

/* =========================================================
   字体系统统一（v2）
   ========================================================= */
/* 表单控件继承全局字体栈 */
input, select, textarea, button { font-family: inherit; }
/* 数据表格数字等宽对齐 */
table.data-table, .booking-form table.edit-table, .inv-calendar-table { font-variant-numeric: tabular-nums; }

/* =========================================================
   预订页结构：轻步骤条 + 双栏（表单 + 订单摘要）
   ========================================================= */
.bk-steps {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px; margin-bottom: 16px;
  position: sticky; top: 74px; z-index: 40;
  box-shadow: 0 2px 10px rgba(13,48,43,.05);
}
.bk-step {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; background: transparent; padding: 6px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3); cursor: pointer;
}
.bk-step i {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%;
  background: #edf2f1; color: var(--ink-3); font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  transition: .15s;
}
.bk-step.on { color: var(--brand-700); background: var(--brand-50); }
.bk-step.on i { background: var(--brand-600); color: #fff; }
.bk-step-arrow { color: var(--line-strong); font-size: 14px; user-select: none; }

.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 18px; align-items: start; }
.bk-aside {
  order: 2; position: sticky; top: 136px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; box-shadow: 0 2px 10px rgba(13,48,43,.05);
}
.bk-aside-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.bk-badge {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--brand-700);
  background: var(--brand-50); border: 1px solid #d4e9e5; border-radius: 999px;
  padding: 4px 12px; margin-bottom: 8px;
}
.bk-badge-free { color: #b45309; background: #fff4e4; border-color: #f8d8a8; }
.bk-sum-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.bk-sum-row:last-of-type { border-bottom: none; }
.bk-sum-row span { color: var(--ink-3); flex-shrink: 0; }
.bk-sum-row b { color: var(--ink); font-weight: 600; text-align: right; word-break: break-all; }
.bk-submit { width: 100%; margin-top: 14px; }
.bk-cancel { width: 100%; margin-top: 8px; }
.bk-note { margin-top: 10px; font-size: 12px; color: var(--ink-3); text-align: center; }
.bk-bottom-actions { display: none; }

@media (max-width: 1300px) {
  .bk-grid { grid-template-columns: 1fr; }
  .bk-aside { order: 0; position: static; }
  .bk-form { order: 1; }
  .bk-aside .bk-submit, .bk-aside .bk-cancel { display: none; }
  .bk-bottom-actions { display: flex; }
  .bk-steps { position: static; }
}
@media (max-width: 480px) {
  .bk-steps { padding: 8px 10px; gap: 2px; }
  .bk-step { font-size: 12.5px; padding: 5px 7px; gap: 6px; }
  .bk-step i { width: 20px; height: 20px; font-size: 11px; }
  .bk-step-arrow { font-size: 12px; }
}

/* ===== 审批人删除按钮 ===== */
.approval-check { position: relative; padding-right: 16px; }
.appr-del-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; line-height: 1; font-size: 13px;
  color: var(--ink-3); cursor: pointer; border-radius: 50%; margin-left: 2px;
  transition: all .15s;
}
.appr-del-btn:hover { color: #fff; background: #e0245e; }

/* =========================================================
   Global Typography & Color Refinement (v3)
   统一全站字体、字号、颜色：清晰 / 简单 / 高级
   ========================================================= */
:root {
  --font-display: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --text-display: 24px;
  --text-title: 20px;
  --text-heading: 16px;
  --text-subhead: 15px;
  --text-body: 14px;
  --text-ui: 13px;
  --text-caption: 12px;
  --radius-control: 10px;
  --border-subtle: rgba(23, 40, 42, .08);
  --border-medium: rgba(23, 40, 42, .13);
  --surface-pure: #fff;
  --surface-soft: #f6f8f9;
}

/* 基础字阶与可读性 */
body,
.app-layout,
.main-content,
.card,
.card-body,
.booking-form,
.modal,
.data-table,
.order-detail {
  font-family: var(--font) !important;
  color: var(--ink) !important;
  letter-spacing: normal !important;
  line-height: 1.55 !important;
}

body {
  font-size: var(--text-body) !important;
  background:
    radial-gradient(900px 420px at 92% -10%, rgba(20, 184, 166, .07), transparent),
    radial-gradient(680px 360px at -6% 4%, rgba(214, 161, 60, .05), transparent),
    var(--surface) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display) !important;
  color: var(--ink) !important;
  line-height: 1.3 !important;
  letter-spacing: -.012em !important;
  margin: 0 !important;
}

h1 { font-size: var(--text-display) !important; font-weight: 700 !important; }
h2 { font-size: var(--text-title) !important; font-weight: 700 !important; }
h3, h4 { font-size: var(--text-heading) !important; font-weight: 650 !important; }
h5, h6 { font-size: var(--text-subhead) !important; font-weight: 650 !important; }

p, li, td, th, label, input, select, textarea, button {
  letter-spacing: normal !important;
}

a { color: var(--brand-700) !important; text-decoration: none !important; }
a:hover { color: var(--brand-800) !important; }

/* 页面骨架与标题 */
.page-header h2,
.modal-header h2,
.panel-header h2 {
  font-size: var(--text-title) !important;
  color: var(--ink) !important;
  letter-spacing: -.02em !important;
}

.page-header .breadcrumb,
.breadcrumb {
  font-size: var(--text-caption) !important;
  color: var(--ink-3) !important;
  line-height: 1.45 !important;
}

.card-header h3,
.modal-header h3,
.section-title,
.form-section-title {
  font-size: var(--text-heading) !important;
  font-weight: 650 !important;
  color: var(--ink) !important;
}

.card-header p,
.modal-header p,
.section-desc {
  font-size: var(--text-caption) !important;
  color: var(--ink-3) !important;
  margin: 4px 0 0 !important;
}

/* 表单系统：弱边框、纯白、统一字阶 */
.form-group label,
.filter-bar label,
.filter-item label {
  font-size: var(--text-ui) !important;
  font-weight: 600 !important;
  color: var(--ink-2) !important;
  line-height: 1.35 !important;
  margin-bottom: 6px !important;
}

input, select, textarea {
  font-family: var(--font) !important;
  font-size: var(--text-body) !important;
  color: var(--ink) !important;
  background: var(--surface-pure) !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: var(--radius-control) !important;
  transition: border-color .16s ease, box-shadow .16s ease !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-3) !important;
  opacity: 1 !important;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand-600) !important;
  box-shadow: var(--ring) !important;
}

.form-hint,
.form-tip,
.help-block,
.field-note {
  font-size: var(--text-caption) !important;
  color: var(--ink-3) !important;
  line-height: 1.5 !important;
}

select option, select optgroup {
  font-family: var(--font) !important;
  font-size: var(--text-body) !important;
  color: var(--ink) !important;
  line-height: 1.45 !important;
}

/* 按钮：统一专业 SaaS 层级 */
.btn, .btn-sm, .btn-lg, button {
  font-family: var(--font) !important;
  font-size: var(--text-body) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

.btn { min-height: 40px !important; border-radius: var(--radius-control) !important; }
.btn-sm { min-height: 34px !important; font-size: var(--text-ui) !important; border-radius: 9px !important; }
.btn-lg { min-height: 46px !important; }

/* 表格：数据密度高，正文 13 / 表头 12 */
table.data-table,
.edit-table,
.inventory-table,
.accounts-table {
  font-size: var(--text-ui) !important;
  color: var(--ink) !important;
}

table.data-table th,
.edit-table th,
.inventory-table th,
.accounts-table th {
  font-size: var(--text-caption) !important;
  font-weight: 650 !important;
  color: var(--ink-2) !important;
  line-height: 1.4 !important;
}

table.data-table td,
.edit-table td,
.inventory-table td,
.accounts-table td {
  color: var(--ink) !important;
  line-height: 1.45 !important;
}

/* 徽标、标签、状态 */
.badge, .tag, .status, .status-badge, .approval-map-badge {
  font-family: var(--font) !important;
  font-size: var(--text-caption) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  border-radius: 999px !important;
}

/* 侧边栏与页头 */
.sidebar-header .subtitle,
.sidebar-header .sidebar-brand-sub {
  font-size: var(--text-caption) !important;
  letter-spacing: .04em !important;
}

.sidebar-nav .nav-group-title {
  font-size: var(--text-caption) !important;
  font-weight: 600 !important;
  letter-spacing: .05em !important;
}

.sidebar-nav .nav-item {
  font-size: var(--text-body) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.sidebar-user .user-name { font-size: var(--text-body) !important; }
.sidebar-user .user-role { font-size: var(--text-caption) !important; }

.app-topbar .topbar-user-info strong { font-size: var(--text-ui) !important; }
.app-topbar .topbar-user-info span { font-size: var(--text-caption) !important; }

/* KPI / 统计 */
.stat-info .stat-num,
.stat-value {
  font-size: 26px !important;
  line-height: 1.18 !important;
  letter-spacing: -.02em !important;
  color: var(--ink) !important;
}

.stat-info .stat-label,
.stat-label,
.stat-card .stat-label {
  font-size: var(--text-caption) !important;
  color: var(--ink-3) !important;
  letter-spacing: 0 !important;
}

.stat-sub {
  font-size: var(--text-caption) !important;
  color: var(--ink-3) !important;
}

/* 预订页：更轻的步骤与摘要 */
.bk-step { font-size: var(--text-ui) !important; font-weight: 600 !important; }
.bk-step i { font-size: var(--text-caption) !important; }
.bk-aside-title { font-size: var(--text-subhead) !important; color: var(--ink) !important; }
.bk-badge { font-size: var(--text-caption) !important; }
.bk-sum-row { font-size: var(--text-ui) !important; line-height: 1.5 !important; }
.bk-note { font-size: var(--text-caption) !important; }

/* 卡片弱阴影 + 细边框，视觉更干净 */
.card,
.booking-form,
.modal-content,
.stat-card,
.bk-aside {
  background: rgba(255, 255, 255, .98) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: 0 1px 2px rgba(23, 40, 42, .04) !important;
}

.card-header {
  background: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(246, 248, 249, .78)) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}

/* 移动端：输入保持 16px，避免 iOS 聚焦缩放 */
@media (max-width: 860px) {
  body { font-size: 15px !important; line-height: 1.55 !important; }

  input, select, textarea {
    font-size: 16px !important;
    min-height: 44px !important;
  }

  .btn, button.btn { min-height: 44px !important; }
  .btn-sm { min-height: 40px !important; }
  .page-header h2, .modal-header h2, .panel-header h2 { font-size: 19px !important; }
  h3, h4, .card-header h3, .modal-header h3, .form-section-title { font-size: 16px !important; }
  table.data-table, .edit-table, .inventory-table, .accounts-table { font-size: 13px !important; }
  .bk-step { font-size: 12px !important; }
}


/* v3.1：保护原生选择控件，避免被全局输入框样式拉伸 */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: auto !important;
  appearance: auto !important;
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  vertical-align: middle !important;
  accent-color: var(--brand-700) !important;
}

input[type="radio"] {
  border-radius: 50% !important;
}

/* 小型操作按钮不跟随正文按钮放大 */
.btn-icon,
.close-btn,
.modal-close,
.sidebar-toggle {
  font-size: var(--text-ui) !important;
  line-height: 1 !important;
}

/* =========================================================
   v4：预订页布局优化（团队 / 散客）
   1) 删除步骤条后的间距收敛
   2) 订单摘要吸顶，全程可见实时金额
   3) 业态区块「行数」徽标
   4) 老客户快速选择折叠
   5) 修复康体 / 温泉 / 车辆表格横向溢出
   ========================================================= */

/* --- 1) 顶部间距：无步骤条时保持克制 --- */
.bk-grid { margin-top: 0; }

/* --- 2) 订单摘要吸顶 --- */
.bk-aside {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  align-self: start;
}
.bk-aside::-webkit-scrollbar { width: 6px; }
.bk-aside::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.bk-sum-row b.amount { color: var(--brand-700); font-weight: 700; }

/* --- 3) 区块标题右侧「行数」徽标 --- */
.booking-form .form-section-title .section-count {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid #d4e9e5;
  border-radius: 999px;
  padding: 2px 10px;
  line-height: 1.6;
  white-space: nowrap;
}
.booking-form .form-section-title .section-count.section-count-empty {
  color: var(--ink-3);
  background: #f3f5f5;
  border-color: var(--line);
}

/* --- 4) 老客户快速选择：折叠 --- */
.bk-collapsible { padding: 0 !important; }
.bk-collapsible .bk-collapse-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--radius);
  transition: background .15s;
}
.bk-collapsible .bk-collapse-head:hover { background: rgba(240, 246, 245, .7); }
.bk-collapsible .bk-collapse-head.open { background: rgba(240, 246, 245, .7); }
.bk-collapsible .bk-collapse-head .bk-collapse-opt {
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-3);
}
.bk-collapsible .bk-collapse-caret {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 12px;
  transition: transform .15s;
}
.bk-collapsible .bk-collapse-body {
  padding: 2px 16px 16px;
  border-top: 1px dashed var(--line);
  margin-top: 0;
  padding-top: 14px;
}
.bk-collapsible .bk-collapse-body .form-row + .form-row { margin-top: 12px; }

/* --- 5) 修复康体 / 温泉 / 车辆 表格横向溢出 --- */
/* v6：统一改回固定布局，表格按百分比列宽铺满卡片，不再撑出容器 */
.booking-form table.edit-table {
  table-layout: fixed;
  width: 100%;
}
#table_health,
#table_spring,
#table_vehicle {
  font-size: 13px;
}
#table_health th, #table_health td,
#table_spring th, #table_spring td,
#table_vehicle th, #table_vehicle td {
  padding-left: 6px;
  padding-right: 6px;
}
#table_health th, #table_health td { max-width: 132px; }
#table_spring th, #table_spring td { max-width: 140px; }
#table_vehicle th, #table_vehicle td { max-width: 120px; }
#table_health td input, #table_health td select,
#table_spring td input, #table_spring td select,
#table_vehicle td input, #table_vehicle td select {
  width: 100%;
  min-width: 0;
  padding-left: 6px;
  padding-right: 6px;
}
#table_health .col-action, #table_spring .col-action, #table_vehicle .col-action {
  width: 38px;
  padding-left: 2px;
  padding-right: 2px;
}

/* 餐饮表 9 列，适当收紧 */
#table_catering { font-size: 13px; }
#table_catering th, #table_catering td { padding-left: 6px; padding-right: 6px; }
#table_catering td input, #table_catering td select { width: 100%; min-width: 0; }

@media (max-width: 1300px) {
  .bk-aside { position: static !important; max-height: none; overflow: visible; }
}

/* =========================================================
   v5：客房 / 会议表横向溢出修复
   问题：8-9 列表格内下拉框有最小宽度，把表格撑出容器，
         与右侧订单摘要重叠。
   方案：给这两张表包 .table-wrap（js/sales.js 已加），
         在卡片内横向滚动，不再穿透布局。
   ========================================================= */
#section_room .table-wrap,
#section_meeting .table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
#section_room .table-wrap table.edit-table,
#section_meeting .table-wrap table.edit-table,
#section_catering .table-wrap table.edit-table,
#section_health .table-wrap table.edit-table,
#section_spring .table-wrap table.edit-table,
#section_vehicle .table-wrap table.edit-table {
  table-layout: fixed;
  min-width: 0;
}


/* =========================================================
   v6：预订页（团队 / 散客）录入表完整显示 + 工作区加宽
   问题：客房 / 会议 / 餐饮等录入表内控件带内联 min-width / width，
         表格被撑到 900px 以上，超出卡片右侧被截断，看不到
         「房数 / 成交价格 / 是否含早 / 删除」等列。
   方案：1) 录入表统一 table-layout: fixed，按百分比分配列宽
         2) 控件宽度全部交给单元格决定，取消内联宽度
         3) 收窄订单摘要栏 + 收紧内边距，为表格让出约 100px
         4) 视口 ≤1380px 时订单摘要自动折到下方，表格占满整宽
   ========================================================= */

/* 1) 表格固定布局，不再被内容撑宽 */
.booking-form table.edit-table {
  table-layout: fixed !important;
  width: 100% !important;
}

/* 2) 控件宽度由单元格决定（覆盖 JS 内联 width / min-width） */
.booking-form table.edit-table td input,
.booking-form table.edit-table td select,
.booking-form table.edit-table td textarea {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 3) 表格密度：略小字号 + 更紧凑内边距，保证 8-10 列一次看全 */
@media (min-width: 1081px) {
.booking-form table.edit-table {
  font-size: 12px;
}
.booking-form table.edit-table th {
  padding: 8px 4px !important;
  font-size: 11.5px !important;
  letter-spacing: 0 !important;
}
.booking-form table.edit-table td {
  padding: 5px 4px !important;
}
.booking-form table.edit-table td input,
.booking-form table.edit-table td select {
  height: 34px !important;
  padding: 4px 6px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  border-radius: 8px !important;
}
.booking-form table.edit-table td input[type="date"] {
  font-size: 11.5px !important;
  padding-left: 5px !important;
  padding-right: 1px !important;
}
.booking-form table.edit-table td input[type="date"]::-webkit-calendar-picker-indicator {
  width: 14px;
  height: 14px;
  margin: 0 0 0 2px;
  padding: 0;
}
/* 价格 / 库存提示文字允许换行，不再把列撑宽 */
.booking-form table.edit-table .market-price-hint {
  white-space: normal !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
  margin-top: 2px !important;
}
.booking-form table.edit-table .room-qty-warn,
.booking-form table.edit-table .rest-avail-hint,
.booking-form table.edit-table .meeting-avail-hint,
.booking-form table.edit-table .health-count-hint {
  font-size: 10.5px !important;
  white-space: normal !important;
  margin-left: 0 !important;
}
.booking-form table.edit-table .btn-del-row {
  width: 30px !important;
  height: 30px !important;
  font-size: 15px !important;
}

}

/* 4) 各录入表列宽（百分比铺满整表，日期 / 下拉列优先给足） */
.booking-form #table_room th:nth-child(1), .booking-form #table_room td:nth-child(1) { width: 17%; }
.booking-form #table_room th:nth-child(2), .booking-form #table_room td:nth-child(2) { width: 17%; }
.booking-form #table_room th:nth-child(3), .booking-form #table_room td:nth-child(3) { width: 14%; }
.booking-form #table_room th:nth-child(4), .booking-form #table_room td:nth-child(4) { width: 16%; }
.booking-form #table_room th:nth-child(5), .booking-form #table_room td:nth-child(5) { width: 6%; }
.booking-form #table_room th:nth-child(6), .booking-form #table_room td:nth-child(6) { width: 11%; }
.booking-form #table_room th:nth-child(7), .booking-form #table_room td:nth-child(7) { width: 11%; }
.booking-form #table_room th:nth-child(8), .booking-form #table_room td:nth-child(8) { width: 8%; }

.booking-form #table_catering th:nth-child(1), .booking-form #table_catering td:nth-child(1) { width: 11%; }
.booking-form #table_catering th:nth-child(2), .booking-form #table_catering td:nth-child(2) { width: 11%; }
.booking-form #table_catering th:nth-child(3), .booking-form #table_catering td:nth-child(3) { width: 17%; }
.booking-form #table_catering th:nth-child(4), .booking-form #table_catering td:nth-child(4) { width: 10%; }
.booking-form #table_catering th:nth-child(5), .booking-form #table_catering td:nth-child(5) { width: 9%; }
.booking-form #table_catering th:nth-child(6), .booking-form #table_catering td:nth-child(6) { width: 9%; }
.booking-form #table_catering th:nth-child(7), .booking-form #table_catering td:nth-child(7) { width: 13%; }
.booking-form #table_catering th:nth-child(8), .booking-form #table_catering td:nth-child(8) { width: 13%; }
.booking-form #table_catering th:nth-child(9), .booking-form #table_catering td:nth-child(9) { width: 7%; }

.booking-form #table_meeting th:nth-child(1), .booking-form #table_meeting td:nth-child(1) { width: 22%; }
.booking-form #table_meeting th:nth-child(2), .booking-form #table_meeting td:nth-child(2) { width: 14%; }
.booking-form #table_meeting th:nth-child(3), .booking-form #table_meeting td:nth-child(3) { width: 18%; }
.booking-form #table_meeting th:nth-child(4), .booking-form #table_meeting td:nth-child(4) { width: 9%; }
.booking-form #table_meeting th:nth-child(5), .booking-form #table_meeting td:nth-child(5) { width: 6%; }
.booking-form #table_meeting th:nth-child(6), .booking-form #table_meeting td:nth-child(6) { width: 11%; }
.booking-form #table_meeting th:nth-child(7), .booking-form #table_meeting td:nth-child(7) { width: 12%; }
.booking-form #table_meeting th:nth-child(8), .booking-form #table_meeting td:nth-child(8) { width: 8%; }

.booking-form #table_health th:nth-child(1), .booking-form #table_health td:nth-child(1) { width: 17%; }
.booking-form #table_health th:nth-child(2), .booking-form #table_health td:nth-child(2) { width: 11%; }
.booking-form #table_health th:nth-child(3), .booking-form #table_health td:nth-child(3) { width: 22%; }
.booking-form #table_health th:nth-child(4), .booking-form #table_health td:nth-child(4) { width: 11%; }
.booking-form #table_health th:nth-child(5), .booking-form #table_health td:nth-child(5) { width: 14%; }
.booking-form #table_health th:nth-child(6), .booking-form #table_health td:nth-child(6) { width: 17%; }
.booking-form #table_health th:nth-child(7), .booking-form #table_health td:nth-child(7) { width: 8%; }

.booking-form #table_spring th:nth-child(1), .booking-form #table_spring td:nth-child(1) { width: 20%; }
.booking-form #table_spring th:nth-child(2), .booking-form #table_spring td:nth-child(2) { width: 26%; }
.booking-form #table_spring th:nth-child(3), .booking-form #table_spring td:nth-child(3) { width: 14%; }
.booking-form #table_spring th:nth-child(4), .booking-form #table_spring td:nth-child(4) { width: 16%; }
.booking-form #table_spring th:nth-child(5), .booking-form #table_spring td:nth-child(5) { width: 16%; }
.booking-form #table_spring th:nth-child(6), .booking-form #table_spring td:nth-child(6) { width: 8%; }

.booking-form #table_vehicle th:nth-child(1), .booking-form #table_vehicle td:nth-child(1) { width: 14%; }
.booking-form #table_vehicle th:nth-child(2), .booking-form #table_vehicle td:nth-child(2) { width: 8%; }
.booking-form #table_vehicle th:nth-child(3), .booking-form #table_vehicle td:nth-child(3) { width: 13%; }
.booking-form #table_vehicle th:nth-child(4), .booking-form #table_vehicle td:nth-child(4) { width: 12%; }
.booking-form #table_vehicle th:nth-child(5), .booking-form #table_vehicle td:nth-child(5) { width: 12%; }
.booking-form #table_vehicle th:nth-child(6), .booking-form #table_vehicle td:nth-child(6) { width: 11%; }
.booking-form #table_vehicle th:nth-child(7), .booking-form #table_vehicle td:nth-child(7) { width: 12%; }
.booking-form #table_vehicle th:nth-child(8), .booking-form #table_vehicle td:nth-child(8) { width: 9%; }
.booking-form #table_vehicle th:nth-child(9), .booking-form #table_vehicle td:nth-child(9) { width: 9%; }

/* 5) 预订页工作区加宽：摘要栏收窄 + 内边距收紧（仅预订页生效） */
@media (min-width: 1301px) {
  .main-content:has(.bk-grid) { padding-left: 16px; padding-right: 16px; }
  .bk-grid { grid-template-columns: minmax(0, 1fr) 244px; gap: 12px; }
  .booking-form { padding: 20px 18px; }
  .booking-form .form-section { padding: 12px; }
}

/* 6) 中等窗口再压一档字号，保证不出现横向截断（>1080 才生效，避免影响卡片布局） */
@media (min-width: 1081px) and (max-width: 1150px) {
  .booking-form table.edit-table td input,
  .booking-form table.edit-table td select { font-size: 11.5px !important; }
  .booking-form table.edit-table td input[type="date"] { font-size: 11px !important; }
  .booking-form table.edit-table th { font-size: 11px !important; }
}


/* 7) 单元格内边距（#table_* 权重更高，必须在文件末尾以同权重覆盖） */
@media (min-width: 1081px) {
.booking-form #table_room th, .booking-form #table_room td,
.booking-form #table_catering th, .booking-form #table_catering td,
.booking-form #table_meeting th, .booking-form #table_meeting td,
.booking-form #table_health th, .booking-form #table_health td,
.booking-form #table_spring th, .booking-form #table_spring td,
.booking-form #table_vehicle th, .booking-form #table_vehicle td {
  padding: 6px 4px !important;
}
.booking-form #table_room th, .booking-form #table_catering th,
.booking-form #table_meeting th, .booking-form #table_health th,
.booking-form #table_spring th, .booking-form #table_vehicle th {
  padding: 7px 4px !important;
}
/* 控件内边距收紧，把宽度留给内容 */
.booking-form table.edit-table td input,
.booking-form table.edit-table td select {
  padding: 4px 5px !important;
}
.booking-form table.edit-table td input[type="date"] {
  padding-left: 4px !important;
  padding-right: 0 !important;
}
/* 空提示 / 库存提示不再强制单行，避免撑宽列 */
.booking-form table.edit-table .room-qty-warn,
.booking-form table.edit-table .rest-avail-hint,
.booking-form table.edit-table .meeting-avail-hint,
.booking-form table.edit-table .health-count-hint { white-space: normal !important; }

}

/* 9) 防溢出保险：网格项允许收缩，所有录入表容器都能在卡片内横向滚动 */
.bk-grid > *,
.bk-grid .bk-form,
.bk-grid .booking-form,
.booking-form .form-section { min-width: 0; }
.booking-form .table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.booking-form .table-wrap::-webkit-scrollbar { height: 7px; }
.booking-form .table-wrap::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

/* 10) 1201–1400px 中间档：摘要栏收窄、字号略压，右侧摘要保留且表格不遮挡 */
@media (min-width: 1301px) and (max-width: 1400px) {
  .main-content:has(.bk-grid) { padding-left: 14px; padding-right: 14px; }
  .bk-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 10px; }
  .booking-form { padding: 18px 14px; }
  .booking-form .form-section { padding: 10px; }
  .booking-form table.edit-table td input,
  .booking-form table.edit-table td select { font-size: 11.5px !important; }
  .booking-form table.edit-table td input[type="date"] { font-size: 11px !important; }
  .booking-form table.edit-table th { font-size: 11px !important; }
  .booking-form table.edit-table .market-price-hint { font-size: 10px !important; }
}

/* =========================================================
   v7：移除订单摘要 + 预订页全宽自适应（跟随便携 / 桌面尺寸）
   说明：订单摘要卡已从 DOM 移除，预订页恒为单栏，
         表格用满内容宽度，任何视口都不再出现右侧遮挡。
   ========================================================= */

/* 1) 预订页恒单栏（覆盖 v6 的双栏与中间档规则） */
.bk-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 18px !important; }
@media (min-width: 1301px) {
  .bk-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
}
@media (min-width: 1301px) and (max-width: 1400px) {
  .bk-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
}

/* 2) 摘要卡彻底隐藏（DOM 已移除，双保险） */
.bk-aside { display: none !important; }

/* 3) 底部操作栏全端常显 */
.bk-bottom-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--border-subtle) !important;
}
.bk-bottom-actions .btn { min-width: 132px; }

/* 4) 预订页内容区跟随手持 / 桌面尺寸自适应 */
@media (min-width: 861px) {
  .main-content:has(.bk-grid) { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 1301px) {
  .bk-grid { width: 100%; }
  .booking-form { padding: 20px 18px; }
  .booking-form .form-section { padding: 14px; }
}

/* 5) 表格恒用满宽，列宽按百分比自适应容器 */
.booking-form table.edit-table {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 0 !important;
}
.booking-form table.edit-table td input,
.booking-form table.edit-table td select,
.booking-form table.edit-table td textarea {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.booking-form table.edit-table td { vertical-align: middle !important; }

/* 6) 窄屏（<=700px）表格横向可滚动兜底，绝不溢出卡片 */
@media (max-width: 860px) {
  .booking-form .form-section { padding: 12px 10px; }
  .bk-bottom-actions { justify-content: stretch !important; }
  .bk-bottom-actions .btn { flex: 1 1 auto; min-width: 0; }
}

/* v7.1：预订表单跟随视口放大（原 1480px 上限在 1920 屏两侧留白明显） */
.booking-form { width: min(1720px, 100%) !important; }
.bk-grid { width: 100% !important; }

/* v10：各业态必填标记 + 校验红框 */
.edit-table th .th-req,
.booking-form .edit-table th .th-req {
  color: #e53935 !important;
  font-weight: 700 !important;
  margin-left: 2px;
  font-size: 13px;
  line-height: 1;
}
.edit-table th .th-opt,
.booking-form .edit-table th .th-opt {
  color: #9aa0a6 !important;
  font-weight: 400 !important;
  font-size: 10px !important;
  margin-left: 2px;
  letter-spacing: 0;
}
.edit-table td input.field-error,
.edit-table td select.field-error,
.edit-table td textarea.field-error,
.booking-form table.edit-table td input.field-error,
.booking-form table.edit-table td select.field-error,
.booking-form table.edit-table td textarea.field-error {
  border: 1.5px solid #e53935 !important;
  background: #fff6f6 !important;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.14) !important;
}

/* v11：数字输入框统一去掉上下翻动按钮（数量、价格等直接输入数值） */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
.booking-form input[type="number"]::-webkit-outer-spin-button,
.booking-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
}
input[type="number"],
.booking-form input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* =========================================================
   v12：预订录入表「控件宽度重排 + 删除行按钮重做」
   1) 日期列收窄，把宽度让给房型 / 会议室 / 数量 / 价格等列
   2) 删除行按钮改为标准图标按钮（垃圾桶），悬停变红，操作列收紧
   3) 1081-1400px 窄桌面自动放大日期列，保证日期显示完整
   4) <=1080px 手机卡片模式：删除按钮为「图标 + 删除此行」
   ========================================================= */

/* ---------- 1) 宽屏（>=1401px 视口）列宽基准 ---------- */
.booking-form #table_room th:nth-child(1), .booking-form #table_room td:nth-child(1) { width: 10.5%; }
.booking-form #table_room th:nth-child(2), .booking-form #table_room td:nth-child(2) { width: 10.5%; }
.booking-form #table_room th:nth-child(3), .booking-form #table_room td:nth-child(3) { width: 12%; }
.booking-form #table_room th:nth-child(4), .booking-form #table_room td:nth-child(4) { width: 22%; }
.booking-form #table_room th:nth-child(5), .booking-form #table_room td:nth-child(5) { width: 10%; }
.booking-form #table_room th:nth-child(6), .booking-form #table_room td:nth-child(6) { width: 15%; }
.booking-form #table_room th:nth-child(7), .booking-form #table_room td:nth-child(7) { width: 15%; }
.booking-form #table_room th:nth-child(8), .booking-form #table_room td:nth-child(8) { width: 5%; }

.booking-form #table_catering th:nth-child(1), .booking-form #table_catering td:nth-child(1) { width: 11%; }
.booking-form #table_catering th:nth-child(2), .booking-form #table_catering td:nth-child(2) { width: 11%; }
.booking-form #table_catering th:nth-child(3), .booking-form #table_catering td:nth-child(3) { width: 17%; }
.booking-form #table_catering th:nth-child(4), .booking-form #table_catering td:nth-child(4) { width: 10%; }
.booking-form #table_catering th:nth-child(5), .booking-form #table_catering td:nth-child(5) { width: 9%; }
.booking-form #table_catering th:nth-child(6), .booking-form #table_catering td:nth-child(6) { width: 9%; }
.booking-form #table_catering th:nth-child(7), .booking-form #table_catering td:nth-child(7) { width: 13%; }
.booking-form #table_catering th:nth-child(8), .booking-form #table_catering td:nth-child(8) { width: 13%; }
.booking-form #table_catering th:nth-child(9), .booking-form #table_catering td:nth-child(9) { width: 7%; }

.booking-form #table_meeting th:nth-child(1), .booking-form #table_meeting td:nth-child(1) { width: 10.5%; }
.booking-form #table_meeting th:nth-child(2), .booking-form #table_meeting td:nth-child(2) { width: 10.5%; }
.booking-form #table_meeting th:nth-child(3), .booking-form #table_meeting td:nth-child(3) { width: 22%; }
.booking-form #table_meeting th:nth-child(4), .booking-form #table_meeting td:nth-child(4) { width: 11%; }
.booking-form #table_meeting th:nth-child(5), .booking-form #table_meeting td:nth-child(5) { width: 10%; }
.booking-form #table_meeting th:nth-child(6), .booking-form #table_meeting td:nth-child(6) { width: 13%; }
.booking-form #table_meeting th:nth-child(7), .booking-form #table_meeting td:nth-child(7) { width: 18%; }
.booking-form #table_meeting th:nth-child(8), .booking-form #table_meeting td:nth-child(8) { width: 5%; }

.booking-form #table_health th:nth-child(1), .booking-form #table_health td:nth-child(1) { width: 12%; }
.booking-form #table_health th:nth-child(2), .booking-form #table_health td:nth-child(2) { width: 10%; }
.booking-form #table_health th:nth-child(3), .booking-form #table_health td:nth-child(3) { width: 22%; }
.booking-form #table_health th:nth-child(4), .booking-form #table_health td:nth-child(4) { width: 10%; }
.booking-form #table_health th:nth-child(5), .booking-form #table_health td:nth-child(5) { width: 20%; }
.booking-form #table_health th:nth-child(6), .booking-form #table_health td:nth-child(6) { width: 21%; }
.booking-form #table_health th:nth-child(7), .booking-form #table_health td:nth-child(7) { width: 5%; }

.booking-form #table_spring th:nth-child(1), .booking-form #table_spring td:nth-child(1) { width: 14%; }
.booking-form #table_spring th:nth-child(2), .booking-form #table_spring td:nth-child(2) { width: 22%; }
.booking-form #table_spring th:nth-child(3), .booking-form #table_spring td:nth-child(3) { width: 14%; }
.booking-form #table_spring th:nth-child(4), .booking-form #table_spring td:nth-child(4) { width: 20%; }
.booking-form #table_spring th:nth-child(5), .booking-form #table_spring td:nth-child(5) { width: 25%; }
.booking-form #table_spring th:nth-child(6), .booking-form #table_spring td:nth-child(6) { width: 5%; }

.booking-form #table_vehicle th:nth-child(1), .booking-form #table_vehicle td:nth-child(1) { width: 10.5%; }
.booking-form #table_vehicle th:nth-child(2), .booking-form #table_vehicle td:nth-child(2) { width: 8%; }
.booking-form #table_vehicle th:nth-child(3), .booking-form #table_vehicle td:nth-child(3) { width: 11%; }
.booking-form #table_vehicle th:nth-child(4), .booking-form #table_vehicle td:nth-child(4) { width: 15%; }
.booking-form #table_vehicle th:nth-child(5), .booking-form #table_vehicle td:nth-child(5) { width: 15%; }
.booking-form #table_vehicle th:nth-child(6), .booking-form #table_vehicle td:nth-child(6) { width: 15%; }
.booking-form #table_vehicle th:nth-child(7), .booking-form #table_vehicle td:nth-child(7) { width: 12%; }
.booking-form #table_vehicle th:nth-child(8), .booking-form #table_vehicle td:nth-child(8) { width: 9.5%; }
.booking-form #table_vehicle th:nth-child(9), .booking-form #table_vehicle td:nth-child(9) { width: 4%; }

/* 解除旧规则的列宽上限，避免列被压扁 */
#table_health th, #table_health td,
#table_spring th, #table_spring td,
#table_vehicle th, #table_vehicle td { max-width: none; }

/* ---------- 2) 窄桌面（1081-1400px）：日期列放大，保证「2026/09/23」显示完整 ---------- */
@media (min-width: 1081px) and (max-width: 1400px) {
  .booking-form #table_room th:nth-child(1), .booking-form #table_room td:nth-child(1) { width: 13%; }
  .booking-form #table_room th:nth-child(2), .booking-form #table_room td:nth-child(2) { width: 13%; }
  .booking-form #table_room th:nth-child(3), .booking-form #table_room td:nth-child(3) { width: 11%; }
  .booking-form #table_room th:nth-child(4), .booking-form #table_room td:nth-child(4) { width: 20%; }
  .booking-form #table_room th:nth-child(5), .booking-form #table_room td:nth-child(5) { width: 9%; }
  .booking-form #table_room th:nth-child(6), .booking-form #table_room td:nth-child(6) { width: 14%; }
  .booking-form #table_room th:nth-child(7), .booking-form #table_room td:nth-child(7) { width: 13%; }
  .booking-form #table_room th:nth-child(8), .booking-form #table_room td:nth-child(8) { width: 7%; }

  .booking-form #table_catering th:nth-child(1), .booking-form #table_catering td:nth-child(1) { width: 13%; }
  .booking-form #table_catering th:nth-child(2), .booking-form #table_catering td:nth-child(2) { width: 13%; }
  .booking-form #table_catering th:nth-child(3), .booking-form #table_catering td:nth-child(3) { width: 15%; }
  .booking-form #table_catering th:nth-child(4), .booking-form #table_catering td:nth-child(4) { width: 10%; }
  .booking-form #table_catering th:nth-child(5), .booking-form #table_catering td:nth-child(5) { width: 9%; }
  .booking-form #table_catering th:nth-child(6), .booking-form #table_catering td:nth-child(6) { width: 8%; }
  .booking-form #table_catering th:nth-child(7), .booking-form #table_catering td:nth-child(7) { width: 11%; }
  .booking-form #table_catering th:nth-child(8), .booking-form #table_catering td:nth-child(8) { width: 12%; }
  .booking-form #table_catering th:nth-child(9), .booking-form #table_catering td:nth-child(9) { width: 9%; }

  .booking-form #table_meeting th:nth-child(1), .booking-form #table_meeting td:nth-child(1) { width: 13%; }
  .booking-form #table_meeting th:nth-child(2), .booking-form #table_meeting td:nth-child(2) { width: 13%; }
  .booking-form #table_meeting th:nth-child(3), .booking-form #table_meeting td:nth-child(3) { width: 18%; }
  .booking-form #table_meeting th:nth-child(4), .booking-form #table_meeting td:nth-child(4) { width: 10%; }
  .booking-form #table_meeting th:nth-child(5), .booking-form #table_meeting td:nth-child(5) { width: 9%; }
  .booking-form #table_meeting th:nth-child(6), .booking-form #table_meeting td:nth-child(6) { width: 12%; }
  .booking-form #table_meeting th:nth-child(7), .booking-form #table_meeting td:nth-child(7) { width: 17%; }
  .booking-form #table_meeting th:nth-child(8), .booking-form #table_meeting td:nth-child(8) { width: 8%; }

  .booking-form #table_health th:nth-child(1), .booking-form #table_health td:nth-child(1) { width: 15%; }
  .booking-form #table_health th:nth-child(2), .booking-form #table_health td:nth-child(2) { width: 10%; }
  .booking-form #table_health th:nth-child(3), .booking-form #table_health td:nth-child(3) { width: 20%; }
  .booking-form #table_health th:nth-child(4), .booking-form #table_health td:nth-child(4) { width: 10%; }
  .booking-form #table_health th:nth-child(5), .booking-form #table_health td:nth-child(5) { width: 17%; }
  .booking-form #table_health th:nth-child(6), .booking-form #table_health td:nth-child(6) { width: 20%; }
  .booking-form #table_health th:nth-child(7), .booking-form #table_health td:nth-child(7) { width: 8%; }

  .booking-form #table_spring th:nth-child(1), .booking-form #table_spring td:nth-child(1) { width: 16%; }
  .booking-form #table_spring th:nth-child(2), .booking-form #table_spring td:nth-child(2) { width: 18%; }
  .booking-form #table_spring th:nth-child(3), .booking-form #table_spring td:nth-child(3) { width: 13%; }
  .booking-form #table_spring th:nth-child(4), .booking-form #table_spring td:nth-child(4) { width: 18%; }
  .booking-form #table_spring th:nth-child(5), .booking-form #table_spring td:nth-child(5) { width: 27%; }
  .booking-form #table_spring th:nth-child(6), .booking-form #table_spring td:nth-child(6) { width: 8%; }

  .booking-form #table_vehicle th:nth-child(1), .booking-form #table_vehicle td:nth-child(1) { width: 13%; }
  .booking-form #table_vehicle th:nth-child(2), .booking-form #table_vehicle td:nth-child(2) { width: 8%; }
  .booking-form #table_vehicle th:nth-child(3), .booking-form #table_vehicle td:nth-child(3) { width: 11%; }
  .booking-form #table_vehicle th:nth-child(4), .booking-form #table_vehicle td:nth-child(4) { width: 15%; }
  .booking-form #table_vehicle th:nth-child(5), .booking-form #table_vehicle td:nth-child(5) { width: 15%; }
  .booking-form #table_vehicle th:nth-child(6), .booking-form #table_vehicle td:nth-child(6) { width: 15%; }
  .booking-form #table_vehicle th:nth-child(7), .booking-form #table_vehicle td:nth-child(7) { width: 10%; }
  .booking-form #table_vehicle th:nth-child(8), .booking-form #table_vehicle td:nth-child(8) { width: 8%; }
  .booking-form #table_vehicle th:nth-child(9), .booking-form #table_vehicle td:nth-child(9) { width: 5%; }
}

/* ---------- 3) 桌面端最小宽度保底：列被压到极限时在卡片内横向滚动，不截断日期 ---------- */
.booking-form #section_room .table-wrap table.edit-table,
.booking-form #section_meeting .table-wrap table.edit-table { min-width: 780px !important; }
.booking-form #section_catering .table-wrap table.edit-table { min-width: 820px !important; }
.booking-form #section_health .table-wrap table.edit-table,
.booking-form #section_spring .table-wrap table.edit-table { min-width: 760px !important; }
.booking-form #section_vehicle .table-wrap table.edit-table { min-width: 820px !important; }
/* 手机卡片模式必须解除保底宽度（同特异性覆盖） */
@media (max-width: 1080px) {
  .booking-form #section_room .table-wrap table.edit-table,
  .booking-form #section_meeting .table-wrap table.edit-table,
  .booking-form #section_catering .table-wrap table.edit-table,
  .booking-form #section_health .table-wrap table.edit-table,
  .booking-form #section_spring .table-wrap table.edit-table,
  .booking-form #section_vehicle .table-wrap table.edit-table { min-width: 0 !important; }
}

/* ---------- 4) 删除行按钮：标准图标按钮（桌面） ---------- */
.booking-form table.edit-table td.col-action {
  text-align: center;
  vertical-align: middle;
}
.booking-form table.edit-table .btn-del-row {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 1px solid #dfe9ec !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #8a9a9d !important;
  cursor: pointer;
  font-size: 14px !important;
  line-height: 1 !important;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.booking-form table.edit-table .btn-del-row .del-ico { display: block; width: 16px; height: 16px; fill: currentColor; }
.booking-form table.edit-table .btn-del-row .del-txt { display: none; }
.booking-form table.edit-table .btn-del-row:hover {
  background: rgba(214, 69, 69, .09) !important;
  border-color: rgba(214, 69, 69, .38) !important;
  color: #d64545 !important;
}
.booking-form table.edit-table .btn-del-row:focus-visible { outline: 2px solid rgba(214, 69, 69, .45); outline-offset: 1px; }
.booking-form table.edit-table .btn-del-row:active { transform: scale(.94); }

/* ---------- 5) 手机卡片模式（<=1080px）：图标 + 文字，靠右整行 ---------- */
@media (max-width: 1080px) {
  .booking-form table.edit-table td.col-action { text-align: right !important; }
  .booking-form table.edit-table .btn-del-row {
    width: auto !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 16px !important;
    margin-left: auto;
    border-radius: 10px !important;
    border-color: rgba(214, 69, 69, .32) !important;
    background: rgba(214, 69, 69, .06) !important;
    color: #d64545 !important;
    font-size: 14px !important;
  }
  .booking-form table.edit-table .btn-del-row .del-ico { width: 15px; height: 15px; }
  .booking-form table.edit-table .btn-del-row .del-txt { display: inline; white-space: nowrap; }
}


/* =========================================================
   v14：预订表单录入控件内容居中（团队预订 / 散客预订通用）
   范围：预订页内全部文本框 / 数值 / 日期 / 时间 / 下拉选择
         （含「订单通用基础信息」与各业态表格；不含备注文本域与勾选框）
   ========================================================= */
.booking-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.booking-form select {
  text-align: center !important;
}
.booking-form select {
  text-align-last: center;
}
/* 日期 / 时间：左右内边距对称，居中后视觉更平衡 */
.booking-form input[type="date"],
.booking-form input[type="time"] {
  padding-left: 6px !important;
  padding-right: 6px !important;
}
/* 表格内列较窄，日期框内边距再收紧 */
.booking-form table.edit-table td input[type="date"],
.booking-form table.edit-table td input[type="time"] {
  padding-left: 3px !important;
  padding-right: 3px !important;
}
/* 门市价 / 库存提示文字保持左对齐，避免居中后折行难看 */
.booking-form table.edit-table .market-price-hint,
.booking-form table.edit-table .rest-avail-hint,
.booking-form table.edit-table .meeting-avail-hint,
.booking-form table.edit-table .room-qty-warn {
  text-align: left !important;
}

/* ===== 审批人：默认只读标签 + 手动添加 ===== */
.appr-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: var(--control-h);
  padding: 6px 8px;
  border: 1px solid #d7e4e7;
  border-radius: 8px;
  background: var(--gray-1, #f7fafb);
}
.appr-box .appr-empty { font-size: 13px; color: var(--ink-3, #8b9aa0); }
.appr-leaf {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8f3f5;
  color: var(--brand-700, #14636f);
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}
.appr-leaf-manual { background: #eef4ff; color: #2a5bd7; }
.appr-leaf-del {
  cursor: pointer;
  font-style: normal;
  font-size: 14px;
  opacity: .55;
  padding: 0 1px;
}
.appr-leaf-del:hover { opacity: 1; }
.appr-add-btn { margin-top: 8px; }
.appr-pick-tip { font-size: 13px; color: #666; margin-bottom: 12px; line-height: 1.6; }
.appr-pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.appr-pick {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; border: 1px solid #e2eaee; border-radius: 8px;
  font-size: 14px; cursor: pointer; background: #fff;
}
.appr-pick:hover { border-color: var(--brand-600, #1a8290); }
.appr-pick.is-disabled { background: #f5f8f9; color: #8b9aa0; cursor: not-allowed; }
.appr-pick-note { margin-left: auto; font-size: 11px; color: #8b9aa0; white-space: nowrap; }
