*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --line: #e6e9f2;
  --line-soft: #f0f2f8;
  --text: #1a2130;
  --text-2: #4a5568;
  --text-3: #8a94a6;
  --brand: #2b5cd9;
  --brand-deep: #16337a;
  --brand-soft: #e9f0ff;
  --ok: #0eaa5c;
  --warn: #ef8e1e;
  --danger: #e5484d;
  --gold: #c99a2e;
  --radius: 10px;
  /* 弹窗/表单常用别名（历史上别名缺失导致弹窗透明，勿删） */
  --panel: #ffffff;
  --muted: #8a94a6;
  --w: auto;
  --shadow-1: 0 1px 2px rgba(23, 33, 61, .05), 0 2px 8px rgba(23, 33, 61, .05);
  --shadow-2: 0 4px 12px rgba(23, 33, 61, .08), 0 12px 32px rgba(23, 33, 61, .10);
  --ease: cubic-bezier(.2, 0, 0, 1);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1100px 320px at 85% -180px, rgba(43, 92, 217, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* hidden 属性优先级（否则 display:flex 会把 hidden 顶掉） */
[hidden] { display: none !important; }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; gap: 20px;
  height: 56px; padding: 0 22px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; color: var(--text);
  text-decoration: none; letter-spacing: .2px;
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #2b5cd9, #6a8dff);
  box-shadow: 0 3px 8px rgba(43, 92, 217, .35);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px;
  border-radius: 3px; border: 2px solid rgba(255,255,255,.9);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 55%, 55% 100%, 0 100%);
}
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand em {
  font-style: normal; font-weight: 400; font-size: 10.5px;
  color: var(--text-3); letter-spacing: 1.5px;
}
.nav { display: flex; gap: 2px; }
.nav a {
  padding: 6px 14px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 14px;
  white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav a:hover { background: var(--line-soft); color: var(--text); }
.nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.spacer { flex: 1; }
.who { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.who .avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #f0a24b, #ef7d1e);
  color: #fff; font-style: normal; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.who em { font-style: normal; color: var(--text-3); }
.inline { display: inline; margin: 0 0 0 6px; }

.page { max-width: 1280px; margin: 0 auto; padding: 20px; }

/* ---------- 页头 ---------- */
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.page-head h1 { font-size: 18px; font-weight: 500; margin: 0; }
.actions { display: flex; align-items: center; gap: 8px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 16px; border-radius: 8px;
  border: 1px solid var(--brand); background: linear-gradient(135deg, #2e62e0, #2456cb); color: #fff;
  font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: inherit; box-shadow: 0 2px 6px rgba(43, 92, 217, .28);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), filter .15s var(--ease);
}
.btn:hover { filter: brightness(1.05); box-shadow: 0 3px 10px rgba(43, 92, 217, .35); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--surface); color: var(--text-2); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--text-3); color: var(--text); box-shadow: var(--shadow-1); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }

.search { display: flex; gap: 6px; }
.search input {
  height: 32px; padding: 0 10px; width: 220px;
  border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-family: inherit;
}

/* ---------- 表单页（.grid 表单栅格） ---------- */
.group-title {
  font-size: 13px; color: var(--text-3); font-weight: 500;
  padding: 0 0 10px; margin: 28px 0 14px;
  border-bottom: 1px solid var(--line-soft);
}
.group-title:first-of-type { margin-top: 4px; }

.grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
}
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > label { font-size: 13px; color: var(--text-2); }
.req { color: var(--danger); font-style: normal; margin-left: 2px; }
.hint { font-size: 12px; color: var(--text-3); margin: 0; }

input[type=text], input[type=tel], input[type=number], input[type=date],
input[type=password], input[type=search], select, textarea {
  width: 100%; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--text);
  font-size: 14px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 8px 10px; line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(22,93,255,.1);
}
input[readonly] { background: #f7f8fa; color: var(--text-2); cursor: default; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2386909c' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }

.with-btn { display: flex; gap: 6px; }
.with-btn input { flex: 1; min-width: 0; }

/* 分段选择 */
.seg-group { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; height: 34px; max-width: 100%; }
.seg { position: relative; display: flex; align-items: center; padding: 0 14px; cursor: pointer; color: var(--text-2); font-size: 14px; white-space: nowrap; }
.seg + .seg { border-left: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg:hover { background: var(--line-soft); }
.seg.on { background: var(--brand-soft); color: var(--brand); font-weight: 500; }

/* 多选标签 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer; font-size: 13px; color: var(--text-2); background: var(--surface);
  user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--text-3); }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

/* ---------- 统计卡 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 16px; box-shadow: var(--shadow-1);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.stat:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.stat span { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.stat b { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.stat b.pos { color: var(--danger); }
.stat b.neg { color: var(--ok); }

/* ---------- 普通表格（员工页等） ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line-soft); }
.tbl th { background: #fafbfc; color: var(--text-3); font-weight: 500; position: sticky; top: 0; }
.tbl tbody tr:hover { background: #fafbfc; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.tbl .empty { text-align: center; color: var(--text-3); padding: 40px 12px; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: var(--line-soft); color: var(--text-2); }
.tag.ok { background: #e8ffea; color: var(--ok); }
.tag.warn { background: #fff7e8; color: var(--warn); }
.link { color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }

.alert { background: #ffece8; border: 1px solid #ffd2c8; color: #cb2634; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 13px; }
.ok-alert { background: #e8ffea; border: 1px solid #aff0b5; color: #0f8a2e; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 13px; }

/* ---------- 登录（视觉升级 2026-11-12：深夜蓝品牌背景 + 品牌卡） ---------- */
.login-body {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #10214d 0%, #16337a 46%, #2456cb 130%);
  color: #fff; position: relative; overflow: hidden;
}
html:has(.login-body) { background: #10214d; }
.login-bg { position: fixed; inset: 0; pointer-events: none; }
.lb-glow { position: absolute; border-radius: 50%; filter: blur(60px); }
.lb-glow1 { width: 560px; height: 560px; left: -160px; top: -180px; background: rgba(106, 141, 255, .30); }
.lb-glow2 { width: 640px; height: 640px; right: -200px; bottom: -240px; background: rgba(43, 92, 217, .45); }
.lb-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(75% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 70% at 50% 40%, #000 30%, transparent 100%);
}
/* 旅行主题：一条虚线航线 + 两个节点 */
.lb-route {
  position: absolute; left: 6%; right: 6%; top: 16%; height: 120px; opacity: .55;
  background:
    radial-gradient(5px 5px at 2% 88%, #9db7ff 40%, transparent 50%),
    radial-gradient(4px 4px at 46% 20%, rgba(157, 183, 255, .9) 40%, transparent 50%),
    radial-gradient(5px 5px at 98% 62%, #9db7ff 40%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='120' viewBox='0 0 400 120'%3E%3Cpath d='M8 106 C 120 60, 150 24, 184 24 S 330 62, 392 74' fill='none' stroke='rgba(157,183,255,.55)' stroke-width='1.6' stroke-dasharray='2 7' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.login-stage {
  position: relative; z-index: 1; width: 100%; max-width: 400px;
  padding: 24px; display: flex; flex-direction: column; align-items: stretch;
  animation: login-in .5s cubic-bezier(.2, 0, 0, 1) both;
}
@keyframes login-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.login-card {
  background: var(--surface); color: var(--text);
  border-radius: 16px; padding: 30px 26px 26px;
  box-shadow: 0 24px 70px rgba(6, 18, 51, .5), 0 2px 8px rgba(6, 18, 51, .3);
}
.login-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.login-logo {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: linear-gradient(135deg, #2e62e0, #6a8dff);
  box-shadow: 0 6px 16px rgba(43, 92, 217, .4);
  position: relative;
}
.login-logo::after {
  content: ""; position: absolute; inset: 12px;
  border-radius: 4px; border: 2.5px solid rgba(255, 255, 255, .92);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 55%, 55% 100%, 0 100%);
}
.login-title h1 { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: .5px; }
.login-sub { font-size: 13px; color: var(--text-3); margin: 2px 0 0; }
.login-card label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin: 16px 0 7px; }
.login-card input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #f8f9fd;
  font-size: 16px; font-family: inherit; color: var(--text);
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.login-card input::placeholder { color: #b0b9c9; }
.login-card input:focus {
  background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(43, 92, 217, .13); outline: none;
}
.login-btn { width: 100%; margin-top: 24px; height: 46px; font-size: 15.5px; font-weight: 600; letter-spacing: 6px; text-indent: 6px; border-radius: 10px; }
.login-tip { font-size: 12px; color: var(--text-3); margin: 16px 0 0; line-height: 1.6; text-align: center; }
.login-foot { text-align: center; font-size: 12px; color: rgba(255, 255, 255, .55); letter-spacing: 1px; margin: 18px 0 0; }
@media (prefers-reduced-motion: reduce) { .login-stage { animation: none; } }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .page { padding: 12px; }
  .topbar { gap: 12px; padding: 0 12px; }
  .who { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .fld[style*="span 4"], .fld[style*="span 2"] { grid-column: span 1 !important; }
  .search input { width: 140px; }
}

/* ================= 订单网格（div 版，非 table） ================= */
.page.wide { max-width: none; padding: 12px 16px 8px; }
.page-head.tight { margin-bottom: 12px; }
.page.wide .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.page.wide .stat { padding: 8px 14px; }
.page.wide .stat b { font-size: 16px; }

/* ---------- 工具栏 ---------- */
.gridbar {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
  padding: 8px 10px;
  flex-wrap: wrap;
}
.gbtn {
  height: 30px; padding: 0 10px;
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--text-2);
  font-size: 13px; font-family: inherit; cursor: pointer;
}
.gbtn:hover { background: var(--line-soft); color: var(--text); }
.gbtn.on { background: var(--brand-soft); color: var(--brand); }
.gbtn:disabled { opacity: .5; cursor: default; }
.grow { flex: 1; }
.gsearch input {
  height: 30px; width: 240px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; font-family: inherit; background: #fafbfc;
}
.gsearch input:focus { outline: none; border-color: var(--brand); background: #fff; }

/* ---------- 弹出面板 ---------- */
.pop {
  position: absolute; top: 42px; z-index: 60;
  width: 320px; max-height: 68vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(29,33,41,.12);
  padding: 12px;
}
.pop-hd { font-size: 13px; font-weight: 500; margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; }
.pop-hd .muted { font-weight: 400; }
.muted { color: var(--text-3); font-size: 12px; }
.pop-search {
  height: 30px; padding: 0 10px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-family: inherit;
}
.pop-list { overflow: auto; flex: 1; margin: 0 -4px; }
.pop-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px; border-radius: 6px; font-size: 13px; cursor: pointer;
}
.pop-row:hover { background: var(--line-soft); }
.pr-name { flex: 1; }
.pr-arrows { display: flex; gap: 2px; opacity: 0; }
.pop-row:hover .pr-arrows { opacity: 1; }
.pr-arrows button {
  width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; color: var(--text-2); cursor: pointer; font-size: 12px; line-height: 1; padding: 0;
}
.pop-body { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.pop-body select, .pop-body input {
  height: 32px; padding: 0 8px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 13px; font-family: inherit;
}
.pop-ft {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft);
}
.pop-ft select { height: 26px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.pad { padding: 8px 4px; }

.seg2 { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg2 button {
  height: 30px; padding: 0 14px; border: 0; background: #fff; cursor: pointer;
  font-size: 13px; font-family: inherit; color: var(--text-2);
}
.seg2 button + button { border-left: 1px solid var(--line); }
.seg2 button.on { background: var(--brand-soft); color: var(--brand); }

/* ---------- 筛选行 ---------- */
.fl-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.fl-row select, .fl-row input { flex: 1; min-width: 0; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 5px; font-size: 12.5px; font-family: inherit; }
.fl-row [data-fld] { flex: 1.3; }
.fl-del {
  width: 22px; height: 22px; border: 0; background: transparent; color: var(--text-3);
  cursor: pointer; font-size: 16px; line-height: 1; border-radius: 4px;
}
.fl-del:hover { background: #ffece8; color: var(--danger); }

/* ---------- 网格容器 ---------- */
.grid-wrap {
  position: relative;
  overflow: auto;
  max-height: calc(100vh - 268px);
  background: var(--surface);
  border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.grid-loading { padding: 40px; text-align: center; color: var(--text-3); font-size: 13px; }

/* 行：flex，宽度按内容（保证 sticky 列在整行范围内生效） */
.dgrid { font-size: 13px; position: relative; }
.dgrid .r { display: flex; width: max-content; min-width: 100%; }

/* 单元格通用：--w 变量控制列宽 */
.dgrid .c, .dgrid .h {
  flex: 0 0 var(--w, 120px);
  width: var(--w, 120px);
  height: 40px; line-height: 39px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--surface);
  position: relative;
}
.dgrid .c.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.dgrid .c.num, .dgrid .h.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 表头行（垂直 sticky） */
.dgrid .r.hrow { position: sticky; top: 0; z-index: 6; }
.dgrid .h {
  background: #fafbfc; color: var(--text-3); font-weight: 400;
  font-size: 12.5px; user-select: none;
  border-bottom: 1px solid var(--line);
}
.dgrid .h .th-label { cursor: pointer; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.dgrid .h .th-label:hover { color: var(--brand); }

/* 合计行（垂直 sticky 到底） */
.dgrid .r.frow { position: sticky; bottom: 0; z-index: 6; }
.dgrid .frow .c {
  background: #fafbfc; border-top: 1px solid var(--line); border-bottom: 0;
  font-weight: 500; color: var(--text);
}
.dgrid .frow .ft-label { color: var(--text-2); }

/* 勾选列 / 序号列（水平 sticky） */
.dgrid .c-sel, .dgrid .c-no { position: sticky; z-index: 4; text-align: center; padding: 0; }
.dgrid .c-sel { left: 0; border-right: 1px solid var(--line); }
.dgrid .c-no { left: 40px; color: var(--text-3); font-size: 12px; }
.dgrid .hrow .c-sel, .dgrid .hrow .c-no { background: #fafbfc; z-index: 8; }
.dgrid .frow .c-sel, .dgrid .frow .c-no { background: #fafbfc; z-index: 8; }

/* 冻结列（left 由 JS 按列宽计算） */
.dgrid .c.frz, .dgrid .h.frz { position: sticky; z-index: 4; }
.dgrid .hrow .frz { z-index: 8; }
.dgrid .frow .frz { z-index: 8; }
.dgrid .c[data-f="order_no"] { border-right: 1px solid var(--line); }

/* 表体行状态 */
.dgrid #gridBody .r:hover .c { background: #f7f9fc; }
.dgrid #gridBody .r[data-selected="1"] .c { background: #eef4ff; }

/* 单元格可编辑性 */
.dgrid .c.editable { cursor: cell; }
.dgrid .c.ro { color: var(--text-2); background: #fcfcfd; }
.dgrid #gridBody .r:hover .c.ro, .dgrid #gridBody .r[data-selected="1"] .c.ro { background: #f5f7fb; }

/* 编辑中的单元格 */
.dgrid .c.editing {
  padding: 0; overflow: visible;
  box-shadow: inset 0 0 0 2px var(--brand);
  background: #fff !important; z-index: 30;
}
.cell-edit { height: 100%; display: flex; }
.cell-edit > input, .cell-edit > select, .cell-edit > textarea {
  width: 100%; height: 39px; border: 0; padding: 0 9px;
  font-size: 13px; font-family: inherit; border-radius: 0; background: #fff;
  box-shadow: none;
}
.cell-edit > textarea { height: 60px; padding: 8px 9px; line-height: 1.4; resize: none; }
.cell-edit > input:focus, .cell-edit > select:focus, .cell-edit > textarea:focus {
  outline: none; box-shadow: none;
}

/* 多选编辑弹层 */
.multi-pop {
  position: absolute; z-index: 40; left: 0; top: 100%;
  display: flex; flex-direction: column; gap: 6px;
  width: 260px; max-height: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(29,33,41,.14); padding: 10px;
}
.mp-list { display: flex; flex-wrap: wrap; gap: 6px; overflow: auto; flex: 1; }
.mp-item {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 12.5px; cursor: pointer; background: #fff;
}
.mp-item:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.mp-ft { display: flex; justify-content: flex-end; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line-soft); }

/* 排序 / 列宽手柄 */
.rs {
  position: absolute; top: 0; right: 0; width: 7px; height: 100%;
  cursor: col-resize; display: block;
}
.rs:hover { background: var(--brand-soft); }
body.col-resizing { cursor: col-resize; user-select: none; }
body.col-resizing .dgrid { pointer-events: none; }

/* ---------- 单元格内容 ---------- */
.cell-link { color: var(--brand); text-decoration: none; }
.cell-link:hover { text-decoration: underline; }
.clamp { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl {
  display: inline-block; padding: 1px 7px; margin-right: 4px;
  border-radius: 10px; background: #eaf1ff; color: #1d4ed8; font-size: 12px;
}
.tg { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; }
.tg.green  { background: #e6f9eb; color: #0f8a2e; }
.tg.blue   { background: #e8f0ff; color: #165dff; }
.tg.orange { background: #fff3e6; color: #c25b00; }
.tg.purple { background: #f3e8ff; color: #7c3aed; }
.tg.cyan   { background: #e3f7fb; color: #0e7490; }
.tg.pink   { background: #ffe8f1; color: #be185d; }
.tg.gray   { background: #f2f3f5; color: #4e5969; }
.tg.red    { background: #ffece8; color: #cb2634; }
.staff { color: var(--text); }
.neg { color: var(--ok); }

/* 单号右侧"打开完整表单"小按钮 */
.open-btn {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; line-height: 16px; text-align: center;
  border-radius: 3px; color: var(--text-3); text-decoration: none; font-size: 11px;
  opacity: 0;
}
.dgrid .c:hover .open-btn { opacity: 1; background: var(--line-soft); }
.open-btn:hover { color: var(--brand); }

/* ---------- 空态 / 分组行 ---------- */
.dgrid .c.empty {
  flex: 1 1 auto; width: auto;
  height: 80px; line-height: 80px;
  text-align: center; color: var(--text-3);
}
.dgrid .r.grp .c.grp-cell {
  flex: 1 1 auto; width: auto;
  height: 36px; line-height: 35px;
  background: #f7f8fa;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-2);
}
.grp-label { font-weight: 500; color: var(--text); margin-right: 12px; }
.grp-sum { color: var(--text-3); }

/* ---------- 批量条 ---------- */
.batchbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-bottom: 8px;
  background: var(--brand-soft); border: 1px solid #c9dcff; border-radius: var(--radius);
  font-size: 13px; color: var(--text-2);
}
.batchbar .sep { color: #b7ccf7; }
.batchbar select, .batchbar input {
  height: 28px; padding: 0 8px; border: 1px solid #b7ccf7; border-radius: 5px;
  font-size: 13px; font-family: inherit; background: #fff; min-width: 110px;
}

/* ---------- 页脚信息 ---------- */
.grid-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 8px 2px; font-size: 12px; color: var(--text-3);
}

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%);
  background: #1d2129; color: #fff; padding: 9px 18px; border-radius: 20px;
  font-size: 13px; z-index: 200; box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.toast.err { background: #cb2634; }

@media (max-width: 900px) {
  .page.wide .stats { grid-template-columns: repeat(2, 1fr); }
  .gsearch input { width: 140px; }
  .grid-wrap { max-height: calc(100vh - 300px); }
}

/* ================= 用车（列表 / 表单 / 详情） ================= */
.gsep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }

/* 列表 */
.vwrap { max-height: calc(100vh - 300px); }
.vtbl tbody tr.vrow { cursor: pointer; }
.vtbl .load { font-variant-numeric: tabular-nums; font-weight: 500; }
.vtbl .load i { font-style: normal; color: var(--text-3); font-weight: 400; }
.vtbl .load.full { color: var(--danger); }
.vtbl td.neg { color: var(--ok); }

/* 表单：带入的订单 */
.pick-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px;
}
.pick-hd { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.pick-hd b { color: var(--brand); }
.pick-warn { color: var(--danger); margin-left: 10px; }
.pick-tbl th, .pick-tbl td { padding: 7px 12px; font-size: 13px; }

/* 只读展示框 */
.ro-box {
  height: 34px; line-height: 32px; padding: 0 10px; font-size: 13px;
  border: 1px dashed var(--line); border-radius: 6px;
  background: #fafbfc; color: var(--text-2);
}
.ro-box.bad { border-color: var(--danger); color: var(--danger); }

.form-actions { display: flex; gap: 8px; margin: 22px 0 40px; }

/* 详情：概览卡 */
.vcard {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px;
}
.vload-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.vload-num { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vload-num i { font-style: normal; font-size: 14px; font-weight: 400; color: var(--text-3); }
.vload-num.full { color: var(--danger); }
.vbar { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.vbar span { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .2s; }
.vbar span.full { background: var(--danger); }
.vload-ft { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--text-2); }

.vsum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
.vsum > div { display: flex; flex-direction: column; gap: 2px; }
.vsum label { font-size: 12px; color: var(--text-3); }
.vsum b { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.vsum b.neg { color: var(--ok); }
.vsum .muted { font-size: 11px; }

.vremark {
  background: #fffaf0; border: 1px solid #ffe7bc; color: #93540a;
  border-radius: var(--radius); padding: 10px 14px; font-size: 13px; margin-bottom: 12px;
}

/* 区块标题 */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 18px 0 10px;
}
.sec-head h2 { font-size: 15px; font-weight: 500; margin: 0; }

/* 订单明细里冲突行 */
.tbl tr.conflict td { background: #fffbe6; }

/* 操作记录 */
.vlogs { list-style: none; margin: 0 0 40px; padding: 0; font-size: 13px; color: var(--text-2); }
.vlogs li { padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.vlogs li b { color: var(--text); margin: 0 6px; }

/* 加入订单弹层 */
.modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(29,33,41,.45);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-card {
  width: 720px; max-width: 96vw; max-height: 84vh;
  background: var(--surface); border-radius: 10px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.modal-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.modal-hd b { font-size: 15px; }
.modal-x {
  margin-left: auto; width: 26px; height: 26px; border: 0; background: transparent;
  font-size: 18px; color: var(--text-3); cursor: pointer; border-radius: 4px;
}
.modal-x:hover { background: var(--line-soft); color: var(--text); }
.modal-body { padding: 12px 16px; overflow: auto; flex: 1; }
.modal-body input[type=search] { margin-bottom: 10px; }
.modal-ft {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line);
}
.modal-ft .bad { color: var(--danger); }

.cand-list { display: flex; flex-direction: column; gap: 6px; }
.cand {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; font-size: 13px;
}
.cand:hover { border-color: var(--brand); background: #fafcff; }
.cand.conflict { border-color: #ffd8bf; background: #fffaf5; }
.cand-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cand-main .muted { font-size: 12px; }
.cand-side { display: flex; align-items: center; gap: 8px; }

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

/* ================= 通用小件 ================= */
.flash {
  background: #e8ffea; border: 1px solid #aff0b5; color: #0a7a1f;
  border-radius: var(--radius); padding: 9px 14px; font-size: 13px; margin-bottom: 12px;
}
.stat-bar {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px;
}
.stat-bar > div { display: flex; flex-direction: column; gap: 2px; }
.stat-bar label { font-size: 12px; color: var(--text-3); }
.stat-bar b { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat-bar b.warn { color: var(--warn); }

.inline-search { display: flex; align-items: center; gap: 6px; }
.inline-search .muted, .inline-search span { white-space: nowrap; }
.inline-search input[type=search], .inline-search input[type=date] {
  height: 32px; padding: 0 10px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text);
}
.inline-search input:focus { outline: none; border-color: var(--brand); }

.tbl-wrap {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: auto; max-height: calc(100vh - 330px);
}
.tbl .strong { font-weight: 500; }
.tbl .bad { color: var(--danger); }
.tbl .warn { color: var(--warn); }
.tbl tr.clickable { cursor: pointer; }
.tbl .empty-sm { text-align: center; color: var(--text-3); padding: 26px 12px; font-size: 13px; }

.tag.blue { background: #e8f0ff; color: #165dff; }
.tag.teal { background: #e6fffb; color: #0b8f81; }
.tag.gray { background: var(--line-soft); color: var(--text-2); }
.tag.orange { background: #fff7e8; color: #c46200; }
.tag.red { background: #ffece8; color: #c92a2a; }
.tag.green { background: #e8ffea; color: #0a7a1f; }

/* ================= 游客名单 ================= */
.guest-box, .hb-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 6px;
}
.gb-hd { font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 8px; }
.gb-hd b { color: var(--text); font-weight: 500; }
.gb-hd .muted { display: block; font-size: 12px; }
.guest-box textarea {
  width: 100%; padding: 10px 12px; font-size: 13px; line-height: 1.7;
  border: 1px solid var(--line); border-radius: 6px; resize: vertical;
  font-family: inherit; color: var(--text); background: #fff;
}
.guest-box textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(22,93,255,.1); }
.gb-bar { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.gb-bar .muted { font-size: 12px; }
.gstat { font-size: 12.5px; color: var(--brand); font-weight: 500; }
.guest-preview { max-height: 340px; overflow: auto; border-radius: 6px; }
.gt { font-size: 12.5px; min-width: 520px; }
.gt-h, .gt-r {
  display: grid;
  grid-template-columns: 32px 66px 40px 46px 58px minmax(130px, 1fr) 98px 88px 46px;
  align-items: center;
}
.gt-h {
  color: var(--text-3); background: #fafbfc; border-radius: 6px;
  padding: 7px 6px; font-weight: 500;
}
.gt-h span, .gt-r span { padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-r { padding: 7px 6px; border-bottom: 1px solid var(--line-soft); }
.gt-r:hover { background: #fafbfc; }
.gt-r .nm { font-weight: 500; }
.gt-r .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.gt-r .bad { color: var(--danger); }
.gt-r .num { text-align: right; font-variant-numeric: tabular-nums; }
.gt-r .c { text-align: center; }
.gt-empty { text-align: center; color: var(--text-3); padding: 26px 12px; font-size: 13px; }

/* ================= 酒店预定编辑 ================= */
.hb-scroll { overflow-x: auto; }
.hb-edit { width: 100%; min-width: 1010px; table-layout: fixed; border-collapse: collapse; font-size: 12.5px; }
.hb-edit th {
  padding: 6px 6px; text-align: left; font-weight: 500;
  color: var(--text-3); background: #fafbfc; white-space: nowrap;
}
.hb-edit td { padding: 3px 4px; border-bottom: 1px solid var(--line-soft); }
.hb-edit input, .hb-edit select {
  width: 100%; height: 30px; padding: 0 7px; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--text);
  font-family: inherit;
}
.hb-edit input[type=number] { text-align: right; font-variant-numeric: tabular-nums; }
.hb-edit input:focus, .hb-edit select:focus { outline: none; border-color: var(--brand); }
.hb-edit .row-x {
  width: 26px; height: 26px; border: 0; border-radius: 5px; cursor: pointer;
  background: transparent; color: var(--text-3); font-size: 15px; line-height: 1;
}
.hb-edit .row-x:hover { background: #ffece8; color: var(--danger); }
.hb-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.hb-bar .muted { font-size: 12.5px; }
.hb-bar b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* ================= 酒店核房 ================= */
.hb-tbl .exp { color: var(--text-3); font-size: 11px; }
.hb-tbl tr.guest-row > td { background: #fbfcfd; padding: 6px 12px 10px 40px; }

/* 酒店详情：行内编辑输入 */
.hb-tbl .hb-in {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  padding: 3px 6px;
  font: inherit;
  color: inherit;
  width: 100%;
  min-width: 0;
}
.hb-tbl .hb-in:hover { border-color: var(--line); background: #fff; }
.hb-tbl .hb-in:focus { outline: none; border-color: var(--brand); background: #fff; }
.hb-tbl select.hb-in { cursor: pointer; }
.hb-tbl td.num .hb-in { text-align: right; font-variant-numeric: tabular-nums; }
.hb-tbl td.hb-date .hb-in { display: block; margin: 1px 0; }
.hb-tbl td.hb-rooms { white-space: nowrap; }
.hb-tbl td.hb-rooms .hb-room { width: 46px; text-align: right; }
.hb-tbl .hb-in.hb-ok { border-color: #2e9e6b; background: #f2fbf6; }
.hb-tbl .hb-in.hb-err { border-color: var(--danger, #d64541); background: #fff5f4; }
.hb-msg {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  padding: 10px 16px; border-radius: 10px; font-size: 13px;
  box-shadow: 0 6px 24px rgba(0,0,0,.14);
}
.hb-msg.okc { background: #eefaf3; color: #1c7a4d; border: 1px solid #bfe8d2; }
.hb-msg.bad { background: #fff2f0; color: #b3261e; border: 1px solid #f3c1bd; }

/* ================= 钻石档次 ================= */
.diamond {
  color: #d4a017;
  font-size: 13px;
  letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(212, 160, 23, 0.35);
  white-space: nowrap;
}

/* ================= 门票管理页 ================= */
.spot-card { margin-bottom: 14px; }
.spot-card .fcard-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spot-card .spot-name { font-size: 14.5px; }
.tk-tbl .tk-in {
  border: 1px solid transparent; background: transparent; border-radius: 6px;
  padding: 3px 6px; font: inherit; color: inherit; width: 100%; min-width: 0;
}
.tk-tbl .tk-in:hover { border-color: var(--line); background: #fff; }
.tk-tbl .tk-in:focus { outline: none; border-color: var(--brand); background: #fff; }
.tk-tbl td.num .tk-in { text-align: right; font-variant-numeric: tabular-nums; }
.tk-tbl .tk-in.hb-ok { border-color: #2e9e6b; background: #f2fbf6; }
.tk-tbl .tk-in.hb-err { border-color: var(--danger, #d64541); background: #fff5f4; }
.tk-tbl tr.tk-new td { background: #fbfcfd; }
.tk-switch { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.spot-edit { margin-top: 10px; padding: 12px; background: #f8fafc; border: 1px dashed var(--line); border-radius: 10px; }

/* 订单编辑页：门票卡 */
.tk-order-tbl td, .tk-order-tbl th { padding: 5px 8px; }
.tk-order-tbl .tk-season { font-size: 11px; padding: 1px 7px; border-radius: 99px; white-space: nowrap; }
.tk-season.peak { background: #fff4e5; color: #b25e09; }
.tk-season.low  { background: #e8f4fd; color: #1c6fb8; }
.tk-season.all  { background: #f0f1f3; color: #5a6472; }
.tk-notice {
  background: #fff8e8; border: 1px solid #ffe3a3; color: #8a6116;
  border-radius: 8px; padding: 8px 12px; margin-top: 8px; font-size: 12.5px; line-height: 1.7;
}
.tk-notice b { color: #b25e09; }
.glist { display: flex; flex-wrap: wrap; gap: 6px; }
.gtag {
  display: inline-flex; align-items: baseline; gap: 5px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 3px 10px; font-size: 12.5px;
}
.gtag i { font-style: normal; color: var(--brand); font-size: 11.5px; }
.gtag em { font-style: normal; color: var(--text-3); font-size: 11px; }

/* 核房：入住人勾选 */
.gform-hd {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; flex-wrap: wrap;
}
.gform-hd b.warn { color: var(--warn); }
.grow-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 6px; }
.gr-item {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 8px; background: #fff;
}
.gr-item.on { border-color: var(--brand); background: #fafcff; }
.gr-item label { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; cursor: pointer; font-size: 13px; }
.gr-item label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-item label em { font-style: normal; font-size: 11px; color: var(--text-3); }
.gr-item input[type=text] {
  width: 74px; height: 26px; font-size: 12px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--text);
}
.gr-item select {
  width: 72px; height: 26px; font-size: 12px;
  border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--text);
}
.gform-ft { margin-top: 8px; }
.gform-ft .btn { height: 30px; padding: 0 14px; font-size: 13px; }

/* ================= 酒店关键词联想 ================= */
.hsug {
  position: fixed; z-index: 500;
  background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, .13);
  max-height: 300px; overflow: auto; padding: 4px;
  font-size: 13px;
}
.hsug-it {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 10px; border-radius: 6px; cursor: pointer;
}
.hsug-it:hover, .hsug-it.on { background: #f2f7ff; }
.hsug-nm { font-weight: 500; color: var(--text); }
.hsug-meta { color: var(--text-3); font-size: 11.5px; margin-left: auto; text-align: right; white-space: nowrap; }
.hsug-ft { border-top: 1px dashed var(--line-soft); margin-top: 4px; padding: 7px 10px 3px; }
.hsug-ft a, .hsug-empty a { color: var(--brand); font-size: 12.5px; text-decoration: none; }
.hsug-ft a:hover, .hsug-empty a:hover { text-decoration: underline; }
.hsug-empty { padding: 10px; color: var(--text-3); font-size: 12.5px; line-height: 1.9; }

/* ================= 操作记录 ================= */
.olog-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 16px 10px; margin-bottom: 40px;
}
.olog-hd {
  font-size: 12.5px; color: var(--text-2);
  padding: 9px 0; border-bottom: 1px dashed var(--line-soft);
}
.olog { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow: auto; }
.olog li {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
  padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 12.5px;
}
.olog li:last-child { border-bottom: 0; }
.ol-time { color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ol-user { color: var(--text-2); white-space: nowrap; }
.ol-body { color: var(--text); min-width: 0; word-break: break-word; flex: 1; }
.ol-body b { font-weight: 500; margin-right: 6px; }
.ol-old { color: var(--text-3); }
.ol-arrow { font-style: normal; color: var(--text-3); margin: 0 6px; }
.ol-new { color: var(--brand); font-weight: 500; }

/* ================= 订单表单页：卡片式 + 自动保存 ================= */
.of-head { align-items: flex-start; margin-bottom: 14px; }
.of-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.of-back { text-decoration: none; }
.of-no {
  font-size: 13px; color: var(--text-2); background: var(--line-soft);
  border-radius: 6px; padding: 2px 10px; letter-spacing: .3px;
}
.of-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.fcard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 14px; overflow: hidden;
  box-shadow: var(--shadow-1);
}
.fcard-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-bottom: 1px solid var(--line-soft); background: #fcfcfe;
}
.fcard-hd h2 {
  margin: 0; font-size: 14px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 8px; letter-spacing: .2px;
}
.fcard-hd h2::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #4f7cf0, #2b5cd9);
}
.fcard-hd .muted { font-size: 12px; }
.fcard-bd { padding: 18px 20px; }
.fcard .grid { gap: 16px 20px; }
.fcard .guest-box, .fcard .hb-box { border: 0; padding: 0; margin: 0; background: transparent; }

/* 自动保存状态胶囊 */
.asave {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 13px; border-radius: 16px;
  background: var(--line-soft); color: var(--text-2); font-size: 12.5px;
  white-space: nowrap; user-select: none;
}
.asave .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.asave[data-state="saving"] { background: #e8f0ff; color: var(--brand); }
.asave[data-state="saving"] .dot { background: var(--brand); animation: asave-pulse 1s infinite; }
.asave[data-state="ok"] { background: #e8ffea; color: #0a7a1f; }
.asave[data-state="ok"] .dot { background: var(--ok); }
.asave[data-state="err"] { background: #ffece8; color: #cb2634; }
.asave[data-state="err"] .dot { background: var(--danger); }
@keyframes asave-pulse { 50% { opacity: .25; } }

/* 字段保存反馈 */
.fld { position: relative; }
.fld input, .fld select, .fld textarea { transition: border-color .2s, box-shadow .2s; }
.fld.saved input, .fld.saved select, .fld.saved textarea,
.fld.saved .seg-group, .fld.saved .chips {
  border-color: #3ecf6a; box-shadow: 0 0 0 2px rgba(0, 180, 42, .12);
}
.fld.saved .chips { border-radius: 14px; }
.fld.err input, .fld.err select, .fld.err textarea,
.fld.err .seg-group, .fld.err .chips {
  border-color: var(--danger); box-shadow: 0 0 0 2px rgba(245, 63, 63, .12);
}
.fld.err .chips { border-radius: 14px; }
.fld.err > label { color: var(--danger); }

/* 操作记录卡片化后的内边距 */
.fcard-bd .olog { max-height: 460px; }
.fcard-bd .gt-empty { padding: 30px 12px; }

/* 操作记录：默认折叠 */
.olog-fold { /* details 本身带 .fcard */ }
.olog-fold > summary { cursor: pointer; list-style: none; user-select: none; }
.olog-fold > summary::-webkit-details-marker { display: none; }
.olog-fold > summary:hover { background: #f7f8fa; }
.olog-fold > summary .fold-caret {
  margin-left: auto; width: 0; height: 0; flex: none;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--text-3);
  transition: transform .15s;
}
.olog-fold[open] > summary .fold-caret { transform: rotate(180deg); }
.olog-fold > summary .muted { font-weight: 400; }
.olog-fold[open] > summary { border-bottom: 1px solid var(--line-soft); }
.olog-fold:not([open]) > summary { border-bottom: 0; }

@media (max-width: 900px) {
  .fcard-bd { padding: 14px; }
  .asave { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}

/* ================= 酒店列表页 ================= */
.hstats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hstats .stat b.warn { color: var(--warn); }
.hstats .hwarn { background: #fffaf0; border-color: #ffe7bc; }
.hstats .hwarn span { color: #93540a; }
@media (max-width: 900px) {
  .hstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hstats .hwarn { grid-column: span 2; }
}

/* ================= 设置页：字典管理 ================= */
.set-layout {
  display: grid; grid-template-columns: 210px minmax(0, 1fr);
  gap: 14px; align-items: start;
}
.set-side { padding: 8px; }
.set-side-hd {
  font-size: 12.5px; color: var(--text-3); padding: 6px 10px 8px;
  border-bottom: 1px solid var(--line-soft); margin-bottom: 6px;
}
.set-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; padding: 7px 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text-2); font-size: 13px;
  font-family: inherit; cursor: pointer; text-align: left;
}
.set-cat:hover { background: var(--line-soft); color: var(--text); }
.set-cat.on { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.set-cat i {
  font-style: normal; font-size: 11.5px; color: var(--text-3);
  background: var(--line-soft); border-radius: 8px; padding: 0 7px; line-height: 17px;
}
.set-cat.on i { background: #d4e3ff; color: var(--brand); }

.set-main { min-width: 0; }
.set-tbl .set-name {
  width: 100%; height: 30px; padding: 0 8px;
  border: 1px solid transparent; border-radius: 5px;
  background: transparent; font-size: 13px; font-family: inherit; color: var(--text);
}
.set-tbl .set-name:hover { border-color: var(--line); background: #fff; }
.set-tbl .set-name:focus { outline: none; border-color: var(--brand); background: #fff; }
.set-tbl tr.off td { color: var(--text-3); }
.set-tbl tr.off .set-name { color: var(--text-3); text-decoration: line-through; }
.set-ops { white-space: nowrap; }
.set-ops .gbtn { padding: 0 8px; }
.set-ops .gbtn.del:hover { background: #ffece8; color: var(--danger); }
.set-add { display: flex; gap: 8px; margin: 12px 0 6px; flex-wrap: wrap; }
.set-add input {
  flex: 1; height: 34px; padding: 0 10px; max-width: 420px;
  border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-family: inherit;
}
.set-add input:focus { outline: none; border-color: var(--brand); }
.set-add select {
  height: 34px; padding: 0 8px; max-width: 420px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; font-family: inherit; color: var(--text); background: #fff;
}
.set-add select:focus { outline: none; border-color: var(--brand); }
/* 店铺渠道添加行：平台 / 店铺名 / 主体公司 三段对齐 */
#chNewPlatform { flex: 0 0 150px; }
#chNewName { flex: 1 1 220px; max-width: 340px; }
#chNewCompany { flex: 0 0 250px; }
@media (max-width: 900px) {
  .set-layout { grid-template-columns: 1fr; }
  .set-side { display: flex; flex-wrap: wrap; gap: 4px; }
  .set-side-hd { display: none; }
  .set-cat { width: auto; }
}

/* ================= 订单详情页：Hero + Tab + 待办侧栏 ================= */
.odetail {
  display: grid; grid-template-columns: minmax(0, 1fr) 296px;
  gap: 16px; align-items: start;
}
.odetail.solo { grid-template-columns: minmax(0, 1fr); }
.odetail-main { min-width: 0; }

/* ---- Hero 头卡 ---- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 14px; padding: 22px 26px 20px;
  background: linear-gradient(132deg, #1c3a8f 0%, #2b5cd9 58%, #4a74ea 100%);
  color: #fff; margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(28, 58, 143, .30);
}
.hero::before {
  content: ""; position: absolute; right: -70px; top: -90px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: 60px; bottom: -120px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 60%);
  pointer-events: none;
}
.hero-top { display: flex; align-items: flex-start; gap: 14px; }
.hero-back {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14); color: #fff;
  text-decoration: none; font-size: 17px; line-height: 1;
  transition: background .15s var(--ease);
}
.hero-back:hover { background: rgba(255,255,255,.26); }
.hero-title-wrap { flex: 1; min-width: 0; }
.hero-kicker {
  font-size: 12px; color: rgba(255,255,255,.72);
  letter-spacing: .4px; margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.hero-kicker b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-title {
  margin: 0; font-size: 21px; font-weight: 600; line-height: 1.3;
  letter-spacing: .2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-status { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.hpill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 11px; border-radius: 12px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  font-size: 12px; color: #fff; white-space: nowrap;
}
.hpill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.85); }
.hpill.ok   { background: rgba(52, 199, 123, .28); border-color: rgba(120, 235, 180, .5); }
.hpill.warn { background: rgba(245, 158, 11, .30); border-color: rgba(253, 200, 110, .55); }
.hpill.bad  { background: rgba(239, 68, 68, .30); border-color: rgba(255, 150, 150, .5); }
.hero-asave { position: relative; z-index: 2; flex: none; }
.hero .asave { background: rgba(255,255,255,.14); color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.2); }
.hero .asave[data-state="saving"] { background: rgba(255,255,255,.24); color: #fff; }
.hero .asave[data-state="ok"] { background: rgba(52, 199, 123, .30); color: #fff; }
.hero .asave[data-state="err"] { background: rgba(239, 68, 68, .35); color: #fff; }

.hero-meta {
  display: flex; gap: 0; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hm { padding: 0 26px; }
.hm:first-child { padding-left: 0; }
.hm label {
  display: block; font-size: 11.5px; color: rgba(255,255,255,.62);
  letter-spacing: .5px; margin-bottom: 3px;
}
.hm b {
  font-size: 17px; font-weight: 600; color: #fff;
  font-variant-numeric: tabular-nums; letter-spacing: .2px; white-space: nowrap;
}
.hm b small { font-size: 12px; font-weight: 400; color: rgba(255,255,255,.72); margin-left: 3px; }
.hm b.profit-pos { color: #ffd479; }
.hm b.profit-neg { color: #ffb3b3; }

/* ---- Tab 导航 ---- */
.otabs {
  display: flex; gap: 2px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 5px;
  box-shadow: var(--shadow-1);
  position: sticky; top: 66px; z-index: 15;
}
.otab {
  flex: 1; min-width: 96px;
  height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-2);
  font-size: 13.5px; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.otab:hover { background: var(--line-soft); color: var(--text); }
.otab.on {
  background: linear-gradient(135deg, #2e62e0, #2456cb);
  color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(43, 92, 217, .32);
}
.otab .cnt {
  font-size: 11px; padding: 0 6px; border-radius: 8px; line-height: 16px;
  background: rgba(0,0,0,.08); font-variant-numeric: tabular-nums;
}
.otab.on .cnt { background: rgba(255,255,255,.22); }

/* ---- 分区索引（全部展开，点击滚动定位） ---- */
.tpane { display: block; scroll-margin-top: 128px; }
@keyframes tpane-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- 不完整信息标红（电话打码 / 必填缺失） ---- */
input.need-fill, select.need-fill, textarea.need-fill,
.parse-grid input.pf-bad, .parse-grid textarea.pf-bad {
  border-color: #e5484d !important;
  background: #fff5f5;
}
.pf-hint { color: #cb2634; font-size: 12px; margin-top: 3px; line-height: 1.5; }

/* ---- 预订待办侧栏 ---- */
.oside { position: sticky; top: 118px; }
.todo-bd { padding: 6px 16px 14px; }
.todo-grp { padding: 10px 0 4px; }
.todo-grp + .todo-grp { border-top: 1px dashed var(--line-soft); }
.todo-t {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12.5px; color: var(--text-2); margin-bottom: 8px;
}
.todo-t b { font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.todo-t b::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.todo-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tpill {
  height: 27px; padding: 0 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font-size: 12.5px; font-family: inherit; cursor: pointer;
  transition: all .15s var(--ease);
}
.tpill:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.tpill.on {
  background: #fdf0f3; border-color: #f3b7c8; color: #c2335c; font-weight: 600;
  box-shadow: 0 1px 4px rgba(194, 51, 92, .15);
}
.tpill.on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #e0577e; margin-right: 5px; vertical-align: 1px; }
.todo-hint { font-size: 11.5px; color: var(--text-3); padding: 8px 0 0; }

/* ---- 表格 pill（性别/人群等）升级 ---- */
.tg {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1.5px 9px; border-radius: 11px; font-size: 12px; font-weight: 500;
}
.tg::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .75; }
.tg.green  { background: #e5f8ec; color: #0c8a4b; }
.tg.blue   { background: #e9f0ff; color: #2456cb; }
.tg.orange { background: #fef3e6; color: #b25e09; }
.tg.purple { background: #f1ebff; color: #6d3fc0; }
.tg.cyan   { background: #e2f6fa; color: #0e7490; }
.tg.pink   { background: #fde9f1; color: #c2335c; }
.tg.gray   { background: #eef1f6; color: #5a6472; }
.tg.red    { background: #fdeaea; color: #c92a2a; }

/* ---- 单号整格可点直达 ---- */
.dgrid .c[data-f="order_no"] { cursor: pointer; }
.dgrid .c[data-f="order_no"] .cell-orderlink {
  display: block; margin: 0 -10px; padding: 0 10px;
  color: var(--brand); font-weight: 600; text-decoration: none;
  font-variant-numeric: tabular-nums; letter-spacing: .2px;
  height: 100%; line-height: inherit;
}
.dgrid .c[data-f="order_no"]:hover { background: var(--brand-soft) !important; }
.dgrid .c[data-f="order_no"]:hover .cell-orderlink { text-decoration: underline; text-underline-offset: 3px; }

/* 编辑页里游客性别 pill */
.gt-r .sex-f, .gt-r .sex-m { font-weight: 500; }
.gt-r .sex-f { color: #c2335c; }
.gt-r .sex-m { color: #2456cb; }

@media (max-width: 1080px) {
  .odetail { grid-template-columns: minmax(0, 1fr); }
  .oside { position: static; }
  .hm { padding: 0 16px; }
  .hm:first-child { padding-left: 0; }
}
@media (max-width: 900px) {
  .hero { padding: 18px 18px 16px; }
  .hero-title { white-space: normal; font-size: 18px; }
  .otabs { top: 60px; }
  .otab { min-width: 72px; flex: none; padding: 0 12px; }
}

/* ================= 门票 2.0：景区列表 + 景区详情 ================= */
.spot-group { margin-bottom: 18px; }
.spot-group-hd {
  display: flex; align-items: baseline; gap: 10px;
  padding: 0 2px 8px;
}
.spot-group-hd b { font-size: 14px; color: var(--text); }
.spot-group-hd b::before {
  content: ""; display: inline-block; width: 4px; height: 13px;
  border-radius: 2px; background: linear-gradient(180deg, #4a74ea, #2b5cd9);
  margin-right: 7px; vertical-align: -1px;
}
.spot-group-hd .muted { font-size: 12px; }
.spot-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; padding: 13px 18px; margin-bottom: 8px;
  text-decoration: none; color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.spot-row:hover {
  border-color: #b9cdf5; box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}
.sr-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.sr-name { font-size: 15px; font-weight: 600; letter-spacing: .2px; }
.sr-side { display: flex; align-items: center; gap: 14px; flex: none; }
.sr-price {
  font-size: 12.5px; color: var(--text-3); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sr-price b { color: var(--text); font-weight: 600; font-size: 13.5px; }
.sr-price i { font-style: normal; color: var(--line); margin: 0 4px; }
.sr-meta { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.sr-arrow {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--line-soft); color: var(--text-3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; transition: all .15s var(--ease);
}
.spot-row:hover .sr-arrow { background: var(--brand); color: #fff; }
.back-link {
  color: var(--text-3); text-decoration: none; font-size: 14px; font-weight: 400;
  margin-right: 6px;
}
.back-link:hover { color: var(--brand); }
@media (max-width: 760px) {
  .spot-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sr-side { flex-wrap: wrap; }
}

/* ================= 供应商设置页 ================= */
.sup-tbl td { vertical-align: middle; }
.sup-in {
  width: 100%; min-width: 60px;
  border: 1px solid transparent; background: transparent;
  padding: 4px 7px; border-radius: 6px; font: inherit; color: var(--text);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.sup-in:hover { background: var(--line-soft); }
.sup-in:focus {
  outline: none; border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 2px var(--brand-soft);
}
select.sup-in { cursor: pointer; }
.set-add select {
  height: 32px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--text); font: inherit; padding: 0 8px;
}

/* ================= 加入订单：整页选单 ================= */
.pick-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
}
.pick-bar input[type="search"] {
  flex: 1; max-width: 420px; height: 34px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0 12px; font: inherit; color: var(--text);
  background: var(--surface);
}
.pick-bar input[type="search"]:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
}
tr.pick-row { cursor: pointer; transition: background .12s var(--ease); }
tr.pick-row:hover { background: var(--brand-soft); }
tr.pick-row:has(.pick-cb:checked) { background: #f0f5ff; }
tr.pick-row:has(.pick-cb:checked) td { border-top-color: #c9daff; }
.pick-cb { width: 16px; height: 16px; accent-color: #2b5cd9; cursor: pointer; }
.pick-ft {
  position: sticky; bottom: 0; z-index: 18;
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(29, 33, 41, .08);
  padding: 12px 22px; margin-top: 14px; border-radius: 12px 12px 0 0;
}
.pick-ft #pickInfo { font-size: 14px; }

/* ================= 财务工作台 ================= */
.fin-tbl td { vertical-align: middle; }
.fin-op { display: inline-flex; align-items: center; gap: 6px; }
.fin-op .fin-amt { width: 96px; }
.fin-op .fin-acc { max-width: 150px; }
.acc-in, .rt-in {
  width: 100%; box-sizing: border-box; padding: 5px 8px;
  border: 1px solid var(--line); border-radius: 7px; font-size: 13px;
  background: var(--panel);
}
.acc-in:focus, .rt-in:focus { outline: none; border-color: var(--brand); }
tr.off .acc-in, tr.off .rt-in { opacity: .55; }
.stats .stat b.ok { color: #1c7a4d; }
.stats .stat b.bad { color: #b3261e; }

/* ================= 加入订单弹窗 ================= */
.vmodal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.45);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 16px; z-index: 90;
}
.vmodal {
  background: var(--panel); border-radius: 14px; width: 860px; max-width: 100%;
  max-height: 82vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(15,23,42,.25); overflow: hidden;
}
.vmodal-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.vmodal-hd h3 { margin: 0; font-size: 16px; }
.vmodal-x {
  border: none; background: none; font-size: 22px; line-height: 1;
  cursor: pointer; color: var(--muted); padding: 2px 8px; border-radius: 8px;
}
.vmodal-x:hover { background: var(--line); color: var(--text); }
.vmodal-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-bottom: 1px solid var(--line);
}
.vmodal-bar input[type="search"] {
  flex: 1; padding: 7px 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; background: var(--panel);
}
.vmodal-bd { flex: 1; overflow: auto; padding: 0 18px; }
.vmodal-bd .tbl th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
.vmodal-bd tr.conflict td { background: rgba(201,42,42,.05); }
.vmodal-warn {
  padding: 8px 18px; font-size: 12.5px; color: #92400e;
  background: #fff7ed; border-top: 1px solid #fed7aa;
}
.vmodal-ft {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-top: 1px solid var(--line);
}
.vmodal-ft .grow { flex: 1; }

/* ================= 财务 2.0 ================= */
.fin-grid { display: grid; grid-template-columns: 1fr 300px; gap: 14px; }
@media (max-width: 1100px) { .fin-grid { grid-template-columns: 1fr; } }
.fin-acc-list { padding: 10px 14px; }
.facc { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.facc:last-child { border-bottom: none; }
.facc.off { opacity: .5; }
.facc.total { border-top: 1.5px solid var(--line); border-bottom: none; font-weight: 600; }
.facc-name { display: flex; align-items: center; gap: 6px; }
.facc-name i { font-style: normal; font-size: 12px; }
.fin-trend { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding: 10px 4px 0; }
.ft-col { flex: 1; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.ft-col.cur .ft-lb { color: var(--brand); font-weight: 700; }
.ft-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.fin-bar.in  { background: #2f9e68; }
.fin-bar.out { background: #e8590c; }
.ft-bars i.fin-bar { display: block; width: 10px; min-height: 2px; border-radius: 3px 3px 0 0; }
.ft-lb { text-align: center; font-size: 10.5px; color: var(--muted); padding-top: 5px; white-space: nowrap; }
.fin-legend { display: flex; gap: 16px; padding: 8px 4px 2px; font-size: 12.5px; color: var(--muted); }
.fin-legend i { display: inline-flex; align-items: center; gap: 5px; font-style: normal; }
.fin-legend b.fin-bar { width: 12px; height: 8px; border-radius: 2px; display: inline-block; }
.fin-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 26px; }
@media (max-width: 900px) { .fin-cat-grid { grid-template-columns: 1fr; } }
.fin-sub { font-size: 13px; margin: 6px 0 10px; color: var(--muted); font-weight: 600; }
.fcat-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.fcat-name { width: 120px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcat-bar { flex: 1; height: 12px; background: var(--line); border-radius: 6px; overflow: hidden; display: flex; gap: 2px; }
.fcat-bar i { height: 100%; border-radius: 6px; }
.fcat-bar i.in  { background: #2f9e68; }
.fcat-bar i.out { background: #e8590c; }
.fcat-num { width: 90px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.fin-filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 12px; }
.fin-filter input, .fin-filter select { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: var(--panel); }
.fin-cat-manage { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 26px; }
@media (max-width: 900px) { .fin-cat-manage { grid-template-columns: 1fr; } }
.cat-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--line); font-size: 13px; cursor: pointer; user-select: none; }
.cat-tag:hover { background: var(--brand); color: #fff; }
.cat-tag:hover .muted, .cat-tag:hover .cat-x { color: #fff; }
.cat-tag.off { opacity: .45; text-decoration: line-through; }
.cat-x { border: none; background: none; cursor: pointer; font-size: 15px; line-height: 1; color: var(--muted); padding: 0 0 1px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg-btn { border: none; background: none; padding: 7px 22px; font-size: 13.5px; cursor: pointer; color: var(--muted); }
.seg-btn.on { background: var(--brand); color: #fff; font-weight: 600; }
.fmodal-form { display: grid; grid-template-columns: 130px 1fr; gap: 10px 12px; align-items: center; font-size: 13.5px; }
.fmodal-form label { color: var(--muted); text-align: right; }
.fmodal-form label i { font-style: normal; font-size: 12px; }
.fmodal-form input, .fmodal-form select {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13.5px; width: 100%; box-sizing: border-box; background: var(--panel);
}
.fmodal-form input:focus, .fmodal-form select:focus { outline: none; border-color: var(--brand); }

/* ================= 操作记录查询 ================= */
.log-diff .old { color: #b3261e; text-decoration: line-through; opacity: .8; }
.log-diff .new { color: #1c7a4d; font-weight: 500; }
.log-diff i { color: var(--muted); font-style: normal; margin: 0 3px; }
.log-pager { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.log-pager .grow { flex: 1; }

/* ================= 弹窗美术精修（覆盖前面基础版，两个弹窗共用） ================= */
.vmodal-mask {
  background: rgba(15, 23, 42, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  align-items: center;
  padding: 24px 16px;
}
.vmodal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 30px 80px -12px rgba(15, 23, 42, .35);
  animation: vmodalIn .18s var(--ease);
}
@keyframes vmodalIn {
  from { opacity: 0; transform: translateY(-10px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.vmodal-hd { padding: 16px 22px; }
.vmodal-hd h3 { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.vmodal-x {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 9px; font-size: 21px; color: var(--text-3); padding: 0;
}
.vmodal-x:hover { background: var(--line-soft); color: var(--text); }
.vmodal-bar { padding: 12px 22px; background: #fafbfd; }
.vmodal-bd { padding: 6px 22px 14px; }
.vmodal-bd .tbl th { background: #fff; box-shadow: inset 0 -1px 0 var(--line); }
.vmodal-ft { padding: 14px 22px; background: #fafbfd; }
.vmodal-ft .btn { min-width: 88px; }

/* 记一笔表单 */
.fmodal-form { grid-template-columns: 96px 1fr; gap: 12px 14px; padding: 8px 0 4px; }
.fmodal-form label { font-size: 13px; color: var(--text-3); }
.fmodal-form input, .fmodal-form select {
  height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #f7f8fb; font-size: 14px; transition: border-color .12s, box-shadow .12s, background .12s;
}
.fmodal-form input:hover, .fmodal-form select:hover { border-color: #d5dbe8; }
.fmodal-form input:focus, .fmodal-form select:focus {
  background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 92, 217, .12); outline: none;
}
.fmodal-form input[readonly] { color: var(--text-3); }
/* 分段控件（支出/收入） */
.seg { background: #eef1f7; border: none; border-radius: 11px; padding: 3px; gap: 2px; }
.seg-btn { padding: 7px 28px; border-radius: 9px; font-size: 13.5px; color: var(--text-3); transition: all .12s; }
.seg-btn:hover { color: var(--text-2); }
.seg-btn.on { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 1px 4px rgba(43, 92, 217, .35); }

/* 数字输入去掉原生上下箭头 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

@media (max-width: 720px) {
  .vmodal { width: 100% !important; max-height: 92vh; border-radius: 14px; }
  .fmodal-form { grid-template-columns: 1fr; gap: 6px; }
  .fmodal-form label { text-align: left; margin-top: 4px; }
}

/* ================= 订单网格：分组折叠 + 单号新窗口按钮 ================= */
.dgrid .r.grp .c.grp-cell { display: flex; align-items: center; gap: 6px; padding-left: 4px; }
.grp-caret {
  border: none; background: none; cursor: pointer; padding: 0;
  width: 22px; height: 22px; line-height: 22px; text-align: center;
  border-radius: 5px; color: var(--text-3); font-size: 11px; flex: none;
}
.grp-caret:hover { background: var(--line); color: var(--text); }
.dgrid .r.grp[data-collapsed="1"] .c.grp-cell { background: #eef1f7; }
.dgrid .r.grp[data-collapsed="1"] { border-bottom: 1px solid var(--line); }

/* 单号单元格：右侧常显淡色「新窗口」按钮，悬停变实 */
.dgrid .c[data-f="order_no"] { padding-right: 24px; }
.dgrid .c[data-f="order_no"] .open-btn {
  opacity: .38; width: 18px; height: 18px; line-height: 18px;
  font-size: 12px; border-radius: 4px; right: 3px;
}
.dgrid .c[data-f="order_no"]:hover .open-btn { opacity: 1; background: var(--brand-soft); color: var(--brand); }

/* ================= 创建用车：选择现有车次弹窗 ================= */
.vpick-list { display: flex; flex-direction: column; gap: 8px; }
.vpick {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; transition: border-color .12s, background .12s;
}
.vpick:hover { border-color: #c9d6ef; background: #fafcff; }
.vpick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.vpick.lack { opacity: .6; cursor: not-allowed; }
.vpick input[type="radio"] { width: 15px; height: 15px; accent-color: var(--brand); flex: none; }
.vp-main { flex: 1; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.vp-main i { font-style: normal; font-size: 12.5px; }
.vp-seat { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.vp-seat.ok { color: #1c7a4d; }
.vp-seat.bad { color: #b3261e; }

/* ================= 车次 · 同行拼客 / 用车方式 ================= */
.pf-tbl .pf-in {
  width: 100%; box-sizing: border-box; padding: 4px 8px;
  border: 1px solid transparent; border-radius: 6px; font-size: 13px; background: transparent;
}
.pf-tbl .pf-in:hover { border-color: var(--line); background: var(--panel); }
.pf-tbl .pf-in:focus { outline: none; border-color: var(--brand); background: #fff; }
.pf-tbl .pf-in.num { text-align: right; font-variant-numeric: tabular-nums; }
.pf-tbl tr.pf-settled td { color: var(--text-3); background: #fbfcfd; }
.vmode-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.vmode-seg .seg-pill {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px;
}
.vmode-seg .seg-pill.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.vmode-seg .seg-pill input { accent-color: var(--brand); }

/* ================= 用车场景 tabs / 车辆信息行内编辑 ================= */
.scene-tabs { display: flex; gap: 6px; margin: 10px 0 12px; flex-wrap: wrap; }
.scene-tab {
  padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--text-2); text-decoration: none; background: var(--panel);
}
.scene-tab:hover { border-color: var(--brand); color: var(--brand); }
.scene-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.vinfo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 14px; }
.vinfo-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-3); }
.vinfo-grid label.wide { grid-column: span 4; }
.vinfo-grid .vin {
  height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13.5px; color: var(--text); background: var(--panel); width: 100%; box-sizing: border-box;
}
.vinfo-grid .vin:hover { border-color: #d5dbe8; }
.vinfo-grid .vin:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43,92,217,.10); }
.vinfo-grid .vin.num { text-align: right; font-variant-numeric: tabular-nums; }
.vinfo-grid .vin:disabled { opacity: .6; }
@media (max-width: 900px) { .vinfo-grid { grid-template-columns: repeat(2, 1fr); } .vinfo-grid label.wide { grid-column: span 2; } }

/* ================= 供应商 / 旅行社关联 ================= */
.lnk-cell { position: relative; }
.lnk-cell.has-link > input { padding-right: 22px; }
.lnk-cell .cell-link {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; line-height: 18px; text-align: center;
  font-size: 12px; border-radius: 4px; text-decoration: none;
  color: var(--text-3); opacity: .38;
}
.lnk-cell:hover .cell-link { opacity: 1; background: var(--brand-soft); color: var(--brand); }
.pf-tbl td.lnk-cell { padding-right: 4px; }

/* 结算状态下拉（供应商详情页） */
.st-sel {
  height: 30px; padding: 0 8px; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--panel); color: var(--text); cursor: pointer;
}
.st-sel:hover { border-color: #d5dbe8; }
.st-sel:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43,92,217,.10); }
.st-sel:disabled { opacity: .55; }

/* ================= 创建用车弹窗：外放拼车选项 ================= */
.vp-sep {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 10px; color: var(--text-3); font-size: 12.5px;
}
.vp-sep::before, .vp-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.vpick-out { border-style: dashed; }
.vpick-out:has(input:checked) { border-style: solid; }
.vpick-out .vp-seat { color: var(--text-3); }
.vp-out {
  margin-top: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fafbfd;
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end;
}
.vp-out[hidden] { display: none; }
.vp-out label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-3); }
.vp-out select, .vp-out input {
  height: 34px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13.5px; background: #fff; color: var(--text);
}
.vp-out select { min-width: 220px; }
.vp-out input { width: 120px; }
.vp-out select:focus, .vp-out input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43,92,217,.10);
}
.vp-cost { flex: 1 1 100%; font-size: 12.5px; }

/* ================= 线路产品 ================= */
.rp-group { margin-bottom: 14px; }
.rp-group:last-child { margin-bottom: 0; }
.rp-group-hd {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 2px 8px; font-size: 14px;
}
.rp-tbl td, .pd-tbl td { vertical-align: middle; }
.pd-tbl .pf-in { background: transparent; }
.pd-tbl .pf-in:hover { background: var(--panel); }

/* ================= 外放：订单网格用车列 ================= */
.ocell { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; max-width: 100%; font-size: 12px; }
.ocell .ol1 { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ocell .ol1 .oci { flex: none; }
.ocell .ol1 {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ocell .oci {
  display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 600;
  color: #7c3aed; background: #f3e8ff; border-radius: 4px; padding: 0 5px; line-height: 15px;
}
.ocell em { font-style: normal; font-size: 11.5px; white-space: nowrap; }

/* ================= 用车列表：类别徽标 / 缺填 / tab 计数 ================= */
.vcat {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px;
  font-size: 10.5px; font-weight: 600; line-height: 16px; vertical-align: middle;
  white-space: nowrap;
}
.vcat.c-charter { background: #e8f0ff; color: #165dff; }
.vcat.c-mixed   { background: #f3e8ff; color: #7c3aed; }
.vcat.c-empty   { background: #fff3e6; color: #c25b00; }
.vcat.c-idle    { background: #f2f4f8; color: #6b7688; }
.vmiss { color: #b9c0cd; font-size: 12.5px; }
.vmiss-link { color: #b9c0cd; text-decoration: none; border-bottom: 1px dashed #d9dee8; cursor: pointer; }
.vmiss-link:hover { color: var(--brand); border-bottom-color: var(--brand); }
.scene-tab .cnt {
  display: inline-block; margin-left: 5px; min-width: 17px; padding: 0 4px;
  border-radius: 9px; background: rgba(0,0,0,.07); font-size: 11px; line-height: 16px;
  text-align: center; font-variant-numeric: tabular-nums;
}
.scene-tab.on .cnt { background: rgba(255,255,255,.25); }

/* 车次号：悬停看车内客人姓名与来源 */
.vpeek-wrap { position: relative; }
.vpeek {
  position: fixed; z-index: 900; width: 380px; max-height: 64vh; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(16,24,40,.16); padding: 0; font-size: 12.5px;
  color: var(--text);
}
.vpeek[hidden] { display: none; }
.vpeek-hd {
  display: flex; align-items: baseline; gap: 8px; padding: 10px 13px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; border-radius: 12px 12px 0 0;
}
.vpeek-hd b { font-size: 13px; }
.vpeek-hd .x { margin-left: auto; cursor: pointer; color: var(--text-3); font-size: 15px; padding: 0 3px; }
.vpeek-sec { padding: 9px 13px 4px; font-size: 11.5px; color: var(--text-3); letter-spacing: .3px; }
.vpeek-row { padding: 7px 13px; border-top: 1px dashed #eef1f6; }
.vpeek-row:first-of-type { border-top: 0; }
.vpeek-row .h { display: flex; align-items: baseline; gap: 6px; }
.vpeek-row .no { font-weight: 600; }
.vpeek-row .tagn {
  font-size: 11px; padding: 0 5px; border-radius: 4px; background: #eef2f9; color: #5b6b86;
}
.vpeek-row .p { margin-left: auto; color: var(--text-3); font-variant-numeric: tabular-nums; }
.vpeek-names { color: var(--text-2); margin-top: 2px; line-height: 1.5; word-break: break-all; }
.vpeek-names.none { color: #b9c0cd; }
.vpeek-ft {
  padding: 8px 13px; border-top: 1px solid var(--line); color: var(--text-3);
  background: #fafbfd; border-radius: 0 0 12px 12px;
}

/* 详情页：客人姓名列 */
.gnames { display: inline-block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.gnames.none { color: #b9c0cd; }
.vinfo-grid .vhint { font-size: 11.5px; color: var(--text-3); margin-top: -2px; line-height: 1.3; }
.vinfo-grid label { position: relative; }
.vinfo-grid .lnk-cell .cell-link { top: 38px; }
.vno-cell { line-height: 1.5; }
.vpeople {
  margin-left: 3px; padding: 0 4px; height: 17px; line-height: 15px;
  border: 1px solid #dde3ee; border-radius: 4px; background: #f7f9fc;
  color: #6b7688; font-size: 10.5px; cursor: pointer; vertical-align: 1px;
}
.vpeople:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.vno-sub { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.vno-sub .vcat { margin-left: 0; }
.vno-cell .vpeople { margin-left: 0; font-family: -apple-system, 'Microsoft YaHei', sans-serif; }
.vcat.c-out { background: #f3e8ff; color: #7c3aed; border: 1px solid #e4d0ff; }

/* ================= 分页 ================= */
.pager { display: inline-flex; align-items: center; gap: 4px; }
.pgbtn {
  min-width: 28px; height: 28px; padding: 0 7px;
  border: 1px solid var(--line); border-radius: 7px; background: #fff;
  color: var(--text-2); font-size: 12.5px; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.pgbtn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pgbtn.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pgbtn:disabled { opacity: .4; cursor: default; }
.pgap { color: var(--text-3); padding: 0 2px; }
.pgsize { font-size: 12.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.pgsize select {
  height: 28px; padding: 0 6px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; color: var(--text); font-size: 12.5px;
}
.grid-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ================= 数据看板 ================= */
.dhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.dhead h1 { margin: 0 0 4px; font-size: 22px; letter-spacing: .2px; }
.dhead p { margin: 0; font-size: 13px; }
.dhead-actions { display: flex; gap: 8px; }

.dkpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.dkpi {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 13px;
  display: flex; flex-direction: column; gap: 3px; position: relative; overflow: hidden;
}
.dkpi::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #e3e8f2;
}
.dkpi.good::after { background: #0f9d58; }
.dkpi.warn::after { background: #e8890c; }
.dkpi span { font-size: 12.5px; color: var(--text-3); }
.dkpi b { font-size: 24px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.dkpi em { font-style: normal; font-size: 11.5px; color: var(--text-3); }

.dgrid2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; margin-bottom: 12px; }
.dcard {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 12px;
}
.dcard-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dcard-hd h2 { margin: 0; font-size: 14.5px; }
.dchart { width: 100%; height: 180px; display: block; }
.dlegend { display: flex; gap: 14px; align-items: center; font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.dlegend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.dlegend .muted { margin-left: auto; }

.dtodo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dtodo-it {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fafbfd;
}
.dtodo-it:hover { border-color: var(--brand); background: var(--brand-soft); }
.dtodo-it b { font-size: 19px; font-variant-numeric: tabular-nums; color: var(--text-3); min-width: 26px; }
.dtodo-it.on b { color: #d97706; }
.dtodo-it span { font-size: 12.5px; display: flex; flex-direction: column; }
.dtodo-it em { font-style: normal; font-size: 11px; color: var(--text-3); }

.dops { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.dops > div { border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 1px; }
.dops span { font-size: 11.5px; color: var(--text-3); }
.dops b { font-size: 15px; font-variant-numeric: tabular-nums; }
.dops em { font-style: normal; font-size: 11px; color: var(--text-3); }

.dbar { margin-bottom: 11px; }
.dbar:last-child { margin-bottom: 0; }
.dbar-h { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 4px; }
.dbar-h em { font-style: normal; color: var(--text-3); font-variant-numeric: tabular-nums; }
.dbar-t { height: 6px; background: #f0f3f8; border-radius: 4px; overflow: hidden; }
.dbar-t i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4a7ef0, #2b5cd9); }
.dbar-f { font-size: 11px; margin-top: 2px; }
.dempty { color: var(--text-3); font-size: 12.5px; padding: 18px 0; text-align: center; }

.dtbl td, .dtbl th { font-size: 12.5px; }

@media (max-width: 1100px) {
  .dkpis { grid-template-columns: 1fr 1fr; }
  .dgrid2 { grid-template-columns: 1fr; }
}

/* 结算状态下拉：未结算=红框，已结算=绿，有尾款=蓝 */
.st-sel.is-wait { border-color: #f3c2c2; background: #fff6f6; color: #c92a2a; }
.st-sel.is-ok   { border-color: #b7e4c7; background: #f2fbf5; color: #0c8a4b; }
.st-sel.is-part { border-color: #bcd4ff; background: #f5f8ff; color: #2456cb; }
.vs-sel { min-width: 84px; }

/* ================= 供应商对账页 ================= */
.sup-ov {
  display: grid; grid-template-columns: 320px 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 14px; overflow: hidden;
}
.sup-ov-main {
  padding: 16px 18px; display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(135deg, #f7f9ff, #eef3ff); border-right: 1px solid var(--line);
}
.sup-ov-main span { font-size: 12.5px; color: var(--text-3); }
.sup-ov-main b { font-size: 27px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.sup-ov-main em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.sup-ov-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.sup-ov-cols > div {
  padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;
  border-left: 1px dashed var(--line);
}
.sup-ov-cols > div:first-child { border-left: 0; }
.sup-ov-cols span { font-size: 12px; color: var(--text-3); }
.sup-ov-cols b { font-size: 17px; font-variant-numeric: tabular-nums; }
.sup-ov-cols em { font-style: normal; font-size: 11.5px; color: var(--text-3); }

.sup-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sup-nav a {
  padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--text-2); text-decoration: none; background: #fff;
}
.sup-nav a:hover { border-color: var(--brand); color: var(--brand); }
.sup-nav a em { font-style: normal; color: var(--text-3); margin-left: 5px; }

.vinfo-grid.grid3 { grid-template-columns: repeat(3, 1fr); }
.vinfo-grid.grid3 label.wide { grid-column: span 3; }
.vinfo-grid.grid3 label.span2 { grid-column: span 2; }
@media (max-width: 900px) {
  .sup-ov { grid-template-columns: 1fr; }
  .sup-ov-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .sup-ov-cols { grid-template-columns: 1fr; }
  .sup-ov-cols > div { border-left: 0; border-top: 1px dashed var(--line); }
  .vinfo-grid.grid3 { grid-template-columns: 1fr 1fr; }
  .vinfo-grid.grid3 label.wide { grid-column: span 2; }
  .vinfo-grid.grid3 label.span2 { grid-column: span 2; }
}
/* 对账表格统一：金额右对齐加粗，行高紧凑 */
.sup-sec .tbl th { font-size: 12px; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.sup-sec .tbl td { font-size: 12.5px; }
.sup-sec .tbl td.num { font-variant-numeric: tabular-nums; }
.sup-sec .fcard-hd h2 { font-size: 14px; }
.sup-sec { scroll-margin-top: 70px; }

/* ================= OTA 平台配色（4 家） ================= */
.pl.ota-ctrip     { background: #e8f0ff; color: #165dff; }  /* 携程 · 蓝 */
.pl.ota-tongcheng { background: #e6f9eb; color: #0f8a2e; }  /* 同程 · 绿 */
.pl.ota-zhenxuan  { background: #fff3e6; color: #c25b00; }  /* 东方甄选 · 橙 */
.pl.ota-douyin    { background: #ffe8f1; color: #be185d; }  /* 抖音来客 · 粉 */
.chip.ota-ctrip.on     { background: #e8f0ff; border-color: #165dff; color: #165dff; }
.chip.ota-tongcheng.on { background: #e6f9eb; border-color: #0f8a2e; color: #0f8a2e; }
.chip.ota-zhenxuan.on  { background: #fff3e6; border-color: #c25b00; color: #c25b00; }
.chip.ota-douyin.on    { background: #ffe8f1; border-color: #be185d; color: #be185d; }
.pchip.ota-ctrip     { background: #e8f0ff; color: #165dff; }
.pchip.ota-tongcheng { background: #e6f9eb; color: #0f8a2e; }
.pchip.ota-zhenxuan  { background: #fff3e6; color: #c25b00; }
.pchip.ota-douyin    { background: #ffe8f1; color: #be185d; }

/* ================= 识别录单 ================= */
.parse-wrap { display: flex; flex-direction: column; gap: 14px; }
.parse-pane { display: none; }
.parse-pane.on { display: block; }
#parseText { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 13px; line-height: 1.7; resize: vertical; font-family: inherit; }
#parseText:focus { outline: none; border-color: var(--brand); }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 42px 20px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer;
  background: var(--line-soft, #f7f9ff); transition: all .15s; text-align: center;
}
.dropzone:hover, .dropzone:focus, .dropzone.over { border-color: var(--brand); background: #eef3ff; outline: none; }
.dropzone .dz-icon { font-size: 30px; font-style: normal; }
.dropzone .hint { font-size: 12px; }
.img-preview { text-align: center; }
.img-preview img { max-width: 100%; max-height: 420px; border: 1px solid var(--line); border-radius: 10px; }
.ip-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.parse-badges { display: flex; align-items: center; gap: 8px; }
.parse-warn {
  padding: 9px 14px; border-radius: 9px; background: #fff7e8; color: #9a6700;
  font-size: 13px; margin-bottom: 7px; border: 1px solid #ffe4b3;
}
.parse-ok {
  padding: 9px 14px; border-radius: 9px; background: #e6f9eb; color: #0f8a2e;
  font-size: 13px; margin-bottom: 7px; border: 1px solid #b7ecc3;
}
.parse-grid { gap: 12px 16px; }
.parse-grid input, .parse-grid textarea {
  width: 100%; box-sizing: border-box; padding: 8px 11px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; font-family: inherit;
}
.parse-grid input:focus, .parse-grid textarea:focus { outline: none; border-color: var(--brand); }
.parse-grid .fld span2, .parse-grid .fld.span2 { grid-column: span 2; }
.parse-segs { margin-top: 14px; }
.parse-segs summary { cursor: pointer; font-size: 12.5px; color: var(--text-3); }
.seg-list {
  margin-top: 10px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 18px;
  max-height: 240px; overflow: auto; padding: 10px 12px; background: #f7f8fa; border-radius: 9px;
}
.seg-row { font-size: 12px; line-height: 1.6; display: flex; gap: 8px; min-width: 0; }
.seg-row b { color: var(--brand); white-space: nowrap; flex-shrink: 0; }
.seg-row span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 800px) { .seg-list { grid-template-columns: 1fr; } }

/* ================================================================
   全站视觉打磨 · 2026-11-11（设计系统增量层）
   原则：克制的阴影 / 统一圆角 / 焦点可达 / 数字等宽 / 微交互
   ================================================================ */

/* ---- 全局质感 ---- */
::selection { background: rgba(43, 92, 217, .16); }
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #cdd5e4; border-radius: 5px; border: 2px solid rgba(255,255,255,0); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #aeb9cf; background-clip: padding-box; }
::-webkit-scrollbar-corner, ::-webkit-scrollbar-track { background: transparent; }

/* ---- 页面进入节奏 ---- */
.page { animation: page-in .28s var(--ease) both; }
@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---- 焦点可达性（键盘操作必须看得见） ---- */
.btn:focus-visible, .gbtn:focus-visible, .otab:focus-visible,
.nav a:focus-visible, .pgbtn:focus-visible, .chip:focus-within {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

/* ---- 顶栏 ---- */
.topbar { box-shadow: 0 1px 12px rgba(23, 33, 61, .06); }
.brand span em { letter-spacing: 2px; }
.nav a { position: relative; height: 34px; display: inline-flex; align-items: center; }
.nav a.on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--brand); opacity: .55;
}
.who .avatar { box-shadow: 0 2px 6px rgba(239, 125, 30, .3); }

/* ---- 表头与行 ---- */
.tbl th {
  font-size: 12px; letter-spacing: .3px;
  box-shadow: inset 0 -1px 0 var(--line);   /* sticky 表头底边线修复 */
  z-index: 2;
}
.tbl tbody tr { transition: background .12s var(--ease); }
.tbl td.mono, .dgrid .c.mono, .gt-r .mono { font-variant-numeric: tabular-nums; }

/* ---- 按钮微交互统一 ---- */
.btn { transition: transform .14s var(--ease), box-shadow .2s var(--ease), filter .14s var(--ease), background .14s var(--ease); }
.btn.ghost { background: var(--surface); }
.btn.ghost:hover { background: #f7f9fd; }
.gbtn { transition: background .13s var(--ease), color .13s var(--ease); }
.gbtn:active, .btn:active, .pgbtn:active { transform: scale(.96); }
.pgbtn { transition: border-color .13s var(--ease), color .13s var(--ease), background .13s var(--ease); font-family: inherit; }

/* ---- 卡片 ---- */
.fcard, .dcard, .dkpi, .stat { transition: box-shadow .2s var(--ease); }
.fcard:hover, .dcard:hover { box-shadow: var(--shadow-1); }
.fcard-hd h2 { letter-spacing: .2px; }
.dkpi:hover { box-shadow: var(--shadow-1); }

/* ---- 弹窗 ---- */
.vmodal { animation: modal-pop .22s cubic-bezier(.2, 0, 0, 1) both; }
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.vmodal-mask { backdrop-filter: blur(3px); }

/* ---- 登录页视觉已整体重做（见上方「登录」段） ---- */

/* ---- 状态徽标统一（红=未/绿=已/蓝=部分） ---- */
.tg, .tag { font-variant-numeric: tabular-nums; }

/* ================================================================
   H5 移动端适配（≤760px / ≤480px）
   要点：导航横滑、触控目标≥40px、表单字体16px防iOS缩放、
        表格容器横滑、弹窗全屏、去掉内滚双滚动条
   ================================================================ */
@media (max-width: 760px) {
  /* 顶栏两行化：第一行 品牌+退出，第二行 通栏横滑导航（两侧渐隐提示可滑动） */
  .topbar {
    flex-wrap: wrap; height: auto; row-gap: 0;
    padding: 8px 12px 0; gap: 8px;
  }
  .brand { font-size: 14px; gap: 7px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand span em { display: none; }
  .spacer { display: none; }
  .inline { margin-left: auto; }
  .inline .btn.sm { height: 34px; }
  .nav {
    order: 3; flex-basis: 100%; flex: none;
    margin: 4px -12px 0; padding: 0 14px;
    height: 42px; display: flex; align-items: stretch;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    border-top: 1px solid var(--line-soft);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; padding: 0 11px; font-size: 13.5px; height: auto; align-self: stretch; }
  .nav a.on::after { left: 11px; right: 11px; bottom: 4px; }

  /* iOS 聚焦防缩放：输入控件 16px */
  input[type=text], input[type=tel], input[type=number], input[type=date],
  input[type=password], input[type=search], input[type=month], select, textarea {
    font-size: 16px;
  }
  /* 触控目标加大 */
  .btn { height: 40px; }
  .btn.sm { height: 36px; }
  .gbtn { height: 36px; }
  .pgbtn { min-width: 34px; height: 34px; }
  .nav a { height: 36px; }
  .pgsize select { height: 34px; }

  /* 布局与留白 */
  .page { padding: 10px; }
  .page.wide { padding: 8px 8px 4px; }
  .page-head h1 { font-size: 16px; }
  .page-head .actions { width: 100%; }
  .search { width: 100%; }
  .search input { width: 100%; flex: 1; }

  /* 订单网格：放开内滚上限，跟随页面滚动 */
  .grid-wrap { max-height: none; overflow-x: auto; }

  /* 卡片内表格横滑 */
  .fcard-bd { padding: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* 财务结算行内操作换行 */
  .fin-op { flex-wrap: wrap; }
  .fin-op .fin-amt { width: 110px; }
  .fin-filter { flex-wrap: wrap; }
  .fin-filter input, .fin-filter select { min-width: 0; flex: 1 1 40%; }

  /* 弹窗全屏化 */
  .vmodal-mask { padding: 0; align-items: stretch; }
  .vmodal { width: 100% !important; max-width: 100% !important; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .vmodal-hd { padding: 12px 14px; }
  .vmodal-bd, .vmodal-ft { padding-left: 14px; padding-right: 14px; }

  /* 索引条与分区锚点（顶栏两行化后整体下移） */
  .otabs { top: 92px; padding: 4px; overflow-x: auto; scrollbar-width: none; border-radius: 10px; }
  .otabs::-webkit-scrollbar { display: none; }
  .otab { min-width: 64px; flex: none; height: 34px; font-size: 13px; padding: 0 10px; }
  .tpane { scroll-margin-top: 152px; }

  /* Hero 头卡 */
  .hero { padding: 16px 14px 14px; border-radius: 12px; }
  .hero-title { font-size: 16.5px; }

  /* 统计卡保持 2 列紧凑 */
  .stats, .page.wide .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat b { font-size: 16px; }
  .dkpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dkpi b { font-size: 19px; }
  .dtodo { grid-template-columns: 1fr; }
  .dops { grid-template-columns: 1fr; }

  /* 供应商概览 / 用车信息 */
  .sup-ov-cols { grid-template-columns: 1fr; }
  .vinfo-grid { grid-template-columns: 1fr 1fr; }
  .vinfo-grid label.wide, .vinfo-grid label.span2 { grid-column: span 2; }

  /* 登录卡自适应（新登录页：背景已是深夜蓝，卡片全宽） */
  .login-stage { max-width: 420px; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
  .login-card { padding: 26px 20px 22px; border-radius: 14px; }
  .login-title h1 { font-size: 22px; }

  /* 识别录单 */
  .parse-grid { grid-template-columns: 1fr; }
  .parse-grid .fld.span2 { grid-column: span 1; }

  /* 底部固定操作条 */
  .pick-ft { padding: 10px 12px; gap: 10px; }

  /* 表格密度收紧 */
  .tbl th, .tbl td { padding: 8px 10px; }
}

@media (max-width: 480px) {
  .stats, .page.wide .stats, .hstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dkpis { grid-template-columns: 1fr 1fr; }
  .dhead h1 { font-size: 19px; }
  .gsearch input { width: 100%; }
  .gsearch { width: 100%; order: 5; }
  .fcat-name { width: 92px; }
}

/* ================= 线路页：左侧产品线导航 + 行内编辑 ================= */
.rt-ellip {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px;
}
.set-side .set-cat { gap: 8px; }
.set-side .set-cat.plus span { color: var(--brand); }
.set-side .set-cat.plus:hover { background: var(--brand-soft); }
.set-cat.off span { color: var(--text-3); }

.rt-head-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.rt-in {
  height: 32px; padding: 0 9px; min-width: 0;
  border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--text);
  font-size: 13px; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.rt-in:hover { border-color: var(--line); background: rgba(127,127,127,.04); }
.rt-in:focus { outline: none; border-color: var(--brand); background: #fff; }
.rt-in.rt-name {
  font-size: 15.5px; font-weight: 600; color: var(--text);
}
.rt-mini {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-3); white-space: nowrap;
}
.rt-mini .rt-in { width: 84px; font-size: 13px; color: var(--text-2); }

.rt-sub { font-size: 12.5px; margin: 2px 2px 10px; }
.rt-search-row { margin: 0 0 12px; }
.rt-search-row .rt-psearch {
  width: 100%; max-width: 360px; height: 32px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--text);
}
.rt-search-row .rt-psearch:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.btn.danger {
  background: #fff; color: #b3261e; border-color: #f3c1bd;
}
.btn.danger:hover { background: #fff2f0; border-color: #d98a83; color: #b3261e; }

@media (max-width: 760px) {
  .rt-head-bar { gap: 6px; }
  .rt-in.rt-name { flex: 1 1 100%; }
  .rt-mini .rt-in { width: 72px; }
}

/* ============ 彩色字典标签（伙伴云风格） ============ */
.dchips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.dchip{
  --dc:#2563eb;
  display:inline-flex;align-items:center;gap:4px;
  padding:5px 14px;border-radius:999px;cursor:pointer;user-select:none;
  font-size:13px;line-height:1.4;font-weight:500;
  border:1px solid var(--dc);
  background:color-mix(in srgb, var(--dc) 10%, #ffffff);
  color:var(--dc);
  transition:background .12s,color .12s,box-shadow .12s;
}
.dchip input{display:none}
.dchip:hover{background:color-mix(in srgb, var(--dc) 18%, #ffffff)}
.dchip.on{background:var(--dc);color:#fff;font-weight:600;box-shadow:0 1px 4px color-mix(in srgb, var(--dc) 40%, transparent)}
.dchips.shake{animation:chipshake .5s}
@keyframes chipshake{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}50%{transform:translateX(5px)}75%{transform:translateX(-3px)}}

/* 设置页颜色选择 */
.set-color-cell{display:flex;align-items:center;gap:6px}
.set-color{width:38px;height:28px;padding:0;border:1px solid var(--line);border-radius:6px;background:none;cursor:pointer}
.set-color::-webkit-color-swatch-wrapper{padding:2px}
.set-color::-webkit-color-swatch{border:none;border-radius:4px}

/* 行程安排格式化预览 */
.itin-pretty{border:1px solid var(--line);border-radius:10px;background:#fafbfc;padding:6px 0;margin-bottom:8px}
.itin-row{display:flex;align-items:baseline;gap:10px;padding:7px 14px;border-bottom:1px dashed var(--line-soft)}
.itin-row:last-child{border-bottom:none}
.itin-date{flex:0 0 44px;text-align:right;font-weight:700;color:var(--brand,#2b5cd9);font-size:13px}
.itin-day{flex:0 0 34px;font-weight:700;font-size:12px;color:#fff;background:var(--brand,#2b5cd9);border-radius:6px;text-align:center;padding:2px 0;align-self:center}
.itin-txt{flex:1;font-size:13px;line-height:1.65;color:var(--ink,#1f2937)}
.itin-extra{flex:0 0 auto;font-size:12px;color:#d97706;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;padding:1px 8px}

/* ============ 彩色下拉选择（dsel，替代 dchips 省空间） ============ */
.dsel{position:relative;display:block}
.dsel-btn{
  --dc:#2563eb;
  display:flex;align-items:center;gap:7px;width:100%;
  height:36px;padding:0 10px;
  border:1px solid var(--line,#d5dbe3);border-radius:8px;
  background:#fff;cursor:pointer;font-size:13px;color:var(--ink,#1f2937);
  transition:border-color .12s,box-shadow .12s;
}
.dsel-btn:hover{border-color:#93c5fd}
.dsel-btn:focus-within,.dsel-btn:focus{outline:none;border-color:var(--brand,#2b5cd9);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand,#2b5cd9) 15%,transparent)}
.dsel-btn .dsel-dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:var(--dc);display:none}
.dsel-btn:not(.empty) .dsel-dot{display:block}
.dsel-btn.empty{color:#9aa3af}
.dsel-btn .dsel-lab{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dsel-btn .dsel-caret{font-size:10px;color:#9aa3af;font-weight:400;flex:0 0 auto}
.dsel-panel{
  display:none;position:absolute;z-index:60;left:0;right:0;top:calc(100% + 4px);
  max-height:264px;overflow:auto;
  background:#fff;border:1px solid var(--line,#d5dbe3);border-radius:10px;
  box-shadow:0 8px 24px rgba(15,23,42,.14);padding:6px;
}
.dsel-panel.open{display:block}
.dsel-panel.up{top:auto;bottom:calc(100% + 4px)}
.dsel-it{
  --dc:#2563eb;
  display:flex;align-items:center;gap:8px;width:100%;
  padding:8px 10px;border:none;border-radius:8px;background:none;
  font-size:13px;color:var(--ink,#1f2937);cursor:pointer;text-align:left;
}
.dsel-it:hover{background:color-mix(in srgb,var(--dc) 8%,#ffffff)}
.dsel-it .dsel-dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:var(--dc)}
.dsel-it.on{background:color-mix(in srgb,var(--dc) 12%,#ffffff);font-weight:600;color:var(--dc)}
@media (max-width:760px){
  .dsel-btn{height:40px;font-size:16px}
  .dsel-panel{max-height:220px}
}
.dsel.shake{animation:chipshake .5s}

/* 行程日期比对：不一致标红 + 警告条 */
.itin-warn{
  margin:0 0 8px;padding:9px 12px;border-radius:8px;
  background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;font-size:12.5px;line-height:1.65;
}
.itin-warn ul{margin:4px 0 0;padding-left:18px}
.itin-row.bad{background:#fff5f5;border-left:3px solid #dc2626}
.itin-row.bad .itin-date{color:#dc2626}
.itin-extra.bad{background:#fee2e2;border-color:#fca5a5;color:#b91c1c}

/* 活动/保险子表 */
.ex-edit td.ex-amt{text-align:right;font-variant-numeric:tabular-nums;color:#0f766e;font-weight:600;white-space:nowrap}

/* ============ 行程符号统一提示 ============ */
.itin-fix{
  margin:0 0 8px;padding:7px 12px;border-radius:8px;font-size:12.5px;
  background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;
}

/* ============ 门票明细表 ============ */
.tk-sum{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 8px;font-size:13px}
.tk-sum b{color:#0f766e;font-variant-numeric:tabular-nums}
.tk-edit td{padding:3px 4px}
.tk-edit input,.tk-edit select{width:100%;height:30px;font-size:12.5px}
.tk-edit .tk-guest-btn{white-space:nowrap;max-width:120px;overflow:hidden;text-overflow:ellipsis}

/* ============ 活动行：供应商只读 ============ */
.ex-sup{font-size:12.5px;color:#475569;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ex-sup-txt{display:block;line-height:1.3;padding-top:6px}

/* ============ 工作台提醒 ============ */
.dremind .rlist{display:flex;flex-direction:column;gap:6px;max-height:268px;overflow:auto}
.ritem{
  display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line-soft);
  border-radius:9px;text-decoration:none;color:inherit;font-size:13px;background:#fff;
  transition:border-color .12s,box-shadow .12s;
}
.ritem:hover{border-color:#bfdbfe;box-shadow:0 2px 8px rgba(43,92,217,.08)}
.ritem b{font-weight:600}
.ritem .mono{font-size:12px;color:#64748b}
.ritem em{flex:1;font-style:normal;color:#64748b;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ritem .rdate{font-size:12px;color:#0f172a;white-space:nowrap}
.rtag{display:inline-block;padding:2px 7px;border-radius:999px;font-size:11px;font-weight:600;white-space:nowrap}
.rtag.red{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
.rtag.orange{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}
.rtag.blue{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}
.gbtn.done{color:#0f766e;border-color:#99f6e4;background:#f0fdfa;cursor:default}

/* ============ 设置：活动项目 ============ */
.ei-tbl input,.ei-tbl select{height:30px;font-size:12.5px;width:100%}
.ei-range{display:flex;align-items:center;gap:4px}
.ei-range span{color:#94a3b8;font-size:11px}
@media (max-width:760px){
  .dremind .ritem{flex-wrap:wrap}
  .ritem em{flex-basis:100%;order:5}
}

/* ---------- 门票按景区合并 / 预约提醒右侧 / 早餐标签 / 游客折叠（2026-11-12） ---------- */
.tk-edit .tk-sumrow { background: #f8fafc; }
.tk-edit .tk-sumrow td { padding: 6px 4px; border-top: 1px solid var(--line-soft); }
.tk-edit .tk-sumrow:hover { background: #f1f5f9; }
.tk-gname { display: flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.tk-gname-tx { overflow: hidden; text-overflow: ellipsis; }
.tk-exp { border: 0; background: transparent; color: var(--text-3); cursor: pointer; font-size: 11px; padding: 0 2px; line-height: 1; }
.tk-exp:hover { color: var(--text); }
.tk-gcats { color: var(--text-2); font-size: 12.5px; }
.tk-gdate { color: var(--text-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tk-edit .tk-gqty, .tk-edit .tk-gprice, .tk-edit .tk-gcost, .tk-edit .tk-gamt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-edit .tk-gamt { font-weight: 600; color: #0f766e; }
.tk-edit .tk-gprice { color: var(--text-2); }
.tk-edit tr.tk-sub > td:first-child { padding-left: 12px; }
.tk-edit tr.tk-sub { background: #fff; }
.tk-edit tr.tk-sub td { border-top: 1px dashed var(--line-soft); }

.tk-rem { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.trm { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: #fff7ed;
  border: 1px solid #fed7aa; color: #9a3412; border-radius: 999px; padding: 3px 4px 3px 10px; }
.trm b { font-weight: 600; }
.trm em { font-style: normal; color: #b45309; opacity: .85; }
.trm.off { background: #f8fafc; border-color: var(--line); color: var(--text-3); }
.trm-x { border: 0; background: #fff; color: inherit; font-size: 11px; border-radius: 999px;
  padding: 2px 7px; cursor: pointer; box-shadow: inset 0 0 0 1px currentColor; opacity: .75; }
.trm-x:hover { opacity: 1; }
@media (max-width: 760px) {
  .tk-rem { justify-content: flex-start; }
  .fcard-hd { flex-wrap: wrap; }
}

.itin-bf { font-size: 11px; color: #0d9488; background: #ecfdf5; border: 1px solid #99f6e4;
  border-radius: 999px; padding: 1px 7px; margin-left: auto; white-space: nowrap; }

.gb-edit { margin-top: 8px; border: 1px solid var(--line-soft); border-radius: 8px; padding: 0 10px 10px; background: #fcfdff; }
.gb-edit > summary { cursor: pointer; font-size: 12.5px; color: var(--text-3); padding: 8px 0; list-style: none; }
.gb-edit > summary::-webkit-details-marker { display: none; }
.gb-edit > summary::before { content: '▸ '; color: var(--text-3); }
.gb-edit[open] > summary::before { content: '▾ '; }
.gb-edit textarea { width: 100%; }

/* 接送机 / 支出表：删除列最前，供应商列隐藏（仍存快照） */
.tf-edit th:first-child, .ex-edit th:first-child { padding-left: 8px; }
.tf-edit td:first-child, .ex-edit td:first-child { padding-left: 8px; }
.tf-edit .row-x, .ex-edit .row-x { font-size: 14px; line-height: 1; }
th.ex-sup, td.ex-sup { display: none !important; }
.tf-edit td, .ex-edit td { vertical-align: middle; }
.ex-edit .ex-amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: #0f766e; white-space: nowrap; }

/* ---------- 用车详情：日期突出 + 拼客日期列（2026-11-12） ---------- */
.vdate { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600;
  color: #0f766e; background: #ecfdf5; border: 1px solid #99f6e4; border-radius: 999px;
  padding: 3px 12px; font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.vdate i { font-style: normal; font-size: 12px; font-weight: 500; color: #0d9488;
  background: #fff; border-radius: 999px; padding: 0 7px; }

.vdate-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #f0fdfa; border: 1px solid #ccfbf1; border-radius: 8px;
  padding: 8px 12px; margin-bottom: 12px; font-size: 13px; color: var(--text-2); }
.vdate-line > span:first-child { color: var(--text-3); font-size: 12px; }
.vdate-line b { font-size: 15px; color: #0f766e; font-weight: 600; }
.vdate-line em { font-style: normal; color: var(--text-3); }
.vdate-line i { font-style: normal; font-size: 12px; background: #fff; border: 1px solid #99f6e4;
  color: #0d9488; border-radius: 999px; padding: 0 7px; }
.vdate-edit { font-size: 12px; color: #0d9488; text-decoration: none; margin-left: auto; }
.vdate-edit:hover { text-decoration: underline; }

td.pf-date { vertical-align: top; }
td.pf-date .pf-in { width: 112px; font-size: 12px; padding: 3px 4px; }
td.pf-date .pf-in + .pf-in { margin-top: 3px; }
.pf-dhint { display: block; font-size: 11px; color: var(--text-3); margin-top: 3px; line-height: 1.3; }
@media (max-width: 760px) {
  .vdate { font-size: 13px; padding: 2px 9px; }
  .vdate-line b { font-size: 14px; }
}

/* 供应商详情：按类别收窄后隐藏无关区块 */
.fcard[hidden], section.sup-sec[hidden] { display: none !important; }
.sup-nav .sup-scope { font-size: 12px; color: var(--text-3); align-self: center; margin-left: 4px; }
.sup-nav .sup-hidden-tip { font-size: 11.5px; color: #b45309; background: #fffbeb;
  border: 1px solid #fde68a; border-radius: 999px; padding: 2px 9px; align-self: center; }

/* ---------- 用车列表：勾选批量删除（2026-11-12） ---------- */
.vtbl th.chk, .vtbl td.chk { width: 34px; min-width: 34px; padding: 0 2px 0 8px; text-align: center; }
.vtbl th.chk input, .vtbl td.chk input { width: 15px; height: 15px; margin: 0; cursor: pointer; accent-color: #0f766e; }
.vtbl tbody tr.vrow.picked { background: #eff6ff; }
.vtbl tbody tr.vrow.picked:hover { background: #e0edff; }
.vtbl tbody tr.vrow.picked td:first-child { box-shadow: inset 3px 0 0 #2563eb; }

.vbulk { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 0 0 10px;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; font-size: 13px; color: #1e40af; }
.vbulk[hidden] { display: none !important; }
.vbulk b { font-variant-numeric: tabular-nums; font-size: 15px; }
.vbulk .muted { color: #3b6bc0; }
.vbulk .grow { flex: 1 1 auto; }
@media (max-width: 760px) {
  .vbulk { flex-wrap: wrap; gap: 8px; }
  .vbulk .grow { display: none; }
}

/* ---------- 编辑页 AI 补充弹窗（2026-11-12） ---------- */
.aisup-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .48); z-index: 1300;
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.aisup-mask[hidden] { display: none !important; }
.aisup-box { width: min(720px, 96vw); max-height: 88vh; overflow: auto; background: #fff;
  border-radius: 14px; box-shadow: 0 18px 50px rgba(15, 23, 42, .25); }
.aisup-hd { display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft, #e5e9f2); position: sticky; top: 0; background: #fff; z-index: 1; }
.aisup-hd b { font-size: 15px; }
.aisup-x { margin-left: auto; border: 0; background: transparent; font-size: 20px; line-height: 1;
  color: var(--text-3, #8a93a6); cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.aisup-x:hover { background: #f1f5f9; color: var(--text, #1f2937); }
.aisup-bd { padding: 14px 18px 18px; }
.aisup-ta { width: 100%; min-height: 140px; resize: vertical; font: 13px/1.6 inherit; }
.aisup-tools { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.aisup-img { position: relative; overflow: hidden; }
.aisup-img input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.aisup-tip { font-size: 12.5px; color: #0d9488; }
.aisup-tip.err { color: #b3261e; }
.aisup-sugs { margin-top: 10px; border: 1px solid var(--line-soft, #e5e9f2); border-radius: 10px; overflow: hidden; }
.aisup-warns { padding: 8px 12px; background: #fffbeb; color: #92400e; font-size: 12.5px;
  border-bottom: 1px solid #fde68a; }
.aisup-sug { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 13px;
  border-bottom: 1px dashed var(--line-soft, #e5e9f2); cursor: pointer; }
.aisup-sug:last-child { border-bottom: 0; }
.aisup-sug:hover { background: #f8fafc; }
.aisup-sug input { width: 15px; height: 15px; accent-color: #0f766e; flex: none; }
.aisup-sug .as-l { font-weight: 600; color: var(--text, #1f2937); flex: none; width: 108px; }
.aisup-sug .as-v { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: #0f766e; }
.aisup-sug .as-cur { flex: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: var(--text-3, #8a93a6); font-size: 12px; }
.aisup-sug select { flex: none; font-size: 12px; padding: 2px 4px; }
.aisup-none { padding: 18px 12px; text-align: center; color: var(--text-3, #8a93a6); font-size: 13px; }
.aisup-ft { display: flex; gap: 8px; margin-top: 12px; }
@media (max-width: 760px) {
  .aisup-sug { flex-wrap: wrap; }
  .aisup-sug .as-l { width: auto; }
  .aisup-sug .as-cur { max-width: 100%; }
}

/* ================================================================
   全站美工升级 · 2026-11-12（第二轮：层次/留白/H5 深度打磨）
   原则：只动皮肤不动结构；H5 优先；触控目标≥44px；iOS 安全区
   ================================================================ */

/* ---- 卡片统一 14px 圆角 + 更干净的边 ---- */
.fcard, .dcard, .dkpi, .stat, .table-wrap, .vmodal {
  border-radius: 14px;
}
.fcard-hd { border-radius: 14px 14px 0 0; }

/* ---- 页头层次 ---- */
.page-head h1 { font-weight: 600; letter-spacing: .2px; }
.dhead h1 { font-weight: 700; letter-spacing: .2px; }

/* ---- 数字层次：金额/统计用等宽数字 ---- */
.stat b, .dkpi b, .dgrid .c.mono, .fin-amt, .hm b { font-variant-numeric: tabular-nums; }

/* ---- KPI 卡精修：顶部微高光 + 悬浮轻抬 ---- */
.dkpi { position: relative; overflow: hidden; }
.dkpi::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 44px;
  background: linear-gradient(180deg, rgba(43, 92, 217, .05), transparent);
  pointer-events: none;
}
.dkpi.good::before { background: linear-gradient(180deg, rgba(14, 170, 92, .07), transparent); }
.dkpi.warn::before { background: linear-gradient(180deg, rgba(239, 142, 30, .08), transparent); }
.dkpi:hover { transform: translateY(-1px); }

/* ---- 空状态 ---- */
.dempty, .tbl .empty { color: var(--text-3); }
.dempty { text-align: center; padding: 26px 12px; font-size: 13px; }

/* ---- iOS 安全区：底部贴边元素 ---- */
@media (max-width: 760px) {
  .pick-ft { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .vmodal-ft { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .vmodal-hd { padding-top: calc(12px + env(safe-area-inset-top)); }
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ---- H5：页头动作条与统计卡触控 ---- */
@media (max-width: 760px) {
  .dhead-actions .btn, .page-head .actions .btn { min-width: 44px; }
  .dkpi { padding: 13px 14px; }
  .dkpi b { font-size: 21px; }
  .dkpi span { font-size: 12.5px; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 17px; }
  /* 卡片间距呼吸感 */
  .page { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  /* 网格底部提示行不与横滑条打架 */
  .dgrid-foot, .gt-foot { padding-bottom: 4px; }
}

/* ---- 桌面端顶栏微调：导航 hover 下划线过渡 ---- */
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: center;
  transition: transform .18s var(--ease);
}
.nav a.on::after { transform: scaleX(1); opacity: .55; }
@media (min-width: 761px) {
  .nav a:hover::after { transform: scaleX(.6); opacity: .3; }
  .nav a.on:hover::after { transform: scaleX(1); opacity: .55; }
}

/* ---- 还需人工填写（编辑页右侧） ---- */
.todoMiss .fcard-hd h2 { color: #b45309; font-size: 15px; }
.miss-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.miss-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-1); background: #fffbeb;
  border: 1px solid #fde68a; border-radius: 8px; padding: 7px 10px;
}
.miss-list li[hidden] { display: none; }
.miss-dot { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; flex: none; }
.miss-ok { font-size: 13px; color: #0eaa5c; background: #eafaf1; border: 1px solid #bfe8d2; border-radius: 8px; padding: 9px 10px; }
.todoMiss.all-ok { border-color: #bfe8d2; }

/* ================= 第8批：游客行级编辑 + 浙江免门票高亮 ================= */
.gt { min-width: 620px; }
.gt-h, .gt-r { grid-template-columns: 30px 78px 48px 40px 52px minmax(122px, 1fr) 100px 100px 52px 28px; }
.gt-r span > input, .gt-r span > select {
  width: 100%; border: 1px solid transparent; border-radius: 4px;
  background: transparent; font: inherit; color: inherit;
  padding: 2px 4px; outline: none; min-width: 0;
}
.gt-r span > input:hover, .gt-r span > select:hover { border-color: var(--line); }
.gt-r span > input:focus, .gt-r span > select:focus {
  border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 2px rgba(36, 86, 203, .12);
}
.gt-r input.bad { color: var(--danger); }
.gt-r.zj { background: #f0faf4; }
.gt-r.zj:hover { background: #e4f5eb; }
.gt-r .zj-tag { margin-left: 4px; font-size: 10px; padding: 1px 5px; vertical-align: 1px; }
.gt-del {
  border: 0; background: transparent; color: var(--text-3);
  cursor: pointer; font-size: 13px; width: 24px; height: 24px;
  border-radius: 5px; line-height: 1; padding: 0;
}
.gt-del:hover { background: #fdecec; color: var(--danger); }
@media (max-width: 760px) {
  .gt { min-width: 560px; }
}

/* ================= 识别页：重复单确认弹窗 ================= */
.dup-card { width: 560px; max-width: 94vw; }
.dup-ico {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eaf1ff; color: var(--brand); font-size: 15px; font-weight: 700; font-style: normal;
}
.dup-no {
  font-size: 12.5px; color: var(--text-2); background: var(--line-soft);
  border-radius: 6px; padding: 3px 8px; margin-left: 8px;
}
.dup-tip { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 10px; }
.dup-tip b { color: var(--text); }
.dup-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.dup-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f7f9fd; border: 1px solid var(--line-soft); border-radius: 7px;
  padding: 4px 9px; font-size: 12.5px; max-width: 100%;
}
.dup-chip i {
  font-style: normal; color: var(--text-3); font-size: 11px; flex: none;
  background: #fff; border-radius: 4px; padding: 1px 5px; border: 1px solid var(--line-soft);
}
.dup-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dup-card .modal-ft .btn { min-width: 92px; }
@media (max-width: 560px) {
  .dup-card { width: 100%; }
  .dup-card .modal-ft { flex-wrap: wrap; }
  .dup-card .modal-ft .grow { display: none; }
  .dup-card .modal-ft .btn { flex: 1; }
}
.gt-r .rg { display: flex; align-items: center; gap: 3px; }
.gt-r .rg .rg-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 0; }
.gt-r .rg .zj-tag { flex: none; }

/* ================= 第10批：还需人工填写 → 可点击索引 ================= */
.miss-list li {
  display: grid; grid-template-columns: 8px 1fr auto; align-items: center;
  gap: 3px 8px; cursor: pointer;
  transition: background .12s, border-color .12s, transform .08s;
}
.miss-list li:hover { background: #fef3c7; border-color: #fbbf24; }
.miss-list li:hover .miss-go { color: var(--brand); border-color: #bfdbfe; background: #eff6ff; }
.miss-list li:active { transform: scale(.985); }
.miss-list li:focus-visible { outline: 2px solid rgba(37, 99, 235, .35); outline-offset: 1px; }
.miss-t { font-weight: 600; line-height: 1.35; }
.miss-go {
  flex: none; font-size: 11.5px; color: var(--text-3); white-space: nowrap;
  border: 1px solid #fde68a; background: #fff; border-radius: 5px; padding: 1px 6px;
}
.miss-why { grid-column: 2 / 4; font-size: 11.5px; color: var(--text-3); line-height: 1.55; }
.miss-list li.jumped { background: #fde68a; }
/* 跳到目标字段时高亮 2 秒 */
@keyframes missFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
  12%, 65% { box-shadow: 0 0 0 3px rgba(245, 158, 11, .45); }
}
.miss-flash { animation: missFlash 2.2s ease; border-radius: 10px; }
@media (max-width: 760px) {
  .miss-why { grid-column: 1 / 4; }
}

/* ================= 第12批：识别页接送机行 + 供应商默认星标 ================= */
.ptf-box {
  margin-top: 12px; border: 1px solid var(--line-soft, #e5e9f2); border-radius: 12px;
  background: #f9fbfe; padding: 10px 12px 12px;
}
.ptf-hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.ptf-hd b { font-size: 13px; }
.ptf-hd .muted { font-size: 12px; }
.ptf-row { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: nowrap; }
.ptf-row select { width: 78px; flex: none; }
.ptf-row input[type="text"] { width: 160px; }
.ptf-row input[type="date"], .ptf-row input[type="time"] { width: 128px; flex: none; }
.ptf-row input[data-tf="station"] { flex: 1; min-width: 120px; }
.ptf-x {
  flex: none; border: 0; background: transparent; color: var(--text-3, #9099a8);
  cursor: pointer; width: 26px; border-radius: 6px; font-size: 14px;
}
.ptf-x:hover { background: #fdecec; color: var(--danger, #dc2626); }
@media (max-width: 620px) {
  .ptf-row { flex-wrap: wrap; }
  .ptf-row input[type="text"] { width: calc(50% - 10px); }
  .ptf-row input[data-tf="station"] { flex: 1 1 100%; }
}
.sup-star { color: var(--text-3, #9099a8); }
.sup-star.on { color: #f59e0b; font-weight: 700; }

/* 酒店行入住日期超出行程范围 → 日期框标红警示（仍可保存为行程外住宿） */
.hb-date-warn { color: #dc2626; font-size: 12.5px; font-weight: 600; }
.hb-edit-row input.hb-date-out { border-color: #dc2626 !important; background: #fef2f2; color: #dc2626; }

/* ================= 入境游模块 ================= */
.ib-pdf-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ib-pdf-tip { font-size: 12.5px; }
.ib-exp { border: 1px solid var(--line, #e5e8ee); border-radius: 10px; overflow: hidden; }
.ib-exp-h, .ib-exp-r { display: grid; grid-template-columns: minmax(160px,2fr) 130px 150px minmax(120px,1.6fr) 56px; gap: 8px; align-items: center; }
.ib-exp-h { padding: 9px 12px; background: #f6f7fa; font-size: 12.5px; color: var(--text-2, #5b6472); }
.ib-exp-r { padding: 8px 12px; border-top: 1px solid var(--line, #e5e8ee); }
.ib-exp-r input { width: 100%; }
.ib-exp-ft { display: flex; align-items: center; gap: 18px; padding: 9px 12px; border-top: 1px solid var(--line, #e5e8ee); }
.ib-exp-sum { font-size: 12.5px; color: var(--text-2, #5b6472); margin-left: auto; }
.ib-exp-sum:first-of-type { margin-left: 0; }
.ib-exp-sum b { color: var(--text, #1a2233); font-size: 14px; margin-left: 4px; }
.ib-search { width: 220px; padding: 8px 12px; border: 1px solid var(--line, #e5e8ee); border-radius: 8px; }
#ibTable tbody tr:hover { background: #f6f8fd; }
.ib-nm { font-weight: 600; }
@media (max-width: 760px) {
  .ib-exp-h { display: none; }
  .ib-exp-r { grid-template-columns: 1fr 1fr; }
  .ib-exp-r .ib-e-date { grid-column: span 2; }
}

/* 入境列表：行内编辑（同订单网格体验） */
#ibTable td.ib-c { cursor: text; }
#ibTable td.ib-c.c, #ibTable td.ib-c.num { cursor: cell; }
#ibTable td.editing { padding: 0; overflow: visible; box-shadow: inset 0 0 0 2px var(--brand); background: #fff; }
#ibTable td.editing .cell-edit > input, #ibTable td.editing .cell-edit > select { height: 37px; }
